]> SALOME platform Git repositories - modules/shaper.git/blob - src/XGUI/XGUI_MenuGroupPanel.h
Salome HOME
"GUI" stubs for testing of CMake building procedures, preliminary examples of GUI
[modules/shaper.git] / src / XGUI / XGUI_MenuGroupPanel.h
1
2 #ifndef XGUI_MenuGroupPanel_H
3 #define XGUI_MenuGroupPanel_H
4
5 #include <QWidget>
6 #include <QList>
7
8 class QGridLayout;
9 class XGUI_Command;
10
11 class XGUI_MenuGroupPanel : public QWidget
12 {
13     Q_OBJECT
14 public:
15     explicit XGUI_MenuGroupPanel(QWidget *parent = 0);
16
17     void addCommand(XGUI_Command* theAction);
18
19 protected:
20     virtual void resizeEvent(QResizeEvent *theEvent);
21
22 private:
23     void addWidget(QWidget* theWgt);
24     void placeWidget(QWidget* theWgt);
25
26     QList<QWidget*> myWidgets;
27     QGridLayout* myLayout;
28     int myNewRow;
29     int myNewCol;
30     int myMaxRow;
31 };
32
33 #endif