[Kde-imaging] Selecting images for plugins

Aurélien Gâteau aurelien.gateau at free.fr
Mon Jun 28 14:13:57 CEST 2004


Le jeudi 24 Juin 2004 18:00, Jesper K. Pedersen a écrit :

> May I conclude that you state that what we currently have is just fine
> (modulo the currentScope)?
> If so, then I agree with you, personally I have no need for changing things
> as they are now.
>
> Could we agree on the currentScope() function being virtual, so KimDaBa
> could reimplement it to its current value, with the default being to return
> the selection?
> Still keeping currentSelection and currentAlbum in case som plugin wanted
> to do something specific.

If we agree on having libkipi (not the host app) supply a widget for album 
selection (I'll call it KIPI::AlbumSelector for now), then we can have an 
AlbumSelector::images() method for plugins which needs it. The current* 
methods should only be used by dialog-less plugins.
As far as I'm concerned, I think the current* methods are ok. Plugins which 
modify the images should use currentSelection() only, plugins which only read 
images should use either one of the three methods.
I don't see a need for it being virtual now, but it should not imply any 
performance cost, so I'm ok to have it virtual if you need.

Aurélien


More information about the Kde-imaging mailing list