A progress viewer for a unique task. More...
#include <ProgressViewerTaskWidget.h>
Public Slots | |
| virtual void | cancel () |
| Get the button clicked and cancel ALL tasks. More... | |
Public Member Functions | |
| void | addTask (te::common::TaskProgress *t, int id) |
| Insert a new taks to progress viewer container. More... | |
| void | cancelTask (int taskId) |
| Cancel a task. More... | |
| ProgressViewerTaskWidget (QWidget *parent, bool hideToolBar, std::string message="") | |
| Default constructor. More... | |
| void | removeTask (int taskId) |
| Removes a task from progress viewer container. More... | |
| void | setMessage (const std::string &message) |
| void | setTask (te::common::TaskProgress *task) |
| void | setTotalValues (int taskId) |
| Set task total steps. More... | |
| void | updateMessage (int taskId) |
| Update the progress message. More... | |
| void | updateValue (int taskId) |
| Update the progress evaluation. More... | |
| virtual | ~ProgressViewerTaskWidget () |
| Virtual destructor. More... | |
Protected Member Functions | |
| virtual void | customEvent (QEvent *e) |
| Used to receive custom progress events. More... | |
Protected Attributes | |
| QToolButton * | m_button |
| GUI Objects used to build the custom widget. More... | |
| int | m_currentStep |
| Attribute used to define the current steps of all task. More... | |
| QGridLayout * | m_frameGridLayout |
| GUI Objects used to build the custom widget. More... | |
| QLabel * | m_label |
| GUI Objects used to build the custom widget. More... | |
| QGridLayout * | m_mainGridLayout |
| GUI Objects used to build the custom widget. More... | |
| std::string | m_message |
| Attribute used to define dialog message. More... | |
| QProgressBar * | m_progressBar |
| GUI Objects used to build the custom widget. More... | |
| int | m_propStep |
| Attribute used to define the proportional step (0-100). More... | |
| te::common::TaskProgress * | m_task |
| Task object. More... | |
| int | m_taskId |
| Task Identifier. More... | |
| int | m_totalSteps |
| Attribute used to define the total steps of all tasks. More... | |
| int | m_viewerId |
A progress viewer for a unique task.
Definition at line 58 of file ProgressViewerTaskWidget.h.
| te::qt::widgets::ProgressViewerTaskWidget::ProgressViewerTaskWidget | ( | QWidget * | parent, |
| bool | hideToolBar, | ||
| std::string | message = "" |
||
| ) |
Default constructor.
|
virtual |
Virtual destructor.
|
virtual |
Insert a new taks to progress viewer container.
| t | Task pointer. |
| id | Task identifier. |
Implements te::common::AbstractProgressViewer.
|
virtualslot |
Get the button clicked and cancel ALL tasks.
|
virtual |
|
protectedvirtual |
Used to receive custom progress events.
| e | Event sent to this object. |
|
virtual |
Removes a task from progress viewer container.
| taskId | Task identifier. |
Implements te::common::AbstractProgressViewer.
| void te::qt::widgets::ProgressViewerTaskWidget::setMessage | ( | const std::string & | message | ) |
| void te::qt::widgets::ProgressViewerTaskWidget::setTask | ( | te::common::TaskProgress * | task | ) |
|
virtual |
Set task total steps.
| taskId | Task identifier. |
Implements te::common::AbstractProgressViewer.
|
virtual |
Update the progress message.
| taskId | Task identifier. |
Implements te::common::AbstractProgressViewer.
|
virtual |
Update the progress evaluation.
| taskId | Task identifier. |
Implements te::common::AbstractProgressViewer.
|
protected |
GUI Objects used to build the custom widget.
Definition at line 140 of file ProgressViewerTaskWidget.h.
|
protected |
Attribute used to define the current steps of all task.
Definition at line 135 of file ProgressViewerTaskWidget.h.
|
protected |
GUI Objects used to build the custom widget.
Definition at line 142 of file ProgressViewerTaskWidget.h.
|
protected |
GUI Objects used to build the custom widget.
Definition at line 143 of file ProgressViewerTaskWidget.h.
|
protected |
GUI Objects used to build the custom widget.
Definition at line 141 of file ProgressViewerTaskWidget.h.
|
protected |
Attribute used to define dialog message.
Definition at line 137 of file ProgressViewerTaskWidget.h.
|
protected |
GUI Objects used to build the custom widget.
Definition at line 139 of file ProgressViewerTaskWidget.h.
|
protected |
Attribute used to define the proportional step (0-100).
Definition at line 136 of file ProgressViewerTaskWidget.h.
|
protected |
Task object.
Definition at line 138 of file ProgressViewerTaskWidget.h.
|
protected |
Task Identifier.
Definition at line 133 of file ProgressViewerTaskWidget.h.
|
protected |
Attribute used to define the total steps of all tasks.
Definition at line 134 of file ProgressViewerTaskWidget.h.
|
protectedinherited |
Definition at line 105 of file AbstractProgressViewer.h.