1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 12:57:45 +00:00
astra/launcher/desktop/include/virtualwindow.h
Joshua Goins 59d7d842aa Begin consolidating GUI work
Also contains some stuff for future Qt6 version
2022-10-24 13:03:29 -04:00

29 lines
No EOL
573 B
C++

#pragma once
#include <QMdiSubWindow>
#include <QWidget>
#include <QMainWindow>
class DesktopInterface;
class VirtualWindow : public QObject {
Q_OBJECT
public:
VirtualWindow(DesktopInterface& interface, QWidget* parent = nullptr);
void setWindowTitle(QString title);
void setCentralWidget(QWidget* widget);
void show();
void showMaximized();
void hide();
QMenuBar* menuBar();
QWidget* getRootWidget();
QMdiSubWindow* mdi_window = nullptr;
QMainWindow* normal_window = nullptr;
private:
DesktopInterface& interface;
};