Salome HOME
Some slight improvements and bugs fixing.
[modules/shaper.git] / src / XGUI / XGUI_MainMenu.h
index 48d97459135f78be9f26e3f2b6a6d7450e10f833..945ddcb8d9f890b6d90811986f280805c69dfb01 100644 (file)
@@ -33,7 +33,7 @@ public:
   XGUI_Workbench* addWorkbench(const QString& theId, const QString& theText = "");
 
   //! Returns workbench (menu group) by the given name.
-  XGUI_Workbench* findWorkbench(const QString& theId);
+  XGUI_Workbench* findWorkbench(const QString& theId)  const;
 
   //! Returns General page (predefined workbench)
   XGUI_Workbench* generalPage() const { return myGeneralPage; }
@@ -47,6 +47,8 @@ public:
   //! Returns list of created commands
   QList<XGUI_Command*> features() const;
 
+  QList<XGUI_Workbench*> workbenches() const;
+
   virtual bool eventFilter(QObject *theWatched, QEvent *theEvent);
 
 private: