OTB  5.0.0
Orfeo Toolbox
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 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829 //tag=QT4-boost-compatibility
24 #include "itkProcessObject.h"
25 #include "itkQtProgressBar.h"
26 #endif //tag=QT4-boost-compatibility
27 
28 
29 namespace otb
30 {
31 namespace Wrapper
32 {
33 
40 class ITK_ABI_EXPORT QtWidgetSimpleProgressReport : public QWidget
41 {
42  Q_OBJECT
43 public:
46 
47  void SetApplication(Application::Pointer app);
48 
50 
51  void ProcessEvent( itk::Object * caller, const itk::EventObject & event );
52 
53 public slots:
54  void Init();
55  void ReportProcess();
56 
57  signals:
58  void AddNewProcessToReport();
59 
60 private:
61  QtWidgetSimpleProgressReport(const QtWidgetSimpleProgressReport&); //purposely not implemented
62  void operator=(const QtWidgetSimpleProgressReport&); //purposely not
63  //implemented
64 
67  QVBoxLayout * m_Layout;
68 
71  std::string m_CurrentDescription;
72 
74  QLabel * m_Label;
75 
76 };
77 
78 }
79 }
80 
81 #endif
itk::MemberCommand< QtWidgetSimpleProgressReport > AddProcessCommandType
Create a widget reporting the progress of the application process.