KiCad PCB EDA Suite
dialog_push_pad_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_PUSH_PAD_PROPERTIES_BASE::DIALOG_PUSH_PAD_PROPERTIES_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( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bLeftSizer;
20  bLeftSizer = new wxBoxSizer( wxVERTICAL );
21 
22  wxStaticBoxSizer* sbSizer1;
23  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options") ), wxVERTICAL );
24 
25  m_Pad_Shape_Filter_CB = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Do not modify pads having a different shape"), wxDefaultPosition, wxDefaultSize, 0 );
26  sbSizer1->Add( m_Pad_Shape_Filter_CB, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
27 
28  m_Pad_Layer_Filter_CB = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Do not modify pads having different layers"), wxDefaultPosition, wxDefaultSize, 0 );
29  sbSizer1->Add( m_Pad_Layer_Filter_CB, 0, wxALL, 5 );
30 
31  m_Pad_Orient_Filter_CB = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Do not modify pads having a different orientation"), wxDefaultPosition, wxDefaultSize, 0 );
32  sbSizer1->Add( m_Pad_Orient_Filter_CB, 0, wxALL, 5 );
33 
34 
35  bLeftSizer->Add( sbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
36 
37 
38  bMainSizer->Add( bLeftSizer, 1, wxALL|wxEXPAND, 5 );
39 
40  m_sdbSizer1 = new wxStdDialogButtonSizer();
41  m_sdbSizer1OK = new wxButton( this, wxID_OK );
42  m_sdbSizer1->AddButton( m_sdbSizer1OK );
43  m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
44  m_sdbSizer1->AddButton( m_sdbSizer1Apply );
45  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
46  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
47  m_sdbSizer1->Realize();
48 
49  bMainSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
50 
51 
52  this->SetSizer( bMainSizer );
53  this->Layout();
54  bMainSizer->Fit( this );
55 
56  // Connect Events
57  m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PUSH_PAD_PROPERTIES_BASE::PadPropertiesAccept ), NULL, this );
58  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PUSH_PAD_PROPERTIES_BASE::PadPropertiesAccept ), NULL, this );
59 }
60 
62 {
63  // Disconnect Events
64  m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PUSH_PAD_PROPERTIES_BASE::PadPropertiesAccept ), NULL, this );
65  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PUSH_PAD_PROPERTIES_BASE::PadPropertiesAccept ), NULL, this );
66 
67 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
virtual void PadPropertiesAccept(wxCommandEvent &event)
DIALOG_PUSH_PAD_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Push Pad Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)