1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 04:57:44 +00:00
astra/include/launcherwindow.h
Joshua Goins 763a524766 Make it much more clear when the game is not installed
Now the "open game directory" buttons in settings is turned off, and
buttons that could possibly result in a broken launch is now disabled
too.
2022-04-09 16:56:17 -04:00

45 lines
No EOL
967 B
C++

#pragma once
#include <QMainWindow>
#include <QComboBox>
#include <QCheckBox>
#include <QPushButton>
#include <QTreeWidget>
#include "launchercore.h"
#include "headline.h"
class LauncherWindow : public QMainWindow {
Q_OBJECT
public:
explicit LauncherWindow(LauncherCore& core, QWidget* parent = nullptr);
ProfileSettings currentProfile() const;
ProfileSettings& currentProfile();
void openPath(const QString path);
public slots:
void reloadControls();
private:
LauncherCore& core;
Headline headline;
bool currentlyReloadingControls = false;
QLabel* bannerImageView;
QTreeWidget* newsListView;
QAction* launchOfficial;
QAction* launchSysInfo;
QAction* launchCfgBackup;
QAction* openGameDir;
QComboBox* profileSelect;
QLineEdit* usernameEdit, *passwordEdit;
QLineEdit* otpEdit;
QCheckBox* rememberUsernameBox, *rememberPasswordBox;
QPushButton* loginButton, *registerButton;
};