Salome HOME
updated copyright message
[modules/gui.git] / src / SALOME_PYQT / SalomePyQt / SalomePyQt.h
index 58634fedd15fc58b4d416b08c434a8163290df77..ac69fc282598cb8e6977a5526d4b1d716330ca92 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -89,6 +89,7 @@ enum {
   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
@@ -179,6 +180,9 @@ enum Axis {
 class SalomePyQt
 {
 public:
+  static QString           getAppName();
+  static bool              isLightApp();
+
   static QWidget*          getDesktop();
   static QWidget*          getMainFrame();
   static QMenuBar*         getMainMenuBar();
@@ -188,13 +192,31 @@ public:
   static void              enableSelector();
   static void              disableSelector();
   static SALOME_Selection* getSelection();
+  static QStringList       getComponents();
   static void              setSelection( const QStringList& );
-  static void              putInfo( const QString&, const int = 0 );
   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 void              hideNotification( const int );
+
   static bool              isModified();
   static void              setModified( bool );
 
@@ -241,6 +263,7 @@ public:
   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 );
@@ -307,6 +330,7 @@ public:
   static bool              setViewTitle( const int, const QString& );
   static QString           getViewTitle( const int );
   static bool              setViewSize( const int, const int, const int = 0 );
+  static bool              setViewRotationPoint( const double, const double, const double, const int = 0 );
   static QList<int>        findViews( const QString& );
   static bool              activateView( const int );
   static bool              activateViewManagerAndView( const int );