Version: 9.12.0
PyModuleHelper Class Reference

This class implements API helper for all the Python-based SALOME GUI modules. More...

#include <SALOME_PYQT_PyModule.h>

Inheritance diagram for PyModuleHelper:
Inheritance graph

Classes

class  InitLocker
 Initialization locker. More...
 
class  XmlHandler
 XML resource files parser. More...
 

Public Slots

void initialize (CAM_Application *)
 Initialization of the Python-based SALOME module. More...
 
bool activate (SUIT_Study *study)
 Activation of the module. More...
 
bool deactivate (SUIT_Study *study)
 Deactivation of the module. More...
 
void modelClosed (SUIT_Study *study)
 Close of the module. More...
 
void preferencesChanged (const QString &, const QString &setting)
 Process module's preferences changing. More...
 
void preferenceChanged (const QString &, const QString &, const QString &setting)
 Process application preferences changing. More...
 
void studyActivated (SUIT_Study *)
 Process study activation. More...
 
void actionActivated ()
 Process action activation. More...
 
void selectionUpdated (const QStringList &)
 update selection from other views or modules. More...
 
void contextMenu (const QString &, QMenu *)
 Process context popup menu request. More...
 
void createPreferences ()
 Export preferences for the Python module. Called only once when the first instance of the module is created or when common Preferences dialog box is first time invoked. More...
 
void activeViewChanged (SUIT_ViewWindow *)
 Signal handler windowActivated(SUIT_ViewWindow*) of SUIT_Desktop. More...
 
void tryCloseView (SUIT_ViewWindow *)
 Signal handler tryClose(SUIT_ViewWindow*) of a view. More...
 
void closeView (SUIT_ViewWindow *)
 Signal handler closing(SUIT_ViewWindow*) of a view. More...
 
void cloneView (SUIT_ViewWindow *)
 Signal handler cloneView() of OCCViewer_ViewWindow. More...
 
void save (QStringList &, const QString &)
 Save module data. Called when user saves study. More...
 
bool load (const QStringList &, const QString &)
 
void dumpPython (QStringList &files)
 Dump module data to the Python script. Called when user activates dump study operation. More...
 
bool isDraggable (const SUIT_DataObject *) const
 Test if object what can be dragged by the user. More...
 
bool isDropAccepted (const SUIT_DataObject *) const
 Test if drop operation can be done on the where object. More...
 
void dropObjects (const DataObjectList &, SUIT_DataObject *, const int, Qt::DropAction)
 Perform drop operation. More...
 
QString engineIOR () const
 Get module engine IOR. More...
 
void onObjectBrowserClicked (SUIT_DataObject *, int)
 

Public Member Functions

 PyModuleHelper (LightApp_Module *)
 Constructor. More...
 
 ~PyModuleHelper ()
 Destructor. More...
 
LightApp_Modulemodule () const
 Get owner module. More...
 
PyObject * pythonModule () const
 Get Python GUI module object. More...
 
void connectAction (QAction *)
 Connect action to the internal actionActivated() slot. More...
 
QMap< int, int > windows () const
 Get the dockable windows associated with the module. More...
 
QStringList viewManagers () const
 Define the compatible view windows associated with the module. More...
 

Static Public Member Functions

static LightApp_ModulegetInitModule ()
 Get the module being initialized. More...
 
static int defaultMenuGroup ()
 Get default menu group identifier. More...
 

Private Member Functions

void initInterp ()
 Initialize python subinterpreter (one per study). More...
 
void importModule ()
 Import Python GUI module and store reference to the module. More...
 
void setWorkSpace ()
 Set study workspace to the Python module. More...
 
void internalInitialize (CAM_Application *)
 Initialization callback function. More...
 
void internalActivate (SUIT_Study *)
 Activation callback function. More...
 
void internalCustomize (SUIT_Study *)
 Additional menu customization callback function. More...
 
void internalDeactivate (SUIT_Study *)
 Deactivation callback function. More...
 
void internalClosedStudy (SUIT_Study *)
 Internal closure: More...
 
void internalPreferencesChanged (const QString &, const QString &)
 Preference changing callback function. More...
 
void internalStudyChanged (SUIT_Study *)
 Active study change callback function. More...
 
void internalActionActivated (int)
 GUI event handling callback function. More...
 
void internalSelectionUpdated (const QStringList &)
 update selection from other views or modules More...
 
void internalContextMenu (const QString &, QMenu *)
 Context popup menu handling callback function. More...
 
