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 57b17d3bea7a58a963685c8737058d4508b7078a..144a23a2d2fe8ffa84965b6b1facfe2f8346e150 100644
(file)
--- a/
src/XGUI/XGUI_Workbench.h
+++ b/
src/XGUI/XGUI_Workbench.h
@@
-1,6
+1,7
@@
#ifndef XGUI_Workbench_H
#define XGUI_Workbench_H
#ifndef XGUI_Workbench_H
#define XGUI_Workbench_H
+#include "XGUI.h"
#include <QWidget>
#include <QScrollArea>
#include <QList>
#include <QWidget>
#include <QScrollArea>
#include <QList>
@@
-12,7
+13,7
@@
class CommandsArea;
class QHBoxLayout;
class QPushButton;
class QHBoxLayout;
class QPushButton;
-class XGUI_Workbench: public QWidget
+class XGUI_
EXPORT XGUI_
Workbench: public QWidget
{
Q_OBJECT
public:
{
Q_OBJECT
public:
@@
-21,6
+22,12
@@
public:
XGUI_MenuGroupPanel* addGroup(const QString& theId);
XGUI_MenuGroupPanel* findGroup(const QString& theName);
XGUI_MenuGroupPanel* addGroup(const QString& theId);
XGUI_MenuGroupPanel* findGroup(const QString& theName);
+ //! 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();
private slots:
void onLeftScroll();
void onRightScroll();
@@
-29,6
+36,7
@@
protected:
virtual void resizeEvent(QResizeEvent * theEvent);
virtual bool eventFilter(QObject *theObj, QEvent *theEvent);
virtual void resizeEvent(QResizeEvent * theEvent);
virtual bool eventFilter(QObject *theObj, QEvent *theEvent);
+
private:
void addSeparator();
bool isExceedsLeft();
private:
void addSeparator();
bool isExceedsLeft();
@@
-43,4
+51,4
@@
private:
QPushButton* myLeftButton;
};
QPushButton* myLeftButton;
};
-#endif
;
+#endif