1 #ifndef VVTOOLCREATORBASE_H
2 #define VVTOOLCREATORBASE_H
4 #include "vvSlicerManager.h"
5 #include "vvMainWindowBase.h"
10 //------------------------------------------------------------------------------
11 class vvToolCreatorBase: public QObject {
15 vvToolCreatorBase(QString name);
16 virtual ~vvToolCreatorBase() {;}
17 virtual void InsertToolInMenu(vvMainWindowBase * m);
18 template<class ToolType> void CreateTool();
19 virtual void MenuSpecificToolSlot() = 0;
20 vvMainWindowBase * GetMainWindow() const { return mMainWindow; }
23 QString mToolMenuName;
24 QString mToolIconFilename;
30 virtual void MenuToolSlot() { MenuSpecificToolSlot(); }
33 vvMainWindowBase * mMainWindow;
34 std::vector<vvToolBaseBase*> mListOfTool;
36 //------------------------------------------------------------------------------
38 #include "vvToolCreatorBase.txx"