void internalCreatePreferences ()
 Preferences initialization callback function. More...
 
void internalActiveViewChanged (SUIT_ViewWindow *)
 Active view changing callback function. More...
 
void internalTryCloseView (SUIT_ViewWindow *)
 View closing callback function. More...
 
void internalCloseView (SUIT_ViewWindow *)
 View closing callback function. More...
 
void internalCloneView (SUIT_ViewWindow *)
 View cloning callback function. More...
 
void internalSave (QStringList &, const QString &)
 Module data saving callback function. More...
 
void internalLoad (const QStringList &, const QString &, bool &)
 Module data loading callback function. More...
 
void internalDumpPython (QStringList &)
 Module dump python callback function. More...
 
bool internalIsDraggable (LightApp_DataObject *)
 Check data object's 'draggable' status callback function. More...
 
bool internalIsDropAccepted (LightApp_DataObject *)
 Check data object's 'drop allowed' status callback function. More...
 
void internalDropObjects (const DataObjectList &, SUIT_DataObject *, const int, Qt::DropAction)
 Data dropping callback function. More...
 
QString internalEngineIOR () const
 Get engine IOR callback function. More...
 
void internalOBClickedPython (const QString &, int)
 
void connectView (SUIT_ViewWindow *)
 Connects signals about activating and cloning view on internal slots. More...
 

Private Attributes

LightApp_ModulemyModule
 GUI module. More...
 
PyObject * myPyModule
 Python GUI module. More...
 
PyInterp_InterpmyInterp
 current Python subinterpreter More...
 
XmlHandlermyXmlHandler
 XML resource file parser. More...
 
QMap< int, int > myWindowsMap
 windows map More...
 
QStringList myViewMgrList
 compatible view managers list More...
 
bool myLastActivateStatus
 latest module activation status More...
 

Static Private Attributes

static LightApp_ModulemyInitModule = 0
 Python GUI being initialized (not zero only during the initialization) More...
 

Detailed Description

This class implements API helper for all the Python-based SALOME GUI modules.

Constructor & Destructor Documentation

◆ PyModuleHelper()

PyModuleHelper::PyModuleHelper ( LightApp_Module module)

Constructor.

Parameters
moduleowner module

◆ ~PyModuleHelper()

PyModuleHelper::~PyModuleHelper ( )

Destructor.

References myInterp, myPyModule, and myXmlHandler.

Member Function Documentation

◆ actionActivated

void PyModuleHelper::actionActivated ( )
slot

Process action activation.

Called when action is activated. Used for notifying the Python module about any related action activation.

See also
connectAction()

References CAM_Module::actionId(), myInterp, and myModule.

◆ activate

bool PyModuleHelper::activate ( SUIT_Study study)
slot

Activation of the module.

This function is usually used in order to show the module's specific menus and toolbars, update actions state and perform other such actions required when the module is activated.

Note
Returning false from this function prevents the module activation.
Parameters
studyparent study
Returns
true if activation is successful and false otherwise

References PyModuleHelper::XmlHandler::activateMenus(), activeViewChanged(), SUIT_Desktop::activeWindow(), SUIT_Study::application(), connectView(), SUIT_Application::desktop(), LightApp_Module::getApp(), myLastActivateStatus, myModule, myXmlHandler, preferenceChanged(), CAM_Module::setMenuShown(), CAM_Module::setToolShown(), and SUIT_Desktop::windows().

◆ activeViewChanged

void PyModuleHelper::activeViewChanged ( SUIT_ViewWindow view)
slot

Signal handler windowActivated(SUIT_ViewWindow*) of SUIT_Desktop.

Used to notify Python module that active view has been changed by the user.

Parameters
viewview being activated

References connectView(), and myInterp.

◆ cloneView

void PyModuleHelper::cloneView ( SUIT_ViewWindow view)
slot

Signal handler cloneView() of OCCViewer_ViewWindow.

Parameters
viewview being cloned

References myInterp.

◆ closeView

void PyModuleHelper::closeView ( SUIT_ViewWindow view)
slot

Signal handler closing(SUIT_ViewWindow*) of a view.

Parameters
viewview being closed

References myInterp.

◆ connectAction()

void PyModuleHelper::connectAction ( QAction a)

Connect action to the internal actionActivated() slot.

Actions connected to internal actionActivated(), when activated, will be forwarded to the Python GUI module OnGUIEvent() function.

Parameters
aaction being connected

References actionActivated(), and myModule.

