2020-07-27 19:41:50 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-02-13 09:26:46 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb)
|
2020-07-27 19:41:50 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_unused_pad_layers_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_UNUSED_PAD_LAYERS_BASE::DIALOG_UNUSED_PAD_LAYERS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
|
|
|
|
|
|
|
m_MainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
wxBoxSizer* bMargins;
|
|
|
|
bMargins = new wxBoxSizer( wxHORIZONTAL );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
wxBoxSizer* bSizer4;
|
|
|
|
bSizer4 = new wxBoxSizer( wxVERTICAL );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
m_cbVias = new wxCheckBox( this, wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer4->Add( m_cbVias, 0, wxALL, 5 );
|
2022-09-03 08:41:14 +00:00
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
m_cbPads = new wxCheckBox( this, wxID_ANY, _("Pads"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer4->Add( m_cbPads, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2022-09-03 08:41:14 +00:00
|
|
|
|
|
|
|
|
2023-01-26 13:48:44 +00:00
|
|
|
bSizer4->Add( 0, 15, 0, wxEXPAND, 5 );
|
2022-09-03 08:41:14 +00:00
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
m_cbSelectedOnly = new wxCheckBox( this, wxID_ANY, _("&Selected only"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizer4->Add( m_cbSelectedOnly, 0, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
m_cbPreservePads = new wxCheckBox( this, wxID_ANY, _("Keep &outside layers"), wxDefaultPosition, wxDefaultSize, 0 );
|
2023-01-26 13:34:21 +00:00
|
|
|
bSizer4->Add( m_cbPreservePads, 0, wxEXPAND|wxLEFT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
bMargins->Add( bSizer4, 1, wxEXPAND|wxTOP|wxLEFT, 10 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
wxBoxSizer* bSizerPreview;
|
|
|
|
bSizerPreview = new wxBoxSizer( wxVERTICAL );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
m_image = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-07 01:15:31 +00:00
|
|
|
bSizerPreview->Add( m_image, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
|
|
|
|
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
bMargins->Add( bSizerPreview, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
2023-01-26 13:34:21 +00:00
|
|
|
m_MainSizer->Add( bMargins, 6, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
m_StdButtons = new wxStdDialogButtonSizer();
|
|
|
|
m_StdButtonsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_StdButtons->AddButton( m_StdButtonsOK );
|
2023-01-26 13:34:21 +00:00
|
|
|
m_StdButtonsApply = new wxButton( this, wxID_APPLY );
|
|
|
|
m_StdButtons->AddButton( m_StdButtonsApply );
|
2020-07-27 19:41:50 +00:00
|
|
|
m_StdButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_StdButtons->AddButton( m_StdButtonsCancel );
|
|
|
|
m_StdButtons->Realize();
|
|
|
|
|
2023-01-09 13:49:20 +00:00
|
|
|
m_MainSizer->Add( m_StdButtons, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( m_MainSizer );
|
|
|
|
this->Layout();
|
2020-11-11 15:58:12 +00:00
|
|
|
m_MainSizer->Fit( this );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
2022-09-03 08:41:14 +00:00
|
|
|
m_cbVias->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
|
|
|
m_cbPads->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
2020-07-27 19:41:50 +00:00
|
|
|
m_cbPreservePads->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
2023-01-26 13:34:21 +00:00
|
|
|
m_StdButtonsApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onApply ), NULL, this );
|
2023-02-13 09:26:46 +00:00
|
|
|
m_StdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onOK ), NULL, this );
|
2020-07-27 19:41:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_UNUSED_PAD_LAYERS_BASE::~DIALOG_UNUSED_PAD_LAYERS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2022-09-03 08:41:14 +00:00
|
|
|
m_cbVias->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
|
|
|
m_cbPads->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
2020-07-27 19:41:50 +00:00
|
|
|
m_cbPreservePads->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
2023-01-26 13:34:21 +00:00
|
|
|
m_StdButtonsApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onApply ), NULL, this );
|
2023-02-13 09:26:46 +00:00
|
|
|
m_StdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onOK ), NULL, this );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
}
|