[Kde-imaging] extragear/libs/kipi-plugins/jpeglossless

Gilles Caulier caulier.gilles at free.fr
Wed May 3 10:20:14 CEST 2006


SVN commit 536831 by cgilles:

kipi jpeglosslessplugin : If an error is detected during rotate/flip/convertB&W image process, displaying error messages into progress dialog like a warning. Note that all message from ImageMagick are reported too.

CCMAIL: kde-imaging at kde.org, digikam-devel at kde.org 


 M  +7 -5      plugin_jpeglossless.cpp  


--- trunk/extragear/libs/kipi-plugins/jpeglossless/plugin_jpeglossless.cpp #536830:536831
@@ -167,7 +167,7 @@
 
 Plugin_JPEGLossless::~Plugin_JPEGLossless()
 {
-    // Remove KIPI JPEGLossLess plugin temporary folder in KDE tmp directory.
+    // TODO: remove KIPI JPEGLossLess plugin temporary folder in KDE tmp directory.
 
     delete m_thread;
 
@@ -368,17 +368,17 @@
             {
                 case(KIPIJPEGLossLessPlugin::Rotate): 
                 {
-                    text = i18n("Failed to Rotate");
+                    text = i18n("Failed to Rotate image");
                     break;
                 }
                 case(KIPIJPEGLossLessPlugin::Flip): 
                 {
-                    text = i18n("Failed to flip Image");
+                    text = i18n("Failed to Flip image");
                     break;
                 }
                 case(KIPIJPEGLossLessPlugin::GrayScale): 
                 {
-                    text = i18n("Failed to convert to Black & White");
+                    text = i18n("Failed to convert image to Black & White");
                     break;
                 }
                 default: 
@@ -388,6 +388,8 @@
             }
             
             m_progressDlg->addedAction(text, KIPI::WarningMessage);
+            if (!d->errString.isEmpty())
+                m_progressDlg->addedAction(d->errString, KIPI::WarningMessage);        
         }
         else
         {
@@ -400,7 +402,7 @@
                 }
                 case(KIPIJPEGLossLessPlugin::Flip): 
                 {
-                    text = i18n("Flip Image complete");
+                    text = i18n("Flip image complete");
                     break;
                 }
                 case(KIPIJPEGLossLessPlugin::GrayScale): 


More information about the Kde-imaging mailing list