2023-01-06 19:01:50 +00:00
|
|
|
#ifndef SETTINGSPAGE_H
|
|
|
|
#define SETTINGSPAGE_H
|
2014-01-27 19:14:02 +00:00
|
|
|
|
2023-01-06 19:01:50 +00:00
|
|
|
#include <QCompleter>
|
|
|
|
#include <QStringListModel>
|
2014-01-27 19:14:02 +00:00
|
|
|
|
|
|
|
#include "ui_settingspage.h"
|
|
|
|
|
2022-09-22 18:26:05 +00:00
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
class GameSettings;
|
|
|
|
}
|
2014-04-16 14:54:55 +00:00
|
|
|
|
2014-01-27 19:14:02 +00:00
|
|
|
namespace Launcher
|
|
|
|
{
|
|
|
|
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:
|
2023-01-06 19:01:50 +00:00
|
|
|
explicit SettingsPage(Config::GameSettings& gameSettings, QWidget* parent = nullptr);
|
2014-01-27 19:14:02 +00:00
|
|
|
|
2014-03-30 21:57:30 +00:00
|
|
|
bool loadSettings();
|
2023-01-06 19:01:50 +00:00
|
|
|
void saveSettings();
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2023-01-06 19:01:50 +00:00
|
|
|
public slots:
|
|
|
|
void slotLoadedCellsChanged(QStringList cellNames);
|
2014-03-30 21:57:30 +00:00
|
|
|
|
|
|
|
private slots:
|
2023-01-06 19:01:50 +00:00
|
|
|
void on_skipMenuCheckBox_stateChanged(int state);
|
|
|
|
void on_runScriptAfterStartupBrowseButton_clicked();
|
|
|
|
void slotAnimSourcesToggled(bool checked);
|
|
|
|
void slotPostProcessToggled(bool checked);
|
|
|
|
void slotSkyBlendingToggled(bool checked);
|
2024-01-13 17:34:44 +00:00
|
|
|
void slotShadowDistLimitToggled(bool checked);
|
2024-02-20 10:02:59 +00:00
|
|
|
void slotDistantLandToggled(bool checked);
|
2014-04-16 14:54:55 +00:00
|
|
|
|
|
|
|
private:
|
2022-09-22 18:26:05 +00:00
|
|
|
Config::GameSettings& mGameSettings;
|
2023-01-06 19:01:50 +00:00
|
|
|
QCompleter mCellNameCompleter;
|
|
|
|
QStringListModel mCellNameCompleterModel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load the cells associated with the given content files for use in autocomplete
|
|
|
|
* @param filePaths the file paths of the content files to be examined
|
|
|
|
*/
|
|
|
|
void loadCellsForAutocomplete(QStringList filePaths);
|
2014-01-27 19:14:02 +00:00
|
|
|
};
|
|
|
|
}
|
2023-01-06 19:01:50 +00:00
|
|
|
#endif
|