KiCad PCB EDA Suite
dialog_pns_diff_pair_dimensions_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 
13 
14 DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::DIALOG_PNS_DIFF_PAIR_DIMENSIONS_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* bSizer7;
19  bSizer7 = new wxBoxSizer( wxVERTICAL );
20 
21  wxFlexGridSizer* fgSizer1;
22  fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 0 );
23  fgSizer1->AddGrowableCol( 1 );
24  fgSizer1->SetFlexibleDirection( wxBOTH );
25  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26 
27  m_traceWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_traceWidthLabel->Wrap( -1 );
29  fgSizer1->Add( m_traceWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
30 
31  m_traceWidthText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32  fgSizer1->Add( m_traceWidthText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
33 
34  m_traceWidthUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_traceWidthUnit->Wrap( -1 );
36  fgSizer1->Add( m_traceWidthUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
37 
38  m_traceGapLabel = new wxStaticText( this, wxID_ANY, _("Trace gap:"), wxDefaultPosition, wxDefaultSize, 0 );
39  m_traceGapLabel->Wrap( -1 );
40  fgSizer1->Add( m_traceGapLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
41 
42  m_traceGapText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
43  fgSizer1->Add( m_traceGapText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
44 
45  m_traceGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_traceGapUnit->Wrap( -1 );
47  fgSizer1->Add( m_traceGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
48 
49  m_viaGapLabel = new wxStaticText( this, wxID_ANY, _("Via gap:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_viaGapLabel->Wrap( -1 );
51  m_viaGapLabel->Enable( false );
52 
53  fgSizer1->Add( m_viaGapLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
54 
55  m_viaGapText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56  m_viaGapText->Enable( false );
57 
58  fgSizer1->Add( m_viaGapText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
59 
60  m_viaGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
61  m_viaGapUnit->Wrap( -1 );
62  m_viaGapUnit->Enable( false );
63 
64  fgSizer1->Add( m_viaGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
65 
66 
67  bSizer7->Add( fgSizer1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
68 
69  m_viaTraceGapEqual = new wxCheckBox( this, wxID_ANY, _("Via gap same as trace gap"), wxDefaultPosition, wxDefaultSize, 0 );
70  m_viaTraceGapEqual->SetValue(true);
71  bSizer7->Add( m_viaTraceGapEqual, 0, wxALL|wxEXPAND, 10 );
72 
73  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
74  bSizer7->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
75 
76  m_stdButtons = new wxStdDialogButtonSizer();
77  m_stdButtonsOK = new wxButton( this, wxID_OK );
78  m_stdButtons->AddButton( m_stdButtonsOK );
79  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
80  m_stdButtons->AddButton( m_stdButtonsCancel );
81  m_stdButtons->Realize();
82 
83  bSizer7->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
84 
85 
86  this->SetSizer( bSizer7 );
87  this->Layout();
88  bSizer7->Fit( this );
89 
90  // Connect Events
91  m_viaTraceGapEqual->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
92 }
93 
95 {
96  // Disconnect Events
97  m_viaTraceGapEqual->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
98 
99 }
DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Differential Pair Dimensions"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
virtual void OnViaTraceGapEqualCheck(wxCommandEvent &event)
wxTextCtrl wrapper to handle math expression evaluation.