◆ connectView()

void PyModuleHelper::connectView ( SUIT_ViewWindow view)
private

Connects signals about activating and cloning view on internal slots.

Parameters
viewview being connected

References cloneView(), closeView(), SUIT_ViewWindow::getViewManager(), SUIT_ViewManager::getViewModel(), and tryCloseView().

◆ contextMenu

void PyModuleHelper::contextMenu ( const QString &  context,
QMenu menu 
)
slot

Process context popup menu request.

Called when user activates popup menu in some window (view, object browser, etc).

Parameters
contextpopup menu context (e.g. "ObjectBrowser")
menupopup menu

References myInterp.

◆ createPreferences

void PyModuleHelper::createPreferences ( )
slot

Export preferences for the Python module. Called only once when the first instance of the module is created or when common Preferences dialog box is first time invoked.

References myInterp, and myModule.

◆ deactivate

bool PyModuleHelper::deactivate ( SUIT_Study study)
slot

Deactivation of the module.

This function is usually used in order to hide the module's specific menus and toolbars and perform other such actions required when the module is deactivated.

Parameters
studyparent study
Returns
true if deactivation is successful and false otherwise

References PyModuleHelper::XmlHandler::activateMenus(), activeViewChanged(), SUIT_Study::application(), SUIT_Application::desktop(), LightApp_Module::getApp(), myInterp, myModule, myXmlHandler, preferenceChanged(), CAM_Module::setMenuShown(), and CAM_Module::setToolShown().

◆ defaultMenuGroup()

int PyModuleHelper::defaultMenuGroup ( )
static

Get default menu group identifier.

Returns
menu group ID (40 by default)

References DEFAULT_GROUP.

◆ dropObjects

void PyModuleHelper::dropObjects ( const DataObjectList what,
SUIT_DataObject where,
const int  row,
Qt::DropAction  action 
)
slot

Perform drop operation.

Parameters
whatlist of data objects being dropped
wheretarget data object for drop operation
rowline (child item index) where drop operation is performed to
actioncurrent drop action (copy or move)

References myInterp.

◆ dumpPython

void PyModuleHelper::dumpPython ( QStringList &  files)
slot

Dump module data to the Python script. Called when user activates dump study operation.

Parameters
filesoutput list of files where module stores python script

References myInterp, and myModule.

◆ engineIOR

QString PyModuleHelper::engineIOR ( ) const
slot

Get module engine IOR.

Returns
engine IOR as it is supplied by GUI Python module

References myInterp.

◆ getInitModule()

LightApp_Module * PyModuleHelper::getInitModule ( )
static

Get the module being initialized.

This is a little trick :) needed to provide an access from Python (SalomePyQt) to the module being currently activated. The problem that during the process of module initialization (initialize() function) it is not yet available via application->activeModule() call.

This method returns valid pointer only if called in scope of initialize() function or in several other specific cases.

Returns
the module being currently initialized

References myInitModule, and myInitMutex.

◆ importModule()

void PyModuleHelper::importModule ( )
private

Import Python GUI module and store reference to the module.

Warning! initInterp() should be called first!!!

References myInterp, myModule, myPyModule, and CAM_Module::name().

◆ initialize

void PyModuleHelper::initialize ( CAM_Application app)
slot

Initialization of the Python-based SALOME module.

This method can be used for creation of the menus, toolbars and other such stuff.

There are two ways to do this: 1) for obsolete modules, the implementation of this method first tries to read the <module>_<language>.xml resource file which contains a menu, toolbars and popup menus description; 2) new modules can create menus by direct calling of the corresponding methods of SalomePyQt Python API in the Python module's initialize() method which is called from here.

Note
SALOME supports two modes of modules loading:
  • immediate (all the modules are created and initialized immediately when the application object is created);
  • postponed modules loading (used currently); in this mode the module is loaded only by explicit request. If postponed modules loading is not used, the active study might be not yet defined at this stage, so initialize() method should not perform any study-based initialization. Such actions can be better done in activate() function.
Parameters
appparent application object

References PyModuleHelper::XmlHandler::createActions(), LightApp_Module::getApp(), myModule, myXmlHandler, CAM_Module::name(), QtxResourceMgr::path(), SUIT_Application::resourceMgr(), and QtxResourceMgr::stringValue().

◆ initInterp()

void PyModuleHelper::initInterp ( )
private

Initialize python subinterpreter (one per study).

References SUIT_PYTHON::initialized, myInitMutex, and myInterp.

