From 660c40709585c3ffb06eb886cde16fddae440066 Mon Sep 17 00:00:00 2001 From: Jon Evans <jon@craftyjon.com> Date: Thu, 12 Oct 2023 21:52:37 -0400 Subject: [PATCH] ADDED: Control of multi-layer plot order from plot dialog Enabled by 0b136ae0 --- pcbnew/dialogs/dialog_plot.cpp | 8 +------- pcbnew/dialogs/dialog_plot.h | 2 -- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pcbnew/dialogs/dialog_plot.cpp b/pcbnew/dialogs/dialog_plot.cpp index 1525bf371f..5f7168c0bc 100644 --- a/pcbnew/dialogs/dialog_plot.cpp +++ b/pcbnew/dialogs/dialog_plot.cpp @@ -151,7 +151,6 @@ 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 ); @@ -170,7 +169,6 @@ 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 ); @@ -183,19 +181,15 @@ 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 } @@ -1229,4 +1223,4 @@ void DIALOG_PLOT::onPlotFPText( wxCommandEvent& aEvent ) m_plotFootprintRefs->SetValue( false ); m_plotFootprintValues->SetValue( false ); } -} \ No newline at end of file +} diff --git a/pcbnew/dialogs/dialog_plot.h b/pcbnew/dialogs/dialog_plot.h index 92e71dd353..de16d49f6a 100644 --- a/pcbnew/dialogs/dialog_plot.h +++ b/pcbnew/dialogs/dialog_plot.h @@ -97,10 +97,8 @@ private: wxRearrangeList* m_plotAllLayersList; -#if 0 STD_BITMAP_BUTTON* m_bpMoveUp; STD_BITMAP_BUTTON* m_bpMoveDown; -#endif /// The plot layer set that last time the dialog was opened. static LSET m_lastLayerSet;