A progress dialog. More...
#include <ProgressViewerDialog.h>
  
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.  More... | |
| void | cancelTask (int taskId) | 
| Cancel a task.  More... | |
| ProgressViewerDialog (QWidget *parent, QString title="") | |
| Default constructor.  More... | |
| void | removeTask (int taskId) | 
| Removes a task from progress viewer container.  More... | |
| void | setTitle (QString title) | 
| Set title to dialog.  More... | |
| 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... | |
| ~ProgressViewerDialog () | |
| Virtual destructor.  More... | |
Protected Slots | |
| virtual void | cancel () | 
| virtual void | onResetProgress () | 
| virtual void | onSetProgressMessage (const std::string &message) | 
| virtual void | onSetProgressRange (int min, int max) | 
| virtual void | onSetProgressValue (int value) | 
Protected Attributes | |
| int | m_currentStep | 
| Attribute used to define the current steps of all task.  More... | |
| QProgressDialog * | m_dlgProgress | 
| GUI Objects used as progress bar dialog.  More... | |
| std::string | m_message | 
| Attribute used to define dialog message.  More... | |
| std::mutex | m_mutex | 
| int | m_propStep | 
| Attribute used to define the proportional step (0-100).  More... | |
| bool | m_reset | 
| std::map< int, te::common::TaskProgress * > | m_tasks | 
| Task container.  More... | |
| int | m_totalSteps | 
| Attribute used to define the total steps of all tasks.  More... | |
| int | m_viewerId | 
A progress dialog.
This widget is a dialog with progress information and a cancel button.
This viewer is made using Qt Progress Dialog. Feed back will be generated over a dialog window. Multiples tasks will be displayed using ONLY one progress.
The proportional value is calculated using TOTALSTEPS / CURRENTSTEPS, where:
The progress message is defined by the task message, if it has more than on task the message will be "MULTI TASKS".
Definition at line 73 of file ProgressViewerDialog.h.
| te::qt::widgets::ProgressViewerDialog::ProgressViewerDialog | ( | QWidget * | parent, | 
| QString | title = ""  | 
        ||
| ) | 
Default constructor.
| te::qt::widgets::ProgressViewerDialog::~ProgressViewerDialog | ( | ) | 
Virtual destructor.
      
  | 
  virtual | 
Insert a new taks to progress viewer container.
| t | Task pointer. | 
| id | Task identifier. | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  protectedvirtualslot | 
      
  | 
  virtual | 
Cancel a task.
| taskId | Task identifier. | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  protectedvirtualslot | 
      
  | 
  protectedvirtualslot | 
      
  | 
  protectedvirtualslot | 
      
  | 
  protectedvirtualslot | 
      
  | 
  virtual | 
Removes a task from progress viewer container.
| taskId | Task identifier. | 
Implements te::qt::widgets::AbstractQtProgressViewer.
      
  | 
  signalinherited | 
      
  | 
  signalinherited | 
      
  | 
  signalinherited | 
      
  | 
  signalinherited | 
| void te::qt::widgets::ProgressViewerDialog::setTitle | ( | QString | title | ) | 
Set title to dialog.
| title | A QString title. | 
      
  | 
  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 150 of file ProgressViewerDialog.h.
      
  | 
  protected | 
GUI Objects used as progress bar dialog.
Definition at line 154 of file ProgressViewerDialog.h.
      
  | 
  protected | 
Attribute used to define dialog message.
Definition at line 152 of file ProgressViewerDialog.h.
      
  | 
  protected | 
Definition at line 158 of file ProgressViewerDialog.h.
      
  | 
  protected | 
Attribute used to define the proportional step (0-100).
Definition at line 151 of file ProgressViewerDialog.h.
      
  | 
  protected | 
Definition at line 156 of file ProgressViewerDialog.h.
      
  | 
  protected | 
Task container.
Definition at line 153 of file ProgressViewerDialog.h.
      
  | 
  protected | 
Attribute used to define the total steps of all tasks.
Definition at line 149 of file ProgressViewerDialog.h.
      
  | 
  protectedinherited | 
Definition at line 105 of file AbstractProgressViewer.h.