X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Workbench.h;h=7ede0b98faa4ff12a4095878697b81d8d73236ba;hb=4fcd5da2d972334e887716499b0ea75d9d6c51c2;hp=67b3bde7d43dc3b9b144f6fa9e453063f1241f3a;hpb=b948502434f1af72184656e478095dae3fe00f96;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Workbench.h b/src/XGUI/XGUI_Workbench.h index 67b3bde7d..7ede0b98f 100644 --- a/src/XGUI/XGUI_Workbench.h +++ b/src/XGUI/XGUI_Workbench.h @@ -1,6 +1,7 @@ #ifndef XGUI_Workbench_H #define XGUI_Workbench_H +#include "XGUI.h" #include #include #include @@ -12,24 +13,30 @@ class CommandsArea; class QHBoxLayout; class QPushButton; -class XGUI_Workbench: public QWidget +class XGUI_EXPORT XGUI_Workbench : public QWidget { Q_OBJECT -public: + public: XGUI_Workbench(QWidget* theParent); XGUI_MenuGroupPanel* addGroup(const QString& theId); XGUI_MenuGroupPanel* findGroup(const QString& theName); -private slots: + //! Returns already created command by its ID + XGUI_Command* feature(const QString& theId) const; + + //! Returns list of created commands + QList features() const; + + private slots: void onLeftScroll(); void onRightScroll(); -protected: + protected: virtual void resizeEvent(QResizeEvent * theEvent); virtual bool eventFilter(QObject *theObj, QEvent *theEvent); -private: + private: void addSeparator(); bool isExceedsLeft(); bool isExceedsRight();