aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/properties/PointPropertyEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme_builder/components/properties/PointPropertyEditor.h')
-rw-r--r--src/theme_builder/components/properties/PointPropertyEditor.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/theme_builder/components/properties/PointPropertyEditor.h b/src/theme_builder/components/properties/PointPropertyEditor.h
index e4604c84..bd852e3a 100644
--- a/src/theme_builder/components/properties/PointPropertyEditor.h
+++ b/src/theme_builder/components/properties/PointPropertyEditor.h
@@ -1,11 +1,11 @@
#pragma once
-#include "cru/ui/components/Component.h"
+#include "../Editor.h"
#include "cru/ui/controls/FlexLayout.h"
#include "cru/ui/controls/TextBlock.h"
#include "cru/ui/controls/TextBox.h"
namespace cru::theme_builder::components::properties {
-class PointPropertyEditor : public ui::components::Component {
+class PointPropertyEditor : public Editor {
public:
using PropertyType = ui::Point;
@@ -21,8 +21,6 @@ class PointPropertyEditor : public ui::components::Component {
ui::Point GetValue() const { return point_; }
void SetValue(const ui::Point& point, bool trigger_change = true);
- IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; }
-
private:
static String ConvertPointToString(const ui::Point& point);
@@ -33,8 +31,5 @@ class PointPropertyEditor : public ui::components::Component {
ui::controls::TextBlock label_;
ui::controls::TextBox text_;
bool is_text_valid_;
-
- bool suppress_next_change_event_ = false;
- Event<std::nullptr_t> change_event_;
};
} // namespace cru::theme_builder::components::properties