[Kde-imaging] kdeextragear-libs-1/kipi-plugins/calendar

Gilles Caulier caulier.gilles at free.fr
Mon Sep 6 15:53:18 CEST 2004


CVS commit by cgilles: 

Added About data in Calendar KIPI plugin
CCMAIL: kde-imaging at kde.org


  M +28 -2     calwizard.cpp   1.9
  M +7 -3      calwizard.h   1.5


--- kdeextragear-libs-1/kipi-plugins/calendar/calwizard.cpp  #1.8:1.9
@@ -29,4 +29,5 @@
 #include <qprogressbar.h>
 #include <qlayout.h>
+#include <qpushbutton.h>
 
 // KDE includes.
@@ -36,4 +37,8 @@
 #include <kprinter.h>
 #include <kapplication.h>
+#include <kaboutdata.h>
+#include <khelpmenu.h>
+#include <kiconloader.h>
+#include <kpopupmenu.h>
 
 // LibKipi includes.
@@ -104,4 +109,26 @@ CalWizard::CalWizard( KIPI::Interface* i
     // ---------------------------------------------------------------
 
+    // About data and help button.
+    
+    KAboutData* about = new KAboutData("kipiplugins",
+                                       I18N_NOOP("Calendar"), 
+                                       "0.1.0-cvs",
+                                       I18N_NOOP("A KIPI plugin for to create a calendar"),
+                                       KAboutData::License_GPL,
+                                       "(c) 2003-2004, Renchi Raju", 
+                                       0,
+                                       "http://extragear.kde.org/apps/kipi.php");
+    
+    about->addAuthor("Renchi Raju", I18N_NOOP("Author and maintainer"),
+                     "renchi at pooh.tam.uiuc.edu");
+
+    m_helpButton = helpButton();
+    KHelpMenu* helpMenu = new KHelpMenu(this, about, false);
+    helpMenu->menu()->removeItemAt(0);
+    helpMenu->menu()->insertItem(i18n("Calendar handbook"), this, SLOT(slotHelp()), 0, -1, 0);
+    m_helpButton->setPopup( helpMenu->menu() );
+
+    // ------------------------------------------
+    
     printer_  = 0;
     painter_  = 0;
@@ -109,6 +136,5 @@ CalWizard::CalWizard( KIPI::Interface* i
     connect(this, SIGNAL(selected(const QString&)),
             SLOT(slotPageSelected(const QString&)));
-    connect(this, SIGNAL(helpClicked()),
-            this, SLOT(slotHelp()));
+            
     setCaption(i18n("Create Calendar"));
 }

--- kdeextragear-libs-1/kipi-plugins/calendar/calwizard.h  #1.4:1.5
@@ -36,8 +36,10 @@
 #include <libkipi/interface.h>
 
-class KPrinter;
 class QLabel;
 class QPainter;
 class QProgressBar;
+class QPushButton;
+
+class KPrinter;
 
 namespace KIPICalendarPlugin
@@ -69,4 +71,6 @@ private:
     QProgressBar *wFinishProgressCurrent_;
 
+    QPushButton  *m_helpButton;
+    
     KPrinter    *printer_;
     QPainter    *painter_;




More information about the Kde-imaging mailing list