Custom widget used to represent a single task. More...
#include <ProgressWidgetItem.h>
Public Slots | |
virtual void | cancel () |
Get the button clicked and cancel ALL tasks. More... | |
Signals | |
void | taskCanceled (int id) |
Inform that a task was canceled. More... | |
Public Member Functions | |
ProgressWidgetItem (QWidget *parent, int taskId, int totalSteps) | |
Default constructor. More... | |
virtual void | reset () |
Reset the progress bar. More... | |
virtual void | setLabel (const std::string &message) |
Set the progress label information. More... | |
virtual void | setValue (int step) |
Set the current value in progress bar. More... | |
~ProgressWidgetItem () | |
Virtual destructor. More... | |
Protected Member Functions | |
virtual void | customEvent (QEvent *e) |
Used to receive custom progress events. More... | |
Protected Attributes | |
QCommandLinkButton * | m_button |
GUI Objects used to build the custom widget. More... | |
QFrame * | m_frame |
GUI Objects used to build the custom widget. 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... | |
QProgressBar * | m_progressBar |
GUI Objects used to build the custom widget. More... | |
int | m_taskId |
Task Identifier. More... | |
Custom widget used to represent a single task.
Definition at line 56 of file ProgressWidgetItem.h.
te::qt::widgets::ProgressWidgetItem::ProgressWidgetItem | ( | QWidget * | parent, |
int | taskId, | ||
int | totalSteps | ||
) |
Default constructor.
Definition at line 37 of file ProgressWidgetItem.cpp.
References cancel(), m_button, m_frame, m_frameGridLayout, m_label, m_mainGridLayout, and m_progressBar.
te::qt::widgets::ProgressWidgetItem::~ProgressWidgetItem | ( | ) |
Virtual destructor.
Definition at line 79 of file ProgressWidgetItem.cpp.
|
virtualslot |
Get the button clicked and cancel ALL tasks.
Definition at line 102 of file ProgressWidgetItem.cpp.
Referenced by ProgressWidgetItem().
|
protectedvirtual |
Used to receive custom progress events.
e | Event sent to this object. |
Definition at line 107 of file ProgressWidgetItem.cpp.
References te::qt::widgets::ProgressResetEvent::type(), te::qt::widgets::ProgressSetValueEvent::type(), and te::qt::widgets::ProgressSetMessageEvent::type().
|
virtual |
Reset the progress bar.
Definition at line 95 of file ProgressWidgetItem.cpp.
|
virtual |
Set the progress label information.
message | String with the label information. |
Definition at line 90 of file ProgressWidgetItem.cpp.
Referenced by te::qt::widgets::ProgressViewerWidget::customEvent().
|
virtual |
Set the current value in progress bar.
step | Step value as integer. |
Definition at line 83 of file ProgressWidgetItem.cpp.
|
signal |
Inform that a task was canceled.
id | taskId. |
|
protected |
GUI Objects used to build the custom widget.
Definition at line 113 of file ProgressWidgetItem.h.
Referenced by ProgressWidgetItem().
|
protected |
GUI Objects used to build the custom widget.
Definition at line 114 of file ProgressWidgetItem.h.
Referenced by ProgressWidgetItem().
|
protected |
GUI Objects used to build the custom widget.
Definition at line 116 of file ProgressWidgetItem.h.
Referenced by ProgressWidgetItem().
|
protected |
GUI Objects used to build the custom widget.
Definition at line 111 of file ProgressWidgetItem.h.
Referenced by ProgressWidgetItem().
|
protected |
GUI Objects used to build the custom widget.
Definition at line 115 of file ProgressWidgetItem.h.
Referenced by ProgressWidgetItem().
|
protected |
GUI Objects used to build the custom widget.
Definition at line 112 of file ProgressWidgetItem.h.
Referenced by ProgressWidgetItem().
|
protected |
Task Identifier.
Definition at line 110 of file ProgressWidgetItem.h.