Commit 9be1e210 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

port to KPToolDialog

parent 1571c96c
......@@ -110,7 +110,7 @@ const char* YandexFotkiWindow::XMP_SERVICE_ID = "Xmp.kipi.yandexGPhotoId";
YandexFotkiWindow::YandexFotkiWindow(Interface* const interface,
bool import, QWidget* const parent)
: KDialog(parent)
: KPToolDialog(parent)
{
m_interface = interface;
m_import = import;
......@@ -337,31 +337,21 @@ YandexFotkiWindow::YandexFotkiWindow(Interface* const interface,
optionsBox->hide();
}
KPAboutData* about = new KPAboutData(
ki18n("Yandex.Fotki Plugin"),
0,
KAboutData::License_GPL,
ki18n("A Kipi plugin to export image collections to "
"Yandex.Fotki web service."),
ki18n( "(c) 2007-2009, Vardhman Jain\n"
"(c) 2008-2012, Gilles Caulier\n"
"(c) 2009, Luka Renko\n"
"(c) 2010, Roman Tsisyk" )
);
KPAboutData* about = new KPAboutData(ki18n("Yandex.Fotki Plugin"),
0,
KAboutData::License_GPL,
ki18n("A Kipi plugin to export image collections to "
"Yandex.Fotki web service."),
ki18n("(c) 2007-2009, Vardhman Jain\n"
"(c) 2008-2012, Gilles Caulier\n"
"(c) 2009, Luka Renko\n"
"(c) 2010, Roman Tsisyk"));
about->addAuthor(ki18n( "Roman Tsisyk" ), ki18n("Author"),
"roman at tsisyk dot com");
disconnect(this, SIGNAL(helpClicked()),
this, SLOT(slotHelp()) );
KHelpMenu* helpMenu = new KHelpMenu(this, about, false);
helpMenu->menu()->removeAction(helpMenu->menu()->actions().first());
QAction* handbook = new QAction(i18n("Handbook"), this);
connect(handbook, SIGNAL(triggered(bool)),
this, SLOT(slotHelp()));
helpMenu->menu()->insertAction(helpMenu->menu()->actions().first(), handbook);
button(Help)->setMenu(helpMenu->menu());
about->handbookEntry = QString("YandexFotki");
setAboutData(about);
// -- UI slots -----------------------------------------------------------------------
......@@ -572,11 +562,6 @@ void YandexFotkiWindow::slotResizeChecked()
m_imageQualitySpin->setEnabled(m_resizeCheck->isChecked());
}
void YandexFotkiWindow::slotHelp()
{
KToolInvocation::invokeHelp("YandexFotki", "kipi-plugins");
}
/*
void YandexFotkiWindow::cancelProcessing()
{
......
......@@ -11,7 +11,7 @@
* GUI based on PicasaWeb KIPI Plugin
* Copyright (C) 2005-2008 by Vardhman Jain <vardhman at gmail dot com>
* Copyright (C) 2008-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2009 by Luka Renko <lure at kubuntu dot org>
* Copyright (C) 2009 by Luka Renko <lure at kubuntu dot org>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
......@@ -32,12 +32,9 @@
#include <QStack>
// KDE includes
#include <kdialog.h>
// Local includes
#include "kptooldialog.h"
#include "logindialog.h"
#include "yftalker.h"
......@@ -73,7 +70,7 @@ using namespace KIPIPlugins;
namespace KIPIYandexFotkiPlugin
{
class YandexFotkiWindow : public KDialog
class YandexFotkiWindow : public KPToolDialog
{
Q_OBJECT
......@@ -115,7 +112,6 @@ protected Q_SLOTS:
void slotStartTransfer();
void slotHelp();
void slotButtonClicked(int button);
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment