KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_pns_diff_pair_dimensions_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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|wxLEFT, 1 );
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, _("Track 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|wxLEFT, 1 );
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 track gap"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_viaTraceGapEqual->SetValue(true);
69 bSizer7->Add( m_viaTraceGapEqual, 0, wxALL|wxEXPAND, 10 );
70
71 m_stdButtons = new wxStdDialogButtonSizer();
72 m_stdButtonsOK = new wxButton( this, wxID_OK );
73 m_stdButtons->AddButton( m_stdButtonsOK );
74 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
75 m_stdButtons->AddButton( m_stdButtonsCancel );
76 m_stdButtons->Realize();
77
78 bSizer7->Add( m_stdButtons, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
79
80
81 this->SetSizer( bSizer7 );
82 this->Layout();
83 bSizer7->Fit( this );
84
85 // Connect Events
86 m_viaTraceGapEqual->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
87}
88
90{
91 // Disconnect Events
92 m_viaTraceGapEqual->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
93
94}
virtual void OnViaTraceGapEqualCheck(wxCommandEvent &event)
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)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)