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 VVTOOLSIMPLEINPUTSELECTORWIDGET_H
19 #define VVTOOLSIMPLEINPUTSELECTORWIDGET_H
22 #include <QtDesigner/QDesignerExportWidget>
24 #include "ui_vvToolSimpleInputSelectorWidget.h"
26 class vvSlicerManager;
28 //------------------------------------------------------------------------------
29 class vvToolSimpleInputSelectorWidget: public QWidget, private Ui::vvToolSimpleInputSelectorWidget
33 vvToolSimpleInputSelectorWidget(QWidget * parent=0, Qt::WindowFlags f=0);
34 ~vvToolSimpleInputSelectorWidget() {}
36 void SetInputList(const std::vector<vvSlicerManager*> & l, int index);
38 int GetSelectedInputIndex() { return mCurrentIndex; }
39 vvSlicerManager * GetSelectedInput();
40 void SetText(QString & s);
41 void EnableAllowSkip(bool b);
46 void setEnabled(bool b);
47 void skip(QAbstractButton*);
55 void changeInput(int i);
58 Ui::vvToolSimpleInputSelectorWidget ui;
59 std::vector<vvSlicerManager*> mSlicerManagerList;
61 vvSlicerManager * mCurrentSliceManager;
64 }; // end class vvToolSimpleInputSelectorWidget
65 //------------------------------------------------------------------------------