1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #include "mypluginimpl.h"
8 #include "scribusdoc.h"
9 #include "ui/scmessagebox.h"
10 
11 #include <QString>
12 #include <QMessageBox>
13 
14 // Initialize members here, if any
MyPluginImpl()15 MyPluginImpl::MyPluginImpl() : QObject(0)
16 {
17 }
18 
run(const QString & target,ScribusDoc * doc)19 bool MyPluginImpl::run(const QString & target, ScribusDoc* doc)
20 {
21 	// Do the bulk of your work here
22 	ScMessageBox::information(
23 			(QWidget*)doc->scMW(),
24 			tr("Scribus - My Plugin"),
25 			tr("The plugin worked!"),
26 			QMessageBox::Ok|QMessageBox::Default|QMessageBox::Escape,
27 			QMessageBox::NoButton);
28 	return true;
29 }
30