te::qt::widgets::ProgressWidgetItem Class Reference

Custom widget used to represent a single task. More...

#include <ProgressWidgetItem.h>

Inheritance diagram for te::qt::widgets::ProgressWidgetItem:

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...
 

Detailed Description

Custom widget used to represent a single task.

See also
ProgressViewerWidget

Definition at line 56 of file ProgressWidgetItem.h.

Constructor & Destructor Documentation

te::qt::widgets::ProgressWidgetItem::ProgressWidgetItem ( QWidget *  parent,
int  taskId,
int  totalSteps 
)

Default constructor.

te::qt::widgets::ProgressWidgetItem::~ProgressWidgetItem ( )

Virtual destructor.

Member Function Documentation

virtual void te::qt::widgets::ProgressWidgetItem::cancel ( )
virtualslot

Get the button clicked and cancel ALL tasks.

virtual void te::qt::widgets::ProgressWidgetItem::customEvent ( QEvent *  e)
protectedvirtual

Used to receive custom progress events.

Parameters
eEvent sent to this object.
virtual void te::qt::widgets::ProgressWidgetItem::reset ( )
virtual

Reset the progress bar.

virtual void te::qt::widgets::ProgressWidgetItem::setLabel ( const std::string &  message)
virtual

Set the progress label information.

Parameters
messageString with the label information.
virtual void te::qt::widgets::ProgressWidgetItem::setValue ( int  step)
virtual

Set the current value in progress bar.

Parameters
stepStep value as integer.
void te::qt::widgets::ProgressWidgetItem::taskCanceled ( int  id)
signal

Inform that a task was canceled.

Parameters
idtaskId.

Member Data Documentation

QCommandLinkButton* te::qt::widgets::ProgressWidgetItem::m_button
protected

GUI Objects used to build the custom widget.

Definition at line 113 of file ProgressWidgetItem.h.

QFrame* te::qt::widgets::ProgressWidgetItem::m_frame
protected

GUI Objects used to build the custom widget.

Definition at line 114 of file ProgressWidgetItem.h.

QGridLayout* te::qt::widgets::ProgressWidgetItem::m_frameGridLayout
protected

GUI Objects used to build the custom widget.

Definition at line 116 of file ProgressWidgetItem.h.

QLabel* te::qt::widgets::ProgressWidgetItem::m_label
protected

GUI Objects used to build the custom widget.

Definition at line 111 of file ProgressWidgetItem.h.

QGridLayout* te::qt::widgets::ProgressWidgetItem::m_mainGridLayout
protected

GUI Objects used to build the custom widget.

Definition at line 115 of file ProgressWidgetItem.h.

QProgressBar* te::qt::widgets::ProgressWidgetItem::m_progressBar
protected

GUI Objects used to build the custom widget.

Definition at line 112 of file ProgressWidgetItem.h.

int te::qt::widgets::ProgressWidgetItem::m_taskId
protected

Task Identifier.

Definition at line 110 of file ProgressWidgetItem.h.


The documentation for this class was generated from the following file: