mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +00:00
29 lines
573 B
C
29 lines
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;
|
||
|
};
|