BrainVoyager Support

documentation overview

  • Increase font size
  • Default font size
  • Decrease font size

Summary of changes in plugins for BrainVoyager QX 2.1

Description of plugin changes in QX 2.1
- 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()
For GUI plugins:
Communicate from plugin to script:
- getGUIScript()
- in execute(): qxGetStringParameter("Command", "")
- in execute(): qxGetIntParameter(" ")
- in execute(): qxSetIntParameter()
Communicate from script to plugin:
- ExecutePlugin()
- SetPluginStringParameter("Command", "")
- SetPluginIntParameter(" ", )
- GetPluginIntParameter(" ")
Communicate from script to dialog:
- scriptObj.dialogFileName = ".ui"
- scriptObj.dialogAccessName = ""
- in initDlg(): .connect()
- new widget values (via this.[.]..value/text = new value)
Communicate from dialog to script:
- widget names (for example 'btnPrint')
- widget values (via this.[.]..value/text)

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)