tabs converted to spaces except wxstruct.h
This commit is contained in:
parent
0bdf5bac72
commit
226b877ab9
|
@ -160,20 +160,20 @@ BASE_SCREEN* EDA_DRAW_PANEL::GetScreen()
|
||||||
|
|
||||||
wxPoint EDA_DRAW_PANEL::ToDeviceXY( const wxPoint& pos )
|
wxPoint EDA_DRAW_PANEL::ToDeviceXY( const wxPoint& pos )
|
||||||
{
|
{
|
||||||
wxPoint ret;
|
wxPoint ret;
|
||||||
INSTALL_UNBUFFERED_DC( dc, this );
|
INSTALL_UNBUFFERED_DC( dc, this );
|
||||||
ret.x = dc.LogicalToDeviceX( pos.x );
|
ret.x = dc.LogicalToDeviceX( pos.x );
|
||||||
ret.y = dc.LogicalToDeviceY( pos.y );
|
ret.y = dc.LogicalToDeviceY( pos.y );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxPoint EDA_DRAW_PANEL::ToLogicalXY( const wxPoint& pos )
|
wxPoint EDA_DRAW_PANEL::ToLogicalXY( const wxPoint& pos )
|
||||||
{
|
{
|
||||||
wxPoint ret;
|
wxPoint ret;
|
||||||
INSTALL_UNBUFFERED_DC( dc, this );
|
INSTALL_UNBUFFERED_DC( dc, this );
|
||||||
ret.x = dc.DeviceToLogicalX( pos.x );
|
ret.x = dc.DeviceToLogicalX( pos.x );
|
||||||
ret.y = dc.DeviceToLogicalY( pos.y );
|
ret.y = dc.DeviceToLogicalY( pos.y );
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void EDA_DRAW_PANEL::DrawCrossHair( wxDC* aDC, EDA_COLOR_T aColor )
|
void EDA_DRAW_PANEL::DrawCrossHair( wxDC* aDC, EDA_COLOR_T aColor )
|
||||||
|
|
|
@ -56,9 +56,9 @@ void EDA_DRAW_FRAME::RedrawScreen( const wxPoint& aCenterPoint, bool aWarpPointe
|
||||||
|
|
||||||
void EDA_DRAW_FRAME::RedrawScreen2( const wxPoint& posBefore )
|
void EDA_DRAW_FRAME::RedrawScreen2( const wxPoint& posBefore )
|
||||||
{
|
{
|
||||||
wxPoint dPos = posBefore - m_canvas->GetClientSize() / 2; // relative screen position to center before zoom
|
wxPoint dPos = posBefore - m_canvas->GetClientSize() / 2; // relative screen position to center before zoom
|
||||||
wxPoint newScreenPos = m_canvas->ToDeviceXY( GetScreen()->GetCrossHairPosition() ); // screen position of crosshair after zoom
|
wxPoint newScreenPos = m_canvas->ToDeviceXY( GetScreen()->GetCrossHairPosition() ); // screen position of crosshair after zoom
|
||||||
wxPoint newCenter = m_canvas->ToLogicalXY( newScreenPos - dPos );
|
wxPoint newCenter = m_canvas->ToLogicalXY( newScreenPos - dPos );
|
||||||
|
|
||||||
AdjustScrollBars( newCenter );
|
AdjustScrollBars( newCenter );
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,7 @@ void DIALOG_DISPLAY_OPTIONS::OnOKBUttonClick( wxCommandEvent& event )
|
||||||
|
|
||||||
m_Parent->SetPageSettings( pageInfo );
|
m_Parent->SetPageSettings( pageInfo );
|
||||||
|
|
||||||
m_Parent->GetCanvas()->SetEnableZoomNoCenter( m_OptZoomNoCenter->GetValue() );
|
m_Parent->GetCanvas()->SetEnableZoomNoCenter( m_OptZoomNoCenter->GetValue() );
|
||||||
m_Parent->GetCanvas()->SetEnableMiddleButtonPan( m_OptMiddleButtonPan->GetValue() );
|
m_Parent->GetCanvas()->SetEnableMiddleButtonPan( m_OptMiddleButtonPan->GetValue() );
|
||||||
m_Parent->GetCanvas()->SetMiddleButtonPanLimited( m_OptMiddleButtonPanLimited->GetValue() );
|
m_Parent->GetCanvas()->SetMiddleButtonPanLimited( m_OptMiddleButtonPanLimited->GetValue() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue