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.
8
#include "smspinboxplugin.h"
13
SMSpinBoxPlugin::SMSpinBoxPlugin(QObject* parent)
14
: QObject(parent), initialized(false)
18
void SMSpinBoxPlugin::initialize(QDesignerFormEditorInterface* core)
25
bool SMSpinBoxPlugin::isInitialized() const
30
QWidget* SMSpinBoxPlugin::createWidget(QWidget* parent)
32
return new SMSpinBox(parent, 0);
35
QString SMSpinBoxPlugin::name() const
37
return QLatin1String("SMSpinBox");
40
QString SMSpinBoxPlugin::group() const
42
return QLatin1String("Scribus-SM");
45
QIcon SMSpinBoxPlugin::icon() const
50
QString SMSpinBoxPlugin::toolTip() const
55
QString SMSpinBoxPlugin::whatsThis() const
60
bool SMSpinBoxPlugin::isContainer() const
65
QString SMSpinBoxPlugin::domXml() const
67
return QLatin1String("<widget class=\"SMSpinBox\" name=\"SMSpinBox1\">\n"
68
" <property name=\"geometry\">\n"
72
" <width>100</width>\n"
73
" <height>22</height>\n"
79
QString SMSpinBoxPlugin::includeFile() const
81
return QLatin1String("smwidgets.h");
84
QString SMSpinBoxPlugin::codeTemplate() const
89
Q_EXPORT_PLUGIN2(scribus_smspinboxplugin, SMSpinBoxPlugin)