KiCad PCB EDA Suite
dialog_unused_pad_layers_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 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 )
13 {
14  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15 
16  m_MainSizer = new wxBoxSizer( wxVERTICAL );
17 
18  wxBoxSizer* bSizer2;
19  bSizer2 = new wxBoxSizer( wxHORIZONTAL );
20 
21  wxFlexGridSizer* fgSizerProps;
22  fgSizerProps = new wxFlexGridSizer( 0, 2, 0, 5 );
23  fgSizerProps->SetFlexibleDirection( wxVERTICAL );
24  fgSizerProps->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25 
26  wxString m_rbScopeChoices[] = { _("&Vias"), _("&Pads") };
27  int m_rbScopeNChoices = sizeof( m_rbScopeChoices ) / sizeof( wxString );
28  m_rbScope = new wxRadioBox( this, wxID_ANY, _("Scope"), wxDefaultPosition, wxDefaultSize, m_rbScopeNChoices, m_rbScopeChoices, 1, wxRA_SPECIFY_COLS );
29  m_rbScope->SetSelection( 0 );
30  fgSizerProps->Add( m_rbScope, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
31 
32  wxString m_rbActionChoices[] = { _("&Remove unused layers"), _("Res&tore unused layers") };
33  int m_rbActionNChoices = sizeof( m_rbActionChoices ) / sizeof( wxString );
34  m_rbAction = new wxRadioBox( this, wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, m_rbActionNChoices, m_rbActionChoices, 1, wxRA_SPECIFY_COLS );
35  m_rbAction->SetSelection( 1 );
36  fgSizerProps->Add( m_rbAction, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
37 
38  m_cbSelectedOnly = new wxCheckBox( this, wxID_ANY, _("&Selection only"), wxDefaultPosition, wxDefaultSize, 0 );
39  fgSizerProps->Add( m_cbSelectedOnly, 0, wxEXPAND|wxLEFT, 10 );
40 
41  m_cbPreservePads = new wxCheckBox( this, wxID_ANY, _("Keep &outside layers"), wxDefaultPosition, wxDefaultSize, 0 );
42  fgSizerProps->Add( m_cbPreservePads, 0, wxEXPAND|wxLEFT, 10 );
43 
44 
45  bSizer2->Add( fgSizerProps, 0, wxEXPAND|wxALL, 5 );
46 
47  wxBoxSizer* bSizerPreview;
48  bSizerPreview = new wxBoxSizer( wxVERTICAL );
49 
50 
51  bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
52 
53  m_image = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
54  bSizerPreview->Add( m_image, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
55 
56 
57  bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
58 
59 
60  bSizer2->Add( bSizerPreview, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
61 
62 
63  m_MainSizer->Add( bSizer2, 6, wxEXPAND|wxRIGHT|wxLEFT, 5 );
64 
65  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
66  m_MainSizer->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
67 
68  m_StdButtons = new wxStdDialogButtonSizer();
69  m_StdButtonsOK = new wxButton( this, wxID_OK );
70  m_StdButtons->AddButton( m_StdButtonsOK );
71  m_StdButtonsCancel = new wxButton( this, wxID_CANCEL );
72  m_StdButtons->AddButton( m_StdButtonsCancel );
73  m_StdButtons->Realize();
74 
75  m_MainSizer->Add( m_StdButtons, 0, wxEXPAND|wxALL, 5 );
76 
77 
78  this->SetSizer( m_MainSizer );
79  this->Layout();
80  m_MainSizer->Fit( this );
81 
82  this->Centre( wxBOTH );
83 
84  // Connect Events
85  m_rbAction->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
86  m_cbPreservePads->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
87 }
88 
90 {
91  // Disconnect Events
92  m_rbAction->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
93  m_cbPreservePads->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
94 
95 }
DIALOG_UNUSED_PAD_LAYERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Remove Unused Pads"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
virtual void syncImages(wxCommandEvent &event)
#define _(s)