Mantid
|
#include <AlgorithmProgressWidget.h>
Public Slots | |
void | showDetailsDialog () override |
Public Member Functions | |
void | algorithmEnded () override |
Setup the view for whenever an algorithm has ended. More... | |
AlgorithmProgressWidget (QWidget *parent=nullptr) | |
void | algorithmStarted () override |
Setup the view for whenever an algorithm has started. More... | |
void | blockUpdates (bool block=true) |
Enable or disable the processing of updates to the algorithm progress. More... | |
void | updateProgress (const double progress, const QString &message, const double estimatedTime, const int progressPrecision) override |
Update the progress bar. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::IAlgorithmProgressWidget | |
virtual void | algorithmEnded ()=0 |
virtual void | algorithmStarted ()=0 |
IAlgorithmProgressWidget ()=default | |
virtual void | showDetailsDialog ()=0 |
virtual void | updateProgress (const double progress, const QString &message, const double estimatedTime, const int progressPrecision)=0 |
virtual | ~IAlgorithmProgressWidget ()=default |
Private Attributes | |
QPointer< AlgorithmProgressDialogWidget > | m_details |
Pointer to the details dialog. More... | |
QPushButton *const | m_detailsButton |
Button to display the Details window. More... | |
QHBoxLayout *const | m_layout |
Layout that contains all the widget for displaying. More... | |
std::unique_ptr< AlgorithmProgressPresenter > | m_presenter |
The presenter of the ProgressWidget. More... | |
QProgressBar *const | m_progressBar |
Progress bar shown on the workbench. More... | |
Definition at line 37 of file AlgorithmProgressWidget.h.
MantidQt::MantidWidgets::AlgorithmProgressWidget::AlgorithmProgressWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 16 of file AlgorithmProgressWidget.cpp.
References m_detailsButton, m_layout, m_progressBar, and showDetailsDialog().
|
overridevirtual |
Setup the view for whenever an algorithm has ended.
Implements MantidQt::MantidWidgets::IAlgorithmProgressWidget.
Definition at line 33 of file AlgorithmProgressWidget.cpp.
References m_progressBar.
|
overridevirtual |
Setup the view for whenever an algorithm has started.
Implements MantidQt::MantidWidgets::IAlgorithmProgressWidget.
Definition at line 28 of file AlgorithmProgressWidget.cpp.
References m_progressBar.
void MantidQt::MantidWidgets::AlgorithmProgressWidget::blockUpdates | ( | bool | block = true | ) |
Enable or disable the processing of updates to the algorithm progress.
Definition at line 60 of file AlgorithmProgressWidget.cpp.
References m_presenter.
|
overrideslot |
Definition at line 38 of file AlgorithmProgressWidget.cpp.
References m_details, and m_presenter.
Referenced by AlgorithmProgressWidget().
|
overridevirtual |
Update the progress bar.
Implements MantidQt::MantidWidgets::IAlgorithmProgressWidget.
Definition at line 55 of file AlgorithmProgressWidget.cpp.
References m_presenter, and m_progressBar.
|
private |
Pointer to the details dialog.
Will be set to nullptr by QPointer when the dialog closes
Definition at line 66 of file AlgorithmProgressWidget.h.
Referenced by showDetailsDialog().
|
private |
Button to display the Details window.
Definition at line 63 of file AlgorithmProgressWidget.h.
Referenced by AlgorithmProgressWidget().
|
private |
Layout that contains all the widget for displaying.
Definition at line 61 of file AlgorithmProgressWidget.h.
Referenced by AlgorithmProgressWidget().
|
private |
The presenter of the ProgressWidget.
Definition at line 68 of file AlgorithmProgressWidget.h.
Referenced by blockUpdates(), showDetailsDialog(), and updateProgress().
|
private |
Progress bar shown on the workbench.
Definition at line 59 of file AlgorithmProgressWidget.h.
Referenced by algorithmEnded(), AlgorithmProgressWidget(), algorithmStarted(), and updateProgress().