]> Creatis software - clitk.git/blobdiff - vv/vvToolCreatorBase.h
Add interactions with window/level bars in the histogram tool
[clitk.git] / vv / vvToolCreatorBase.h
index 025588864055c566c2b4ba2e7ce61c727a798077..b2c942fa5a65db646fb280f5636aea0568183f60 100644 (file)
@@ -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
 
   - 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 <QObject>
+
+// 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<vvToolBaseBase*> & GetListOfTool() { return mListOfTool; }
 
   QString mToolName;
   QString mToolMenuName;
@@ -47,6 +55,9 @@ class vvToolCreatorBase: public QObject {
   bool mUseContextMenu;
   QMenu * mToolMenu;
   std::vector<QAction*> mListOfActions;
+  std::auto_ptr<QXmlStreamReader> m_XmlReader;
+  bool mReadStateFlag;
+  int mImageIndex;
 
 public slots:
   virtual void MenuToolSlot();
@@ -55,6 +66,7 @@ protected:
   vvMainWindowBase * mMainWindow;
   std::vector<vvToolBaseBase*> mListOfTool;
   QObject * mSender;
+  std::string m_MenuName;
 };
 //------------------------------------------------------------------------------