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 QFrame
20 explicit XGUI_MenuGroupPanel(QWidget *parent = 0);
22 //! Adding a new feature (Command) in the group
23 XGUI_Command* addFeature(const QString& theId, const QString& theTitle, const QString& theTip,
24 const QIcon& theIcon, const QKeySequence& theKeys = QKeySequence(),
25 bool isCheckable = false);
27 //! Returns already created command by its ID
28 XGUI_Command* feature(const QString& theId) const;
30 //! Returns list of created commands
31 QList<XGUI_Command*> features() const
37 virtual void resizeEvent(QResizeEvent *theEvent);
40 void addWidget(QWidget* theWgt);
41 void placeWidget(QWidget* theWgt);
42 void addCommand(XGUI_Command* theAction);
44 QList<XGUI_Command*> myActions;
45 QWidgetList myActionWidget;
47 QGridLayout* myLayout;