]> SALOME platform Git repositories - modules/shaper.git/blob - src/XGUI/XGUI_Workbench.h
Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / XGUI / XGUI_Workbench.h
1
2 #ifndef XGUI_Workbench_H
3 #define XGUI_Workbench_H
4
5 #include "XGUI_Interfaces.h"
6
7 #include <QWidget>
8 #include <QScrollArea>
9 #include <QList>
10
11 class QHBoxLayout;
12 class XGUI_MenuGroupPanel;
13 class QPushButton;
14 class CommandsArea;
15 class XGUI_Command;
16
17
18 class XGUI_Workbench : public QWidget, public IWorkbench
19 {
20     Q_OBJECT
21 public:
22     XGUI_Workbench(QWidget* theParent);
23
24     virtual IMenuGroup* addGroup();
25
26 private slots:
27     void onLeftScroll();
28     void onRightScroll();
29
30 protected:
31     virtual void resizeEvent(QResizeEvent * theEvent);
32
33 private:
34     void addSeparator();
35     bool isExceedsLeft();
36     bool isExceedsRight();
37
38
39     QWidget* myChildWidget;
40     QHBoxLayout* myLayout;
41     QList<XGUI_MenuGroupPanel*> myGroups;
42
43     CommandsArea* myCommandsArea;
44     QPushButton* myRightButton;
45     QPushButton* myLeftButton;
46 };
47
48 #endif;