1 #ifndef XGUI_Workbench_H
2 #define XGUI_Workbench_H
10 class XGUI_MenuGroupPanel;
16 class XGUI_EXPORT XGUI_Workbench : public QWidget
20 XGUI_Workbench(QWidget* theParent);
22 XGUI_MenuGroupPanel* addGroup(const QString& theId);
23 XGUI_MenuGroupPanel* findGroup(const QString& theName);
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;
36 virtual void resizeEvent(QResizeEvent * theEvent);
37 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;