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 
12 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 )
13 {
14  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizer7;
17  bSizer7 = new wxBoxSizer( wxVERTICAL );
18 
19  wxFlexGridSizer* fgSizer1;
20  fgSizer1 = new wxFlexGridSizer( 0, 3, 5, 0 );
21  fgSizer1->AddGrowableCol( 1 );
22  fgSizer1->SetFlexibleDirection( wxBOTH );
23  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 
25  m_traceWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_traceWidthLabel->Wrap( -1 );
27  fgSizer1->Add( m_traceWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
28 
29  m_traceWidthText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30  fgSizer1->Add( m_traceWidthText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
31 
32  m_traceWidthUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_traceWidthUnit->Wrap( -1 );
34  fgSizer1->Add( m_traceWidthUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
35 
36  m_traceGapLabel = new wxStaticText( this, wxID_ANY, _("Trace gap:"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_traceGapLabel->Wrap( -1 );
38  fgSizer1->Add( m_traceGapLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
39 
40  m_traceGapText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41  fgSizer1->Add( m_traceGapText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
42 
43  m_traceGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_traceGapUnit->Wrap( -1 );
45  fgSizer1->Add( m_traceGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
46 
47  m_viaGapLabel = new wxStaticText( this, wxID_ANY, _("Via gap:"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_viaGapLabel->Wrap( -1 );
49  m_viaGapLabel->Enable( false );
50 
51  fgSizer1->Add( m_viaGapLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
52 
53  m_viaGapText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
54  m_viaGapText->Enable( false );
55 
56  fgSizer1->Add( m_viaGapText, 0, wxEXPAND|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
57 
58  m_viaGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_viaGapUnit->Wrap( -1 );
60  m_viaGapUnit->Enable( false );
61 
62  fgSizer1->Add( m_viaGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
63 
64 
65  bSizer7->Add( fgSizer1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
66 
67  m_viaTraceGapEqual = new wxCheckBox( this, wxID_ANY, _("Via gap same as trace gap"), wxDefaultPosition, wxDefaultSize, 0 );
68  m_viaTraceGapEqual->SetValue(true);
69  bSizer7->Add( m_viaTraceGapEqual, 0, wxALL|wxEXPAND, 10 );
70 
71  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
72  bSizer7->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
73 
74  m_stdButtons = new wxStdDialogButtonSizer();
75  m_stdButtonsOK = new wxButton( this, wxID_OK );
76  m_stdButtons->AddButton( m_stdButtonsOK );
77  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
78  m_stdButtons->AddButton( m_stdButtonsCancel );
79  m_stdButtons->Realize();
80 
81  bSizer7->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
82 
83 
84  this->SetSizer( bSizer7 );
85  this->Layout();
86  bSizer7->Fit( this );
87 
88  // Connect Events
89  m_viaTraceGapEqual->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
90 }
91 
93 {
94  // Disconnect Events
95  m_viaTraceGapEqual->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
96 
97 }
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:83
virtual void OnViaTraceGapEqualCheck(wxCommandEvent &event)