Skip navigation.
KDE Developer's Journals

Filtering

aurélien gâteau's picture

A few weeks ago a Gwenview user asked if it would be possible to implement file name filtering. I initially answered that while the idea was nice, I didn't have time to work on it.

Of course, one should never trust me when I answer mails too quickly. A few days later, it turned out I needed such a feature. So I decided to implement it.

It started as a simple lineedit to filter filenames:
[image:1992]

But this was not handy for me: I needed to filter images by file date. So I ended up implementing it as a toolbar button. When clicked it reveals a few fields to filter by name and/or by date, like this:
[image:1993]

All this is available from your nearest KDE SVN mirror.

Comment viewing options

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

screen space

I also like the feature, but the widgets are far too big IMHO. The toolbar's lineheight should be reduced a lot. I guess its those x-buttons that are too high.

aurélien gâteau's picture

It's mainly caused by the

It's mainly caused by the widget style: This screenshot is done with Klearlooks. If I use Plastik the buttons are smaller.

sngeorgaras's picture

This is Great!!

This is getting better as time goes by, just like wine Smiling

I have just compiled it (had to fix a compilation error though with gcc (GCC) 4.1.0 (SUSE Linux)), and I'm thrilled!!!
Maybe you should consider adding image dimenssion filtering. Something like:
Width is less than/more than/equal to xx B/kB/MB
Height is less than/more than/equal to xx B/kB/MB

Kind regards
Spiros

--
Greek KDE l10n Team

danakil's picture

compilation error

I can't compile from SVN. I don't know if it's my installation who is broken (if so, don't bother with my problem) but it can maybe help you to solve a problem before the release:

libtool: link: `/usr/lib/libkdesu.la' is not a valid libtool archive
make[1]: *** [gwenview] Erreur 1

Don't know if this is useful but "libtool --version" give me

ltmain.sh (GNU libtool) 1.5.6 (1.1220.2.95 2004/04/11 05:50:42) Debian: 224 $

aurélien gâteau's picture

No idea sorry. I'm afraid

No idea, sorry. I'm afraid this has to do with your kdelibs installation.

aurélien gâteau's picture

Could you send me the patch

Could you send me the patch for your compilation error? I would like to avoid compilation error reports when the new release is out...

As of filtering by image dimension, why not, but the filter widget will get really large. I need to find a solution to avoid this. Any idea?

ab's picture

a button to switch the

a button to switch the filter "toolbar" on/off

danakil's picture

Thank you :)

Not yet tried this feature but it's a very nice idea. Does your "clear button" react as in the location field in Konqueror (when one middle-click on it, the search field is cleared and the content of the clipboard is pasted inside of it) ? Maybe you could do the same for the location field btw

I think it's a very useful (and hidden...) feature in Konqueror. I spoke about this in an amarok bug report and one of the developers looked to like it so maybe it will be added to the amarok filtering field too. This should be a default behaviour for all the KDE apps with a filtering feature or a clear button linked to a editfield(Kaffeine, amaroK,..., and Gwenview)

aurélien gâteau's picture

Not yet

Oh... never heard about this. It is really an hidden feature indeed. I will have a look at it if I find the time, but any patch is welcomed Evil

Comment viewing options

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