From 1158ce068e3b5b391604270bf10c52d0d2f7f4db Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 16 May 2017 19:07:49 -0300 Subject: Sync generator control fixed --- Project/Constant.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Project/Constant.h') diff --git a/Project/Constant.h b/Project/Constant.h index 9868627..3f84b91 100644 --- a/Project/Constant.h +++ b/Project/Constant.h @@ -19,10 +19,13 @@ class Constant : public ControlElement virtual bool Intersects(wxRect2DDouble rect) const { return m_rect.Intersects(rect); } virtual bool ShowForm(wxWindow* parent, Element* element); virtual void Rotate(bool clockwise = true); + virtual void UpdateText() { SetValue(m_value); } virtual void SetValue(double value); virtual double GetValue() const { return m_value; } virtual void UpdatePoints(); + + virtual Element* GetCopy(); protected: double m_value = 1.0; -- cgit