A class that defines the interface of a qt widget to group a set of ProgressWidgetItem. More...
#include <ProgressViewerWidget.h>
  
 Public Slots | |
| void | cancel (int id) | 
| This slot is connect to all cancel buttons of each progress items.  More... | |
Public Member Functions | |
| virtual void | addTask (te::common::TaskProgress *t, int id) | 
| Insert a new taks to progress viewer container.  More... | |
| virtual void | cancelTask (int taskId) | 
| Cancel a task.  More... | |
| ProgressViewerWidget (QWidget *parent) | |
| Default constructor.  More... | |
| virtual void | removeTask (int taskId) | 
| Removes a task from progress viewer container.  More... | |
| virtual void | setTotalValues (int taskId) | 
| Set task total steps.  More... | |
| virtual void | updateMessage (int taskId) | 
| Update the progress message.  More... | |
| virtual void | updateValue (int taskId) | 
| Update the progress evaluation.  More... | |
| virtual | ~ProgressViewerWidget () | 
| Virtual destructor.  More... | |
Protected Member Functions | |
| void | customEvent (QEvent *e) | 
| Used to receive custom progress events.  More... | |
Protected Attributes | |
| std::map< int,  ProgressWidgetItem * >  | m_items | 
| Custom widget progress item container.  More... | |
| QGridLayout * | m_MainLayout | 
| GUI Objects used to build the custom widget.  More... | |
| QScrollArea * | m_scroll | 
| GUI Objects used to build the custom widget.  More... | |
| std::map< int,  te::common::TaskProgress * >  | m_tasks | 
| Task container.  More... | |
| QWidget * | m_widget | 
| GUI Objects used to build the custom widget.  More... | |
| QGridLayout * | m_widgetLayout | 
| GUI Objects used to build the custom widget.  More... | |
A class that defines the interface of a qt widget to group a set of ProgressWidgetItem.
This viewer is made using ProgressWidgetItem. Feed back will be generated over a custom widget. Multiples tasks will be displayed using individual progress widgets
The proportional value is informed by each task.
Definition at line 69 of file ProgressViewerWidget.h.
| te::qt::widgets::ProgressViewerWidget::ProgressViewerWidget | ( | QWidget * | parent | ) | 
Default constructor.
Definition at line 38 of file ProgressViewerWidget.cpp.
References te::at::Light, m_MainLayout, m_scroll, m_widget, and m_widgetLayout.
      
  | 
  virtual | 
Virtual destructor.
Definition at line 60 of file ProgressViewerWidget.cpp.
      
  | 
  virtual | 
Insert a new taks to progress viewer container.
| t | Task pointer. | 
| id | Task identifier. | 
Implements te::common::AbstractProgressViewer.
Definition at line 64 of file ProgressViewerWidget.cpp.
References te::common::TaskProgress::getMessage(), and te::common::TaskProgress::getTotalSteps().
      
  | 
  slot | 
This slot is connect to all cancel buttons of each progress items.
| id | value used to inform what task was canceled. | 
Definition at line 157 of file ProgressViewerWidget.cpp.
      
  | 
  virtual | 
Cancel a task.
| taskId | Task identifier. | 
Implements te::common::AbstractProgressViewer.
Definition at line 84 of file ProgressViewerWidget.cpp.
      
  | 
  protected | 
Used to receive custom progress events.
| e | Event sent to this object. | 
Definition at line 123 of file ProgressViewerWidget.cpp.
References te::qt::widgets::CreateProgressWidgetItemEvent::m_label, te::qt::widgets::RemoveProgressWidgetItemEvent::m_taskId, te::qt::widgets::CreateProgressWidgetItemEvent::m_taskId, te::qt::widgets::CreateProgressWidgetItemEvent::m_totalSteps, te::qt::widgets::ProgressWidgetItem::setLabel(), te::qt::widgets::RemoveProgressWidgetItemEvent::type(), and te::qt::widgets::CreateProgressWidgetItemEvent::type().
      
  | 
  virtual | 
Removes a task from progress viewer container.
| taskId | Task identifier. | 
Implements te::common::AbstractProgressViewer.
Definition at line 72 of file ProgressViewerWidget.cpp.
      
  | 
  virtual | 
Set task total steps.
| taskId | Task identifier. | 
Implements te::common::AbstractProgressViewer.
Definition at line 89 of file ProgressViewerWidget.cpp.
      
  | 
  virtual | 
Update the progress message.
| taskId | Task identifier. | 
Implements te::common::AbstractProgressViewer.
Definition at line 108 of file ProgressViewerWidget.cpp.
      
  | 
  virtual | 
Update the progress evaluation.
| taskId | Task identifier. | 
Implements te::common::AbstractProgressViewer.
Definition at line 93 of file ProgressViewerWidget.cpp.
      
  | 
  protected | 
Custom widget progress item container.
Definition at line 145 of file ProgressViewerWidget.h.
      
  | 
  protected | 
GUI Objects used to build the custom widget.
Definition at line 146 of file ProgressViewerWidget.h.
Referenced by ProgressViewerWidget().
      
  | 
  protected | 
GUI Objects used to build the custom widget.
Definition at line 148 of file ProgressViewerWidget.h.
Referenced by ProgressViewerWidget().
      
  | 
  protected | 
Task container.
Definition at line 144 of file ProgressViewerWidget.h.
      
  | 
  protected | 
GUI Objects used to build the custom widget.
Definition at line 149 of file ProgressViewerWidget.h.
Referenced by ProgressViewerWidget().
      
  | 
  protected | 
GUI Objects used to build the custom widget.
Definition at line 147 of file ProgressViewerWidget.h.
Referenced by ProgressViewerWidget().