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