diff options
| author | crupest <crupest@outlook.com> | 2022-03-29 22:55:29 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-03-29 22:55:29 +0800 |
| commit | 77e217af8bdbfb20b9147f6159d5bdfda439ea95 (patch) | |
| tree | 46873c9dc28ad7d0f900a8f7610a1ea4b881f75e /src/theme_builder/components/stylers/CompoundStylerEditor.h | |
| parent | 6c09f49d51a564ff4dd0a6d3fa9804dffc2b236c (diff) | |
| download | cru-77e217af8bdbfb20b9147f6159d5bdfda439ea95.tar.gz cru-77e217af8bdbfb20b9147f6159d5bdfda439ea95.tar.bz2 cru-77e217af8bdbfb20b9147f6159d5bdfda439ea95.zip | |
...
Diffstat (limited to 'src/theme_builder/components/stylers/CompoundStylerEditor.h')
| -rw-r--r-- | src/theme_builder/components/stylers/CompoundStylerEditor.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/theme_builder/components/stylers/CompoundStylerEditor.h b/src/theme_builder/components/stylers/CompoundStylerEditor.h index fe9fb47c..a056e45c 100644 --- a/src/theme_builder/components/stylers/CompoundStylerEditor.h +++ b/src/theme_builder/components/stylers/CompoundStylerEditor.h @@ -6,26 +6,6 @@ #include "cru/ui/style/Styler.h" namespace cru::theme_builder::components::stylers { -class CompoundStylerEditorChild : public ui::components::Component { - public: - explicit CompoundStylerEditorChild(std::unique_ptr<StylerEditor>&& editor); - ~CompoundStylerEditorChild() override; - - public: - ui::controls::Control* GetRootControl() override { return &container_; } - - StylerEditor* GetStylerEditor() { return styler_editor_.get(); } - - IEvent<std::nullptr_t>* RemoveEvent() { return &remove_event_; } - - private: - ui::controls::FlexLayout container_; - ui::controls::IconButton remove_button_; - std::unique_ptr<StylerEditor> styler_editor_; - - Event<std::nullptr_t> remove_event_; -}; - class CompoundStylerEditor : public StylerEditor { public: CompoundStylerEditor(); @@ -43,7 +23,7 @@ class CompoundStylerEditor : public StylerEditor { private: ui::controls::FlexLayout children_container_; - std::vector<std::unique_ptr<CompoundStylerEditorChild>> children_; + std::vector<std::unique_ptr<StylerEditor>> children_; ui::components::PopupMenuIconButton add_child_button_; }; } // namespace cru::theme_builder::components::stylers |
