26 #ifndef __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERBAR_H 27 #define __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERBAR_H 31 #include "../../../common/progress/TaskProgress.h" 32 #include "../Config.h" 35 #include <QGridLayout> 36 #include <QProgressBar> 37 #include <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);
133 virtual void onSetProgressMessage(
const std::string& message)
override;
135 virtual void onSetProgressRange(
int min,
int max)
override;
137 virtual void onSetProgressValue(
int value)
override;
139 virtual void onResetProgress()
override;
146 std::map<int, te::common::TaskProgress*>
m_tasks;
156 #endif //__TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERBAR_H
This class can be used to inform the progress of a task.
A class that defines the interface of an abstract qt progress viewer.