diff options
Diffstat (limited to 'Project/Bus.cpp')
-rw-r--r-- | Project/Bus.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Project/Bus.cpp b/Project/Bus.cpp index a7ebf59..a578e1b 100644 --- a/Project/Bus.cpp +++ b/Project/Bus.cpp @@ -147,6 +147,13 @@ void Bus::MovePickbox(wxPoint2DDouble position) void Bus::Rotate() { - m_angle += 45.0; + m_angle += m_rotationAngle; if(m_angle >= 360.0) m_angle = 0.0; } + +bool Bus::GetContextMenu(wxMenu& menu) +{ + menu.Append(ID_EDIT_BUS, _("Edit bus")); + menu.Append(ID_ROTATE, _("Rotate")); + return true; +} |