From 34a64e6ffefaab007578932ddbab931a25f1d56e Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 15 May 2022 14:15:31 +0800 Subject: ... --- src/theme_builder/components/StyleRuleSetEditor.h | 44 ----------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/theme_builder/components/StyleRuleSetEditor.h (limited to 'src/theme_builder/components/StyleRuleSetEditor.h') diff --git a/src/theme_builder/components/StyleRuleSetEditor.h b/src/theme_builder/components/StyleRuleSetEditor.h deleted file mode 100644 index 03148889..00000000 --- a/src/theme_builder/components/StyleRuleSetEditor.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once -#include "StyleRuleEditor.h" -#include "cru/ui/DeleteLater.h" -#include "cru/ui/components/Component.h" -#include "cru/ui/controls/Button.h" -#include "cru/ui/controls/Control.h" -#include "cru/ui/controls/FlexLayout.h" -#include "cru/ui/controls/ScrollView.h" -#include "cru/ui/model/IListChangeNotify.h" -#include "cru/ui/style/StyleRuleSet.h" - -namespace cru::theme_builder::components { -class StyleRuleSetEditor : public ui::components::Component { - public: - StyleRuleSetEditor(); - - CRU_DELETE_COPY(StyleRuleSetEditor) - CRU_DELETE_MOVE(StyleRuleSetEditor) - - ~StyleRuleSetEditor() override; - - public: - ui::controls::Control* GetRootControl() override { return &scroll_view_; } - - void BindStyleRuleSet(std::shared_ptr rule_set); - - private: - Index IndexOfRuleEditor(StyleRuleEditor* editor); - - void UpdateView(ui::style::StyleRuleSet* style_rule_set, - std::optional change = std::nullopt); - - private: - std::shared_ptr style_rule_set_; - - ui::controls::ScrollView scroll_view_; - ui::controls::FlexLayout container_; - ui::controls::FlexLayout rules_layout_; - std::vector> style_rule_editors_; - ui::controls::IconButton add_button_; - - bool suppress_next_set_ = false; -}; -} // namespace cru::theme_builder::components -- cgit v1.2.3