Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
otbWrapperQtWidgetSimpleProgressReport.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbWrapperQtWidgetSimpleProgressReport_h
19 #define __otbWrapperQtWidgetSimpleProgressReport_h
20 
21 #include <QtGui>
22 #include "otbWrapperApplication.h"
24 #include "itkProcessObject.h"
25 #include "itkQtProgressBar.h"
26 
27 #include "itkCommand.h"
28 
29 namespace otb
30 {
31 namespace Wrapper
32 {
33 
38 class ITK_ABI_EXPORT QtWidgetSimpleProgressReport : public QWidget
39 {
40  Q_OBJECT
41 public:
44 
45  void SetApplication(Application::Pointer app);
46 
48 
49  void ProcessEvent( itk::Object * caller, const itk::EventObject & event );
50 
51 public slots:
52  void Init();
53  void ReportProcess();
54 
55  signals:
56  void AddNewProcessToReport();
57 
58 private:
59  QtWidgetSimpleProgressReport(const QtWidgetSimpleProgressReport&); //purposely not implemented
60  void operator=(const QtWidgetSimpleProgressReport&); //purposely not
61  //implemented
62 
65  QVBoxLayout * m_Layout;
66 
69  std::string m_CurrentDescription;
70 
72  QLabel * m_Label;
73 
74 };
75 
76 }
77 }
78 
79 #endif
itk::MemberCommand< QtWidgetSimpleProgressReport > AddProcessCommandType