diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-23 10:27:58 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:04 -0500 |
| commit | b10bcf4cb72bf3db06735a6b893c93319cead965 (patch) | |
| tree | 9e75147f39337ec8efd04f0a390c68ac76384faf /src/createinstancedialog.h | |
| parent | e0ed1c2153be0a9f922a619c527b3646b40377eb (diff) | |
instance name page
Diffstat (limited to 'src/createinstancedialog.h')
| -rw-r--r-- | src/createinstancedialog.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/createinstancedialog.h b/src/createinstancedialog.h index df056f85..3fd19d55 100644 --- a/src/createinstancedialog.h +++ b/src/createinstancedialog.h @@ -3,6 +3,7 @@ #include <QDialog> +namespace MOBase { class IPluginGame; } namespace Ui { class CreateInstanceDialog; }; namespace cid { class Page; } @@ -13,6 +14,13 @@ class CreateInstanceDialog : public QDialog Q_OBJECT public: + enum Types + { + NoType = 0, + Global, + Portable + }; + explicit CreateInstanceDialog( const PluginContainer& pc, QWidget *parent = nullptr); @@ -23,13 +31,17 @@ public: void next(); void back(); + void selectPage(std::size_t i); + + void updateNavigation(); + + Types selectedType() const; + MOBase::IPluginGame* selectedGame() const; private: std::unique_ptr<Ui::CreateInstanceDialog> ui; const PluginContainer& m_pc; std::vector<std::unique_ptr<cid::Page>> m_pages; - - void updateNavigationButtons(); }; #endif // MODORGANIZER_CREATEINSTANCEDIALOG_INCLUDED |
