Salome HOME
PROJECT: POST-PROCESSOR 2005 TASK: T 1.5
[modules/kernel.git] / src / SALOME_PYQT / SALOME_PYQT_GUI.h
1 //=============================================================================
2 // File      : SALOME_PYQT_GUI.hxx
3 // Created   : mer jun  4 17:17:20 UTC 2003
4 // Author    : Paul RASCLE, EDF 
5 // Project   : SALOME
6 // Copyright : EDF 2003
7 // $Header$
8 //=============================================================================
9
10 #ifndef _SALOME_PYQT_GUI_HXX_
11 #define _SALOME_PYQT_GUI_HXX_
12
13 #include "QAD_Desktop.h"
14 #include "PyInterp_PyQt.h"
15 #include "SALOMEGUI.h"
16
17 class SALOME_PYQT_GUI: public SALOMEGUI
18 {
19   Q_OBJECT;
20   
21 private:
22   // save the current Python module in the attribute _module
23   PyObjWrapper _module;
24   // save the current Python module name in the attribute _moduleName
25   string _moduleName;
26   
27 public:
28   
29   SALOME_PYQT_GUI( const QString& name = "", QObject* parent = 0 );
30   virtual ~SALOME_PYQT_GUI();
31
32   virtual bool OnGUIEvent        (int theCommandID, QAD_Desktop* parent);
33   virtual bool OnKeyPress        (QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
34   virtual bool OnMousePress      (QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
35   virtual bool OnMouseMove       (QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
36   virtual bool SetSettings       ( QAD_Desktop* parent, char* moduleName );
37   virtual bool CustomPopup       ( QAD_Desktop* parent, QPopupMenu* popup, const QString & theContext,
38                                    const QString & theParent, const QString & theObject );
39   virtual void DefinePopup       ( QString & theContext, QString & theParent, QString & theObject );
40   virtual bool ActiveStudyChanged( QAD_Desktop* parent);
41   virtual void BuildPresentation ( const Handle(SALOME_InteractiveObject)& theIO,
42                                    QAD_ViewFrame* = 0 );
43   virtual void SupportedViewType (int* buffer, int bufferSize);
44   virtual void Deactivate        ();
45   void initInterp(int studyId);
46   void importModule();
47   void setWorkSpace();
48   
49 protected:
50   
51 };
52
53 #endif