KiCad PCB EDA Suite
dialog_track_via_size_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 17 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
13 
14 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 )
15 {
16  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
17 
18  wxBoxSizer* bSizes;
19  bSizes = new wxBoxSizer( wxVERTICAL );
20 
21  wxFlexGridSizer* fgSizer1;
22  fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
23  fgSizer1->AddGrowableCol( 1 );
24  fgSizer1->SetFlexibleDirection( wxBOTH );
25  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26 
27  m_staticText3 = new wxStaticText( this, wxID_ANY, _("Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_staticText3->Wrap( -1 );
29  fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
30 
31  m_trackWidthText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32  fgSizer1->Add( m_trackWidthText, 1, wxALL|wxEXPAND, 5 );
33 
34  m_trackWidthLabel = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_trackWidthLabel->Wrap( -1 );
36  fgSizer1->Add( m_trackWidthLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
37 
38  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Via diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
39  m_staticText5->Wrap( -1 );
40  fgSizer1->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
41 
42  m_viaDiameterText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
43  fgSizer1->Add( m_viaDiameterText, 1, wxALL|wxEXPAND, 5 );
44 
45  m_viaDiameterLabel = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_viaDiameterLabel->Wrap( -1 );
47  fgSizer1->Add( m_viaDiameterLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
48 
49  m_staticText7 = new wxStaticText( this, wxID_ANY, _("Via drill:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_staticText7->Wrap( -1 );
51  fgSizer1->Add( m_staticText7, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
52 
53  m_viaDrillText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
54  fgSizer1->Add( m_viaDrillText, 1, wxALL|wxEXPAND, 5 );
55 
56  m_viaDrillLabel = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
57  m_viaDrillLabel->Wrap( -1 );
58  fgSizer1->Add( m_viaDrillLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
59 
60 
61  bSizes->Add( fgSizer1, 1, wxEXPAND|wxALL, 5 );
62 
63  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
64  bSizes->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
65 
66  m_stdButtons = new wxStdDialogButtonSizer();
67  m_stdButtonsOK = new wxButton( this, wxID_OK );
68  m_stdButtons->AddButton( m_stdButtonsOK );
69  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
70  m_stdButtons->AddButton( m_stdButtonsCancel );
71  m_stdButtons->Realize();
72 
73  bSizes->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
74 
75 
76  this->SetSizer( bSizes );
77  this->Layout();
78 
79  this->Centre( wxBOTH );
80 
81  // Connect Events
82  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onClose ) );
83  m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onCancelClick ), NULL, this );
84  m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onOkClick ), NULL, this );
85 }
86 
88 {
89  // Disconnect Events
90  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onClose ) );
91  m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onCancelClick ), NULL, this );
92  m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_SIZE_BASE::onOkClick ), NULL, this );
93 
94 }
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)
wxTextCtrl wrapper to handle math expression evaluation.
virtual void onClose(wxCloseEvent &event)