1 #ifndef XGUI_MenuGroupPanel_H
2 #define XGUI_MenuGroupPanel_H
11 /**\class XGUI_MenuGroupPanel
13 * \brief Represents a one group in a page of main menu (workbench)
15 class XGUI_EXPORT XGUI_MenuGroupPanel: public QWidget
19 explicit XGUI_MenuGroupPanel(QWidget *parent = 0);
21 //! Adding a new feature (Command) in the group
22 XGUI_Command* addFeature(const QString& theId, const QString& theTitle, const QString& theTip,
23 const QIcon& theIcon, const QKeySequence& theKeys = QKeySequence(),
24 bool isCheckable = false);
26 //! Returns already created command by its ID
27 XGUI_Command* feature(const QString& theId) const;
29 //! Returns list of created commands
30 QList<XGUI_Command*> features() const { return myActions; }
33 virtual void resizeEvent(QResizeEvent *theEvent);
36 void addWidget(QWidget* theWgt);
37 void placeWidget(QWidget* theWgt);
38 void addCommand(XGUI_Command* theAction);
40 QList<XGUI_Command*> myActions;
41 QWidgetList myActionWidget;
43 QGridLayout* myLayout;