Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
9
#include "
MantidQtWidgets/Common/DllOption.h
"
10
11
class
QSettings;
12
13
namespace
MantidQt
{
14
namespace
MantidWidgets {
15
46
template
<
typename
Settings>
class
Configurable
{
47
public
:
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
DllOption.h
MantidQt::MantidWidgets::Configurable
Defines the in-memory half of the persistent settings lifecycle.
Definition
Configurable.h:46
MantidQt::MantidWidgets::Configurable::restoreSettings
virtual void restoreSettings(const Settings &)=0
Apply an already-read snapshot without persistent I/O.
MantidQt::MantidWidgets::Configurable::~Configurable
virtual ~Configurable()=default
MantidQt::MantidWidgets::Configurable::captureSettings
virtual Settings captureSettings() const =0
Capture current in-memory state without persistent I/O.
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Generated by
1.9.8