Brain Innovation

support portal

Navigation

BrainVoyager Automation & Development Writing Plugins Summary of changes in plugins for BrainVoyager QX 2.1

Summary of changes in plugins for BrainVoyager QX 2.1

Summary of plugin changes in QX 2.1

These changes are described in detail in the GUI Scripts and Plugins BV Blog

- The InitQXAccess() is only invoked in initPlugin() and not in execute()
- The functions below have been added to the main plugin *.cpp/*.h files:

- PLUGIN_ACCESS bool initPlugin();
- PLUGIN_ACCESS const char *getPluginVersion()
- PLUGIN_ACCESS const char *getGUIScript()

- The functions below have disappeared from the main plugin *.cpp/*.h files:

- PLUGIN_ACCESS bool isAvailable()  
- bool checkPluginAvailability()  
- PLUGIN_ACCESS const char *getRegistrationOfGenericComponentLoader()

GUI plugins

Depiction of communication between plugin, script and dialog

Communicate from plugin to script: 
- getGUIScript()
- in execute(): qxGetStringParameter("Command", "[command name]")
- in execute(): qxGetIntParameter("[parameter name]")
- in execute(): qxSetIntParameter("[parameter name]", value)

Communicate from script to plugin: 
- ExecutePlugin()
- SetPluginStringParameter("Command", "[command]")
- SetPluginIntParameter("[parameter name]", value)
- GetPluginIntParameter("[parameter name]")

Communicate from script to dialog:
- scriptObj.dialogFileName = "[dialogFileName].ui"
- scriptObj.dialogAccessName = "[dialogAccessName]"
- in initDlg(): [dialogwidget].connect([to script function])
- new widget values (via this.[dialogAccessName].[groupbox].[widgetname].value/text = new value)

Communicate from dialog to script:
- widget names (for example 'btnPrint')
- widget values (via this.[dialogAccessName].[groupbox].[widgetname].value/text)

You are here: HomeBrainVoyagerAutomation & DevelopmentWriting Plugins ≫ Summary of changes in plugins for BrainVoyager QX 2.1