◆ internalActionActivated()

void PyModuleHelper::internalActionActivated ( int  id)
private

GUI event handling callback function.

Performs the following actions:

  • calls Python module's OnGUIEvent() method
Parameters
idGUI action ID

References FuncMsg::message(), myInterp, and myPyModule.

◆ internalActivate()

void PyModuleHelper::internalActivate ( SUIT_Study study)
private

Activation callback function.

Performs the following actions:

  • initialize or get the Python interpreter (one per study)
  • import the Python GUI module
  • call Python module's activate() method
Parameters
studyparent study

References importModule(), initInterp(), myInterp, myLastActivateStatus, and myPyModule.

◆ internalActiveViewChanged()

void PyModuleHelper::internalActiveViewChanged ( SUIT_ViewWindow view)
private

Active view changing callback function.

Parameters
viewview being activated

References SUIT_ViewWindow::getId(), FuncMsg::message(), myInterp, and myPyModule.

◆ internalCloneView()

void PyModuleHelper::internalCloneView ( SUIT_ViewWindow view)
private

View cloning callback function.

Parameters
viewview being cloned

References SUIT_ViewWindow::getId(), FuncMsg::message(), myInterp, and myPyModule.

◆ internalClosedStudy()

void PyModuleHelper::internalClosedStudy ( SUIT_Study theStudy)
private

Internal closure:

Performs the following actions:

  • call Python module's closeStudy() method
Parameters
theStudyparent study object

References myInterp, and myPyModule.

◆ internalCloseView()

void PyModuleHelper::internalCloseView ( SUIT_ViewWindow view)
private

View closing callback function.

Parameters
viewview being closed

References SUIT_ViewWindow::getId(), FuncMsg::message(), myInterp, and myPyModule.

◆ internalContextMenu()

void PyModuleHelper::internalContextMenu ( const QString &  context,
QMenu menu 
)
private

Context popup menu handling callback function.

Performs the following actions:

  • calls Python module's definePopup(...) method (obsolete function, used for compatibility with old code) to define the popup menu context
  • parses XML resourses file (if exists) and fills the popup menu with the items)
  • calls Python module's customPopup(...) method (obsolete function, used for compatibility with old code) to allow module to customize the popup menu
  • for new modules calls createPopupMenu() function to allow the modules to build the popup menu by using insertItem(...) Qt functions.
Parameters
contextpopup menu context
menupopup menu

References PyModuleHelper::XmlHandler::createPopup(), IsCallOldMethods, FuncMsg::message(), myInterp, myPyModule, and myXmlHandler.

◆ internalCreatePreferences()

void PyModuleHelper::internalCreatePreferences ( )
private

Preferences initialization callback function.

Performs the following actions:

References myInterp, and myPyModule.

◆ internalCustomize()

void PyModuleHelper::internalCustomize ( SUIT_Study study)
private

Additional menu customization callback function.

Performs the following actions:

  • get the Python interpreter (one per study)
  • import the Python GUI module
  • call Python module's setSettings() method (obsolete function, used for compatibility with old code)
Parameters
studyparent study

References importModule(), initInterp(), IsCallOldMethods, myInterp, myLastActivateStatus, myPyModule, and setWorkSpace().

◆ internalDeactivate()

void PyModuleHelper::internalDeactivate ( SUIT_Study )
private

Deactivation callback function.

Performs the following actions:

Parameters
studyparent study

References myInterp, and myPyModule.

◆ internalDropObjects()

void PyModuleHelper::internalDropObjects ( const DataObjectList what,
SUIT_DataObject where,
const int  row,
Qt::DropAction  action 
)
private

Data dropping callback function.

Parameters
whatlist of data objects being dropped
wheretarget data object for drop operation
rowline (child item index) where drop operation is performed to
actioncurrent drop action (copy or move)

References LightApp_DataObject::entry(), myInterp, and myPyModule.

◆ internalDumpPython()

void PyModuleHelper::internalDumpPython ( QStringList &  files)
private

Module dump python callback function.

Parameters
filesoutput list of files where module stores python script

References myInterp, and myPyModule.

◆ internalEngineIOR()

QString PyModuleHelper::internalEngineIOR ( ) const
private

Get engine IOR callback function.

Tries to get engine IOR from the Python module using engineIOR() function. That function can load module engine using appropriate container if required.

Returns
engine IOR or empty string if it is not provided by Python module

References myInterp, myModule, and myPyModule.

◆ internalInitialize()

