[Kde-imaging] kdeextragear-libs-1

Jesper Pedersen blackie at blackie.dk
Fri Jun 4 00:09:18 CEST 2004


CVS commit by blackie: 

CCMAIL: kde-imaging at kde.org

- I realized that most of the plugins had code looking like this:
    ImageCollection images = interface->currentSelection();
    if ( !images.isValid() )
      images = interface->currentAlbum();
  I therefore added a function called currentScope(), which does exactly
  this. Its implementation is as simple as
    KIPI::ImageCollection KIPI::Interface::currentScope()
    {
      ImageCollection images = currentSelection();
      if ( images.isValid() )
          return images;
      else
          return currentAlbum();
     }

- Added signals to KIPI::Interface. The host application may now emit one
  of
    void selectionChanged( bool hasSelection );
    void currentAlbumChanged( bool anyAlbum );
  in addition the interface will itself emit
    void currentScopeChanged( bool asScope );
  when one of the others are emitted.

- Added all the, till now, commented out lines for enabling/disabling
  actions based on selection/album


  M +1 -4      kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp   1.8
  M +5 -9      kipi-plugins/commentseditor/plugin_commentseditor.cpp   1.11
  M +10 -17    kipi-plugins/diroperations/plugin_diroperations.cpp   1.6
  M +1 -1      kipi-plugins/diroperations/plugin_diroperations.h   1.3
  M +10 -15    kipi-plugins/jpeglossless/plugin_jpeglossless.cpp   1.7
  M +1 -3      kipi-plugins/mpegencoder/plugin_mpegencoder.cpp   1.11
  M +5 -15     kipi-plugins/printwizard/plugin_printwizard.cpp   1.11
  M +0 -1      kipi-plugins/printwizard/plugin_printwizard.h   1.7
  M +18 -19    kipi-plugins/rawconverter/plugin_rawconverter.cpp   1.9
  M +1 -1      kipi-plugins/rawconverter/plugin_rawconverter.h   1.9
  M +1 -3      kipi-plugins/sendimages/plugin_sendimages.cpp   1.8
  M +6 -9      kipi-plugins/slideshow/plugin_slideshow.cpp   1.8
  M +1 -3      kipi-plugins/timeadjust/plugin_timeadjust.cpp   1.6
  M +4 -6      kipi-plugins/wallpaper/plugin_wallpaper.cpp   1.6
  M +1 -1      libkipi/libkipi/imagecollection.cpp   1.10
  M +75 -0     libkipi/libkipi/interface.cpp   1.15
  M +8 -14     libkipi/libkipi/interface.h   1.17





More information about the Kde-imaging mailing list