26 #ifndef __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERTASKWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERTASKWIDGET_H 31 #include "../../../common/progress/TaskProgress.h" 32 #include "../Config.h" 35 #include <QGridLayout> 37 #include <QProgressBar> 38 #include <QToolButton> 83 void removeTask(
int taskId);
90 void cancelTask(
int taskId);
97 void setTotalValues(
int taskId);
104 void updateValue(
int taskId);
111 void updateMessage(
int taskId);
115 void setMessage(
const std::string& message);
119 virtual void onSetProgressMessage(
const std::string& message);
121 virtual void onSetProgressRange(
int min,
int max);
123 virtual void onSetProgressValue(
int value);
125 virtual void onResetProgress();
128 virtual void cancel();
133 void taskCancelled();
153 #endif //__TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERTASKWIDGET_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.