[Okular-devel] KDE/kdegraphics/okular/generators
Pino Toscano
toscano.pino at tiscali.it
Sat Jul 14 16:00:21 CEST 2007
SVN commit 687842 by pino:
Start adding backend information to each generator.
Added them for DjVu, TIFF and XPS as a start.
Feel free to add them in the other generators, or to add your name if missing :)
CCMAIL: okular-devel at kde.org
M +13 -0 djvu/generator_djvu.cpp
M +13 -0 tiff/generator_tiff.cpp
M +15 -0 xps/generator_xps.cpp
--- trunk/KDE/kdegraphics/okular/generators/djvu/generator_djvu.cpp #687841:687842
@@ -20,6 +20,7 @@
#include <qpixmap.h>
#include <qstring.h>
#include <quuid.h>
+#include <kaboutdata.h>
#include <kdebug.h>
#include <klocale.h>
#include <kprinter.h>
@@ -62,6 +63,18 @@
{
m_djvu = new KDjVu();
connect( m_djvu, SIGNAL( imageGenerated( int, const QImage & ) ), this, SLOT( djvuImageGenerated( int, const QImage & ) ) );
+
+ KAboutData *about = new KAboutData(
+ "generator_djvu",
+ "generator_djvu",
+ ki18n( "DjVu Backend" ),
+ "0.1",
+ ki18n( "A DjVu backend" ),
+ KAboutData::License_GPL,
+ ki18n( "© 2006-2007 Pino Toscano" )
+ );
+ about->addAuthor( ki18n( "Pino Toscano" ), KLocalizedString(), "pino at kde.org" );
+ setAboutData( about );
}
DjVuGenerator::~DjVuGenerator()
--- trunk/KDE/kdegraphics/okular/generators/tiff/generator_tiff.cpp #687841:687842
@@ -14,6 +14,7 @@
#include <qimage.h>
#include <qlist.h>
#include <qpainter.h>
+#include <kaboutdata.h>
#include <kglobal.h>
#include <klocale.h>
#include <kprinter.h>
@@ -48,6 +49,18 @@
d( new Private ), m_docInfo( 0 )
{
setFeature( Threaded );
+
+ KAboutData *about = new KAboutData(
+ "generator_tiff",
+ "generator_tiff",
+ ki18n( "TIFF Backend" ),
+ "0.1",
+ ki18n( "A TIFF backend" ),
+ KAboutData::License_GPL,
+ ki18n( "© 2006-2007 Pino Toscano" )
+ );
+ about->addAuthor( ki18n( "Pino Toscano" ), KLocalizedString(), "pino at kde.org" );
+ setAboutData( about );
}
TIFFGenerator::~TIFFGenerator()
--- trunk/KDE/kdegraphics/okular/generators/xps/generator_xps.cpp #687841:687842
@@ -25,6 +25,7 @@
#include <qpainter.h>
#include <qpixmap.h>
#include <qthread.h>
+#include <kaboutdata.h>
#include <kglobal.h>
#include <kimageeffect.h>
#include <klocale.h>
@@ -1332,6 +1333,20 @@
: Okular::Generator(), m_xpsFile( 0 )
{
setFeature( TextExtraction );
+
+ KAboutData *about = new KAboutData(
+ "generator_xps",
+ "generator_xps",
+ ki18n( "XPS Backend" ),
+ "0.1",
+ ki18n( "An XPS backend" ),
+ KAboutData::License_GPL,
+ ki18n( "© 2006-2007 Brad Hards\n"
+ "© 2007 Jiri Klement" )
+ );
+ about->addAuthor( ki18n( "Brad Hards" ), KLocalizedString(), "bradh at frogmouth.net" );
+ about->addAuthor( ki18n( "Jiri Klement" ), KLocalizedString(), "jiri.klement at gmail.com" );
+ setAboutData( about );
}
XpsGenerator::~XpsGenerator()
More information about the Okular-devel
mailing list