Salome HOME
CCAR: It seems that the tagged version (V2_1_0) does not work.
[samples/hello.git] / src / HELLOGUI / HELLOGUI.h
index 577ca5f595434e25ddb588a426e3121de0fcdf49..2559c9dfc57b5ac37d32a2e117e21d16a1b7928d 100644 (file)
@@ -4,6 +4,7 @@
 #ifndef _HELLOGUI_H_
 #define _HELLOGUI_H_
 
+#include "SALOMEGUI.h"
 #include "QAD_Desktop.h"
 
 #include <SALOMEconfig.h>
 
 
 
-class HELLOGUI: public QObject
+class HELLOGUI: public SALOMEGUI
 {
   Q_OBJECT
 
 public:
+  HELLOGUI( const QString& name = "", QObject* parent = 0 );
 
-  static bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
+  virtual bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
 
-  static bool SetSettings (QAD_Desktop* parent);
+  virtual bool SetSettings (QAD_Desktop* parent);
 
-  static bool CustomPopup ( QAD_Desktop* parent,
+  virtual bool CustomPopup ( QAD_Desktop* parent,
                            QPopupMenu* popup,
                            const QString & theContext,
                            const QString & theParent,
                            const QString & theObject);
 
-  static void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
+  virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
 
-  static void ActiveStudyChanged ( QAD_Desktop* parent );
+  virtual bool ActiveStudyChanged ( QAD_Desktop* parent );
 
   static HELLO_ORB::HELLO_Gen_ptr InitHELLOGen(QAD_Desktop* parent);