summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-24 13:04:10 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-24 13:04:10 -0400
commit0f712305c840bc509fa8f00eebf2a2a4bbf28bfd (patch)
tree81087d9f70c83ea43d0f1a8e706bf307e7631019 /src/settings.h
parent2ffad7edf2946e66585a67c4ab58c0522cd8e412 (diff)
added settings for QTabWidget, checkable QAbstractButton and ExpanderWidget
removed directInterface() from mod info conflicts
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h
index d46c358c..b25af15f 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -34,6 +34,7 @@ class QSplitter;
class PluginContainer;
struct ServerInfo;
class Settings;
+class ExpanderWidget;
class GeometrySaver
{
@@ -71,6 +72,9 @@ public:
void saveState(const QSplitter* splitter);
bool restoreState(QSplitter* splitter) const;
+ void saveState(const ExpanderWidget* expander);
+ bool restoreState(ExpanderWidget* expander) const;
+
void saveVisibility(const QWidget* w);
bool restoreVisibility(QWidget* w, std::optional<bool> def={}) const;
@@ -249,10 +253,18 @@ public:
void resetQuestionButtons();
- std::optional<int> getIndex(QComboBox* cb) const;
+ std::optional<int> getIndex(const QComboBox* cb) const;
void saveIndex(const QComboBox* cb);
void restoreIndex(QComboBox* cb, std::optional<int> def={}) const;
+ std::optional<int> getIndex(const QTabWidget* w) const;
+ void saveIndex(const QTabWidget* w);
+ void restoreIndex(QTabWidget* w, std::optional<int> def={}) const;
+
+ std::optional<bool> getChecked(const QAbstractButton* w) const;
+ void saveChecked(const QAbstractButton* w);
+ void restoreChecked(QAbstractButton* w, std::optional<bool> def={}) const;
+
GeometrySettings& geometry();
const GeometrySettings& geometry() const;