ADDED checkbox to turn Margin layer on/off.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12493
This commit is contained in:
parent
79a354bf0e
commit
5d62345cbd
|
@ -192,7 +192,7 @@ PANEL_SETUP_LAYERS_CTLs PANEL_SETUP_LAYERS::getCTLs( int aLayerNumber )
|
||||||
case B_CrtYd: RETURN_MANDATORY( m_CrtYdBack );
|
case B_CrtYd: RETURN_MANDATORY( m_CrtYdBack );
|
||||||
|
|
||||||
case Edge_Cuts: RETURN_MANDATORY( m_PCBEdges );
|
case Edge_Cuts: RETURN_MANDATORY( m_PCBEdges );
|
||||||
case Margin: RETURN_MANDATORY( m_Margin );
|
case Margin: RETURN_AUX( m_Margin );
|
||||||
case Eco2_User: RETURN_AUX( m_Eco2 );
|
case Eco2_User: RETURN_AUX( m_Eco2 );
|
||||||
case Eco1_User: RETURN_AUX( m_Eco1 );
|
case Eco1_User: RETURN_AUX( m_Eco1 );
|
||||||
case Cmts_User: RETURN_AUX( m_Comments );
|
case Cmts_User: RETURN_AUX( m_Comments );
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
|
@ -659,8 +659,8 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
||||||
m_PCBEdgesStaticText->Wrap( -1 );
|
m_PCBEdgesStaticText->Wrap( -1 );
|
||||||
m_LayerListFlexGridSizer->Add( m_PCBEdgesStaticText, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
m_LayerListFlexGridSizer->Add( m_PCBEdgesStaticText, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_MarginCheckBox = new wxCheckBox( m_LayersListPanel, ID_MARGINCHECKBOX, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_LayerListFlexGridSizer->Add( 0, 0, 1, wxEXPAND, 5 );
|
m_LayerListFlexGridSizer->Add( m_MarginCheckBox, 0, wxLEFT|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
|
||||||
|
|
||||||
m_MarginName = new wxTextCtrl( m_LayersListPanel, wxID_ANY, _("Margin"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_MarginName = new wxTextCtrl( m_LayersListPanel, wxID_ANY, _("Margin"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_LayerListFlexGridSizer->Add( m_MarginName, 0, wxEXPAND|wxRIGHT, 5 );
|
m_LayerListFlexGridSizer->Add( m_MarginName, 0, wxEXPAND|wxRIGHT, 5 );
|
||||||
|
@ -861,6 +861,7 @@ PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID i
|
||||||
m_SoldPBackCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_SoldPBackCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_AdhesBackCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_AdhesBackCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_FabBackCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_FabBackCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
|
m_MarginCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_Eco1CheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_Eco1CheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_Eco2CheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_Eco2CheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_CommentsCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_CommentsCheckBox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
|
@ -922,6 +923,7 @@ PANEL_SETUP_LAYERS_BASE::~PANEL_SETUP_LAYERS_BASE()
|
||||||
m_SoldPBackCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_SoldPBackCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_AdhesBackCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_AdhesBackCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_FabBackCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_FabBackCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
|
m_MarginCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_Eco1CheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_Eco1CheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_Eco2CheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_Eco2CheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
m_CommentsCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
m_CommentsCheckBox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::OnCheckBox ), NULL, this );
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO *NOT* EDIT THIS FILE!
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
||||||
|
@ -148,14 +148,15 @@
|
||||||
#define ID_FABBACKCHOICE 1115
|
#define ID_FABBACKCHOICE 1115
|
||||||
#define ID_CRTYDBACKCHOICE 1116
|
#define ID_CRTYDBACKCHOICE 1116
|
||||||
#define ID_PCBEDGESCHOICE 1117
|
#define ID_PCBEDGESCHOICE 1117
|
||||||
#define ID_ECO2CHOICE 1118
|
#define ID_MARGINCHECKBOX 1118
|
||||||
#define ID_ECO2CHECKBOX 1119
|
#define ID_ECO2CHOICE 1119
|
||||||
#define ID_ECO1CHECKBOX 1120
|
#define ID_ECO2CHECKBOX 1120
|
||||||
#define ID_ECO1CHOICE 1121
|
#define ID_ECO1CHECKBOX 1121
|
||||||
#define ID_COMMENTSCHECKBOX 1122
|
#define ID_ECO1CHOICE 1122
|
||||||
#define ID_COMMENTSCHOICE 1123
|
#define ID_COMMENTSCHECKBOX 1123
|
||||||
#define ID_DRAWINGSCHECKBOX 1124
|
#define ID_COMMENTSCHOICE 1124
|
||||||
#define ID_DRAWINGSCHOICE 1125
|
#define ID_DRAWINGSCHECKBOX 1125
|
||||||
|
#define ID_DRAWINGSCHOICE 1126
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Class PANEL_SETUP_LAYERS_BASE
|
/// Class PANEL_SETUP_LAYERS_BASE
|
||||||
|
@ -301,6 +302,7 @@ class PANEL_SETUP_LAYERS_BASE : public wxPanel
|
||||||
wxStaticText* m_CrtYdBackStaticText;
|
wxStaticText* m_CrtYdBackStaticText;
|
||||||
wxTextCtrl* m_PCBEdgesName;
|
wxTextCtrl* m_PCBEdgesName;
|
||||||
wxStaticText* m_PCBEdgesStaticText;
|
wxStaticText* m_PCBEdgesStaticText;
|
||||||
|
wxCheckBox* m_MarginCheckBox;
|
||||||
wxTextCtrl* m_MarginName;
|
wxTextCtrl* m_MarginName;
|
||||||
wxStaticText* m_MarginStaticText;
|
wxStaticText* m_MarginStaticText;
|
||||||
wxCheckBox* m_Eco1CheckBox;
|
wxCheckBox* m_Eco1CheckBox;
|
||||||
|
|
Loading…
Reference in New Issue