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/theme_builder/components/stylers/CompoundStylerEditor.h | |
| parent | 8ad2966933957ac5d6ff8dcd5e732736fd5e4dc6 (diff) | |
| download | cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.gz cru-34a64e6ffefaab007578932ddbab931a25f1d56e.tar.bz2 cru-34a64e6ffefaab007578932ddbab931a25f1d56e.zip | |
...
Diffstat (limited to 'src/theme_builder/components/stylers/CompoundStylerEditor.h')
| -rw-r--r-- | src/theme_builder/components/stylers/CompoundStylerEditor.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/theme_builder/components/stylers/CompoundStylerEditor.h b/src/theme_builder/components/stylers/CompoundStylerEditor.h deleted file mode 100644 index 57150e83..00000000 --- a/src/theme_builder/components/stylers/CompoundStylerEditor.h +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once -#include "StylerEditor.h" -#include "cru/common/ClonablePtr.h" -#include "cru/ui/DeleteLater.h" -#include "cru/ui/components/PopupButton.h" -#include "cru/ui/controls/FlexLayout.h" -#include "cru/ui/style/Styler.h" - -namespace cru::theme_builder::components::stylers { -class CompoundStylerEditor : public StylerEditor { - public: - CompoundStylerEditor(); - ~CompoundStylerEditor() override; - - public: - ClonablePtr<ui::style::CompoundStyler> GetValue(); - void SetValue(ui::style::CompoundStyler* styler, bool trigger_change = true); - void SetValue(const ClonablePtr<ui::style::CompoundStyler>& styler, - bool trigger_change = true) { - SetValue(styler.get(), trigger_change); - } - - ClonablePtr<ui::style::Styler> GetStyler() override { return GetValue(); } - - private: - ui::controls::FlexLayout children_container_; - std::vector<ui::DeleteLaterPtr<StylerEditor>> children_; - ui::components::PopupMenuIconButton add_child_button_; -}; -} // namespace cru::theme_builder::components::stylers |
