diff options
author | crupest <crupest@outlook.com> | 2022-05-15 14:15:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-15 14:15:31 +0800 |
commit | 34a64e6ffefaab007578932ddbab931a25f1d56e (patch) | |
tree | 541fdb8279e829a129df62288d09916bf23c9200 /src/ThemeBuilder/components/MainWindow.h | |
parent | 8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6 (diff) | |
download | cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.gz cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.bz2 cru-34a64e6ffefaab007578932ddbab931a25f1d56e.zip |
...
Diffstat (limited to 'src/ThemeBuilder/components/MainWindow.h')
-rw-r--r-- | src/ThemeBuilder/components/MainWindow.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ThemeBuilder/components/MainWindow.h b/src/ThemeBuilder/components/MainWindow.h new file mode 100644 index 00000000..ede1c38f --- /dev/null +++ b/src/ThemeBuilder/components/MainWindow.h @@ -0,0 +1,32 @@ +#pragma once +#include "StyleRuleSetEditor.h" +#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/TextBlock.h" +#include "cru/ui/controls/Window.h" + +namespace cru::theme_builder::components { +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_; + ui::controls::TextBlock preview_button_text_; + StyleRuleSetEditor style_rule_set_editor_; +}; +} // namespace cru::theme_builder::components |