diff options
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 |