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;
30 //------------------------------------------------------------------------------
31 class vvMainWindowBase : public QMainWindow
36 vvMainWindowBase() { mSlicerManagerCurrentIndex = -1; }
37 ~vvMainWindowBase() { }
39 virtual vvSlicerManager * AddImage(vvImage::Pointer image,std::string filename) = 0;
40 virtual void UpdateCurrentSlicer() = 0;
41 virtual QTabWidget * GetTab() = 0;
42 const std::vector<vvSlicerManager*> & GetSlicerManagers() const { return mSlicerManagers; }
43 QMenu * GetToolMenu() const { return mMenuTools; }
44 QMenu * GetMenu(std::string menuName) const;// { return mMenuTools; }
45 QMenu * GetContextMenu() const { return mContextMenu; }
46 QMenu * GetExperimentalToolMenu() const { return mMenuExperimentalTools; }
47 int GetSlicerManagerCurrentIndex() const { return mSlicerManagerCurrentIndex; }
48 QWidget * GetMainWidget() { return mMainWidget; }
49 const QString & GetInputPathName() { return mInputPathName; }
52 void AnImageIsBeingClosed(vvSlicerManager *);
53 void SelectedImageHasChanged(vvSlicerManager *);
56 std::vector<vvSlicerManager*> mSlicerManagers;
58 QMenu * mMenuSegmentation;
60 QMenu * mMenuExperimentalTools;
61 int mSlicerManagerCurrentIndex;
63 QString mInputPathName;
66 //------------------------------------------------------------------------------