#pragma once #include "../properties/CheckBoxPropertyEditor.h" #include "ConditionEditor.h" #include "cru/common/ClonablePtr.h" #include "cru/ui/style/Condition.h" namespace cru::theme_builder::components::conditions { class FocusConditionEditor : public ConditionEditor { public: FocusConditionEditor(); ~FocusConditionEditor() override; public: ClonablePtr GetValue() const; void SetValue(const ClonablePtr& value, bool trigger_change = true); ClonablePtr GetCondition() override { return GetValue(); } IEvent* ChangeEvent() { return &change_event_; } private: properties::CheckBoxPropertyEditor focus_check_box_; Event change_event_; }; } // namespace cru::theme_builder::components::conditions