Summary of changes in plugins for BrainVoyager QX 2.1
- Details
- Category: Writing Plugins
- Last Updated: 16 April 2018
- Published: 16 April 2018
- Hits: 2020
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
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]
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)