summaryrefslogtreecommitdiffstats
path: root/Project/Bus.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-08-18 19:10:04 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-08-18 19:10:04 -0300
commit05525745c0b0d189484da3c45f95356d7558e2cf (patch)
treee05100d4711e4050985e3d550bf9053a3c22942f /Project/Bus.cpp
parente58cec073cbd982246898c733ae21b9f2b92b2b7 (diff)
downloadPSP.git-05525745c0b0d189484da3c45f95356d7558e2cf.tar.gz
PSP.git-05525745c0b0d189484da3c45f95356d7558e2cf.tar.xz
PSP.git-05525745c0b0d189484da3c45f95356d7558e2cf.zip
Line improvements, context menu implemented
Line still under construction, contex menu base implemented
Diffstat (limited to 'Project/Bus.cpp')
-rw-r--r--Project/Bus.cpp9
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;
+}