summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-17 12:42:27 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-17 12:42:27 -0400
commitdfa15218f33ad06a6e868e8e5f1022026b6530a9 (patch)
tree43fa180b413f3f6431f9329c12db2b0c3cc5e40a /src/settings.h
parent7cc5f220520ab19940462fb6d2f660d8b7e2d600 (diff)
passes callbacks to QuestionBoxMemory so it doesn't access the ini directly
fixed selected executable being empty after closing the edit dialog put backup_install inside Settings
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index 5044af98..d46c358c 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -21,6 +21,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#define SETTINGS_H
#include "loadmechanism.h"
+#include <questionboxmemory.h>
#include <log.h>
namespace MOBase {
@@ -233,6 +234,21 @@ public:
bool isTutorialCompleted(const QString& windowName) const;
void setTutorialCompleted(const QString& windowName, bool b=true);
+ bool keepBackupOnInstall() const;
+ void setKeepBackupOnInstall(bool b);
+
+ MOBase::QuestionBoxMemory::Button getQuestionButton(
+ const QString& windowName, const QString& filename) const;
+
+ void setQuestionWindowButton(
+ const QString& windowName, MOBase::QuestionBoxMemory::Button button);
+
+ void setQuestionFileButton(
+ const QString& windowName, const QString& filename,
+ MOBase::QuestionBoxMemory::Button choice);
+
+ void resetQuestionButtons();
+
std::optional<int> getIndex(QComboBox* cb) const;
void saveIndex(const QComboBox* cb);
void restoreIndex(QComboBox* cb, std::optional<int> def={}) const;