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 #if QT_VERSION >= 0x050000
23 #include <QtUiPlugin/QDesignerExportWidget>
25 #include <QtDesigner/QDesignerExportWidget>
28 #include "ui_vvToolSimpleInputSelectorWidget.h"
30 class vvSlicerManager;
32 //------------------------------------------------------------------------------
33 class vvToolSimpleInputSelectorWidget: public QWidget, private Ui::vvToolSimpleInputSelectorWidget
37 vvToolSimpleInputSelectorWidget(QWidget * parent=0, Qt::WindowFlags f=0);
38 ~vvToolSimpleInputSelectorWidget() {}
40 void SetInputList(const std::vector<vvSlicerManager*> & l, int index);
42 int GetSelectedInputIndex() { return mCurrentIndex; }
43 vvSlicerManager * GetSelectedInput();
44 void SetText(QString & s);
45 void EnableAllowSkip(bool b);
50 void setEnabled(bool b);
51 void skip(QAbstractButton*);
59 void changeInput(int i);
62 Ui::vvToolSimpleInputSelectorWidget ui;
63 std::vector<vvSlicerManager*> mSlicerManagerList;
65 vvSlicerManager * mCurrentSliceManager;
68 }; // end class vvToolSimpleInputSelectorWidget
69 //------------------------------------------------------------------------------