[Kde-imaging] kdeextragear-libs-1/kipi-plugins/jpeglossless

Renchi Raju renchi at pooh.tam.uiuc.edu
Sun Aug 15 02:43:21 CEST 2004


CVS commit by pahlibar: 



* make jpeglossless actions shallower in the menus
* rename "exif adjustment" to more user friendly: "Auto Rotate/Flip Using Exif Information"

CCMAIL: kde-imaging at kde.org, digikam-devel at lists.sourceforge.net


  M +26 -23    plugin_jpeglossless.cpp   1.16
  M +1 -1      plugin_jpeglossless.h   1.9


--- kdeextragear-libs-1/kipi-plugins/jpeglossless/plugin_jpeglossless.cpp  #1.15:1.16
@@ -73,11 +73,5 @@ void Plugin_JPEGLossless::setup( QWidget
     KIPI::Plugin::setup( widget );
 
-    // Main submenu for KIPI JPEGLossLess plugin transform actions.
-
-    m_action_Transform = new KActionMenu(i18n("&Transform"),
-                         actionCollection(),
-                         "jpeglossless_transform");
-    
-    m_action_Transform->insert( new KAction(i18n("EXIF Rotate/Flip adjustment"),
+    m_action_AutoExif =  new KAction(i18n("Auto Rotate/Flip using EXIF Information"),
                                 0,
                                 0,
@@ -85,5 +79,5 @@ void Plugin_JPEGLossless::setup( QWidget
                                 SLOT(slotRotate()),
                                 actionCollection(),
-                                "rotate_exif") );
+                                     "rotate_exif") ;    
 
 
@@ -144,8 +138,8 @@ void Plugin_JPEGLossless::setup( QWidget
                                              "jpeglossless_convert2grayscale");
 
-    m_action_Transform->insert(m_action_RotateImage);
-    m_action_Transform->insert(m_action_FlipImage);
-    m_action_Transform->insert(m_action_Convert2GrayScale);
-    addAction( m_action_Transform );
+    addAction( m_action_AutoExif );
+    addAction( m_action_RotateImage );
+    addAction( m_action_FlipImage );
+    addAction( m_action_Convert2GrayScale );
 
     KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( parent() );
@@ -158,5 +152,8 @@ void Plugin_JPEGLossless::setup( QWidget
            
     KIPI::ImageCollection selection = interface->currentScope();
-    m_action_Transform->setEnabled( selection.isValid() );
+    m_action_AutoExif->setEnabled( selection.isValid() );
+    m_action_RotateImage->setEnabled( selection.isValid() );
+    m_action_FlipImage->setEnabled( selection.isValid() );
+    m_action_Convert2GrayScale->setEnabled( selection.isValid() );
     
     m_thread = new KIPIJPEGLossLessPlugin::ActionThread(interface, this);
@@ -164,5 +161,11 @@ void Plugin_JPEGLossless::setup( QWidget
     
     connect( interface, SIGNAL( currentScopeChanged( bool ) ), 
-             m_action_Transform, SLOT( setEnabled( bool ) ) );
+             m_action_AutoExif, SLOT( setEnabled( bool ) ) );
+    connect( interface, SIGNAL( currentScopeChanged( bool ) ),
+             m_action_RotateImage, SLOT( setEnabled( bool ) ) );
+    connect( interface, SIGNAL( currentScopeChanged( bool ) ),
+             m_action_FlipImage, SLOT( setEnabled( bool ) ) );
+    connect( interface, SIGNAL( currentScopeChanged( bool ) ),
+             m_action_Convert2GrayScale, SLOT( setEnabled( bool ) ) );
 }
 
@@ -400,5 +403,5 @@ void Plugin_JPEGLossless::customEvent(QC
 KIPI::Category Plugin_JPEGLossless::category( KAction* action ) const
 {
-    if ( action == m_action_Transform )
+    if (action == m_action_AutoExif)
        return KIPI::IMAGESPLUGIN;
     else if ( action == m_action_RotateImage )

--- kdeextragear-libs-1/kipi-plugins/jpeglossless/plugin_jpeglossless.h  #1.8:1.9
@@ -66,8 +66,8 @@ private slots:
 private:
 
-    KActionMenu *m_action_Transform;
     KActionMenu *m_action_RotateImage;
     KActionMenu *m_action_FlipImage;
     KAction     *m_action_Convert2GrayScale;
+    KAction     *m_action_AutoExif;
 
     KIPIJPEGLossLessPlugin::ProgressDlg  *m_progressDlg;




More information about the Kde-imaging mailing list