Browse Source

Fix incorrect name (typo) of a method.

pull/5/merge
jean-pierre charras 8 years ago
parent
commit
47d392d83e
  1. 2
      common/view/wx_view_controls.cpp
  2. 4
      include/view/view_controls.h
  3. 4
      include/view/wx_view_controls.h
  4. 4
      include/wxBasePcbFrame.h
  5. 2
      pcbnew/basepcbframe.cpp

2
common/view/wx_view_controls.cpp

@ -449,7 +449,7 @@ void WX_VIEW_CONTROLS::SetCursorPosition( const VECTOR2D& aPosition, bool aWarpV
}
void WX_VIEW_CONTROLS::SetCrossAirCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true )
void WX_VIEW_CONTROLS::SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true )
{
m_updateCursor = false;

4
include/view/view_controls.h

@ -237,11 +237,11 @@ public:
/**
* Moves the graphic crossair cursor to the requested position expressed in world coordinates.
* Moves the graphic crosshair cursor to the requested position expressed in world coordinates.
* @param aPosition is the requested cursor position in the world coordinates.
* @param aWarpView enables/disables view warp if the cursor is outside the current viewport.
*/
virtual void SetCrossAirCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true ) = 0;
virtual void SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true ) = 0;
/**

4
include/view/wx_view_controls.h

@ -83,8 +83,8 @@ public:
void SetCursorPosition( const VECTOR2D& aPosition, bool warpView ) override;
/// @copydoc VIEW_CONTROLS::SetCrossAirCursorPosition()
void SetCrossAirCursorPosition( const VECTOR2D& aPosition, bool aWarpView ) override;
/// @copydoc VIEW_CONTROLS::SetCrossHairCursorPosition()
void SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView ) override;
/// @copydoc VIEW_CONTROLS::CursorWarp()
void WarpCursor( const VECTOR2D& aPosition, bool aWorldCoordinates = false,

4
include/wxBasePcbFrame.h

@ -272,8 +272,8 @@ public:
/**
* Useful to focus on a particular location, in find functions
* Move the graphic cursor at a given coordinate and reframes the drawing if the
* requested point is out of view or if center on location is requested.
* Move the graphic cursor (crosshair cursor) at a given coordinate and reframes
* the drawing if the requested point is out of view or if center on location is requested.
* @param aPos is the point to go to.
* @param aWarpMouseCursor is true if the pointer should be warped to the new position.
* @param aCenterView is true if the new cursor position should be centered on canvas.

2
pcbnew/basepcbframe.cpp

@ -351,7 +351,7 @@ void PCB_BASE_FRAME::FocusOnLocation( const wxPoint& aPos,
if( aWarpMouseCursor )
GetGalCanvas()->GetViewControls()->SetCursorPosition( aPos );
else
GetGalCanvas()->GetViewControls()->SetCrossAirCursorPosition( aPos );
GetGalCanvas()->GetViewControls()->SetCrossHairCursorPosition( aPos );
}
else
{

Loading…
Cancel
Save