Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::AlgorithmProgressDialogWidget Class Reference

#include <AlgorithmProgressDialogWidget.h>

Inheritance diagram for MantidQt::MantidWidgets::AlgorithmProgressDialogWidget:
MantidQt::MantidWidgets::IAlgorithmProgressDialogWidget

Public Member Functions

std::pair< QTreeWidgetItem *, QProgressBar * > addAlgorithm (Mantid::API::IAlgorithm_sptr alg) override
 Adds an algorithm to the dialog. More...
 
 AlgorithmProgressDialogWidget (QWidget *parent, AlgorithmProgressModel &model)
 
- Public Member Functions inherited from MantidQt::MantidWidgets::IAlgorithmProgressDialogWidget
virtual std::pair< QTreeWidgetItem *, QProgressBar * > addAlgorithm (Mantid::API::IAlgorithm_sptr alg)=0
 Adds an algorithm to the dialog. More...
 
virtual ~IAlgorithmProgressDialogWidget ()=default
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 

Private Attributes

std::unique_ptr< AlgorithmProgressDialogPresenterm_presenter
 
QTreeWidget * m_tree
 Owned by this dialog, will be deleted on close. More...
 

Detailed Description

Definition at line 28 of file AlgorithmProgressDialogWidget.h.

Constructor & Destructor Documentation

◆ AlgorithmProgressDialogWidget()

MantidQt::MantidWidgets::AlgorithmProgressDialogWidget::AlgorithmProgressDialogWidget ( QWidget *  parent,
AlgorithmProgressModel model 
)

Definition at line 20 of file AlgorithmProgressDialogWidget.cpp.

References m_tree.

Member Function Documentation

◆ addAlgorithm()

std::pair< QTreeWidgetItem *, QProgressBar * > MantidQt::MantidWidgets::AlgorithmProgressDialogWidget::addAlgorithm ( Mantid::API::IAlgorithm_sptr  alg)
overridevirtual

Adds an algorithm to the dialog.

Adds a new widget item for the algorithm.

Returns the item in the tree widget, and the progress bar within it

Parameters
algThe algorithm that should be displayed
Returns
The QTreeWidgetItem that was made, as well as the QProgressBar displaying the progress of the algorithm

Implements MantidQt::MantidWidgets::IAlgorithmProgressDialogWidget.

Definition at line 55 of file AlgorithmProgressDialogWidget.cpp.

References m_tree.

◆ closeEvent()

void MantidQt::MantidWidgets::AlgorithmProgressDialogWidget::closeEvent ( QCloseEvent *  event)
overrideprotected

Definition at line 79 of file AlgorithmProgressDialogWidget.cpp.

References m_presenter.

Member Data Documentation

◆ m_presenter

std::unique_ptr<AlgorithmProgressDialogPresenter> MantidQt::MantidWidgets::AlgorithmProgressDialogWidget::m_presenter
private

Definition at line 43 of file AlgorithmProgressDialogWidget.h.

Referenced by closeEvent().

◆ m_tree

QTreeWidget* MantidQt::MantidWidgets::AlgorithmProgressDialogWidget::m_tree
private

Owned by this dialog, will be deleted on close.

Definition at line 42 of file AlgorithmProgressDialogWidget.h.

Referenced by addAlgorithm(), and AlgorithmProgressDialogWidget().


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