1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 04:57:44 +00:00
astra/launcher/desktop/include/desktopinterface.h

30 lines
659 B
C
Raw Normal View History

#pragma once
#include <QMdiArea>
#include <QMainWindow>
#include "launcherwindow.h"
#include "autologinwindow.h"
#include "virtualdialog.h"
/*
* 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);
void addWindow(VirtualWindow* window);
void addDialog(VirtualDialog* dialog);
2022-10-24 13:11:03 -04:00
bool oneWindow = false;
bool isSteamDeck = false;
private:
QMdiArea* mdiArea = nullptr;
QMainWindow* mdiWindow = nullptr;
LauncherWindow* window = nullptr;
AutoLoginWindow* autoLoginWindow = nullptr;
};