X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolCreatorBase.h;h=b2c942fa5a65db646fb280f5636aea0568183f60;hb=ce4f422636ff94e4462cbd0f13f3c5dac66ce545;hp=025588864055c566c2b4ba2e7ce61c727a798077;hpb=4ea2c946973c570cbe540a27cf44d6acdf44867c;p=clitk.git diff --git a/vv/vvToolCreatorBase.h b/vv/vvToolCreatorBase.h index 0255888..b2c942f 100644 --- a/vv/vvToolCreatorBase.h +++ b/vv/vvToolCreatorBase.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,15 +14,20 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef VVTOOLCREATORBASE_H #define VVTOOLCREATORBASE_H + +//qt #include + +// vv #include "vvSlicerManager.h" #include "vvMainWindowBase.h" class QAction; class vvToolBaseBase; +class QXmlStreamReader; //------------------------------------------------------------------------------ class vvToolCreatorBase: public QObject { @@ -37,6 +42,9 @@ 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; } + + std::vector & GetListOfTool() { return mListOfTool; } QString mToolName; QString mToolMenuName; @@ -47,6 +55,9 @@ class vvToolCreatorBase: public QObject { bool mUseContextMenu; QMenu * mToolMenu; std::vector mListOfActions; + std::auto_ptr m_XmlReader; + bool mReadStateFlag; + int mImageIndex; public slots: virtual void MenuToolSlot(); @@ -55,6 +66,7 @@ protected: vvMainWindowBase * mMainWindow; std::vector mListOfTool; QObject * mSender; + std::string m_MenuName; }; //------------------------------------------------------------------------------