mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 12:47:44 +00:00
This makes it a whole lot easier to view and copy the text in macOS, it never really made sense for these to be line edits in the first place anyway.
78 lines
2.1 KiB
C++
78 lines
2.1 KiB
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QListWidget>
|
|
#include <QComboBox>
|
|
#include <QLineEdit>
|
|
#include <QCheckBox>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QFormLayout>
|
|
|
|
class LauncherCore;
|
|
class LauncherWindow;
|
|
struct ProfileSettings;
|
|
|
|
class SettingsWindow : public QDialog {
|
|
public:
|
|
SettingsWindow(int defaultTab, LauncherWindow& window, LauncherCore& core, QWidget* parent = nullptr);
|
|
|
|
public slots:
|
|
void reloadControls();
|
|
|
|
private:
|
|
void setupGameTab(QFormLayout& layout);
|
|
void setupLoginTab(QFormLayout& layout);
|
|
void setupWineTab(QFormLayout& layout);
|
|
void setupDalamudTab(QFormLayout& layout);
|
|
|
|
ProfileSettings& getCurrentProfile();
|
|
|
|
QListWidget* profileWidget = nullptr;
|
|
QPushButton* deleteProfileButton = nullptr;
|
|
|
|
// general
|
|
QCheckBox* closeWhenLaunched = nullptr;
|
|
QCheckBox* showBanner = nullptr;
|
|
QCheckBox* showNewsList = nullptr;
|
|
|
|
// game
|
|
QLineEdit* nameEdit = nullptr;
|
|
QComboBox* directXCombo = nullptr;
|
|
QLabel* currentGameDirectory = nullptr;
|
|
QLabel* expansionVersionLabel = nullptr;
|
|
QPushButton* gameDirectoryButton = nullptr;
|
|
|
|
// wine
|
|
QComboBox* wineTypeCombo;
|
|
QPushButton* selectWineButton;
|
|
QLabel* winePathLabel;
|
|
QLabel* winePrefixDirectory;
|
|
QPushButton* configureGamescopeButton;
|
|
QLabel* wineVersionLabel;
|
|
|
|
QCheckBox* useGamescope, *useEsync, *useGamemode;
|
|
QCheckBox* enableWatchdog;
|
|
|
|
// login
|
|
QCheckBox* encryptArgumentsBox = nullptr;
|
|
QComboBox* serverType = nullptr;
|
|
QLineEdit* lobbyServerURL = nullptr;
|
|
QCheckBox* rememberUsernameBox = nullptr, *rememberPasswordBox = nullptr;
|
|
QComboBox* gameLicenseBox = nullptr;
|
|
QCheckBox* freeTrialBox = nullptr;
|
|
QCheckBox* useOneTimePassword = nullptr;
|
|
|
|
// dalamud
|
|
QCheckBox* enableDalamudBox = nullptr;
|
|
QLabel* dalamudVersionLabel = nullptr;
|
|
QLabel* dalamudAssetVersionLabel = nullptr;
|
|
QLabel* nativeLauncherVersionLabel = nullptr;
|
|
QCheckBox* dalamudOptOutBox = nullptr;
|
|
QComboBox* dalamudChannel = nullptr;
|
|
|
|
bool currentlyReloadingControls = false;
|
|
|
|
LauncherWindow& window;
|
|
LauncherCore& core;
|
|
};
|