KiCad PCB EDA Suite
dialog_track_via_size_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 21 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_TRACK_VIA_SIZE_BASE::DIALOG_TRACK_VIA_SIZE_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  wxBoxSizer* bSizes;
17  bSizes = new wxBoxSizer( wxVERTICAL );
18 
19  wxFlexGridSizer* fgSizer1;
20  fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
21  fgSizer1->AddGrowableCol( 1 );
22  fgSizer1->SetFlexibleDirection( wxBOTH );
23  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 
25  m_staticText3 = new wxStaticText( this, wxID_ANY, _("Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_staticText3->Wrap( -1 );
27  fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
28 
29  m_trackWidthText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30  fgSizer1->Add( m_trackWidthText, 1, wxALL|wxEXPAND, 5 );
31 
32  m_trackWidthLabel = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_trackWidthLabel->Wrap( -1 );
34  fgSizer1->Add( m_trackWidthLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
35 
36  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Via diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_staticText5->Wrap( -1 );
38  fgSizer1->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
39 
40  m_viaDiameterText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41  fgSizer1->Add( m_viaDiameterText, 1, wxALL|wxEXPAND, 5 );
42 
43  m_viaDiameterLabel = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_viaDiameterLabel->Wrap( -1 );
45  fgSizer1->Add( m_viaDiameterLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
46 
47  m_staticText7 = new wxStaticText( this, wxID_ANY, _("Via drill:"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_staticText7->Wrap( -1 );
49  fgSizer1->Add( m_staticText7, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
50 
51  m_viaDrillText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52  fgSizer1->Add( m_viaDrillText, 1, wxALL|wxEXPAND, 5 );
53 
54  m_viaDrillLabel = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
55  m_viaDrillLabel->Wrap( -1 );
56  fgSizer1->Add( m_viaDrillLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
57 
58 
59  bSizes->Add( fgSizer1, 1, wxEXPAND|wxALL, 5 );
60 
61  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
62  bSizes->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
63 
64  m_stdButtons = new wxStdDialogButtonSizer();
65  m_stdButtonsOK = new wxButton( this, wxID_OK );
66  m_stdButtons->AddButton( m_stdButtonsOK );
67  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
68  m_stdButtons->AddButton( m_stdButtonsCancel );
69  m_stdButtons->Realize();
70 
71  bSizes->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
72 
73 
74  this->SetSizer( bSizes );
75  this->Layout();
76 
77  this->Centre( wxBOTH );
78 
79  // Connect Events
80  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onClose ) );
81  m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onCancelClick ), NULL, this );
82  m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onOkClick ), NULL, this );
83 }
84 
86 {
87  // Disconnect Events
88  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onClose ) );
89  m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onCancelClick ), NULL, this );
90  m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onOkClick ), NULL, this );
91 
92 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void onCancelClick(wxCommandEvent &event)
wxStdDialogButtonSizer * m_stdButtons
virtual void onOkClick(wxCommandEvent &event)
DIALOG_TRACK_VIA_SIZE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Track width and via size"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(303, 187), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onClose(wxCloseEvent &event)