1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/apps/launcher/settingspage.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.5 KiB
C++
Raw Normal View History

2014-01-27 19:14:02 +00:00
#ifndef SETTINGSPAGE_HPP
#define SETTINGSPAGE_HPP
#include <components/process/processinvoker.hpp>
2014-01-27 19:14:02 +00:00
#include "ui_settingspage.h"
#include "maindialog.hpp"
namespace Files
{
struct ConfigurationManager;
}
namespace Config
{
class GameSettings;
class LauncherSettings;
}
2014-01-27 19:14:02 +00:00
namespace Launcher
{
class TextInputDialog;
2014-01-27 19:14:02 +00:00
class SettingsPage : public QWidget, private Ui::SettingsPage
{
Q_OBJECT
2014-03-30 21:57:30 +00:00
2014-01-27 19:14:02 +00:00
public:
SettingsPage(Files::ConfigurationManager& cfg, Config::GameSettings& gameSettings,
2020-11-13 07:39:47 +00:00
Config::LauncherSettings& launcherSettings, MainDialog* parent = nullptr);
~SettingsPage() override;
2014-01-27 19:14:02 +00:00
2014-03-30 21:57:30 +00:00
void saveSettings();
bool loadSettings();
2022-09-22 18:26:05 +00:00
/// set progress bar on page to 0%
void resetProgressBar();
2014-03-30 21:57:30 +00:00
private slots:
2014-03-30 21:57:30 +00:00
void on_wizardButton_clicked();
void on_importerButton_clicked();
2014-04-16 16:34:24 +00:00
void on_browseButton_clicked();
void wizardStarted();
void wizardFinished(int exitCode, QProcess::ExitStatus exitStatus);
void importerStarted();
void importerFinished(int exitCode, QProcess::ExitStatus exitStatus);
void updateOkButton(const QString& text);
private:
Process::ProcessInvoker* mWizardInvoker;
Process::ProcessInvoker* mImporterInvoker;
Files::ConfigurationManager& mCfgMgr;
Config::GameSettings& mGameSettings;
Config::LauncherSettings& mLauncherSettings;
MainDialog* mMain;
TextInputDialog* mProfileDialog;
2014-01-27 19:14:02 +00:00
};
}
#endif // SETTINGSPAGE_HPP