Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / XGUI / XGUI_MainMenu.h
index c281422a6ba8f1c9bf51c646ef2a5391cca553e6..48d97459135f78be9f26e3f2b6a6d7450e10f833 100644 (file)
@@ -4,6 +4,7 @@
 #include "XGUI.h"
 #include <QObject>
 #include <QList>
+#include <QMap>
 
 class XGUI_Command;
 class XGUI_MainWindow;
@@ -16,6 +17,7 @@ class QAction;
 class QDockWidget;
 class QEvent;
 
+
 /**\class XGUI_MainMenu
  * \ingroup GUI
  * \brief Class for creation of main menu (set of workbenches)
@@ -45,13 +47,14 @@ public:
   //! Returns list of created commands
   QList<XGUI_Command*> features() const;
 
-protected:
   virtual bool eventFilter(QObject *theWatched, QEvent *theEvent);
 
 private:
   XGUI_MainWindow* myDesktop;
   QList<QDockWidget*> myMenuTabs;
   XGUI_Workbench* myGeneralPage;
+
+  QMap<XGUI_Command*, bool> myCommandState;
 };
 
 #endif