[Kde-imaging] ImageCollection or Browser

Jesper K. Pedersen blackie at blackie.dk
Wed Jun 23 21:34:37 CEST 2004


On Wednesday 23 June 2004 18:40, Aurélien Gâteau wrote:
| Le mercredi 23 Juin 2004 14:09, Renchi Raju a écrit :
| > On Wed, 23 Jun 2004, Gilles Caulier wrote:
| > > Le mercredi 23 Juin 2004 12:36, Renchi Raju a écrit :
| > > > > > am i missing something here. if i choose to run the rotation
| > > > > > plugin and i don't have any images selected it will rotate all
| > > > > > the images in the current view/album?
| > > > >
| > > > > yes
| > > >
| > > > that is just not right
|
| I agree with you.
|
| > another possibility is that app disables such actions when there is no
| > selection; but then again we are shifting the responsibility to the app.
| > its our job to get the interface correct.
|
| It seems we need "selection only" plugins. That is plugins which should
| only be enabled if images are selected. I suggest the following:
| - Add a slot named Interface::slotSelectionChanged() and a KIPI feature
| named SelectionOnlyPlugin.
| - The host app should call Interface::slotSelectionChanged() when the
| selection changes.
| - slotSelectionChanged() should loop on all plugins with the
| SelectionOnlyPlugin feature and disable or enable them if there is a
| selection.
The host application already do emit signals, among these 
selectionChanged( bool hasSelection );

Wouldn't it be better to connect it to such signals?


More information about the Kde-imaging mailing list