]> Creatis software - clitk.git/blob - vv/vvQProgressDialogITKCommand.h
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvQProgressDialogITKCommand.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 #ifndef VVQPROGRESSDIALOGITKCOMMAND_H
19 #define VVQPROGRESSDIALOGITKCOMMAND_H
20 #include "itkCommand.h"
21
22 // qt include
23 #include <QProgressDialog>
24
25 #include "clitkCommon.h"
26
27 class vvQProgressDialogITKCommand : public itk::Command {
28
29 public:
30     typedef vvQProgressDialogITKCommand    Self;
31     typedef itk::Command                   Superclass;
32     typedef itk::SmartPointer<Self>        Pointer;
33
34     itkNewMacro(Self);
35
36     void Initialize(QString title, float sec, int max);
37
38     void Execute(itk::Object *caller, const itk::EventObject & event) ITK_OVERRIDE;
39     void Execute(const itk::Object *caller, const itk::EventObject & event) ITK_OVERRIDE;
40
41 protected:
42     vvQProgressDialogITKCommand();
43     QProgressDialog progress;
44     int i;
45
46 }; // end class vvQProgressDialogITKCommand
47
48 #endif /* end #define VVQPROGRESSDIALOGITKCOMMAND_H */
49