[Okular-devel] KDE/kdegraphics/okular/generators

Pino Toscano toscano.pino at tiscali.it
Sat Nov 24 19:08:31 CET 2007


SVN commit 741068 by pino:

Add stubs for about data for the backends that don't have one, but have translations.

I remember all the maintainers to fill them only after the KDE 4.0 unfreeze :)

CCMAIL: okular-devel at kde.org


 M  +12 -0     dvi/generator_dvi.cpp  
 M  +13 -0     fictionbook/generator_fb.cpp  
 M  +13 -0     ooo/generator_ooo.cpp  
 M  +12 -0     plucker/generator_plucker.cpp  
 M  +12 -0     poppler/generator_pdf.cpp  
 M  +13 -0     spectre/generator_ghostview.cpp  


--- trunk/KDE/kdegraphics/okular/generators/dvi/generator_dvi.cpp #741067:741068
@@ -26,6 +26,7 @@
 #include <qvector.h>
 #include <qstack.h>
 
+#include <kaboutdata.h>
 #include <kdebug.h>
 #include <klocale.h>
 
@@ -34,6 +35,17 @@
 DviGenerator::DviGenerator() : Okular::Generator(),
   m_docInfo( 0 ), m_docSynopsis( 0 ), ready( false ), m_dviRenderer( 0 )
 {
+    // ### TODO fill after the KDE 4.0 unfreeze
+    KAboutData *about = new KAboutData(
+         "okular_dvi",
+         "okular_dvi",
+         KLocalizedString(),
+         "0.1",
+         KLocalizedString(),
+         KAboutData::License_GPL,
+         KLocalizedString()
+    );
+    setAboutData( about );
     setFeature( TextExtraction );
 }
 
--- trunk/KDE/kdegraphics/okular/generators/fictionbook/generator_fb.cpp #741067:741068
@@ -11,9 +11,22 @@
 
 #include "converter.h"
 
+#include <kaboutdata.h>
+
 OKULAR_EXPORT_PLUGIN(FictionBookGenerator)
 
 FictionBookGenerator::FictionBookGenerator()
     : Okular::TextDocumentGenerator( new FictionBook::Converter )
 {
+    // ### TODO fill after the KDE 4.0 unfreeze
+    KAboutData *about = new KAboutData(
+         "okular_fictionbook",
+         "okular_fictionbook",
+         KLocalizedString(),
+         "0.1",
+         KLocalizedString(),
+         KAboutData::License_GPL,
+         KLocalizedString()
+    );
+    setAboutData( about );
 }
--- trunk/KDE/kdegraphics/okular/generators/ooo/generator_ooo.cpp #741067:741068
@@ -11,9 +11,22 @@
 
 #include "converter.h"
 
+#include <kaboutdata.h>
+
 OKULAR_EXPORT_PLUGIN(KOOOGenerator)
 
 KOOOGenerator::KOOOGenerator()
   : Okular::TextDocumentGenerator( new OOO::Converter )
 {
+    // ### TODO fill after the KDE 4.0 unfreeze
+    KAboutData *about = new KAboutData(
+         "okular_ooo",
+         "okular_ooo",
+         KLocalizedString(),
+         "0.1",
+         KLocalizedString(),
+         KAboutData::License_GPL,
+         KLocalizedString()
+    );
+    setAboutData( about );
 }
--- trunk/KDE/kdegraphics/okular/generators/plucker/generator_plucker.cpp #741067:741068
@@ -15,6 +15,7 @@
 #include <QtGui/QPrinter>
 #include <QtGui/QTextDocument>
 
+#include <kaboutdata.h>
 #include <klocale.h>
 
 #include <okular/core/page.h>
@@ -51,6 +52,17 @@
 PluckerGenerator::PluckerGenerator()
     : Generator()
 {
+    // ### TODO fill after the KDE 4.0 unfreeze
+    KAboutData *about = new KAboutData(
+         "okular_plucker",
+         "okular_plucker",
+         KLocalizedString(),
+         "0.1",
+         KLocalizedString(),
+         KAboutData::License_GPL,
+         KLocalizedString()
+    );
+    setAboutData( about );
     setFeature( Threaded );
 }
 
--- trunk/KDE/kdegraphics/okular/generators/poppler/generator_pdf.cpp #741067:741068
@@ -21,6 +21,7 @@
 #include <qtextstream.h>
 #include <QtGui/QPrinter>
 
+#include <kaboutdata.h>
 #include <klocale.h>
 #include <kmessagebox.h>
 #include <kpassworddialog.h>
@@ -293,6 +294,17 @@
     pixmapRequest( 0 ), docInfoDirty( true ), docSynopsisDirty( true ),
     docEmbeddedFilesDirty( true )
 {
+    // ### TODO fill after the KDE 4.0 unfreeze
+    KAboutData *about = new KAboutData(
+         "okular_poppler",
+         "okular_poppler",
+         KLocalizedString(),
+         "0.1",
+         KLocalizedString(),
+         KAboutData::License_GPL,
+         KLocalizedString()
+    );
+    setAboutData( about );
     setFeature( TextExtraction );
     setFeature( FontInfo );
 #ifdef HAVE_POPPLER_0_6
--- trunk/KDE/kdegraphics/okular/generators/spectre/generator_ghostview.cpp #741067:741068
@@ -15,6 +15,7 @@
 #include <qsize.h>
 #include <QtGui/QPrinter>
 
+#include <kaboutdata.h>
 #include <kconfigdialog.h>
 #include <kdebug.h>
 #include <kmimetype.h>
@@ -36,6 +37,18 @@
     m_docInfo(0),
     m_request(0)
 {
+    // ### TODO fill after the KDE 4.0 unfreeze
+    KAboutData *about = new KAboutData(
+         "okular_ghostscript",
+         "okular_ghostscript",
+         KLocalizedString(),
+         "0.1",
+         KLocalizedString(),
+         KAboutData::License_GPL,
+         KLocalizedString()
+    );
+    setAboutData(about);
+
     GSRendererThread *renderer = GSRendererThread::getCreateRenderer();
     if (!renderer->isRunning()) renderer->start();
     connect(renderer, SIGNAL(imageDone(QImage *, Okular::PixmapRequest *)),


More information about the Okular-devel mailing list