diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-09-07 23:52:26 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-09-07 23:52:26 -0300 |
commit | fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2 (patch) | |
tree | d009045e6591ef766a1c14765f3b8a7a3bc5d18a /Project/SyncMotor.cpp | |
parent | 697baaa3cc92e945d2301238dc9bcabffdb465ef (diff) | |
download | PSP.git-fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2.tar.gz PSP.git-fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2.tar.xz PSP.git-fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2.zip |
Movementation and rotation fixed
Diffstat (limited to 'Project/SyncMotor.cpp')
-rw-r--r-- | Project/SyncMotor.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Project/SyncMotor.cpp b/Project/SyncMotor.cpp index bdd3abd..b6d9e9a 100644 --- a/Project/SyncMotor.cpp +++ b/Project/SyncMotor.cpp @@ -16,17 +16,7 @@ void SyncMotor::DrawSymbol() const bool SyncMotor::GetContextMenu(wxMenu& menu) { menu.Append(ID_EDIT_SYNCMOTOR, _("Edit Synchronous Condenser")); + GeneralMenuItens(menu); - wxMenuItem* clockItem = new wxMenuItem(&menu, ID_ROTATE_CLOCK, _("Rotate clockwise")); - clockItem->SetBitmap(wxImage("data\\images\\menu\\rotateClock16.png")); - menu.Append(clockItem); - - wxMenuItem* counterClockItem = new wxMenuItem(&menu, ID_ROTATE_COUNTERCLOCK, _("Rotate counter-clockwise")); - counterClockItem->SetBitmap(wxImage("data\\images\\menu\\rotateCounterClock16.png")); - menu.Append(counterClockItem); - - wxMenuItem* deleteItem = new wxMenuItem(&menu, ID_DELETE, _("Delete")); - deleteItem->SetBitmap(wxImage("data\\images\\menu\\delete16.png")); - menu.Append(deleteItem); - return true; + return true; } |