#ifndef XGUI_Workbench_H
#define XGUI_Workbench_H
+#include "XGUI.h"
#include <QWidget>
#include <QScrollArea>
#include <QList>
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<XGUI_Command*> 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();
QPushButton* myLeftButton;
};
-#endif;
+#endif