aboutsummaryrefslogtreecommitdiff
path: root/src/ThemeBuilder/components/conditions/CompoundConditionEditor.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-16 10:37:36 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-16 11:00:52 +0800
commit4e0b7d82cd64ef8016dcb49247a8a5e4de8a0b3d (patch)
tree9e3226a79945ee02686aa2a8b2db4031937d20dc /src/ThemeBuilder/components/conditions/CompoundConditionEditor.h
parent6753cf4430704de0cc83ebd83425b5e3be430ad4 (diff)
downloadcru-4e0b7d82cd64ef8016dcb49247a8a5e4de8a0b3d.tar.gz
cru-4e0b7d82cd64ef8016dcb49247a8a5e4de8a0b3d.tar.bz2
cru-4e0b7d82cd64ef8016dcb49247a8a5e4de8a0b3d.zip
Rename ClonePtr, update theme.
Diffstat (limited to 'src/ThemeBuilder/components/conditions/CompoundConditionEditor.h')
-rw-r--r--src/ThemeBuilder/components/conditions/CompoundConditionEditor.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ThemeBuilder/components/conditions/CompoundConditionEditor.h b/src/ThemeBuilder/components/conditions/CompoundConditionEditor.h
index 2948df36..af632758 100644
--- a/src/ThemeBuilder/components/conditions/CompoundConditionEditor.h
+++ b/src/ThemeBuilder/components/conditions/CompoundConditionEditor.h
@@ -1,6 +1,6 @@
#pragma once
#include "ConditionEditor.h"
-#include "cru/base/ClonablePtr.h"
+#include "cru/base/ClonePtr.h"
#include "cru/base/Event.h"
#include "cru/ui/components/Component.h"
#include "cru/ui/components/PopupButton.h"
@@ -16,8 +16,8 @@ class CompoundConditionEditor : public ConditionEditor {
~CompoundConditionEditor();
protected:
- std::vector<ClonablePtr<ui::style::Condition>> GetChildren();
- void SetChildren(std::vector<ClonablePtr<ui::style::Condition>> children,
+ std::vector<ClonePtr<ui::style::Condition>> GetChildren();
+ void SetChildren(std::vector<ClonePtr<ui::style::Condition>> children,
bool trigger_change = true);
private:
@@ -32,18 +32,18 @@ class AndConditionEditor : public CompoundConditionEditor {
~AndConditionEditor() override = default;
public:
- ClonablePtr<ui::style::AndCondition> GetValue() {
+ ClonePtr<ui::style::AndCondition> GetValue() {
return ui::style::AndCondition::Create(GetChildren());
}
void SetValue(ui::style::AndCondition* value, bool trigger_change = true) {
SetChildren(value->GetChildren(), trigger_change);
}
- void SetValue(const ClonablePtr<ui::style::AndCondition>& value,
+ void SetValue(const ClonePtr<ui::style::AndCondition>& value,
bool trigger_change = true) {
SetValue(value.get(), trigger_change);
}
- ClonablePtr<ui::style::Condition> GetCondition() override {
+ ClonePtr<ui::style::Condition> GetCondition() override {
return GetValue();
}
};
@@ -54,18 +54,18 @@ class OrConditionEditor : public CompoundConditionEditor {
~OrConditionEditor() override = default;
public:
- ClonablePtr<ui::style::OrCondition> GetValue() {
+ ClonePtr<ui::style::OrCondition> GetValue() {
return ui::style::OrCondition::Create(GetChildren());
}
void SetValue(ui::style::OrCondition* value, bool trigger_change = true) {
SetChildren(value->GetChildren(), trigger_change);
}
- void SetValue(const ClonablePtr<ui::style::OrCondition>& value,
+ void SetValue(const ClonePtr<ui::style::OrCondition>& value,
bool trigger_change = true) {
SetValue(value.get(), trigger_change);
}
- ClonablePtr<ui::style::Condition> GetCondition() override {
+ ClonePtr<ui::style::Condition> GetCondition() override {
return GetValue();
}
};