OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
settingspage.hpp
Go to the documentation of this file.
1 #ifndef SETTINGSPAGE_HPP
2 #define SETTINGSPAGE_HPP
3 
4 #include <QWidget>
5 #include <QProcess>
6 
8 
9 #include "ui_settingspage.h"
10 
11 #include "maindialog.hpp"
12 
13 namespace Files { struct ConfigurationManager; }
14 namespace Config { class GameSettings;
15  class LauncherSettings; }
16 
17 namespace Launcher
18 {
19  class TextInputDialog;
20 
21  class SettingsPage : public QWidget, private Ui::SettingsPage
22  {
23  Q_OBJECT
24 
25  public:
27  Config::LauncherSettings &launcherSettings, MainDialog *parent = 0);
28  ~SettingsPage();
29 
30  void saveSettings();
31  bool loadSettings();
32 
34  void resetProgressBar();
35 
36  private slots:
37 
41 
42  void wizardStarted();
43  void wizardFinished(int exitCode, QProcess::ExitStatus exitStatus);
44 
45  void importerStarted();
46  void importerFinished(int exitCode, QProcess::ExitStatus exitStatus);
47 
48  void updateOkButton(const QString &text);
49 
50  private:
51 
54 
56 
59 
62 
63  };
64 }
65 
66 #endif // SETTINGSPAGE_HPP
Process::ProcessInvoker * mWizardInvoker
Definition: settingspage.hpp:52
Config::LauncherSettings & mLauncherSettings
Definition: settingspage.hpp:58
void on_wizardButton_clicked()
Definition: settingspage.cpp:96
Definition: settingspage.hpp:21
void on_importerButton_clicked()
Definition: settingspage.cpp:104
void saveSettings()
Definition: settingspage.cpp:250
void updateOkButton(const QString &text)
Definition: settingspage.cpp:235
void wizardFinished(int exitCode, QProcess::ExitStatus exitStatus)
Definition: settingspage.cpp:187
Definition: configurationmanager.hpp:20
void importerFinished(int exitCode, QProcess::ExitStatus exitStatus)
Definition: settingspage.cpp:203
Files::ConfigurationManager & mCfgMgr
Definition: settingspage.hpp:55
Definition: maindialog.hpp:45
Definition: processinvoker.hpp:10
bool loadSettings()
Definition: settingspage.cpp:265
~SettingsPage()
Definition: settingspage.cpp:90
void resetProgressBar()
set progress bar on page to 0%
Definition: settingspage.cpp:229
Config::GameSettings & mGameSettings
Definition: settingspage.hpp:57
SettingsPage(Files::ConfigurationManager &cfg, Config::GameSettings &gameSettings, Config::LauncherSettings &launcherSettings, MainDialog *parent=0)
Definition: settingspage.cpp:18
void wizardStarted()
Definition: settingspage.cpp:180
TextInputDialog * mProfileDialog
Definition: settingspage.hpp:61
Definition: launchersettings.hpp:9
void importerStarted()
Definition: settingspage.cpp:198
Definition: textinputdialog.hpp:12
void on_browseButton_clicked()
Definition: settingspage.cpp:154
Process::ProcessInvoker * mImporterInvoker
Definition: settingspage.hpp:53
MainDialog * mMain
Definition: settingspage.hpp:60
Definition: gamesettings.hpp:20