From f634cff2064298e36a2487ed43021bef4e38fef9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 11 Aug 2016 14:41:36 +0200 Subject: [PATCH] wxMathPlot: Removed mouse help related functions --- common/widgets/mathplot.cpp | 11 ----------- include/widgets/mathplot.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/common/widgets/mathplot.cpp b/common/widgets/mathplot.cpp index e0d3824cc1..8383c4e08e 100644 --- a/common/widgets/mathplot.cpp +++ b/common/widgets/mathplot.cpp @@ -1136,7 +1136,6 @@ IMPLEMENT_DYNAMIC_CLASS(mpWindow, wxWindow) EVT_MENU( mpID_ZOOM_IN, mpWindow::OnZoomIn) EVT_MENU( mpID_ZOOM_OUT, mpWindow::OnZoomOut) EVT_MENU( mpID_LOCKASPECT,mpWindow::OnLockAspect) - EVT_MENU( mpID_HELP_MOUSE,mpWindow::OnMouseHelp) END_EVENT_TABLE() mpWindow::mpWindow( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long flag ) @@ -1617,16 +1616,6 @@ void mpWindow::OnLockAspect(wxCommandEvent& WXUNUSED(event)) LockAspect( !m_lockaspect ); } -void mpWindow::OnMouseHelp(wxCommandEvent& WXUNUSED(event)) -{ - wxMessageBox(_("Supported Mouse commands:\n \ - - Left button down + Mark area: Rectangular zoom\n \ - - Middle button down + Move: Pan (Move)\n \ - - Wheel: Vertical scroll\n \ - - Wheel + SHIFT: Horizontal scroll\n \ - - Wheel + CTRL: Zoom in/out"),_("wxMathPlot help"),wxOK,this); -} - void mpWindow::OnFit(wxCommandEvent& WXUNUSED(event)) { Fit(); diff --git a/include/widgets/mathplot.h b/include/widgets/mathplot.h index 8407952a71..5dbebf580c 100644 --- a/include/widgets/mathplot.h +++ b/include/widgets/mathplot.h @@ -116,7 +116,6 @@ enum mpID_ZOOM_OUT, //!< Zoom out mpID_CENTER, //!< Center view on click position mpID_LOCKASPECT, //!< Lock x/y scaling aspect - mpID_HELP_MOUSE //!< Shows information about the mouse commands }; //----------------------------------------------------------------------------- @@ -1168,7 +1167,6 @@ class WXDLLIMPEXP_MATHPLOT mpWindow : public wxWindow void OnZoomIn (wxCommandEvent &event); //!< Context menu handler void OnZoomOut (wxCommandEvent &event); //!< Context menu handler void OnLockAspect (wxCommandEvent &event); //!< Context menu handler - void OnMouseHelp (wxCommandEvent &event); //!< Context menu handler void OnMouseWheel (wxMouseEvent &event); //!< Mouse handler for the wheel void OnMouseMove (wxMouseEvent &event); //!< Mouse handler for mouse motion (for pan) void OnMouseLeftDown (wxMouseEvent &event); //!< Mouse left click (for rect zoom)