50 #include <QScriptValue> 57 #include <QPushButton> 58 #include <QHBoxLayout> 79 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-VSI")
84 void getMenubarMenu (QString _name, QMenu *& _menu,
bool _create);
87 void getScriptingEngine (QScriptEngine*& _engine);
90 void pluginExists (QString _pluginName,
bool& _exists) ;
91 void functionExists (QString _pluginName, QString _functionName,
bool& _exists);
102 QString
name () {
return QString (
"Visual Scripting"); };
105 QString
description () {
return QString (
"Visual Scripting interface for OpenFlipper"); };
110 QScriptValue askForInputs (QString _element, QString _inputs);
113 void messageBox (QString _message);
116 bool questionBox (QString _message);
119 bool continueBox(QString _message);
121 QString version () {
return QString(
"1.0"); };
124 void pluginsInitialized ();
126 void noguiSupported () {};
129 void showScriptEditor ();
132 void showInScriptEditor (QString _script);
155 QPushButton* stopButton =
new QPushButton(
"Stop",
this);
156 QHBoxLayout* layout =
new QHBoxLayout(
this);
158 this->setWindowTitle(_message);
160 layout->addWidget(stopButton);
161 this->setLayout(layout);
163 connect(stopButton,SIGNAL(clicked()),
this, SLOT(clicked()));
172 bool continueBox() {
return continue_; };
Interface to call functions across plugins.
Interface for all Plugins which provide scriptable Functions.
QString description()
Description of the Plugin.
Interface class from which all plugins have to be created.
QString name()
Name of the Plugin.
Interface for all plugins which provide entries to the main menubar.