-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
WT_ObjectBrowser,
WT_PyConsole,
WT_LogWindow,
+ WT_InfoPanel,
%If (ENABLE_CORBA)
WT_NoteBook,
%End
%ConvertToSubClassCode
if ( qobject_cast<QtxAction*>( sipCpp ) )
- sipClass = sipClass_QtxAction;
+ sipType = sipType_QtxAction;
else
- sipClass = NULL;
+ sipType = NULL;
%End
public:
%ConvertToSubClassCode
if ( qobject_cast<QtxActionSet*>( sipCpp ) )
- sipClass = sipClass_QtxActionSet;
+ sipType = sipType_QtxActionSet;
else
- sipClass = NULL;
+ sipType = NULL;
%End
public:
%ConvertToSubClassCode
if ( qobject_cast<QtxActionGroup*>( sipCpp ) )
- sipClass = sipClass_QtxActionGroup;
+ sipType = sipType_QtxActionGroup;
else
- sipClass = NULL;
+ sipType = NULL;
%End
public:
%ConvertToSubClassCode
if ( qobject_cast<QtxTreeView*>( sipCpp ) )
- sipClass = sipClass_QtxTreeView;
+ sipType = sipType_QtxTreeView;
else
- sipClass = NULL;
+ sipType = NULL;
%End
public:
%ConvertToSubClassCode
if ( qobject_cast<UserDefinedContent*>( sipCpp ) )
- sipClass = sipClass_UserDefinedContent;
+ sipType = sipType_UserDefinedContent;
else
- sipClass = NULL;
+ sipType = NULL;
%End
public:
%End
public:
+ static QString getAppName() /ReleaseGIL/ ;
+ static bool isLightApp() /ReleaseGIL/ ;
+
/* KeepReference is necessary on method getDesktop with SIP >= 4.15.5 to avoid garbage collection of
the Python objects added to the desktop. This causes a small memory leak (the wrapper around desktop
object is never garbage collected) but since this object contains only references this is not
static void disableSelector() /ReleaseGIL/ ;
static SALOME_Selection* getSelection() /Factory,ReleaseGIL/ ;
static void setSelection( const QStringList& ) /ReleaseGIL/ ;
- static int getStudyId() /ReleaseGIL/ ;
- static void putInfo( const QString&, const int = 0 ) /ReleaseGIL/ ;
+ static QStringList getComponents() /ReleaseGIL/ ;
static const QString getActiveComponent() /ReleaseGIL/ ;
static SIP_PYOBJECT getActivePythonModule() /ReleaseGIL/ ;
static bool activateModule( const QString& ) /ReleaseGIL/ ;
- static void updateObjBrowser( const int = 0, bool = true ) /ReleaseGIL/ ;
-
+ static void registerModule( const QString& ) /ReleaseGIL/ ;
+ static void updateObjBrowser() /ReleaseGIL/ ;
+
+ static void infoSetTitle( const QString& ) /ReleaseGIL/ ;
+ static int infoAddLabel( const QString&, const int = -1 ) /ReleaseGIL/ ;
+ static int infoAddLabel( const QString&, Qt::Alignment, const int = -1 ) /ReleaseGIL/ ;
+ static int infoAddAction( QAction*, const int = -1 ) /ReleaseGIL/ ;
+ static int infoAddGroup( const QString&, const int = -1 ) /ReleaseGIL/ ;
+
+ static void infoRemove( const int ) /ReleaseGIL/ ;
+ static void infoClear( const int = -1 ) /ReleaseGIL/ ;
+
+ static void infoSetVisible( const int, bool ) /ReleaseGIL/ ;
+ static void infoSetEnabled( const int, bool ) /ReleaseGIL/ ;
+
+ static void putInfo( const QString&, const int = 0 ) /ReleaseGIL/ ;
+ static int showNotification( const QString&, const QString&, const int = -1 ) /ReleaseGIL/ ;
+ static void hideNotification( const QString& ) /ReleaseGIL/ ;
+ static void hideNotification( const int ) /ReleaseGIL/ ;
+
static bool isModified() /ReleaseGIL/ ;
static void setModified( bool ) /ReleaseGIL/ ;
static int createTool( const int, const QString&, const int = -1 ) /ReleaseGIL/ ;
static int createTool( QAction*, const int, const int = -1, const int = -1 ) /ReleaseGIL/ ;
static int createTool( QAction*, const QString&, const int = -1, const int = -1 ) /ReleaseGIL/ ;
+ static void clearTool( const QString& ) /ReleaseGIL/ ;
static int createMenu( const QString&, const int,
const int = -1, const int = -1, const int = -1 ) /ReleaseGIL/ ;
static bool setViewTitle( const int, const QString& ) /ReleaseGIL/ ;
static QString getViewTitle( const int ) /ReleaseGIL/ ;
static bool setViewSize( const int, const int, const int = 0 ) /ReleaseGIL/ ;
+ static bool setViewRotationPoint( const double, const double, const double, const int = 0 ) /ReleaseGIL/ ;
static QList<int> findViews( const QString& ) /ReleaseGIL/ ;
static bool activateView( const int ) /ReleaseGIL/ ;
static bool activateViewManagerAndView( const int ) /ReleaseGIL/ ;
static void startPyLog(const QString&) /ReleaseGIL/ ;
static void stopPyLog() /ReleaseGIL/ ;
+
+ static void logUserEvent( const QString& ) /ReleaseGIL/ ;
+ static void logAction( QAction*, const QString& = QString() ) /ReleaseGIL/ ;
};