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);
126 QString version () {
return QString(
"1.0"); };
131 void noguiSupported () {};
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 to call functions across plugins.
void initContext()
initalisation
bool questionBox(QString _message)
Scripting function, that displays a Yes/No message box.
Interface for all Plugins which provide scriptable Functions.
void showScriptEditor()
Shows visual script editor.
Interface for all plugins which provide entries to the main menubar.
QString description()
Description of the Plugin.
void messageBox(QString _message)
Scripting function, that displays a message box.
Interface class from which all plugins have to be created.
void showInScriptEditor(QString _script)
Opens the text based script editor with the given script.
QScriptValue askForInputs(QString _element, QString _inputs)
Scripting function, that allows to ask the user for inputs during script execution.
void pluginsInitialized()
Register in menubar.
QString name()
Name of the Plugin.
bool continueBox(QString _message)
Shows a non blocking stop box for use inside loops.