1 #ifndef XGUI_MenuGroupPanel_H
2 #define XGUI_MenuGroupPanel_H
10 /**\class XGUI_MenuGroupPanel
12 * \brief Represents a one group in a page of main menu (workbench)
14 class XGUI_MenuGroupPanel: public QWidget
18 explicit XGUI_MenuGroupPanel(QWidget *parent = 0);
20 //! Adding a new feature (Command) in the group
21 XGUI_Command* addFeature(const QString& theId, const QString& theTitle, const QString& theTip,
22 const QIcon& theIcon, const QKeySequence& theKeys = QKeySequence());
25 virtual void resizeEvent(QResizeEvent *theEvent);
28 void addWidget(QWidget* theWgt);
29 void placeWidget(QWidget* theWgt);
30 void addCommand(XGUI_Command* theAction);
32 QList<XGUI_Command*> myActions;
33 QWidgetList myActionWidget;
35 QGridLayout* myLayout;