aboutsummaryrefslogtreecommitdiff
path: root/src/ThemeBuilder/components/conditions/CompoundConditionEditor.h
diff options
context:
space:
mode:
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();
}
};