mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-03 01:12:55 +00:00
32 lines
646 B
C
32 lines
646 B
C
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "../../core/widget.h"
|
||
|
|
||
|
class Menubar;
|
||
|
class Toolbar;
|
||
|
class Statusbar;
|
||
|
|
||
|
class MainWindow : public Widget
|
||
|
{
|
||
|
public:
|
||
|
MainWindow();
|
||
|
~MainWindow();
|
||
|
|
||
|
Menubar* GetMenubar() const { return MenubarWidget; }
|
||
|
Toolbar* GetToolbar() const { return ToolbarWidget; }
|
||
|
Statusbar* GetStatusbar() const { return StatusbarWidget; }
|
||
|
Widget* GetCentralWidget() const { return CentralWidget; }
|
||
|
|
||
|
void SetCentralWidget(Widget* widget);
|
||
|
|
||
|
protected:
|
||
|
void OnGeometryChanged() override;
|
||
|
|
||
|
private:
|
||
|
Menubar* MenubarWidget = nullptr;
|
||
|
Toolbar* ToolbarWidget = nullptr;
|
||
|
Widget* CentralWidget = nullptr;
|
||
|
Statusbar* StatusbarWidget = nullptr;
|
||
|
};
|