diff options
Diffstat (limited to 'Project/Inductor.h')
-rw-r--r-- | Project/Inductor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Project/Inductor.h b/Project/Inductor.h index 0362dcf..d613a4c 100644 --- a/Project/Inductor.h +++ b/Project/Inductor.h @@ -25,7 +25,7 @@ class ReactiveShuntElementForm; struct InductorElectricalData { wxString name; double reactivePower = 100.0; - ElectricalUnit reactivePowerUnit = UNIT_MVAr; + ElectricalUnit reactivePowerUnit = ElectricalUnit::UNIT_MVAr; }; /** @@ -45,6 +45,7 @@ class Inductor : public Shunt virtual Element* GetCopy(); virtual bool AddParent(Element* parent, wxPoint2DDouble position); virtual void Draw(wxPoint2DDouble translation, double scale) const; + virtual void DrawDC(wxPoint2DDouble translation, double scale, wxGraphicsContext* gc) const; virtual bool Contains(wxPoint2DDouble position) const; virtual bool Intersects(wxRect2DDouble rect) const; virtual void Rotate(bool clockwise = true); |