1 #ifndef XGUI_ViewWindow_H
2 #define XGUI_ViewWindow_H
9 #include <V3d_View.hxx>
10 #include <V3d_Viewer.hxx>
17 class XGUI_ViewWindow : public QFrame
21 XGUI_ViewWindow(XGUI_Viewer* theViewer,
22 V3d_TypeOfView theType);
24 virtual ~XGUI_ViewWindow();
27 virtual void resizeEvent(QResizeEvent* theEvent);
29 virtual void changeEvent(QEvent* theEvent);
31 virtual void enterEvent(QEvent* theEvent);
32 virtual void leaveEvent(QEvent* theEvent);
34 virtual bool eventFilter(QObject *theObj, QEvent *theEvent);
42 enum WindowState { MinimizedState, MaximizedState, NormalState };
45 XGUI_Viewer* myViewer;
48 ViewerLabel* myGripWgt;
49 XGUI_ViewPort* myViewPort;
50 ViewerToolbar* myViewBar;
51 ViewerToolbar* myWindowBar;
52 QAction* myMinimizeBtn;
53 QAction* myMaximizeBtn;
63 WindowState myLastState;
65 //QGraphicsScene* myScene;
68 class ViewerToolbar : public QToolBar
72 ViewerToolbar(QWidget* theParent, XGUI_ViewPort* thePort) :
73 QToolBar(theParent), myVPort(thePort) {}
76 virtual void paintEvent( QPaintEvent* theEvent);
79 XGUI_ViewPort* myVPort;
82 class ViewerLabel : public QLabel
86 ViewerLabel(QWidget* theParent, XGUI_ViewPort* thePort) :
87 QLabel(theParent), myVPort(thePort) {}
90 virtual void paintEvent( QPaintEvent* theEvent);
93 XGUI_ViewPort* myVPort;