80 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-VSI")
85 void getMenubarMenu (QString _name, QMenu *& _menu,
bool _create);
88 void pluginExists (QString _pluginName,
bool& _exists) ;
89 void functionExists (QString _pluginName, QString _functionName,
bool& _exists);
92 void log(
Logtype _type, QString _message);
93 void log(QString _message);
96 void executePythonScript(QString _script);
97 void openPythonScriptInEditor(QString _script);
108 QString
name () {
return QString (
"VisualScripting"); };
111 QString
description () {
return QString (
"Visual Scripting interface for OpenFlipper"); };
116 QString
askForInputs (QString _element, QString _inputs);
127 QString version () {
return QString(
"1.0"); };
132 void noguiSupported () {};
161 QPushButton* stopButton =
new QPushButton(
"Stop",
this);
162 QHBoxLayout* layout =
new QHBoxLayout(
this);
164 this->setWindowTitle(_message);
166 layout->addWidget(stopButton);
167 this->setLayout(layout);
169 connect(stopButton,SIGNAL(clicked()),
this, SLOT(clicked()));
178 bool continueBox() {
return continue_; };
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for exporting functions to python.
Interface to call functions across plugins.
void messageBox(QString _message)
Scripting function, that displays a message box.
bool continueBox(QString _message)
Shows a non blocking stop box for use inside loops.
void showScriptEditor()
Shows visual script editor.
bool questionBox(QString _message)
Scripting function, that displays a Yes/No message box.
void showInScriptEditor(const QString &_script)
Opens the text based script editor with the given script.
QString askForInputs(QString _element, QString _inputs)
Scripting function, that allows to ask the user for inputs during script execution.
QString description()
Description of the Plugin.
void initContext()
initalisation
void pluginsInitialized()
Register in menubar.
QString name()
Name of the Plugin.