1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 04:37:46 +00:00
astra/src/settingswindow.h
2021-11-09 12:38:18 -05:00

34 lines
No EOL
730 B
C++

#pragma once
#include <QWidget>
#include <QListWidget>
#include <QComboBox>
#include <QLineEdit>
#include <QCheckBox>
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;
QLineEdit* nameEdit = nullptr;
QComboBox* directXCombo = nullptr;
QComboBox* serverType = nullptr;
QCheckBox* rememberUsernameBox = nullptr, *rememberPasswordBox = nullptr;
bool currentlyReloadingControls = false;
LauncherWindow& window;
};