]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/SUPERVGUI/SUPERVGUI.h
Salome HOME
Inherit Supervision GUI object from SALOMEGUI class
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI.h
index 3bf460606e3d5a5c35a22f44a226ebde1ed510ff..977e71950a4604695d7cc88621c06eea5ec9faba 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef SUPERVGUI_H
 #define SUPERVGUI_H
 
-// Acces a l'ihm de SALOME
+// Acces a l`ihm de SALOME
 // -----------------------
 
 #include "QAD_Desktop.h"
 #include "SUPERVGUI_Main.h"
 //#include "SUPERVGUI_Information.h"
 
+#include "SALOMEGUI.h"
 
 // Definition de la classe principale du module de supervision
 // -----------------------------------------------------------
 
-class SUPERVGUI: public QObject {
+class SUPERVGUI: public SALOMEGUI {
   Q_OBJECT
 
   public:
-    SUPERVGUI();
+    SUPERVGUI( const QString&, QObject* = 0 );
     virtual ~SUPERVGUI();
 
     QAD_Desktop*       getDesktop();
@@ -73,8 +74,19 @@ class SUPERVGUI: public QObject {
 
     void init(QAD_Desktop* parent);
     SUPERVGUI_Main* getMain();
-    void customPopup(QPopupMenu* popup);
-    void activeStudyChanged();
+
+    bool OnGUIEvent(int theCommandID, QAD_Desktop* parent);
+    bool SetSettings(QAD_Desktop* parent);
+    void DefinePopup(QString & theContext,
+                     QString & theParent, 
+                     QString & theObject ) ;
+    bool CustomPopup(QAD_Desktop* parent,
+                     QPopupMenu* popup,
+                     const QString & theContext,
+                     const QString & theParent,
+                     const QString & theObject);
+    bool ActiveStudyChanged( QAD_Desktop* parent );
+    void SupportedViewType (int* buffer, int bufferSize);
 
     bool isContains(QAD_Study* theStudy, const QString theKey);