Skip navigation.
KDE Developer's Journals

Update on Konqueror the Browser

arendjr's picture

Okay, so I made some progress implementing the Google search bar. You can now find it in CVS in kdeaddons/konq-plugins/searchbar. As it's just a simple Konqueror plugin, it doesn't have to get in your way. It uses the default searchprovider as selected in Konqueror under the Web Shortcuts settings, so it's not limited to Google only. I hope to get some feedback from you so I can improve on it.

So, the next step is to optimize the toolbar layout for browsing (ideas like removing the Up button and such), for that I need to somehow let Konqueror save its toolbars per profile. Once that's done it should be very easy to make toolbar layouts that are optimized for separate tasks, like browsing. I'll keep you informed if I make progress.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
quaff's picture

how do i install this?

I know this must be the biggest newbie question ever... but how do i install the searchbar? :S i downloaded the cvs version of it.. i tried putting it into the kde-addons-3.2.0 folder (with the rest of the konq-plugins) and edited the makefile files.. but i get an error when i run make. anyone wanna point me in the direction? :S thanks

quaff's picture

haha nevermind

I figured it out Smiling

I've got another problem tho.

I've compiled the searchbar before, everything went fine. I recently reformatted, and now I get an error message when I try to compile the searchbar.

Here is what I get:

Making all in icons
make[1]: Entering directory `/home/quaff/downloads/kdeaddons/konq-plugins/searchbar/icons'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/quaff/downloads/kdeaddons/konq-plugins/searchbar/icons'
make[1]: Entering directory `/home/quaff/downloads/kdeaddons/konq-plugins/searchbar'
if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT searchbar.lo -MD -MP -MF ".deps/searchbar.Tpo" \
-c -o searchbar.lo `test -f 'searchbar.cpp' || echo './'`searchbar.cpp; \
then mv -f ".deps/searchbar.Tpo" ".deps/searchbar.Plo"; \
else rm -f ".deps/searchbar.Tpo"; exit 1; \
fi
searchbar.cpp: In member function `void SearchBarPlugin::startSearch(const
QString&)':
searchbar.cpp:100: error: no matching function for call to `KHTMLPart::findText
(const QString&, int)'
/opt/kde3/include/khtml_part.h:1446: error: candidates are: void
KHTMLPart::findText()
/opt/kde3/include/khtml_part.h:1447: error: `void KHTMLPart::findTextNext()' is
private
searchbar.cpp:101: error: within this context
make[1]: *** [searchbar.lo] Error 1
make[1]: Leaving directory `/home/quaff/downloads/kdeaddons/konq-plugins/searchbar'
make: *** [all-recursive] Error 1

I've tried installing different versions of KDE(3.1, 3.2, 3.2.1, 3.2.2), replacing khtml_part.h (with a different version), and even searchbar.cpp to compile this, but no success. I'm currently using SuSE 9.0, P3 1GHZ, kernel 2.4.21-202 and running KDE 3.2.2.

If anyone knows how to fix this, please help.
Thanks Smiling

patrick's picture

up-button

Hi Arend,



Please do not remove the Up-button. It's one of the things I like and use quite a bit, especially when searching.

Hits found by google have often been relocated on the server by the webdesigner. The up-botton gives you the possibility to go to the homepage of that user and go on from there.

mart's picture

a little idea.

I tried this only today, and i like it a lot.
I think this would be useful even in the file view:
for example: i have opened my home dir /home/mart in konqueror;
when i type in the searchbar "blah", konqueror will load file:/home/mart/*blah*
showing only the files containing "blah". maybe it could be even a front end to kfind
but i am not sure if it would be a good thing.
What do you think?

arendjr's picture

Re: a little idea

I was thinking about somehow using it to implement some sort of type-ahead find in webpages as well and your suggestion is a good addition to this for file browsing. However I still to need to overcome some trouble with the way Konqueror handles its layouts wrt profiles. Once that's fixed I can implement such things in a sane way Smiling

--
Arend van Beelen jr.
http://www.liacs.nl/~dvbeelen

icefox's picture

Toolbar

For the web browsing profile here is what I use:

http://www.csh.rit.edu/~benjamin/about/phpquickgallery/photo.php?gallery=KDE/&file=konqtoolbars.png

After I took the screenshot I removed the home (sense I use my file profile for that) and set the bookmark toolbar to 16x16 size sense the icons are that big.

datschge's picture

Feature request ;)

Will it allow me to search in the current page as well? That may be the only feature for which I find a separate search bar actually useful. Eye-wink

tom chance's picture

Screenshot!

I know it's a slightly silly thing to want a screenshot of, but for those who follow KDE development and who don't compile CVS snapshots, it's always nice to see these things in use Smiling

arendjr's picture

Here you go ;)

It's just an early screenshot, but it shows how it looks like:

http://www.liacs.nl/~dvbeelen/snapshot5.png

--
Arend van Beelen jr.
http://www.liacs.nl/~dvbeelen

aseigo's picture

already there....

Alexendar Neundorf created a patch so that toolbars are saved per-profile. it was right before 3.2 was released, and it may have even gone into 3.2. it was revision 1.1273 of konq_mainwindow.cpp anyways =)

oh, and i've been collecting usage metrics of toolbar buttons in konqueror when used as a webbrowser for ~6 weeks now... only have a couple dozen entries, but will be extending the data set over the coming months. help welcome =)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.