26 #ifndef __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERBAR_H
27 #define __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERBAR_H
30 #include "../../../common/progress/AbstractProgressViewer.h"
31 #include "../../../common/progress/TaskProgress.h"
32 #include "../Config.h"
35 #include <QtGui/QGridLayout>
36 #include <QtGui/QProgressBar>
37 #include <QtGui/QPushButton>
101 void removeTask(
int taskId);
108 void cancelTask(
int taskId);
115 void setTotalValues(
int taskId);
122 void updateValue(
int taskId);
129 void updateMessage(
int taskId);
131 void setButtonText(
const std::string& value);
140 virtual void customEvent(QEvent* e);
145 virtual void onReleased();
157 std::map<int, te::common::TaskProgress*>
m_tasks;
166 #endif //__TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERBAR_H
A class that defines the interface of a qt bar progress viewer.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
QGridLayout * m_layout
GUI Objects used to build the custom widget.
A class that defines the interface of an abstract progress viewer.
QProgressBar * m_progressBar
GUI Objects used to build the custom widget.
QPushButton * m_button
GUI Objects used to build the custom widget.
int m_totalSteps
Attribute used to define the total steps of all tasks.
std::map< int, te::common::TaskProgress * > m_tasks
Task container.
int m_propStep
Attribute used to define the proportional step (0-100).
This class can be used to inform the progress of a task.
int m_currentStep
Attribute used to define the current steps of all task.