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,
24 const QString& theTip,
25 const QString& theTitle,
27 const QKeySequence& theKeys = QKeySequence());
29 XGUI_Command* addFeature(const QString& theId,
30 const QString& theTip,
31 const QString& theTitle,
33 const QString& theDocumentKind = QString(),
34 const QKeySequence& theKeys = QKeySequence(),
35 bool isCheckable = false);
37 //! Returns already created command by its ID
38 XGUI_Command* feature(const QString& theId) const;
40 //! Returns list of created commands
41 QList<XGUI_Command*> features() const
47 virtual void resizeEvent(QResizeEvent *theEvent);
50 void addWidget(QWidget* theWgt);
51 void placeWidget(QWidget* theWgt);
52 void addCommand(XGUI_Command* theAction);
54 QList<XGUI_Command*> myActions;
55 QWidgetList myActionWidget;
57 QGridLayout* myLayout;