summaryrefslogtreecommitdiffstats
path: root/Project/SyncMotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/SyncMotor.cpp')
-rw-r--r--Project/SyncMotor.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/Project/SyncMotor.cpp b/Project/SyncMotor.cpp
new file mode 100644
index 0000000..08399d2
--- /dev/null
+++ b/Project/SyncMotor.cpp
@@ -0,0 +1,22 @@
+#include "SyncMotor.h"
+
+SyncMotor::SyncMotor() : Machines()
+{
+}
+
+SyncMotor::~SyncMotor()
+{
+}
+
+void SyncMotor::DrawSymbol() const
+{
+ DrawArc(m_position, 12, 30, 330, 10, GL_LINE_STRIP);
+}
+
+bool SyncMotor::GetContextMenu(wxMenu& menu)
+{
+ menu.Append(ID_EDIT_SYNCMOTOR, _("Edit Synchronous Condenser"));
+ menu.Append(ID_ROTATE, _("Rotate"));
+ menu.Append(ID_DELETE, _("Delete"));
+ return true;
+}