From 05525745c0b0d189484da3c45f95356d7558e2cf Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 18 Aug 2016 19:10:04 -0300 Subject: Line improvements, context menu implemented Line still under construction, contex menu base implemented --- Project/Bus.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Project/Bus.cpp') 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; +} -- cgit