]> Creatis software - clitk.git/commitdiff
future possibility to choose the tool menu
authordsarrut <dsarrut>
Thu, 22 Jul 2010 05:53:35 +0000 (05:53 +0000)
committerdsarrut <dsarrut>
Thu, 22 Jul 2010 05:53:35 +0000 (05:53 +0000)
vv/vvToolBase.h

index 4e825f9077fed2c4d6d37cbbaf57ec9e360d3347..2abd2a652d699d61adf0593f0d10e493db1d11dd 100644 (file)
@@ -34,6 +34,7 @@ public:
   static void SetToolIconFilename(QString n) { vvToolCreator<ToolType>::GetInstance()->mToolIconFilename = n; }
   static void SetToolTip(QString n) { vvToolCreator<ToolType>::GetInstance()->mToolTip = n; }
   static void SetToolExperimental(bool exp) { vvToolCreator<ToolType>::GetInstance()->mExperimental = exp; }
+  static void SetToolInMenu(std::string menu) { vvToolCreator<ToolType>::GetInstance()->SetMenuName(menu); }
 
   static QIcon GetToolIcon() { return QIcon(vvToolCreator<ToolType>::GetInstance()->mToolIconFilename); }
   static QString & GetToolName() { return vvToolCreator<ToolType>::GetInstance()->mToolName; }