62
62
parent, "Debian Screenshots Export")
64
64
kDebug(AREA_CODE_LOADING) << "Plugin_DebianScreenshots plugin loaded";
67
void Plugin_DebianScreenshots::setup(QWidget* widget)
66
setUiBaseName("kipiplugin_debianscreenshotsui.rc");
70
Plugin_DebianScreenshots::~Plugin_DebianScreenshots()
74
void Plugin_DebianScreenshots::setup(QWidget* const widget)
71
78
Plugin::setup(widget);
73
79
KIconLoader::global()->addAppDir("kipiplugin_debianscreenshots");
75
m_actionExport = actionCollection()->addAction("debianscreenshotsexport");
84
kError() << "Kipi interface is null!";
88
m_actionExport->setEnabled(true);
91
void Plugin_DebianScreenshots::setupActions()
93
setDefaultCategory(ExportPlugin);
95
m_actionExport = new KAction(this);
76
96
m_actionExport->setText(i18n("Export to &Debian Screenshots..."));
77
97
m_actionExport->setIcon(KIcon("debianscreenshots"));
78
98
m_actionExport->setShortcut(KShortcut(Qt::ALT+Qt::SHIFT+Qt::Key_D));
99
m_actionExport->setEnabled(false);
80
101
connect(m_actionExport, SIGNAL(triggered(bool)),
81
102
this, SLOT(slotExport()) );
83
addAction(m_actionExport);
85
Interface* interface = dynamic_cast<Interface*>(parent());
88
kError() << "Kipi interface is null!";
89
m_actionExport->setEnabled(false);
93
m_actionExport->setEnabled(true);
96
Plugin_DebianScreenshots::~Plugin_DebianScreenshots()
104
addAction("debianscreenshotsexport", m_actionExport);
100
107
void Plugin_DebianScreenshots::slotExport()
118
125
m_dlgExport->reactivate();
121
Category Plugin_DebianScreenshots::category(KAction*) const
126
} // namespace KIPIDebianScreenshotsPlugin
b'\\ No newline at end of file'
128
} // namespace KIPIDebianScreenshotsPlugin