// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#include <qobject.h>
-class QAD_Desktop;
-class QAD_StudyFrame;
+class SUIT_Desktop;
+class SUIT_ViewWindow;
class QMouseEvent;
class QKeyEvent;
+class GeometryGUI;
+//#ifdef WNT
+//#include <SALOME_WNT.hxx>
+//#else
+//#define SALOME_WNT_EXPORT
+//#endif
+#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
+#define GEOMGUI_WNT_EXPORT __declspec( dllexport )
+#else
+#define GEOMGUI_WNT_EXPORT
+#endif
//=================================================================================
// class : GEOMGUI
// purpose : Base class for all geometry GUI subclasses
//=================================================================================
-class GEOMGUI : public QObject
+class GEOMGUI_WNT_EXPORT GEOMGUI : public QObject
{
public :
// Constructor
- GEOMGUI( QObject* parent = 0 );
+ GEOMGUI( GeometryGUI* parent );
// Destructor
virtual ~GEOMGUI();
// Each of this methods can be redifined by descendants
- virtual bool OnGUIEvent( int theCommandID, QAD_Desktop* parent );
- virtual bool OnMousePress( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame );
- virtual bool OnMouseMove( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame );
- virtual bool OnKeyPress( QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame );
- virtual bool SetSettings( QAD_Desktop* parent );
- virtual void Deactivate();
- virtual bool ActiveStudyChanged( QAD_Desktop* parent );
+ virtual bool OnGUIEvent( int theCommandID, SUIT_Desktop* parent );
+
+ virtual bool OnMousePress( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
+ virtual bool OnMouseMove( QMouseEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
+ virtual bool OnKeyPress( QKeyEvent* pe, SUIT_Desktop* parent, SUIT_ViewWindow* );
+
+ virtual void activate( SUIT_Desktop* parent );
+ virtual void deactivate();
+
+ GeometryGUI* getGeometryGUI();
+
+private:
+ GeometryGUI* myGeometryGUI;
};
#endif // __GEOMGUI_H