1 #ifndef XGUI_Workbench_H
2 #define XGUI_Workbench_H
9 class XGUI_MenuGroupPanel;
15 class XGUI_Workbench: public QWidget
19 XGUI_Workbench(QWidget* theParent);
21 XGUI_MenuGroupPanel* addGroup(const QString& theId);
22 XGUI_MenuGroupPanel* findGroup(const QString& theName);
24 //! Returns already created command by its ID
25 XGUI_Command* feature(const QString& theId) const;
27 //! Returns list of created commands
28 QList<XGUI_Command*> features() const;
35 virtual void resizeEvent(QResizeEvent * theEvent);
36 virtual bool eventFilter(QObject *theObj, QEvent *theEvent);
42 bool isExceedsRight();
44 QWidget* myChildWidget;
45 QHBoxLayout* myLayout;
46 QList<XGUI_MenuGroupPanel*> myGroups;
48 CommandsArea* myCommandsArea;
49 QPushButton* myRightButton;
50 QPushButton* myLeftButton;