Browse Source

wxMathPlot: Removed mouse help related functions

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
f634cff206
  1. 11
      common/widgets/mathplot.cpp
  2. 2
      include/widgets/mathplot.h

11
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();

2
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)

Loading…
Cancel
Save