2020-07-27 19:41:50 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2021-01-07 01:15:31 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
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 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizer2;
|
|
|
|
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
wxFlexGridSizer* fgSizerProps;
|
|
|
|
fgSizerProps = new wxFlexGridSizer( 0, 2, 0, 5 );
|
|
|
|
fgSizerProps->SetFlexibleDirection( wxVERTICAL );
|
|
|
|
fgSizerProps->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
wxString m_rbScopeChoices[] = { _("&Vias"), _("&Pads") };
|
|
|
|
int m_rbScopeNChoices = sizeof( m_rbScopeChoices ) / sizeof( wxString );
|
|
|
|
m_rbScope = new wxRadioBox( this, wxID_ANY, _("Scope"), wxDefaultPosition, wxDefaultSize, m_rbScopeNChoices, m_rbScopeChoices, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_rbScope->SetSelection( 0 );
|
2021-01-07 01:15:31 +00:00
|
|
|
fgSizerProps->Add( m_rbScope, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2021-01-10 16:37:06 +00:00
|
|
|
wxString m_rbActionChoices[] = { _("&Remove unused layers"), _("Res&tore unused layers") };
|
2020-07-27 19:41:50 +00:00
|
|
|
int m_rbActionNChoices = sizeof( m_rbActionChoices ) / sizeof( wxString );
|
|
|
|
m_rbAction = new wxRadioBox( this, wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, m_rbActionNChoices, m_rbActionChoices, 1, wxRA_SPECIFY_COLS );
|
2021-01-10 16:37:06 +00:00
|
|
|
m_rbAction->SetSelection( 1 );
|
2021-01-07 01:15:31 +00:00
|
|
|
fgSizerProps->Add( m_rbAction, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
m_cbSelectedOnly = new wxCheckBox( this, wxID_ANY, _("&Selection only"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-01-07 01:15:31 +00:00
|
|
|
fgSizerProps->Add( m_cbSelectedOnly, 0, wxEXPAND|wxLEFT, 10 );
|
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 );
|
|
|
|
fgSizerProps->Add( m_cbPreservePads, 0, wxEXPAND|wxLEFT, 10 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
bSizer2->Add( fgSizerProps, 0, wxEXPAND|wxALL, 5 );
|
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
|
|
|
|
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
bSizer2->Add( bSizerPreview, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
m_MainSizer->Add( bSizer2, 6, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
2020-07-27 19:41:50 +00:00
|
|
|
|
2021-01-07 01:15:31 +00:00
|
|
|
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
m_MainSizer->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 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 );
|
|
|
|
m_StdButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_StdButtons->AddButton( m_StdButtonsCancel );
|
|
|
|
m_StdButtons->Realize();
|
|
|
|
|
|
|
|
m_MainSizer->Add( m_StdButtons, 0, wxEXPAND|wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
m_rbAction->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
|
|
|
m_cbPreservePads->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_UNUSED_PAD_LAYERS_BASE::~DIALOG_UNUSED_PAD_LAYERS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_rbAction->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
|
|
|
m_cbPreservePads->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
|
|
|
|
|
|
|
|
}
|