mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 00:43:29 +00:00
31 lines
646 B
C++
31 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;
|
|
};
|