summaryrefslogtreecommitdiff
path: root/src/createinstancedialog.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-08-17 05:06:26 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 11:39:08 -0500
commit4c5e3da2334a1d0c474148be8881b46d6ca6d3fa (patch)
tree188be5f54644cc5e432f957fe5bf406d372e5e80 /src/createinstancedialog.h
parentee53312652af10fbddb5d1d16db6212bca2b9665 (diff)
moved nexus api stuff to GlobalSettings
pass a pointer to Settings around for things that can be called without settings, when creating the first instance added dummy plugin list, mod list and iorganizer to initialize plugins without an instance moved PluginContainer into the core filter, had nothing to do with the plugins list NexusInterface is now created manually instead of being a static singleton because it needs to know if the settings are available
Diffstat (limited to 'src/createinstancedialog.h')
-rw-r--r--src/createinstancedialog.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/createinstancedialog.h b/src/createinstancedialog.h
index 95d4fa68..0841ef29 100644
--- a/src/createinstancedialog.h
+++ b/src/createinstancedialog.h
@@ -8,6 +8,7 @@ namespace Ui { class CreateInstanceDialog; };
namespace cid { class Page; }
class PluginContainer;
+class Settings;
class CreateInstanceDialog : public QDialog
{
@@ -47,12 +48,14 @@ public:
explicit CreateInstanceDialog(
- const PluginContainer& pc, QWidget *parent = nullptr);
+ const PluginContainer& pc, Settings* s, QWidget *parent = nullptr);
~CreateInstanceDialog();
Ui::CreateInstanceDialog* getUI();
+
const PluginContainer& pluginContainer();
+ Settings* settings();
void next();
void back();
@@ -77,6 +80,7 @@ public:
private:
std::unique_ptr<Ui::CreateInstanceDialog> ui;
const PluginContainer& m_pc;
+ Settings* m_settings;
std::vector<std::unique_ptr<cid::Page>> m_pages;
QString m_originalNext;
bool m_switching;