Remove up/down buttons until we implement layer ordering.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14574
This commit is contained in:
Jeff Young 2023-09-03 21:31:07 +01:00
parent 91d8dabca3
commit d27413a032
1 changed files with 7 additions and 0 deletions

View File

@ -151,6 +151,7 @@ DIALOG_PLOT::DIALOG_PLOT( PCB_EDIT_FRAME* aParent ) :
sbSizer->Add( m_plotAllLayersList, 1, wxALL | wxEXPAND, 5 );
#if 0 // re-enable once layer ordering is implemented
wxBoxSizer* bButtonSizer;
bButtonSizer = new wxBoxSizer( wxHORIZONTAL );
@ -169,6 +170,8 @@ DIALOG_PLOT::DIALOG_PLOT( PCB_EDIT_FRAME* aParent ) :
bButtonSizer->Add( m_bpMoveDown, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5 );
sbSizer->Add( bButtonSizer, 0, wxALL | wxEXPAND, 5 );
#endif
bmiddleSizer->Insert( 1, sbSizer, 1, wxALL | wxEXPAND, 3 );
init_Dialog();
@ -180,15 +183,19 @@ DIALOG_PLOT::DIALOG_PLOT( PCB_EDIT_FRAME* aParent ) :
GetSizer()->Fit( this );
GetSizer()->SetSizeHints( this );
#if 0 // re-enable once layer ordering is implemented
m_bpMoveUp->Bind( wxEVT_COMMAND_BUTTON_CLICKED, &DIALOG_PLOT::onPlotAllListMoveUp, this );
m_bpMoveDown->Bind( wxEVT_COMMAND_BUTTON_CLICKED, &DIALOG_PLOT::onPlotAllListMoveDown, this );
#endif
}
DIALOG_PLOT::~DIALOG_PLOT()
{
#if 0 // re-enable once layer ordering is implemented
m_bpMoveDown->Unbind( wxEVT_COMMAND_BUTTON_CLICKED, &DIALOG_PLOT::onPlotAllListMoveDown, this );
m_bpMoveUp->Unbind( wxEVT_COMMAND_BUTTON_CLICKED, &DIALOG_PLOT::onPlotAllListMoveUp, this );
#endif
}