[Kde-imaging] Selecting images for plugins

Jesper K. Pedersen blackie at blackie.dk
Mon Jun 28 15:26:37 CEST 2004


On Monday 28 June 2004 15:14, Aurélien Gâteau wrote:
| Le lundi 28 Juin 2004 14:37, Jesper K. Pedersen a écrit :
| > | You mean something like this?
| > |
| > | class AlbumSelector {
| > |   ...
| > |   void setMultiSelection(bool);
| > |   ...
| > | }
| > |
| > | Then if the plugin calls setMultiSelection(false) then "auto-selecting"
| > | won't happen? This is ok for me.
| >
| > Something like that yes, and then the check boxes was replaced with radio
| > buttons.
| >
| > However, can you come up with an example where this would be needed? I
| > mean to plugins it will in the end just be a set of images.
|
| The web export plugin would be a good candidate: it wants only one
| ImageCollection to get the name and comment.
|
| I think the selector could have the following API:
|
| class AlbumSelector {
|   void setMultiSelection(bool);
|
|   // Returns the selected image collection.
|   // Only valid if multi collection is off
|   ImageCollection imageCollection() const;
|
|   // Returns the images of all selected image collection.
|   // An image won't appear twice in the returned list.
|   KURL::List images() const;
| }
|
| What do you think about this?
images() is not needed is it? that is returned from ImageCollection.
Besides your AlbumsSelector inherits QWidget, right?


More information about the Kde-imaging mailing list