summaryrefslogtreecommitdiff
path: root/src/createinstancedialogpages.h
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-19 11:19:39 -0500
committerGitHub <noreply@github.com>2023-09-19 18:19:39 +0200
commit70509275405d2a5c5e94743786f03b17ef2051f2 (patch)
treee98fb95afcd9e8ce499ff02351e3ad963a9c76f8 /src/createinstancedialogpages.h
parent59b5b1cfca1614df681055d98d602692f482f0e2 (diff)
Default profile settings (#1869)
* Fix archive parsing and BSA invalidation
Diffstat (limited to 'src/createinstancedialogpages.h')
-rw-r--r--src/createinstancedialogpages.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/createinstancedialogpages.h b/src/createinstancedialogpages.h
index d9751a52..ce525635 100644
--- a/src/createinstancedialogpages.h
+++ b/src/createinstancedialogpages.h
@@ -110,6 +110,10 @@ public:
//
virtual CreateInstanceDialog::Paths selectedPaths() const;
+ // returns the profile settings
+ //
+ virtual CreateInstanceDialog::ProfileSettings profileSettings() const;
+
protected:
Ui::CreateInstanceDialog* ui;
CreateInstanceDialog& m_dlg;
@@ -557,6 +561,21 @@ private:
void setIfEmpty(QLineEdit* e, const QString& path, bool force);
};
+// default settings for profiles page; allow the user to set their preferred
+// defaults for the profile options
+//
+class ProfilePage : public Page
+{
+public:
+ ProfilePage(CreateInstanceDialog& dlg);
+
+ // always returns true, options are boolean
+ //
+ bool ready() const override;
+
+ CreateInstanceDialog::ProfileSettings profileSettings() const override;
+};
+
// nexus connection page; this reuses the ui found in the settings dialog and
// is skipped if there's already an api key in the credentials manager
//