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
20 #if QT_VERSION < 0x050000
21 #include <QtDesigner/QDesignerExportWidget>
23 #include <QtUiPlugin/QDesignerExportWidget>
26 #include "ui_vvToolSimpleInputSelectorWidget.h"
28 class vvSlicerManager;
30 //------------------------------------------------------------------------------
31 class vvToolSimpleInputSelectorWidget: public QWidget, private Ui::vvToolSimpleInputSelectorWidget
35 vvToolSimpleInputSelectorWidget(QWidget * parent=0, Qt::WindowFlags f=0);
36 ~vvToolSimpleInputSelectorWidget() {}
38 void SetInputList(const std::vector<vvSlicerManager*> & l, int index);
40 int GetSelectedInputIndex() { return mCurrentIndex; }
41 vvSlicerManager * GetSelectedInput();
42 void SetText(QString & s);
43 void EnableAllowSkip(bool b);
48 void setEnabled(bool b);
49 void skip(QAbstractButton*);
57 void changeInput(int i);
60 Ui::vvToolSimpleInputSelectorWidget ui;
61 std::vector<vvSlicerManager*> mSlicerManagerList;
63 vvSlicerManager * mCurrentSliceManager;
66 }; // end class vvToolSimpleInputSelectorWidget
67 //------------------------------------------------------------------------------