aboutsummaryrefslogtreecommitdiff
path: root/src/ThemeBuilder/components/StyleRuleSetEditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ThemeBuilder/components/StyleRuleSetEditor.cpp')
-rw-r--r--src/ThemeBuilder/components/StyleRuleSetEditor.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/ThemeBuilder/components/StyleRuleSetEditor.cpp b/src/ThemeBuilder/components/StyleRuleSetEditor.cpp
index fd159a44..9159e966 100644
--- a/src/ThemeBuilder/components/StyleRuleSetEditor.cpp
+++ b/src/ThemeBuilder/components/StyleRuleSetEditor.cpp
@@ -1,5 +1,5 @@
#include "StyleRuleSetEditor.h"
-#include "cru/ui/DeleteLater.h"
+#include "cru/platform/gui/DeleteLater.h"
#include "cru/ui/ThemeManager.h"
#include "cru/ui/controls/FlexLayout.h"
#include "cru/ui/model/IListChangeNotify.h"
@@ -49,11 +49,11 @@ void StyleRuleSetEditor::BindStyleRuleSet(
}
Index StyleRuleSetEditor::IndexOfRuleEditor(StyleRuleEditor* editor) {
- auto iter =
- std::find_if(style_rule_editors_.cbegin(), style_rule_editors_.cend(),
- [editor](const ui::DeleteLaterPtr<StyleRuleEditor>& p) {
- return p.get() == editor;
- });
+ auto iter = std::find_if(
+ style_rule_editors_.cbegin(), style_rule_editors_.cend(),
+ [editor](const platform::gui::DeleteLaterPtr<StyleRuleEditor>& p) {
+ return p.get() == editor;
+ });
return iter - style_rule_editors_.cbegin();
}
@@ -66,7 +66,8 @@ void StyleRuleSetEditor::UpdateView(
for (auto i = change->position; i < change->position + change->count;
++i) {
const auto& rule = style_rule_set->GetStyleRule(i);
- auto style_rule_editor = ui::MakeDeleteLater<StyleRuleEditor>();
+ auto style_rule_editor =
+ platform::gui::MakeDeleteLater<StyleRuleEditor>();
style_rule_editor->SetValue(rule, false);
style_rule_editor->RemoveEvent()->AddSpyOnlyHandler(
[this, editor = style_rule_editor.get()] {
@@ -80,8 +81,8 @@ void StyleRuleSetEditor::UpdateView(
});
style_rule_editors_.insert(style_rule_editors_.cbegin() + i,
std::move(style_rule_editor));
- rules_layout_.InsertChildAt(style_rule_editors_.back()->GetRootControl(),
- i);
+ rules_layout_.InsertChildAt(
+ style_rule_editors_.back()->GetRootControl(), i);
}
break;
}