-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA/DEN, EDF R&D, 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 = LightApp_Application::WT_ObjectBrowser,
WT_PyConsole = LightApp_Application::WT_PyConsole,
WT_LogWindow = LightApp_Application::WT_LogWindow,
+ WT_InfoPanel = LightApp_Application::WT_InfoPanel,
#ifndef GUI_DISABLE_CORBA
WT_NoteBook = SalomeApp_Application::WT_NoteBook,
WT_User = SalomeApp_Application::WT_User
class SalomePyQt
{
public:
+ static QString getAppName();
+ static bool isLightApp();
+
static QWidget* getDesktop();
static QWidget* getMainFrame();
static QMenuBar* getMainMenuBar();
static const QString getActiveComponent();
static PyObject* getActivePythonModule();
static bool activateModule( const QString& );
+ static void registerModule( const QString& );
static void updateObjBrowser();
+ static void infoSetTitle( const QString& );
+ static int infoAddLabel( const QString&, const int = -1 );
+ static int infoAddLabel( const QString&, Qt::Alignment, const int = -1 );
+ static int infoAddAction( QAction*, const int = -1 );
+ static int infoAddGroup( const QString&, const int = -1 );
+
+ static void infoRemove( const int );
+ static void infoClear( const int = -1 );
+
+ static void infoSetVisible( const int, bool );
+ static void infoSetEnabled( const int, bool );
+
static void putInfo( const QString&, const int = 0 );
static int showNotification( const QString&, const QString&, const int = -1 );
static void hideNotification( const QString& );
static int createTool( const int, const QString&, const int = -1 );
static int createTool( QAction*, const int, const int = -1, const int = -1 );
static int createTool( QAction*, const QString&, const int = -1, const int = -1 );
+ static void clearTool( const QString& );
static int createMenu( const QString&, const int = -1,
const int = -1, const int = -1, const int = -1 );