1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
19 #ifndef VVMAINWINDOWBASE_H
20 #define VVMAINWINDOWBASE_H
22 #include "clitkCommon.h"
24 #include <qmainwindow.h>
26 class vvSlicerManager;
29 //------------------------------------------------------------------------------
30 class vvMainWindowBase : public QMainWindow
35 vvMainWindowBase() { mSlicerManagerCurrentIndex = -1; }
36 ~vvMainWindowBase() { }
38 virtual vvSlicerManager * AddImage(vvImage::Pointer image,std::string filename) = 0;
39 virtual void UpdateCurrentSlicer() = 0;
40 virtual QTabWidget * GetTab() = 0;
41 const std::vector<vvSlicerManager*> & GetSlicerManagers() const { return mSlicerManagers; }
42 QMenu * GetToolMenu() const { return mMenuTools; }
43 QMenu * GetMenu(std::string menuName) const;// { return mMenuTools; }
44 QMenu * GetContextMenu() const { return mContextMenu; }
45 QMenu * GetExperimentalToolMenu() const { return mMenuExperimentalTools; }
46 int GetSlicerManagerCurrentIndex() const { return mSlicerManagerCurrentIndex; }
47 QWidget * GetMainWidget() { return mMainWidget; }
48 const QString & GetInputPathName() { return mInputPathName; }
51 void AnImageIsBeingClosed(vvSlicerManager *);
52 void SelectedImageHasChanged(vvSlicerManager *);
55 std::vector<vvSlicerManager*> mSlicerManagers;
57 QMenu * mMenuSegmentation;
59 QMenu * mMenuExperimentalTools;
60 int mSlicerManagerCurrentIndex;
62 QString mInputPathName;
65 //------------------------------------------------------------------------------