[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/koffice/1.5/koffice/filters/krita
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2006-05-25 14:55:43
Message-ID: 1148568943.306655.8007.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 544625 by berger:

ugly hack to warn user when the colorspace can't be used for export
BUG:127992


 M  +4 -1      jpeg/kis_jpeg_converter.cc  
 M  +4 -1      png/kis_png_converter.cc  
 M  +4 -1      tiff/kis_tiff_writer_visitor.cpp  


--- branches/koffice/1.5/koffice/filters/krita/jpeg/kis_jpeg_converter.cc #544624:544625
@@ -28,6 +28,9 @@
 #include <qfile.h>
 
 #include <kapplication.h>
+#include <kmessagebox.h>
+#include <klocale.h>
+
 #include <KoDocumentInfo.h>
 
 #include <kio/netaccess.h>
@@ -70,7 +73,7 @@
         {
             return JCS_CMYK;
         }
-        kdDebug(41008) << "Cannot export images in " + cs->id().name() + " yet.\n";
+        KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
         return JCS_UNKNOWN;
     }
 
--- branches/koffice/1.5/koffice/filters/krita/png/kis_png_converter.cc #544624:544625
@@ -25,6 +25,9 @@
 #include <qfile.h>
 
 #include <kapplication.h>
+#include <kmessagebox.h>
+#include <klocale.h>
+
 #include <KoDocumentInfo.h>
 
 #include <kio/netaccess.h>
@@ -59,7 +62,7 @@
             return alpha ? PNG_COLOR_TYPE_RGB_ALPHA : PNG_COLOR_TYPE_RGB;
         }
 
-        kdDebug(41008) << "Cannot export images in " + cs->id().name() + " yet.\n";
+        KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
         return -1;
 
     }
--- branches/koffice/1.5/koffice/filters/krita/tiff/kis_tiff_writer_visitor.cpp #544624:544625
@@ -19,6 +19,9 @@
 
 #include "kis_tiff_writer_visitor.h"
 
+#include <kmessagebox.h>
+#include <klocale.h>
+
 #include <kis_annotation.h>
 #include <kis_colorspace.h>
 #include <kis_group_layer.h>
@@ -53,7 +56,7 @@
             return true;
         }
 
-        kdDebug(41008) << "Cannot export images in " + cs->id().name() + " yet.\n";
+        KMessageBox::error(0, i18n("Cannot export images in %1.\n").arg(cs->id().name()) ) ;
         return false;
 
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic