1 // File : SUPERVGUI_View.h
2 // Created : 24 / 10 / 2002
3 // Author : Vitaly SMETANNIKOV
6 // Copyright : Open CASCADE
9 #ifndef SUPERVGUI_View_H
10 #define SUPERVGUI_View_H
12 //#include "SUPERVGUI.h"
13 #include <qpopupmenu.h>
14 #include <qscrollview.h>
16 //VRV: porting on Qt 3.0.5
17 #if QT_VERSION >= 0x030005
20 //VRV: porting on Qt 3.0.5
24 class SUPERVGUI_View: public QScrollView {
28 SUPERVGUI_View(SUPERVGUI_Main* theMain);
29 virtual ~SUPERVGUI_View();
31 SUPERVGUI_Main* getMain() { return main; };
33 virtual void ActivatePanning();
34 virtual void ResetView();
35 virtual void setAsFromStudy(bool theToStudy);
37 void setPaletteBackgroundColor(const QColor& color);
39 void ResizeGraph( QWidget * theChild, int theX, int theY );
48 void viewportMouseMoveEvent(QMouseEvent* theEvent);
49 void viewportMouseReleaseEvent(QMouseEvent* theEvent);
50 void viewportMousePressEvent(QMouseEvent* theEvent);
54 QPopupMenu* myViewPopup;
55 bool myIsPanActivated;