aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/properties/PointPropertyEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-17 18:32:52 +0800
committercrupest <crupest@outlook.com>2022-02-17 18:32:52 +0800
commitada641977cd57a50fc862243ba256c58efc065b8 (patch)
tree0f2124b88496f42e2cce2e3aaa64211131c18b37 /src/theme_builder/components/properties/PointPropertyEditor.h
parent9b3b13f78fffefb18f64aad88891d36009a8052e (diff)
downloadcru-ada641977cd57a50fc862243ba256c58efc065b8.tar.gz
cru-ada641977cd57a50fc862243ba256c58efc065b8.tar.bz2
cru-ada641977cd57a50fc862243ba256c58efc065b8.zip
...
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