void PyModuleHelper::internalInitialize ( CAM_Application app)
private

Initialization callback function.

Performs the following actions:

  • initialize or get the Python interpreter (one per study)
  • import the Python module
  • pass the workspace widget to the Python module
  • call Python module's initialize() method
  • call Python module's windows() method
  • call Python module's views() method
Parameters
appparent application object

References SUIT_Application::activeStudy(), importModule(), initInterp(), myInterp, myPyModule, myViewMgrList, myWindowsMap, LightApp_Application::WT_LogWindow, LightApp_Application::WT_ObjectBrowser, and LightApp_Application::WT_PyConsole.

◆ internalIsDraggable()

bool PyModuleHelper::internalIsDraggable ( LightApp_DataObject what)
private

Check data object's 'draggable' status callback function.

Parameters
whatdata object being tested
Returns
true if object can be dragged or false otherwise

References LightApp_DataObject::entry(), myInterp, and myPyModule.

◆ internalIsDropAccepted()

bool PyModuleHelper::internalIsDropAccepted ( LightApp_DataObject where)
private

Check data object's 'drop allowed' status callback function.

Parameters
wheredata object being tested
Returns
true if if drop operation is supported by object or false otherwise

References LightApp_DataObject::entry(), myInterp, and myPyModule.

◆ internalLoad()

void PyModuleHelper::internalLoad ( const QStringList &  files,
const QString &  url,
bool &  opened 
)
private

Module data loading callback function.

Parameters
fileslist of files where module data is stored
urlstudy URL
openedoutput success flag

References myInterp, and myPyModule.

◆ internalOBClickedPython()

void PyModuleHelper::internalOBClickedPython ( const QString &  theObj,
int  theColumn 
)
private

References myInterp, and myPyModule.

◆ internalPreferencesChanged()

void PyModuleHelper::internalPreferencesChanged ( const QString &  section,
const QString &  setting 
)
private

Preference changing callback function.

Performs the following actions:

Parameters
sectionresources section name
settingresources parameter name

References myInterp, and myPyModule.

◆ internalSave()

void PyModuleHelper::internalSave ( QStringList &  files,
const QString &  url 
)
private

Module data saving callback function.

Parameters
filesoutput list of files where module stores data
urlstudy URL

References myInterp, and myPyModule.

◆ internalSelectionUpdated()

void PyModuleHelper::internalSelectionUpdated ( const QStringList &  entries)
private

update selection from other views or modules

Performs the following actions:

  • calls Python module's onSelectionpdated(entries) method
Parameters
listof entries

References myInterp, and myPyModule.

◆ internalStudyChanged()

void PyModuleHelper::internalStudyChanged ( SUIT_Study study)
private

Active study change callback function.

Called when active the study is actived (user brings its desktop to top):

  • initialize or get the Python interpreter (one per study)
  • import the Python GUI module
  • call Python module's activeStudyChanged() method
Parameters
studystudy being activated

References importModule(), initInterp(), myInterp, myPyModule, and setWorkSpace().

◆ internalTryCloseView()

void PyModuleHelper::internalTryCloseView ( SUIT_ViewWindow view)
private

View closing callback function.

Parameters
viewview user tries to close

References SUIT_ViewWindow::getId(), FuncMsg::message(), myInterp, and myPyModule.

◆ isDraggable

bool PyModuleHelper::isDraggable ( const SUIT_DataObject what) const
slot

Test if object what can be dragged by the user.

Parameters
whatdata object being tested
Returns
true if object can be dragged or false otherwise

References myInterp.

◆ isDropAccepted

bool PyModuleHelper::isDropAccepted ( const SUIT_DataObject where) const
slot

Test if drop operation can be done on the where object.

Parameters
wheredata object being tested
Returns
true if if drop operation is supported by object or false otherwise

References myInterp.

◆ load

bool PyModuleHelper::load ( const QStringList &  files,
const QString &  url 
)
slot

References myInterp.

◆ modelClosed

void PyModuleHelper::modelClosed ( SUIT_Study study)
slot

Close of the module.

This function is usually used in order to close the module's specific menus and toolbars and perform other such actions required when the module is closed.

References PyModuleHelper::XmlHandler::activateMenus(), activeViewChanged(), SUIT_Study::application(), SUIT_Application::desktop(), LightApp_Module::getApp(), myInterp, myModule, myXmlHandler, preferenceChanged(), CAM_Module::setMenuShown(), and CAM_Module::setToolShown().

