]> Creatis software - clitk.git/blobdiff - vv/vvToolCreatorBase.h
More vtkSmartPointer
[clitk.git] / vv / vvToolCreatorBase.h
index 025588864055c566c2b4ba2e7ce61c727a798077..28610f5d6c5f7a5c50693d87a78eaf6608f94f9b 100644 (file)
 ======================================================================-====*/
 #ifndef VVTOOLCREATORBASE_H
 #define VVTOOLCREATORBASE_H
+
+//qt
 #include <QObject>
+
+// vv
 #include "vvSlicerManager.h"
 #include "vvMainWindowBase.h"
 
@@ -37,6 +41,7 @@ class vvToolCreatorBase: public QObject {
   virtual void MenuSpecificToolSlot() = 0;
   vvMainWindowBase * GetMainWindow() const { return mMainWindow; }
   void addMenuToContextMenu(QMenu * m);
+  void SetMenuName(std::string m) { m_MenuName = m; }
 
   QString mToolName;
   QString mToolMenuName;
@@ -55,6 +60,7 @@ protected:
   vvMainWindowBase * mMainWindow;
   std::vector<vvToolBaseBase*> mListOfTool;
   QObject * mSender;
+  std::string m_MenuName;
 };
 //------------------------------------------------------------------------------