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://oncora1.lyon.fnclcc.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
21 #include "clitkCommon.h"
23 #include <qmainwindow.h>
25 class vvSlicerManager;
28 //------------------------------------------------------------------------------
29 class vvMainWindowBase : public QMainWindow
34 vvMainWindowBase() { mSlicerManagerCurrentIndex = -1; }
35 ~vvMainWindowBase() { }
37 virtual void AddImage(vvImage::Pointer image,std::string filename) = 0;
38 virtual void UpdateCurrentSlicer() = 0;
39 const std::vector<vvSlicerManager*> & GetSlicerManagers() const { return mSlicerManagers; }
40 QMenu * GetToolMenu() const { return mMenuTools; }
41 QMenu * GetContextMenu() const { return mContextMenu; }
42 QMenu * GetExperimentalToolMenu() const { return mMenuExperimentalTools; }
43 int GetSlicerManagerCurrentIndex() const { return mSlicerManagerCurrentIndex; }
44 QWidget * GetMainWidget() { return mMainWidget; }
47 void AnImageIsBeingClosed(vvSlicerManager *);
50 std::vector<vvSlicerManager*> mSlicerManagers;
53 QMenu * mMenuExperimentalTools;
54 int mSlicerManagerCurrentIndex;
57 //------------------------------------------------------------------------------