Add Zoom level to the 3D viewer in PCB
This commit is contained in:
parent
69a1b30b8a
commit
4d84bee6f6
|
@ -330,6 +330,9 @@ void EDA_3D_CANVAS::DisplayStatus()
|
|||
|
||||
msg.Printf( wxT( "dy %3.2f" ), m_camera.GetCameraPos().y );
|
||||
m_parentStatusBar->SetStatusText( msg, static_cast<int>( EDA_3D_VIEWER_STATUSBAR::Y_POS ) );
|
||||
|
||||
msg.Printf( wxT( "zoom %3.2f" ), 1 / m_camera.GetZoom() );
|
||||
m_parentStatusBar->SetStatusText( msg, static_cast<int>( EDA_3D_VIEWER_STATUSBAR::ZOOM_LEVEL ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ EDA_3D_VIEWER_FRAME::EDA_3D_VIEWER_FRAME( KIWAY* aKiway, PCB_BASE_FRAME* aParent
|
|||
SetIcon( icon );
|
||||
|
||||
// Create the status line
|
||||
static const int status_dims[4] = { -1, 170, 130, 130 };
|
||||
static const int status_dims[5] = { -1, 170, 130, 130, 130 };
|
||||
|
||||
wxStatusBar *status_bar = CreateStatusBar( arrayDim( status_dims ) );
|
||||
SetStatusWidths( arrayDim( status_dims ), status_dims );
|
||||
|
|
|
@ -59,6 +59,7 @@ enum EDA_3D_VIEWER_STATUSBAR
|
|||
HOVERED_ITEM,
|
||||
X_POS,
|
||||
Y_POS,
|
||||
ZOOM_LEVEL,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue