1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00
astra/include/launcherwindow.h

40 lines
No EOL
853 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;
QComboBox* profileSelect;
QLineEdit* usernameEdit, *passwordEdit;
QLineEdit* otpEdit;
QCheckBox* rememberUsernameBox, *rememberPasswordBox;
QPushButton* loginButton, *registerButton;
};