summaryrefslogtreecommitdiffstats
path: root/Project/IndMotor.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-10-27 17:26:24 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-10-27 17:26:24 -0200
commit02c5a1d22a078c132aca40ea14b95800dd8257e9 (patch)
tree39f576cc3c66931c3448b85833a5f048a40b7802 /Project/IndMotor.h
parent0e3a45462bf8ce31be988679fd380baeecfb1b95 (diff)
downloadPSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.tar.gz
PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.tar.xz
PSP.git-02c5a1d22a078c132aca40ea14b95800dd8257e9.zip
All elements forms implemented
Diffstat (limited to 'Project/IndMotor.h')
-rw-r--r--Project/IndMotor.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/Project/IndMotor.h b/Project/IndMotor.h
index 911edd1..7624e71 100644
--- a/Project/IndMotor.h
+++ b/Project/IndMotor.h
@@ -3,14 +3,30 @@
#include "Machines.h"
+class IndMotorForm;
+
+struct IndMotorElectricalData {
+ wxString name;
+ double activePower = 100.0;
+ ElectricalUnit activePowerUnit = UNIT_MW;
+ double reactivePower = 0.0;
+ ElectricalUnit reactivePowerUnit = UNIT_MVAr;
+};
+
class IndMotor : public Machines
{
-public:
- IndMotor();
- ~IndMotor();
-
- virtual void DrawSymbol() const;
- virtual bool GetContextMenu(wxMenu& menu);
+ public:
+ IndMotor();
+ IndMotor(wxString name);
+ ~IndMotor();
+
+ virtual void DrawSymbol() const;
+ virtual bool GetContextMenu(wxMenu& menu);
+ virtual bool ShowForm(wxWindow* parent, Element* element);
+ virtual IndMotorElectricalData GetElectricalData() { return m_electricalData; }
+ virtual void SetElectricalData(IndMotorElectricalData electricalData) { m_electricalData = electricalData; }
+ protected:
+ IndMotorElectricalData m_electricalData;
};
-#endif // INDMOTOR_H
+#endif // INDMOTOR_H