#include "SALOME_PYQT_PyInterp.h"#include <SUITApp_init_python.hxx>#include <PyInterp_Interp.h>#include <PyConsole_Interp.h>#include <PyConsole_Console.h>#include <PyInterp_Dispatcher.h>#include "SALOME_PYQT_ModuleLight.h"#include "SALOME_PYQT_DataModelLight.h"#include <Container_init_python.hxx>#include <SUIT_ResourceMgr.h>#include <SUIT_DataObjectIterator.h>#include <SUIT_Desktop.h>#include <SUIT_ViewModel.h>#include <SUIT_ViewWindow.h>#include <SUIT_ViewManager.h>#include <STD_MDIDesktop.h>#include <STD_TabDesktop.h>#include <LightApp_Preferences.h>#include <LightApp_Application.h>#include <LightApp_Study.h>#include <QtxWorkstack.h>#include <QtxWorkspace.h>#include <QtxActionGroup.h>#include <QtxActionMenuMgr.h>#include <QtxActionToolMgr.h>#include <QFile>#include <QDomDocument>#include <QDomNode>#include <QDomElement>#include <QMenuBar>#include <QMenu>#include <QAction>#include "sipAPISalomePyQtGUILight.h"#include <sip.h>#include "sipQtGuiQWidget.h"#include "sipQtGuiQMenu.h"#include <utilities.h>
Data Structures | |
| class | SALOME_PYQT_ModuleLight.XmlHandler |
| class | FuncMsg |
| Function call in/out tracer. More... | |
Defines | |
| #define | PY_SSIZE_T_MAX INT_MAX |
| #define | PY_SSIZE_T_MIN INT_MIN |
| #define | INIT_FUNCTION initSalomePyQtGUILight |
Typedefs | |
| typedef int | Py_ssize_t |
Functions | |
| PyMODINIT_FUNC | INIT_FUNCTION () |
| CAM_Module * | createModule () |
| static QString | tagName (const QDomElement &element) |
| Get tag name for the DOM element. | |
| static QString | attribute (const QDomElement &element, const QString &attName) |
| Get DOM element's attribute by its name. | |
| static bool | checkBool (const QString &value, const int check=-1) |
| Inspect specified string for the boolean value. | |
| static int | checkInt (const QString &value, const int def=-1, const int shift=-1) |
| Inspect specified string for the integer value. | |
Variables | |
| const char * | DEFAULT_NAME = "SALOME_PYQT_ModuleLight" |
| Default name of the module, replaced at the moment of module creation. | |
| const int | DEFAULT_GROUP = 40 |
| Default menu group number. | |
| const bool | IsCallOldMethods = false |
| Allow calling obsolete callback methods. | |
| #define PY_SSIZE_T_MAX INT_MAX |
| #define PY_SSIZE_T_MIN INT_MIN |
| #define INIT_FUNCTION initSalomePyQtGUILight |
| typedef int Py_ssize_t |
| PyMODINIT_FUNC INIT_FUNCTION | ( | ) |
| CAM_Module* createModule | ( | ) |
References SUIT_PYTHON._gtstate, INIT_FUNCTION, and SUIT_PYTHON.initialized.
| static QString tagName | ( | const QDomElement & | element | ) | [static] |
| element | DOM element |
| static QString attribute | ( | const QDomElement & | element, |
| const QString & | attName | ||
| ) | [static] |
| element | DOM element |
| attName | attribute name |
| static bool checkBool | ( | const QString & | value, |
| const int | check = -1 |
||
| ) | [static] |
This function returns true if string represents boolean value:
true false Second parameter allows to specify what boolean value is expected:true false | value | inspected string |
| check | expected boolean value |
true if value correspond to the specified check | static int checkInt | ( | const QString & | value, |
| const int | def = -1, |
||
| const int | shift = -1 |
||
| ) | [static] |
This function returns returns -1 if item is empty or represents an invalid number.
| value | inspected string |
| def | default value |
| shift | shift value (it is added to the integer value to produce shifted result) |
| const char* DEFAULT_NAME = "SALOME_PYQT_ModuleLight" |
| const int DEFAULT_GROUP = 40 |
| IsCallOldMethods = false |
If the macro CALL_OLD_METHODS is not defined, the invoking of obsolete Python module's methods like setSetting(), definePopup(), etc. is blocked.
CALL_OLD_METHODS macro can be defined for example by adding -DCALL_OLD_METHODS compilation option to the Makefile.