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

Valerio Fuoglio valerio.fuoglio at kdemail.net
Mon Nov 20 01:34:24 CET 2006


SVN commit 606319 by vfuoglio:

Used new KPAboutData

CCMAIL: kde-imaging at kde.org

 M  +1 -1      Makefile.am  
 M  +19 -21    svedialog.cpp  
 M  +6 -0      svedialog.h  


--- trunk/extragear/libs/kipi-plugins/simpleviewerexport/Makefile.am #606318:606319
@@ -13,7 +13,7 @@
 kipiplugin_simpleviewer_la_LIBADD = $(LIBKIPI_LIBS) $(LIB_KIO) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
 
 # LD flags for the plugin
-kipiplugin_simpleviewer_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+kipiplugin_simpleviewer_la_LDFLAGS = $(KIPI_PLUGINS_COMMON_LDFLAGS) -module $(KDE_PLUGIN) $(all_libraries) -lkipiplugins
 
 # Install the desktop file needed to detect the plugin
 kde_services_DATA = kipiplugin_simpleviewer.desktop
--- trunk/extragear/libs/kipi-plugins/simpleviewerexport/svedialog.cpp #606318:606319
@@ -38,7 +38,6 @@
 // KDE include files
 
 #include <klocale.h>
-#include <kaboutdata.h>
 #include <khelpmenu.h>
 #include <kpopupmenu.h>
 #include <kiconloader.h>
@@ -55,6 +54,7 @@
 
 // Local include files
 
+#include "kpaboutdata.h"
 #include "pluginsversion.h"
 #include "svedialog.h"
 #include "svedialog.moc"
@@ -79,31 +79,28 @@
 
     // About data and help button.
 
-    KAboutData* about = new KAboutData("kipiplugins",
-                                       I18N_NOOP("Simple Viewer"),
-                                       kipiplugins_version,
-                                       I18N_NOOP("A Kipi plugin for Simple Viewer export."),
-                                       KAboutData::License_GPL,
-                                       "(c) 2005-2006, Joern Ahrens",
-                                       0,
-                                       "http://www.jokele.de/simpleviewerexport/");
+    m_about = new KIPIPlugins::KPAboutData(I18N_NOOP("Simple Viewer"),
+                                           NULL,
+                                           KAboutData::License_GPL,
+                                           I18N_NOOP("A Kipi plugin for Simple Viewer export."),
+                                           "(c) 2005-2006, Joern Ahrens");
 
-    about->addAuthor("Joern Ahrens", 
-                     I18N_NOOP("Author and maintainer"),
-                     "joern dot ahrens at kdemail dot net");
+    m_about->addAuthor("Joern Ahrens", 
+                       I18N_NOOP("Author and maintainer"),
+                       "joern dot ahrens at kdemail dot net");
     
-    about->addCredit("Felix Turner",
-                     "Author of the SimpleViewer flash application",
-                     0,
-                     "http://www.airtightinteractive.com/simpleviewer/");
+    m_about->addCredit("Felix Turner",
+                       "Author of the SimpleViewer flash application",
+                       0,
+                       "http://www.airtightinteractive.com/simpleviewer/");
     
-    about->addCredit("Mikkel B. Stegmann",
-                     "Basis for the index.html template",
-                     0,
-                     "http://www.stegmann.dk/mikkel/porta/");
+    m_about->addCredit("Mikkel B. Stegmann",
+                       "Basis for the index.html template",
+                       0,
+                       "http://www.stegmann.dk/mikkel/porta/");
 
     QPushButton *helpButton = actionButton( Help );
-    KHelpMenu* helpMenu = new KHelpMenu(this, about, false);
+    KHelpMenu* helpMenu = new KHelpMenu(this, m_about, false);
     helpMenu->menu()->removeItemAt(0);
 //    helpMenu->menu()->insertItem(i18n("Image Gallery Handbook"), this, SLOT(slotHelp()), 0, -1, 0);
     helpButton->setPopup( helpMenu->menu() );
@@ -111,6 +108,7 @@
 
 SVEDialog::~SVEDialog()
 {
+    delete m_about;
 }
 
 void SVEDialog::readConfig()
--- trunk/extragear/libs/kipi-plugins/simpleviewerexport/svedialog.h #606318:606319
@@ -30,6 +30,10 @@
 
 #include <libkipi/interface.h>
 
+// Local includes
+
+#include "kpaboutdata.h"
+
 namespace KIPI
 {
     class ImageCollectionSelector;
@@ -114,6 +118,8 @@
     void generalPage();
     void lookPage();
     
+    KIPIPlugins::KPAboutData* m_about;
+    
 private:
 
     KIPI::Interface                     *m_interface;


More information about the Kde-imaging mailing list