#include "SALOME_PYQT_PyModule.h"
#include "SALOME_PYQT_PyInterp.h"
#include "LightApp_Application.h"
#include "LightApp_DataObject.h"
#include "LightApp_Module.h"
#include "LightApp_Study.h"
#include "PyInterp_Dispatcher.h"
#include "QtxActionMenuMgr.h"
#include "QtxWorkspace.h"
#include "QtxWorkstack.h"
#include "STD_MDIDesktop.h"
#include "STD_TabDesktop.h"
#include "SUITApp_init_python.hxx"
#include "SUIT_ResourceMgr.h"
#include "SUIT_ViewManager.h"
#include "SUIT_ViewModel.h"
#include "SUIT_ViewWindow.h"
#include <QApplication>
#include <QDomDocument>
#include <QDomElement>
#include <QDomNode>
#include <QFile>
#include <QMenu>
#include <QMutex>
#include <utilities.h>
#include "sipAPISalomePyQtGUILight.h"
Classes | |
class | FuncMsg |
Function call in/out tracer. More... | |
class | PyModuleHelper::InitLocker |
Initialization locker. More... | |
class | PyModuleHelper::XmlHandler |
XML resource files parser. More... | |
Functions | |
static QString | tagName (const QDomElement &element) |
Get tag name for the DOM element. More... | |
static QString | attribute (const QDomElement &element, const QString &attName) |
Get value of DOM element's attribute. More... | |
static bool | checkBool (const QString &value, const int check=-1) |
Inspect specified string for the boolean value. More... | |
static int | checkInt (const QString &value, const int def=-1, const int shift=-1) |
Inspect specified string for the integer value. More... | |
Variables | |
const int | DEFAULT_GROUP = 40 |
Default menu group number. More... | |
QMutex | myInitMutex |
Mutex used to lock access from several threads to the shared (static) data. More... | |
const bool | DEBUG = false |
const bool | IsCallOldMethods = false |
Allow calling obsolete callback methods. More... | |
element | DOM element |
attName | attribute name |
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 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) |
|
static |
element | DOM element |
const bool DEBUG = false |
DEBUG mode
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 CMakeLists.txt.
QMutex myInitMutex |