26 #ifndef __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERWIDGET_H 27 #define __TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERWIDGET_H 30 #include "../../../common/progress/AbstractProgressViewer.h" 31 #include "../../../common/progress/TaskProgress.h" 32 #include "../Config.h" 36 #include <QGridLayout> 37 #include <QScrollArea> 50 class ProgressWidgetItem;
94 virtual void removeTask(
int taskId);
101 virtual void cancelTask(
int taskId);
108 virtual void setTotalValues(
int taskId);
115 virtual void updateValue(
int taskId);
122 virtual void updateMessage(
int taskId);
126 virtual void onSetProgressMessage(
const std::string& message);
128 virtual void onSetProgressRange(
int min,
int max);
130 virtual void onSetProgressValue(
int value);
132 virtual void onResetProgress();
134 void onAddProgressItem(
int taskId,
int totalSteps, QString Label);
136 void onRemoveProgressItem(
int taskId);
149 void setProgressMessage(
const std::string& message);
151 void setProgressRange(
int min,
int max);
153 void setProgressValue(
int value);
155 void resetProgress();
157 void addProgressItem(
int taskId,
int totalSteps, QString Label);
159 void removeProgressItem(
int taskId);
163 std::map<int, te::common::TaskProgress*>
m_tasks;
174 #endif //__TERRALIB_QT_WIDGETS_PROGRESS_INTERNAL_PROGRESSVIEWERWIDGET_H
This class can be used to inform the progress of a task.
A class that defines the interface of an abstract progress viewer.