Mantid
Loading...
Searching...
No Matches
AlgorithmProgressPresenter.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
14
15#include <QWidget>
16
32namespace MantidQt {
33namespace MantidWidgets {
34class IAlgorithmProgressWidget;
35
37 Q_OBJECT
38
39public:
41
42 void algorithmStartedSlot(Mantid::API::AlgorithmID) override;
43 void updateProgressBarSlot(Mantid::API::AlgorithmID, const double, const QString, const double, const int) override;
44 void algorithmEndedSlot(Mantid::API::AlgorithmID) override;
45
46 AlgorithmProgressModel &model() { return m_model; }
47
48private:
58};
59} // namespace MantidWidgets
60} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
Mantid::API::AlgorithmID m_algorithm
The algorithm for which a progress bar is currently being controlled.
AlgorithmProgressModel m_model
The model which observes events happening to the algorithms.
IAlgorithmProgressWidget * m_view
The view that contains the progress widget.
Mantid::Kernel::Timer m_timer
Atimer to meaure how long since the last progress report.
A simple class that provides a wall-clock (not processor time) timer.
Definition: Timer.h:27
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
void * AlgorithmID
As we have multiple interfaces to the same logical algorithm we need a way of uniquely identifying ma...
Definition: IAlgorithm.h:28