]> Creatis software - clitk.git/blob - vv/vvLabelImageLoaderWidget.h
Ensure the compilation with Qt4 and Qt5
[clitk.git] / vv / vvLabelImageLoaderWidget.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
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
8
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.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18
19 #ifndef VVLABELIMAGELOADERWIDGET_H
20 #define VVLABELIMAGELOADERWIDGET_H
21
22 // vv
23 #include "vvImage.h"
24
25 // qt
26 #if QT_VERSION < 0x050000
27 #include <QtDesigner/QDesignerExportWidget>
28 #else
29 #include <QtUiPlugin/QDesignerExportWidget>
30 #endif
31 #include <QDialog>
32 #include "ui_vvLabelImageLoaderWidget.h"
33
34 class vvSlicerManager;
35
36 //------------------------------------------------------------------------------
37 class vvLabelImageLoaderWidget: public QWidget, private Ui::vvLabelImageLoaderWidget 
38 {
39   Q_OBJECT
40     public:
41   vvLabelImageLoaderWidget(QWidget * parent=0, Qt::WindowFlags f=0);
42   ~vvLabelImageLoaderWidget() {}
43
44   vvImage::Pointer GetImage();
45   double GetBackgroundValue();
46   void SetText(QString t);
47   
48 signals:
49   void accepted();
50   
51 protected:
52   Ui::vvLabelImageLoaderWidget ui;
53   vvImage::Pointer m_Output;
54
55  protected slots:  
56   void OpenImage();
57
58 }; // end class vvLabelImageLoaderWidget
59 //------------------------------------------------------------------------------
60
61 #endif
62