A class that defines the interface of a qt bar progress viewer. More...
#include <ProgressViewerBar.h>
  
Public Slots | |
| virtual void | onResetProgress () override | 
| virtual void | onSetProgressMessage (const std::string &message) override | 
| virtual void | onSetProgressRange (int min, int max) override | 
| virtual void | onSetProgressValue (int value) override | 
Signals | |
| void | resetProgress () | 
| void | setProgressMessage (const std::string &message) | 
| void | setProgressRange (int min, int max) | 
| void | setProgressValue (int value) | 
Public Member Functions | |
| void | addTask (te::common::TaskProgress *t, int id) | 
| Insert a new taks to progress viewer container.   | |
| void | cancelTask (int taskId) | 
| Cancel a task.   | |
| ProgressViewerBar (QWidget *parent) | |
| Default constructor.   | |
| void | removeTask (int taskId) | 
| Removes a task from progress viewer container.   | |
| void | setTotalValues (int taskId) | 
| Set task total steps.   | |
| void | updateMessage (int taskId) | 
| Update the progress message.   | |
| void | updateValue (int taskId) | 
| Update the progress evaluation.   | |
| ~ProgressViewerBar () | |
| Virtual destructor.   | |
Protected Attributes | |
| int | m_currentStep | 
| Attribute used to define the current steps of all task.   | |
| QGridLayout * | m_layout | 
| GUI Objects used to build the custom widget.   | |
| QProgressBar * | m_progressBar | 
| GUI Objects used to build the custom widget.   | |
| int | m_propStep | 
| Attribute used to define the proportional step (0-100).   | |
| bool | m_reset | 
| std::map< int, te::common::TaskProgress * > | m_tasks | 
| Task container.   | |
| int | m_totalSteps | 
| Attribute used to define the total steps of all tasks.   | |
| int | m_viewerId | 
A class that defines the interface of a qt bar progress viewer.
It can be use inside a status bar.
This viewer is made using QtProgressBar object. Feed back will be generated over a custom widget. Multiples tasks will be displayed using ONLY one progress.
The proportional value is calculated using TOTALSTEPS / CURRENTSTEPS.
TOTALSTEPS - Sum of all total steps of all tasks CURRENTSTEPS - Sum of all current steps of all tasks
This viwer does NOT have message information. A Qt Button objected has located at the right side of the bar. The button clicked can be accessed getting clicked() signal.
Definition at line 76 of file ProgressViewerBar.h.
| te::qt::widgets::ProgressViewerBar::ProgressViewerBar | ( | QWidget * | parent | ) | 
Default constructor.
| te::qt::widgets::ProgressViewerBar::~ProgressViewerBar | ( | ) | 
Virtual destructor.
      
  | 
  virtual | 
Insert a new taks to progress viewer container.
| t | Task pointer | 
| id | Task identifier | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  virtual | 
Cancel a task.
| taskId | Task identifier | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  overridevirtualslot | 
      
  | 
  overridevirtualslot | 
      
  | 
  overridevirtualslot | 
      
  | 
  overridevirtualslot | 
      
  | 
  virtual | 
Removes a task from progress viewer container.
| taskId | Task identifier | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  signalinherited | 
      
  | 
  signalinherited | 
      
  | 
  signalinherited | 
      
  | 
  signalinherited | 
      
  | 
  virtual | 
Set task total steps.
| taskId | Task identifier | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  virtual | 
Update the progress message.
| taskId | Task identifier | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  virtual | 
Update the progress evaluation.
| taskId | Task identifier | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  protected | 
Attribute used to define the current steps of all task.
Definition at line 144 of file ProgressViewerBar.h.
      
  | 
  protected | 
GUI Objects used to build the custom widget.
Definition at line 147 of file ProgressViewerBar.h.
      
  | 
  protected | 
GUI Objects used to build the custom widget.
Definition at line 148 of file ProgressViewerBar.h.
      
  | 
  protected | 
Attribute used to define the proportional step (0-100).
Definition at line 145 of file ProgressViewerBar.h.
      
  | 
  protected | 
Definition at line 150 of file ProgressViewerBar.h.
      
  | 
  protected | 
Task container.
Definition at line 146 of file ProgressViewerBar.h.
      
  | 
  protected | 
Attribute used to define the total steps of all tasks.
Definition at line 143 of file ProgressViewerBar.h.
      
  | 
  protectedinherited | 
Definition at line 105 of file AbstractProgressViewer.h.