Salome HOME
Management of sub window
[modules/shaper.git] / src / XGUI / XGUI_ViewWindow.h
1 #ifndef XGUI_ViewWindow_H
2 #define XGUI_ViewWindow_H
3
4 #include <QWidget>
5
6 class QLabel;
7 class QToolBar;
8
9 class XGUI_ViewWindow : public QWidget
10 {
11     Q_OBJECT
12 public:
13     XGUI_ViewWindow();
14     virtual ~XGUI_ViewWindow();
15
16 protected:
17     virtual void resizeEvent(QResizeEvent* theEvent);
18
19     virtual void changeEvent(QEvent* theEvent);
20
21     virtual void enterEvent(QEvent* theEvent);
22     virtual void leaveEvent(QEvent* theEvent);
23
24 private slots:
25     void onClose();
26     void onMinimize();
27
28 private:
29
30     QLabel* myPicture;
31     QLabel* myViewPort;
32     QToolBar* aViewBar;
33     QToolBar* aWindowBar;
34 };
35
36 #endif