1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SUPERVGUI_View.h
8 // Author : Vitaly SMETANNIKOV
11 #ifndef SUPERVGUI_View_H
12 #define SUPERVGUI_View_H
14 //#include "SUPERVGUI.h"
15 #include <qpopupmenu.h>
16 #include <qscrollview.h>
18 //VRV: porting on Qt 3.0.5
19 #if QT_VERSION >= 0x030005
22 //VRV: porting on Qt 3.0.5
26 class SUPERVGUI_View: public QScrollView {
30 SUPERVGUI_View(SUPERVGUI_Main* theMain);
31 virtual ~SUPERVGUI_View();
33 SUPERVGUI_Main* getMain() { return main; };
35 virtual void ActivatePanning();
36 virtual void ResetView();
37 virtual void setAsFromStudy(bool theToStudy);
39 void setPaletteBackgroundColor(const QColor& color);
41 void ResizeGraph( QWidget * theChild, int theX, int theY );
46 void addDSPopupItem();
50 void changeBackground();
53 void viewportMouseMoveEvent(QMouseEvent* theEvent);
54 void viewportMouseReleaseEvent(QMouseEvent* theEvent);
55 void viewportMousePressEvent(QMouseEvent* theEvent);
56 bool isHavingStreamPort();
60 QPopupMenu* myViewPopup;
61 bool myIsPanActivated;