Mantid
Loading...
Searching...
No Matches
AlgorithmProgressPresenterBase.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
10
11#include <QObject>
12
13#include <string>
14
15namespace Mantid {
16namespace API {
17class IAlgorithm;
18}
19} // namespace Mantid
20
21class QProgressBar;
22
30namespace MantidQt {
31namespace MantidWidgets {
32class ProgressObserverData;
33class AlgorithmProgressPresenterBase : public QObject {
34 Q_OBJECT
35public:
36 AlgorithmProgressPresenterBase(QObject *parent);
37
44 void updateProgressBar(Mantid::API::AlgorithmID, double, const std::string &, const double estimatedTime,
45 const int progressPrecision);
47 void setProgressBar(QProgressBar *, const double, const QString &, const double, const int);
48
50 virtual void updateProgressBarSlot(Mantid::API::AlgorithmID, const double, const QString, const double,
51 const int) = 0;
53
54signals:
56 void updateProgressBarSignal(Mantid::API::AlgorithmID, double progress, QString message, double estimatedTime,
57 int progressPrecision);
59};
60} // namespace MantidWidgets
61} // namespace MantidQt
void setProgressBar(QProgressBar *, const double, const QString &, const double, const int)
Sets the parameter progress bar to show the progress and message.
void updateProgressBar(Mantid::API::AlgorithmID, double, const std::string &, const double estimatedTime, const int progressPrecision)
Signals to the presenters that there has been progress in one of the algorithms.
void algorithmStarted(Mantid::API::AlgorithmID)
Signals to the presenters that an algorithm has started.
void updateProgressBarSignal(Mantid::API::AlgorithmID, double progress, QString message, double estimatedTime, int progressPrecision)
virtual void algorithmStartedSlot(Mantid::API::AlgorithmID)=0
virtual void algorithmEndedSlot(Mantid::API::AlgorithmID)=0
void algorithmStartedSignal(Mantid::API::AlgorithmID)
void algorithmEnded(Mantid::API::AlgorithmID)
Signals to the presenters that an algorithm has ended.
virtual void updateProgressBarSlot(Mantid::API::AlgorithmID, const double, const QString, const double, const int)=0
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
Helper class which provides the Collimation Length for SANS instruments.