Gerbview: remove used/unused row indicator
No longer relevant as we only show in use layers
This commit is contained in:
parent
ece9a782ac
commit
4a6ac8ca2f
|
@ -377,9 +377,3 @@ void GERBER_LAYER_WIDGET::OnRenderEnable( int aId, bool isEnabled )
|
|||
|
||||
m_frame->GetCanvas()->Refresh();
|
||||
}
|
||||
|
||||
|
||||
bool GERBER_LAYER_WIDGET::useAlternateBitmap( int aRow )
|
||||
{
|
||||
return GetImagesList()->GetGbrImage( aRow ) != nullptr;
|
||||
}
|
||||
|
|
|
@ -115,12 +115,6 @@ private:
|
|||
/// on every child control within the layer panel.
|
||||
void installRightLayerClickHandler();
|
||||
|
||||
/**
|
||||
* @return true if bitmaps shown in Render layer list are alternate bitmaps else false if
|
||||
* they are "normal" bitmaps.
|
||||
*/
|
||||
virtual bool useAlternateBitmap( int aRow ) override;
|
||||
|
||||
GERBER_FILE_IMAGE_LIST* GetImagesList();
|
||||
|
||||
GERBVIEW_FRAME* m_frame;
|
||||
|
|
|
@ -404,8 +404,6 @@ void LAYER_WIDGET::updateLayerRow( int aRow, const wxString& aName )
|
|||
{
|
||||
if( aRow == m_CurrentRow )
|
||||
indicator->SetIndicatorState( ROW_ICON_PROVIDER::STATE::ON );
|
||||
if( useAlternateBitmap( aRow ) )
|
||||
indicator->SetIndicatorState( ROW_ICON_PROVIDER::STATE::DIMMED );
|
||||
else
|
||||
indicator->SetIndicatorState( ROW_ICON_PROVIDER::STATE::OFF );
|
||||
}
|
||||
|
@ -509,7 +507,7 @@ LAYER_WIDGET::LAYER_WIDGET( wxWindow* aParent, wxWindow* aFocusOwner, wxWindowID
|
|||
// change the font size on the notebook's tabs to match aPointSize
|
||||
font.SetPointSize( pointSize );
|
||||
m_notebook->SetFont( font );
|
||||
|
||||
|
||||
m_LayerPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxTAB_TRAVERSAL );
|
||||
|
||||
|
@ -679,12 +677,7 @@ void LAYER_WIDGET::SelectLayerRow( int aRow )
|
|||
INDICATOR_ICON* oldIndicator = (INDICATOR_ICON*) getLayerComp( m_CurrentRow, 0 );
|
||||
|
||||
if( oldIndicator )
|
||||
{
|
||||
if( useAlternateBitmap( m_CurrentRow ) )
|
||||
oldIndicator->SetIndicatorState( ROW_ICON_PROVIDER::STATE::DIMMED );
|
||||
else
|
||||
oldIndicator->SetIndicatorState( ROW_ICON_PROVIDER::STATE::OFF );
|
||||
}
|
||||
oldIndicator->SetIndicatorState( ROW_ICON_PROVIDER::STATE::OFF );
|
||||
|
||||
INDICATOR_ICON* newIndicator = (INDICATOR_ICON*) getLayerComp( aRow, 0 );
|
||||
|
||||
|
@ -846,8 +839,6 @@ void LAYER_WIDGET::UpdateLayerIcons()
|
|||
|
||||
if( row == m_CurrentRow )
|
||||
state = ROW_ICON_PROVIDER::STATE::ON;
|
||||
else if( useAlternateBitmap( row ) )
|
||||
state = ROW_ICON_PROVIDER::STATE::DIMMED;
|
||||
else
|
||||
state = ROW_ICON_PROVIDER::STATE::OFF;
|
||||
|
||||
|
|
Loading…
Reference in New Issue