Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / XGUI / XGUI_Workbench.h
index d7916351a706cdec9a5687e5b38f6d79e294eae3..cc362db2b10f9e6cc0e08240bc157079cf5c794f 100644 (file)
@@ -1,4 +1,3 @@
-
 #ifndef XGUI_Workbench_H
 #define XGUI_Workbench_H
 
@@ -6,43 +5,41 @@
 #include <QScrollArea>
 #include <QList>
 
-class QHBoxLayout;
+class XGUI_Command;
 class XGUI_MenuGroupPanel;
-class QPushButton;
 class CommandsArea;
-class XGUI_Command;
 
+class QHBoxLayout;
+class QPushButton;
 
-class XGUI_Workbench : public QWidget
+class XGUI_Workbench: public QWidget
 {
-    Q_OBJECT
+Q_OBJECT
 public:
-    XGUI_Workbench(QWidget* theParent);
+  XGUI_Workbench(QWidget* theParent);
 
-    int addGroup();
-
-    void addCommand(int theGroupId, XGUI_Command* theCommand);
+  XGUI_MenuGroupPanel* addGroup(const QString& theId);
+  XGUI_MenuGroupPanel* findGroup(const QString& theName);
 
 private slots:
-    void onLeftScroll();
-    void onRightScroll();
+  void onLeftScroll();
+  void onRightScroll();
 
 protected:
-    virtual void resizeEvent(QResizeEvent * theEvent);
+  virtual void resizeEvent(QResizeEvent * theEvent);
 
 private:
-    void addSeparator();
-    bool isExceedsLeft();
-    bool isExceedsRight();
-
+  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;