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());
24 //! Returns already created command by its ID
25 XGUI_Command* feature(const QString& theId) const;
27 //! Returns list of created commands
28 QList<XGUI_Command*> features() const { return myActions; }
31 virtual void resizeEvent(QResizeEvent *theEvent);
34 void addWidget(QWidget* theWgt);
35 void placeWidget(QWidget* theWgt);
36 void addCommand(XGUI_Command* theAction);
38 QList<XGUI_Command*> myActions;
39 QWidgetList myActionWidget;
41 QGridLayout* myLayout;