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 ===========================================================================**/
18 #ifndef VVTOOLINPUTSELECTORWIDGET_H
19 #define VVTOOLINPUTSELECTORWIDGET_H
23 #if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
24 #include <QtDesigner/QDesignerExportWidget>
26 #include <QtUiPlugin/QDesignerExportWidget>
31 #include "ui_vvToolInputSelectorWidget.h"
33 class vvSlicerManager;
34 class vvToolSimpleInputSelectorWidget;
36 //------------------------------------------------------------------------------
37 class vvToolInputSelectorWidget: public QWidget, private Ui::vvToolInputSelectorWidget
41 vvToolInputSelectorWidget(QWidget * parent=0, Qt::WindowFlags f=0);
42 ~vvToolInputSelectorWidget() {}
44 void AddInputSelector(QString & s, const std::vector<vvSlicerManager*> & l, int index, bool allowSkip=false);
46 std::vector<vvSlicerManager*> & GetSelectedInputs();
47 void AnImageIsBeingClosed(vvSlicerManager * m);
48 int GetNumberOfInput();
51 void accept(); // to change ! in something like acceptOneMoreInput
60 void AddInputSelector(vvToolSimpleInputSelectorWidget * input,
61 std::vector<vvSlicerManager*> l, int index);
62 Ui::vvToolInputSelectorWidget ui;
63 std::vector<vvSlicerManager*> mSlicerManagerList;
65 vvSlicerManager * mCurrentSliceManager;
66 int mNumberOfAcceptedInputs;
67 std::vector<vvToolSimpleInputSelectorWidget *> mListOfSimpleInputWidget;
68 std::vector<bool> mSkipInput;
69 }; // end class vvToolInputSelectorWidget
70 //------------------------------------------------------------------------------