56 #include <QScriptValue> 82 #if QT_VERSION >= 0x050000 83 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-VSI")
89 void getMenubarMenu (QString _name, QMenu *& _menu,
bool _create);
92 void getScriptingEngine (QScriptEngine*& _engine);
95 void pluginExists (QString _pluginName,
bool& _exists) ;
96 void functionExists (QString _pluginName, QString _functionName,
bool& _exists);
107 QString
name () {
return QString (
"Visual Scripting"); };
110 QString
description () {
return QString (
"Visual Scripting interface for OpenFlipper"); };
115 QScriptValue askForInputs (QString _element, QString _inputs);
118 void messageBox (QString _message);
121 bool questionBox (QString _message);
124 bool continueBox(QString _message);
126 QString version () {
return QString(
"1.0"); };
129 void pluginsInitialized ();
131 void noguiSupported () {};
134 void showScriptEditor ();
137 void showInScriptEditor (QString _script);
160 QPushButton* stopButton =
new QPushButton(
"Stop",
this);
161 QHBoxLayout* layout =
new QHBoxLayout(
this);
163 this->setWindowTitle(_message);
165 layout->addWidget(stopButton);
166 this->setLayout(layout);
168 connect(stopButton,SIGNAL(clicked()),
this, SLOT(clicked()));
177 bool continueBox() {
return continue_; };
Interface for all Plugins which provide scriptable Functions.
Interface class from which all plugins have to be created.
QString description()
Description of the Plugin.
Interface for all plugins which provide entries to the main menubar.
QString name()
Name of the Plugin.
Interface to call functions across plugins.