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