2022-06-08 11:52:07 -04:00
|
|
|
#pragma once
|
|
|
|
|
2022-10-24 13:03:29 -04:00
|
|
|
#include <QMdiArea>
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
2022-06-08 11:52:07 -04:00
|
|
|
#include "launcherwindow.h"
|
2022-08-31 17:14:54 -04:00
|
|
|
#include "autologinwindow.h"
|
2022-10-24 13:03:29 -04:00
|
|
|
#include "virtualdialog.h"
|
2022-06-08 11:52:07 -04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The desktop, mouse and keyboard-driven interface for Astra. Primarily meant
|
|
|
|
* for regular desktop usage.
|
|
|
|
*/
|
|
|
|
class DesktopInterface {
|
|
|
|
public:
|
2022-10-13 13:20:09 -04:00
|
|
|
explicit DesktopInterface(LauncherCore& core);
|
2022-06-08 11:52:07 -04:00
|
|
|
|
2022-10-24 13:03:29 -04:00
|
|
|
void addWindow(VirtualWindow* window);
|
|
|
|
void addDialog(VirtualDialog* dialog);
|
|
|
|
|
2022-10-24 13:11:03 -04:00
|
|
|
bool oneWindow = false;
|
|
|
|
bool isSteamDeck = false;
|
2022-10-24 13:03:29 -04:00
|
|
|
|
2022-06-08 11:52:07 -04:00
|
|
|
private:
|
2022-10-24 13:03:29 -04:00
|
|
|
QMdiArea* mdiArea = nullptr;
|
|
|
|
QMainWindow* mdiWindow = nullptr;
|
|
|
|
|
2022-06-08 11:52:07 -04:00
|
|
|
LauncherWindow* window = nullptr;
|
2022-08-31 17:14:54 -04:00
|
|
|
AutoLoginWindow* autoLoginWindow = nullptr;
|
2022-06-08 11:52:07 -04:00
|
|
|
};
|