mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 12:47:44 +00:00
46 lines
No EOL
1,022 B
C++
46 lines
No EOL
1,022 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QListWidget>
|
|
#include <QComboBox>
|
|
#include <QLineEdit>
|
|
#include <QCheckBox>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
|
|
class LauncherWindow;
|
|
struct ProfileSettings;
|
|
|
|
class SettingsWindow : public QWidget {
|
|
public:
|
|
SettingsWindow(LauncherWindow& window, QWidget* parent = nullptr);
|
|
|
|
public slots:
|
|
void reloadControls();
|
|
|
|
private:
|
|
void openPath(const QString path);
|
|
ProfileSettings& getCurrentProfile();
|
|
|
|
QListWidget* profileWidget = nullptr;
|
|
|
|
// game
|
|
QLineEdit* nameEdit = nullptr;
|
|
QComboBox* directXCombo = nullptr;
|
|
QLabel* currentGameDirectory = nullptr;
|
|
|
|
// wine
|
|
QComboBox* wineVersionCombo;
|
|
QPushButton* selectWineButton;
|
|
QLabel* winePathLabel;
|
|
QLabel* winePrefixDirectory;
|
|
|
|
// login
|
|
QComboBox* serverType = nullptr;
|
|
QLineEdit* lobbyServerURL = nullptr;
|
|
QCheckBox* rememberUsernameBox = nullptr, *rememberPasswordBox = nullptr;
|
|
|
|
bool currentlyReloadingControls = false;
|
|
|
|
LauncherWindow& window;
|
|
}; |