Mantid
Loading...
Searching...
No Matches
Configurable.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
11class QSettings;
12
13namespace MantidQt {
14namespace MantidWidgets {
15
46template <typename Settings> class Configurable {
47public:
48 virtual ~Configurable() = default;
50 virtual void restoreSettings(const Settings &) = 0;
52 [[nodiscard]] virtual Settings captureSettings() const = 0;
53};
54} // namespace MantidWidgets
55} // namespace MantidQt
Defines the in-memory half of the persistent settings lifecycle.
virtual void restoreSettings(const Settings &)=0
Apply an already-read snapshot without persistent I/O.
virtual Settings captureSettings() const =0
Capture current in-memory state without persistent I/O.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...