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 Jun 5 2014)
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( 400,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizer7;
17  bSizer7 = 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_traceWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_traceWidthLabel->Wrap( -1 );
27  fgSizer1->Add( m_traceWidthLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
28 
29  m_traceWidthText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30  fgSizer1->Add( m_traceWidthText, 0, wxALL|wxEXPAND, 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, wxALL|wxALIGN_CENTER_VERTICAL, 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, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
39 
40  m_traceGapText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41  fgSizer1->Add( m_traceGapText, 0, wxALL|wxEXPAND, 5 );
42 
43  m_traceGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_traceGapUnit->Wrap( -1 );
45  m_traceGapUnit->SetMaxSize( wxSize( 40,-1 ) );
46 
47  fgSizer1->Add( m_traceGapUnit, 0, wxALL|wxALIGN_CENTER_VERTICAL, 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, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5 );
54 
55  m_viaGapText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56  m_viaGapText->Enable( false );
57 
58  fgSizer1->Add( m_viaGapText, 0, wxALL|wxEXPAND, 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  m_viaGapUnit->SetMaxSize( wxSize( 40,-1 ) );
64 
65  fgSizer1->Add( m_viaGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
66 
67 
68  bSizer7->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
69 
70  m_viaTraceGapEqual = new wxCheckBox( this, wxID_ANY, _("Via gap same as trace gap"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_viaTraceGapEqual->SetValue(true);
72  bSizer7->Add( m_viaTraceGapEqual, 0, wxALL|wxEXPAND, 10 );
73 
74  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
75  bSizer7->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
76 
77  m_stdButtons = new wxStdDialogButtonSizer();
78  m_stdButtonsOK = new wxButton( this, wxID_OK );
79  m_stdButtons->AddButton( m_stdButtonsOK );
80  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
81  m_stdButtons->AddButton( m_stdButtonsCancel );
82  m_stdButtons->Realize();
83 
84  bSizer7->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
85 
86 
87  this->SetSizer( bSizer7 );
88  this->Layout();
89 
90  // Connect Events
91  m_viaTraceGapEqual->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
92  m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnCancelClick ), NULL, this );
93  m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnOkClick ), NULL, this );
94 }
95 
97 {
98  // Disconnect Events
99  m_viaTraceGapEqual->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
100  m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnCancelClick ), NULL, this );
101  m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnOkClick ), NULL, this );
102 
103 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
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(400, 216), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnViaTraceGapEqualCheck(wxCommandEvent &event)