◆ module()

LightApp_Module * PyModuleHelper::module ( ) const

Get owner module.

Returns
owner module

References myModule.

◆ onObjectBrowserClicked

void PyModuleHelper::onObjectBrowserClicked ( SUIT_DataObject theObj,
int  theColumn 
)
slot

◆ preferenceChanged

void PyModuleHelper::preferenceChanged ( const QString &  module,
const QString &  section,
const QString &  parameter 
)
slot

Process application preferences changing.

Called when any application setting is changed.

Parameters
modulepreference module
sectionpreference resources section
parameterpreference resources parameter name

References module(), CAM_Module::moduleName(), myModule, and preferencesChanged().

◆ preferencesChanged

void PyModuleHelper::preferencesChanged ( const QString &  section,
const QString &  parameter 
)
slot

Process module's preferences changing.

Called when the module's own preferences are changed.

Parameters
sectionpreference resources section
parameterpreference resources parameter name

References myInterp.

◆ pythonModule()

PyObject * PyModuleHelper::pythonModule ( ) const

Get Python GUI module object.

Returns
python module

References myPyModule.

◆ save

void PyModuleHelper::save ( QStringList &  files,
const QString &  url 
)
slot

Save module data. Called when user saves study.

Parameters
filesoutput list of files where module stores data
urlstudy URL

References myInterp, and myModule.

◆ selectionUpdated

void PyModuleHelper::selectionUpdated ( const QStringList &  entries)
slot

update selection from other views or modules.

Called when selection is modified outside.

References myInterp.

◆ setWorkSpace()

void PyModuleHelper::setWorkSpace ( )
private

Set study workspace to the Python module.

Calls setWorkSpace() method of the Python module with PyQt QWidget object to use with interpreter.

Attention! initInterp() and importModule() should be called first!!!

References SUIT_Application::desktop(), LightApp_Module::getApp(), IsCallOldMethods, myInterp, myModule, myPyModule, STD_MDIDesktop::workspace(), and STD_TabDesktop::workstack().

◆ studyActivated

void PyModuleHelper::studyActivated ( SUIT_Study study)
slot

Process study activation.

Called when study desktop is activated. Used for notifying the Python module about changing of the active study.

Parameters
studystudy being activated

◆ tryCloseView

void PyModuleHelper::tryCloseView ( SUIT_ViewWindow view)
slot

Signal handler tryClose(SUIT_ViewWindow*) of a view.

Parameters
viewview being closed

References myInterp.

◆ viewManagers()

QStringList PyModuleHelper::viewManagers ( ) const

Define the compatible view windows associated with the module.

The associated view windows are opened automatically when the module is activated.

To fill the list of views the correspondind Python module's views() method is called during the module initialization. By default, the list of view types is empty.

Returns
list of view windows types

References myViewMgrList.

◆ windows()

QMap< int, int > PyModuleHelper::windows ( ) const

Get the dockable windows associated with the module.

To fill the list of windows the correspondind Python module's windows() method is called during the module initialization.

By default, ObjectBrowser, PythonConsole and LogWindow windows are associated to the module.

Allowed dockable windows:

Dock area is defined by Qt::DockWidgetArea enumeration:

  • Qt::TopDockWidgetArea : top dock area
  • Qt::BottomDockWidgetArea : bottom dock area
  • Qt::LeftDockWidgetArea : left dock area
  • Qt::RightDockWidgetArea : right dock area
Returns
map of dockable windows in form { <window_type> : <dock_area> }

References myWindowsMap.

Member Data Documentation

◆ myInitModule

LightApp_Module * PyModuleHelper::myInitModule = 0
staticprivate

Python GUI being initialized (not zero only during the initialization)

◆ myInterp

PyInterp_Interp* PyModuleHelper::myInterp
private

current Python subinterpreter

◆ myLastActivateStatus

bool PyModuleHelper::myLastActivateStatus
private

latest module activation status

◆ myModule

LightApp_Module* PyModuleHelper::myModule
private

GUI module.

◆ myPyModule

PyObject* PyModuleHelper::myPyModule
private

Python GUI module.

◆ myViewMgrList

QStringList PyModuleHelper::myViewMgrList
private

compatible view managers list

◆ myWindowsMap

QMap<int, int> PyModuleHelper::myWindowsMap
private

windows map

◆ myXmlHandler

XmlHandler* PyModuleHelper::myXmlHandler
private

XML resource file parser.


The documentation for this class was generated from the following files: