From 74bb9cd27242b9320f99ff4d2b50c3051576cc14 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 8 Feb 2022 16:53:51 +0800 Subject: ... --- src/theme_builder/components/MainWindow.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/theme_builder/components/MainWindow.h (limited to 'src/theme_builder/components/MainWindow.h') diff --git a/src/theme_builder/components/MainWindow.h b/src/theme_builder/components/MainWindow.h new file mode 100644 index 00000000..101b678e --- /dev/null +++ b/src/theme_builder/components/MainWindow.h @@ -0,0 +1,28 @@ +#pragma once +#include "cru/ui/components/Component.h" +#include "cru/ui/controls/Button.h" +#include "cru/ui/controls/FlexLayout.h" +#include "cru/ui/controls/StackLayout.h" +#include "cru/ui/controls/Window.h" + +namespace cru::theme_builder { +class MainWindow : public ui::components::Component { + public: + MainWindow(); + + CRU_DELETE_COPY(MainWindow) + CRU_DELETE_MOVE(MainWindow) + + ~MainWindow() override; + + ui::controls::Control* GetRootControl() override { return window_; } + + void Show(); + + private: + ui::controls::Window* window_; + ui::controls::FlexLayout* main_layout_; + ui::controls::StackLayout* preview_layout_; + ui::controls::Button* preview_button_; +}; +} // namespace cru::theme_builder -- cgit v1.2.3