[Kde-imaging] kdeextragear-libs-1/kipi-plugins/printwizard
Gilles Caulier
caulier.gilles at free.fr
Mon Sep 6 18:01:17 CEST 2004
CVS commit by cgilles:
Added About data in PrintWizard KIPI plugin
CCMAIL: kde-imaging at kde.org
M +29 -4 frmprintwizard.cpp 1.11
M +11 -3 frmprintwizard.h 1.4
--- kdeextragear-libs-1/kipi-plugins/printwizard/frmprintwizard.cpp #1.10:1.11
@@ -35,5 +35,4 @@ extern "C"
// Include files for KDE
-#include <kapplication.h>
#include <ksimpleconfig.h>
#include <klistbox.h>
@@ -48,4 +47,9 @@ extern "C"
#include <kfiledialog.h>
#include <kpushbutton.h>
+#include <kapplication.h>
+#include <kaboutdata.h>
+#include <khelpmenu.h>
+#include <kiconloader.h>
+#include <kpopupmenu.h>
// Local includes
@@ -66,4 +70,28 @@ FrmPrintWizard::FrmPrintWizard(QWidget *
setHelpEnabled(page(i), true);
+ // ---------------------------------------------------------------
+
+ // About data and help button.
+
+ KAboutData* about = new KAboutData("kipiplugins",
+ I18N_NOOP("Print Wizard"),
+ "0.1.0-cvs",
+ I18N_NOOP("A KIPI plugin for to print images"),
+ KAboutData::License_GPL,
+ "(c) 2003-2004, Todd Shoemaker",
+ 0,
+ "http://extragear.kde.org/apps/kipi.php");
+
+ about->addAuthor("Todd Shoemaker", I18N_NOOP("Author"),
+ "todd at theshoemakers.net");
+
+ m_helpButton = helpButton();
+ KHelpMenu* helpMenu = new KHelpMenu(this, about, false);
+ helpMenu->menu()->removeItemAt(0);
+ helpMenu->menu()->insertItem(i18n("Print Wizard handbook"), this, SLOT(slotHelp()), 0, -1, 0);
+ m_helpButton->setPopup( helpMenu->menu() );
+
+ // ---------------------------------------------------------------
+
// turn off back button for first and last page
setBackEnabled(page(0), false);
@@ -95,7 +123,4 @@ FrmPrintWizard::FrmPrintWizard(QWidget *
this, SLOT(CmbPaperSize_activated(int)));
- connect(this, SIGNAL(helpClicked()),
- this, SLOT(slotHelp()));
-
loadSettings();
}
--- kdeextragear-libs-1/kipi-plugins/printwizard/frmprintwizard.h #1.3:1.4
@@ -32,4 +32,6 @@
#include "frmprintwizardbase.h"
+class QPushButton;
+
namespace KIPIPrintWizardPlugin
{
@@ -47,4 +49,5 @@ class FrmPrintWizard : public FrmPrintWi
private:
+
QPtrList<TPhoto> m_photos;
QPtrList<TPhotoSize> m_photoSizes;
@@ -56,4 +59,6 @@ private:
QStringList m_gimpFiles;
+ QPushButton *m_helpButton;
+
bool m_cancelPrinting;
@@ -69,4 +74,5 @@ private:
public:
+
FrmPrintWizard(QWidget *parent=0, const char *name=0);
~FrmPrintWizard();
@@ -75,4 +81,5 @@ public:
public slots:
+
void BtnCropRotate_clicked();
void BtnCropNext_clicked();
@@ -88,4 +95,5 @@ public slots:
protected slots:
+
void accept();
void reject();
More information about the Kde-imaging
mailing list