From 02a95b958d7f8f2f1ccc9c542a727d6f526b54e8 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 3 Sep 2023 21:31:07 +0100 Subject: [PATCH] Remove up/down buttons until we implement layer ordering. Fixes https://gitlab.com/kicad/code/kicad/-/issues/14574 (cherry picked from commit d27413a032b68f96600850ecc80a84820c0f0fa7) --- pcbnew/dialogs/dialog_plot.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp index cde571539b..754191953b 100644 --- a/pcbnew/dialogs/dialog_plot.cpp +++ b/pcbnew/dialogs/dialog_plot.cpp @@ -154,6 +154,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 ); @@ -172,6 +173,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(); @@ -183,15 +186,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 }