summaryrefslogtreecommitdiffstats
path: root/Project/Gain.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-16 19:07:49 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-16 19:07:49 -0300
commit1158ce068e3b5b391604270bf10c52d0d2f7f4db (patch)
tree7e9b770ede3c0592f631b9e6982be55d2173ea04 /Project/Gain.h
parentc6c3ff70bfceac839af471c11fc8aa04060517b0 (diff)
downloadPSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.tar.gz
PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.tar.xz
PSP.git-1158ce068e3b5b391604270bf10c52d0d2f7f4db.zip
Sync generator control fixed
Diffstat (limited to 'Project/Gain.h')
-rw-r--r--Project/Gain.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/Gain.h b/Project/Gain.h
index bb9c3ce..82b2793 100644
--- a/Project/Gain.h
+++ b/Project/Gain.h
@@ -20,12 +20,14 @@ class Gain : public ControlElement
virtual bool ShowForm(wxWindow* parent, Element* element);
virtual void Rotate(bool clockwise = true);
virtual void Move(wxPoint2DDouble position);
-
+ virtual void UpdateText() { SetValue(m_value); }
virtual void SetValue(double value);
virtual double GetValue() const { return m_value; }
virtual void UpdatePoints();
virtual bool Solve(double input, double timeStep);
+
+ virtual Element* GetCopy();
protected:
double m_value = 1.0;