1 //=============================================================================
2 // File : SALOME_PYQT_GUI.hxx
3 // Created : mer jun 4 17:17:20 UTC 2003
4 // Author : Paul RASCLE, EDF
6 // Copyright : EDF 2003
8 //=============================================================================
10 #ifndef _SALOME_PYQT_GUI_HXX_
11 #define _SALOME_PYQT_GUI_HXX_
13 #include "QAD_Desktop.h"
14 #include "PyInterp_PyQt.h"
15 #include "SALOMEGUI.h"
17 class SALOME_PYQT_GUI: public SALOMEGUI
22 // save the current Python module in the attribute _module
24 // save the current Python module name in the attribute _moduleName
29 SALOME_PYQT_GUI( const QString& name = "", QObject* parent = 0 );
30 virtual ~SALOME_PYQT_GUI();
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,
43 virtual void SupportedViewType (int* buffer, int bufferSize);
44 virtual void Deactivate ();
45 void initInterp(int studyId);