[Kde-imaging] extragear/libs/kipi-plugins/timeadjust
Valerio Fuoglio
valerio.fuoglio at kdemail.net
Mon Nov 20 01:41:57 CET 2006
SVN commit 606320 by vfuoglio:
Used new KPAboutData
CCMAIL: kde-imaging at kde.org
M +1 -1 Makefile.am
M +16 -14 timeadjustdialog.cpp
M +7 -0 timeadjustdialog.h
--- trunk/extragear/libs/kipi-plugins/timeadjust/Makefile.am #606319:606320
@@ -16,7 +16,7 @@
$(LIBKIPI_LIBS) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT)
# LD flags for the plugin
-kipiplugin_timeadjust_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+kipiplugin_timeadjust_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_timeadjust.desktop
--- trunk/extragear/libs/kipi-plugins/timeadjust/timeadjustdialog.cpp #606319:606320
@@ -64,24 +64,21 @@
{
// About data and help button.
- KAboutData* about = new KAboutData("kipiplugins",
- I18N_NOOP("Time Adjust"),
- kipiplugins_version,
- I18N_NOOP("A Kipi plugin for adjusting time stamp of picture files"),
- KAboutData::License_GPL,
- "(c) 2003-2005, Jesper K. Pedersen\n"
- "(c) 2006, Gilles Caulier",
- 0,
- "http://extragear.kde.org/apps/kipi");
+ m_about = new KIPIPlugins::KPAboutData(I18N_NOOP("Time Adjust"),
+ NULL,
+ KAboutData::License_GPL,
+ I18N_NOOP("A Kipi plugin for adjusting time stamp of picture files"),
+ "(c) 2003-2005, Jesper K. Pedersen\n"
+ "(c) 2006, Gilles Caulier");
- about->addAuthor("Jesper K. Pedersen", I18N_NOOP("Author and maintainer"),
- "blackie at kde.org");
+ m_about->addAuthor("Jesper K. Pedersen", I18N_NOOP("Author and maintainer"),
+ "blackie at kde.org");
- about->addAuthor("Gilles Caulier", I18N_NOOP("Developper"),
- "caulier dot gilles at kdemail dot net");
+ m_about->addAuthor("Gilles Caulier", I18N_NOOP("Developper"),
+ "caulier dot gilles at kdemail dot net");
m_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("Time Adjust Handbook"), this, SLOT(slotHelp()), 0, -1, 0);
m_helpButton->setPopup( helpMenu->menu() );
@@ -94,6 +91,11 @@
this, SLOT( slotOK() ) );
}
+TimeAdjustDialog::~TimeAdjustDialog()
+{
+ delete m_about;
+}
+
void TimeAdjustDialog::setImages( const KURL::List& images )
{
m_images.clear();
--- trunk/extragear/libs/kipi-plugins/timeadjust/timeadjustdialog.h #606319:606320
@@ -32,6 +32,10 @@
#include <libkipi/interface.h>
+// Local includes
+
+#include "kpaboutdata.h"
+
class QSpinBox;
class QRadioButton;
class QPushButton;
@@ -48,6 +52,7 @@
public:
TimeAdjustDialog( KIPI::Interface* interface, QWidget* parent, const char* name = 0 );
+ ~TimeAdjustDialog();
void setImages( const KURL::List& images );
protected slots:
@@ -89,6 +94,8 @@
QSpinBox *m_years;
QDateTime m_exampleDate;
+
+ KIPIPlugins::KPAboutData *m_about;
};
} // NameSpace KIPITimeAdjustPlugin
More information about the Kde-imaging
mailing list