KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_unused_pad_layers_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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* bMargins;
19 bMargins = new wxBoxSizer( wxHORIZONTAL );
20
21 wxBoxSizer* bSizer4;
22 bSizer4 = new wxBoxSizer( wxVERTICAL );
23
24 m_cbVias = new wxCheckBox( this, wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
25 bSizer4->Add( m_cbVias, 0, wxALL, 5 );
26
27 m_cbPads = new wxCheckBox( this, wxID_ANY, _("Pads"), wxDefaultPosition, wxDefaultSize, 0 );
28 bSizer4->Add( m_cbPads, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
29
30
31 bSizer4->Add( 0, 15, 0, wxEXPAND, 5 );
32
33 m_cbSelectedOnly = new wxCheckBox( this, wxID_ANY, _("&Selected only"), wxDefaultPosition, wxDefaultSize, 0 );
34 bSizer4->Add( m_cbSelectedOnly, 0, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
35
36 m_cbPreserveExternalLayers = new wxCheckBox( this, wxID_ANY, _("Keep &outside layers"), wxDefaultPosition, wxDefaultSize, 0 );
37 bSizer4->Add( m_cbPreserveExternalLayers, 0, wxEXPAND|wxLEFT, 5 );
38
39
40 bMargins->Add( bSizer4, 1, wxEXPAND|wxTOP|wxLEFT, 10 );
41
42 wxBoxSizer* bSizerPreview;
43 bSizerPreview = new wxBoxSizer( wxVERTICAL );
44
45
46 bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
47
48 m_image = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
49 bSizerPreview->Add( m_image, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
50
51
52 bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
53
54
55 bMargins->Add( bSizerPreview, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
56
57
58 m_MainSizer->Add( bMargins, 6, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
59
60 m_StdButtons = new wxStdDialogButtonSizer();
61 m_StdButtonsOK = new wxButton( this, wxID_OK );
62 m_StdButtons->AddButton( m_StdButtonsOK );
63 m_StdButtonsApply = new wxButton( this, wxID_APPLY );
64 m_StdButtons->AddButton( m_StdButtonsApply );
65 m_StdButtonsCancel = new wxButton( this, wxID_CANCEL );
66 m_StdButtons->AddButton( m_StdButtonsCancel );
67 m_StdButtons->Realize();
68
69 m_MainSizer->Add( m_StdButtons, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
70
71
72 this->SetSizer( m_MainSizer );
73 this->Layout();
74 m_MainSizer->Fit( this );
75
76 this->Centre( wxBOTH );
77
78 // Connect Events
79 m_cbVias->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
80 m_cbPads->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
81 m_cbPreserveExternalLayers->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
82 m_StdButtonsApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onApply ), NULL, this );
83 m_StdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onOK ), NULL, this );
84}
85
87{
88 // Disconnect Events
89 m_cbVias->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
90 m_cbPads->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
91 m_cbPreserveExternalLayers->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::syncImages ), NULL, this );
92 m_StdButtonsApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onApply ), NULL, this );
93 m_StdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UNUSED_PAD_LAYERS_BASE::onOK ), NULL, this );
94
95}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
virtual void syncImages(wxCommandEvent &event)
virtual void onOK(wxCommandEvent &event)
virtual void onApply(wxCommandEvent &event)
DIALOG_UNUSED_PAD_LAYERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Unused Pads"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
#define _(s)