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 ======================================================================-====*/
18 #ifndef VVTOOLSIMPLEINPUTSELECTORWIDGET_H
19 #define VVTOOLSIMPLEINPUTSELECTORWIDGET_H
20 #include <QtDesigner/QDesignerExportWidget>
22 #include "ui_vvToolSimpleInputSelectorWidget.h"
24 class vvSlicerManager;
26 //------------------------------------------------------------------------------
27 class vvToolSimpleInputSelectorWidget: public QWidget, private Ui::vvToolSimpleInputSelectorWidget
31 vvToolSimpleInputSelectorWidget(QWidget * parent=0, Qt::WindowFlags f=0);
32 ~vvToolSimpleInputSelectorWidget() {}
34 void SetInputList(const std::vector<vvSlicerManager*> & l, int index);
36 int GetSelectedInputIndex() { return mCurrentIndex; }
37 vvSlicerManager * GetSelectedInput();
38 void SetText(QString & s);
39 void EnableAllowSkip(bool b);
44 void setEnabled(bool b);
45 void skip(QAbstractButton*);
53 void changeInput(int i);
56 Ui::vvToolSimpleInputSelectorWidget ui;
57 std::vector<vvSlicerManager*> mSlicerManagerList;
59 vvSlicerManager * mCurrentSliceManager;
62 }; // end class vvToolSimpleInputSelectorWidget
63 //------------------------------------------------------------------------------