Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #6 Extended processing of nested actions.
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_Workbench.h
diff --git
a/src/XGUI/XGUI_Workbench.h
b/src/XGUI/XGUI_Workbench.h
index 506845adbddbe84bf0016eafe8f98c89bb8803e3..144a23a2d2fe8ffa84965b6b1facfe2f8346e150 100644
(file)
--- a/
src/XGUI/XGUI_Workbench.h
+++ b/
src/XGUI/XGUI_Workbench.h
@@
-1,48
+1,54
@@
-
#ifndef XGUI_Workbench_H
#define XGUI_Workbench_H
#ifndef XGUI_Workbench_H
#define XGUI_Workbench_H
-#include "XGUI_Interfaces.h"
-
+#include "XGUI.h"
#include <QWidget>
#include <QScrollArea>
#include <QList>
#include <QWidget>
#include <QScrollArea>
#include <QList>
-class
QHBoxLayout
;
+class
XGUI_Command
;
class XGUI_MenuGroupPanel;
class XGUI_MenuGroupPanel;
-class QPushButton;
class CommandsArea;
class CommandsArea;
-class XGUI_Command;
+class QHBoxLayout;
+class QPushButton;
-class XGUI_
Workbench : public QWidget, public IWorkbench
+class XGUI_
EXPORT XGUI_Workbench: public QWidget
{
{
-
Q_OBJECT
+Q_OBJECT
public:
public:
- XGUI_Workbench(QWidget* theParent);
+ XGUI_Workbench(QWidget* theParent);
+
+ XGUI_MenuGroupPanel* addGroup(const QString& theId);
+ XGUI_MenuGroupPanel* findGroup(const QString& theName);
- virtual IMenuGroup* addGroup();
+ //! 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:
private slots:
-
void onLeftScroll();
-
void onRightScroll();
+ void onLeftScroll();
+ void onRightScroll();
protected:
protected:
- virtual void resizeEvent(QResizeEvent * theEvent);
+ virtual void resizeEvent(QResizeEvent * theEvent);
+ virtual bool eventFilter(QObject *theObj, QEvent *theEvent);
-private:
- void addSeparator();
- bool isExceedsLeft();
- bool isExceedsRight();
+private:
+ void addSeparator();
+ bool isExceedsLeft();
+ bool isExceedsRight();
-
QWidget* myChildWidget;
-
QHBoxLayout* myLayout;
-
QList<XGUI_MenuGroupPanel*> myGroups;
+ QWidget* myChildWidget;
+ QHBoxLayout* myLayout;
+ QList<XGUI_MenuGroupPanel*> myGroups;
-
CommandsArea* myCommandsArea;
-
QPushButton* myRightButton;
-
QPushButton* myLeftButton;
+ CommandsArea* myCommandsArea;
+ QPushButton* myRightButton;
+ QPushButton* myLeftButton;
};
};
-#endif;
\ No newline at end of file
+#endif