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);
43 bool isExceedsRight();
45 QWidget* myChildWidget;
46 QHBoxLayout* myLayout;
47 QList<XGUI_MenuGroupPanel*> myGroups;
49 CommandsArea* myCommandsArea;
50 QPushButton* myRightButton;
51 QPushButton* myLeftButton;