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 Oct 17 2016)
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( 400,-1 ), wxDefaultSize );
17 
18  wxBoxSizer* bSizer7;
19  bSizer7 = 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_traceWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_traceWidthLabel->Wrap( -1 );
29  fgSizer1->Add( m_traceWidthLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
30 
31  m_traceWidthText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32  fgSizer1->Add( m_traceWidthText, 0, wxALL|wxEXPAND, 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, wxALL|wxALIGN_CENTER_VERTICAL, 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, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
41 
42  m_traceGapText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
43  fgSizer1->Add( m_traceGapText, 0, wxALL|wxEXPAND, 5 );
44 
45  m_traceGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_traceGapUnit->Wrap( -1 );
47  m_traceGapUnit->SetMaxSize( wxSize( 40,-1 ) );
48 
49  fgSizer1->Add( m_traceGapUnit, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
50 
51  m_viaGapLabel = new wxStaticText( this, wxID_ANY, _("Via gap:"), wxDefaultPosition, wxDefaultSize, 0 );
52  m_viaGapLabel->Wrap( -1 );
53  m_viaGapLabel->Enable( false );
54 
55  fgSizer1->Add( m_viaGapLabel, 0, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5 );
56 
57  m_viaGapText = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
58  m_viaGapText->Enable( false );
59 
60  fgSizer1->Add( m_viaGapText, 0, wxALL|wxEXPAND, 5 );
61 
62  m_viaGapUnit = new wxStaticText( this, wxID_ANY, _("u"), wxDefaultPosition, wxDefaultSize, 0 );
63  m_viaGapUnit->Wrap( -1 );
64  m_viaGapUnit->Enable( false );
65  m_viaGapUnit->SetMaxSize( wxSize( 40,-1 ) );
66 
67  fgSizer1->Add( m_viaGapUnit, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
68 
69 
70  bSizer7->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
71 
72  m_viaTraceGapEqual = new wxCheckBox( this, wxID_ANY, _("Via gap same as trace gap"), wxDefaultPosition, wxDefaultSize, 0 );
73  m_viaTraceGapEqual->SetValue(true);
74  bSizer7->Add( m_viaTraceGapEqual, 0, wxALL|wxEXPAND, 10 );
75 
76  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
77  bSizer7->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
78 
79  m_stdButtons = new wxStdDialogButtonSizer();
80  m_stdButtonsOK = new wxButton( this, wxID_OK );
81  m_stdButtons->AddButton( m_stdButtonsOK );
82  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
83  m_stdButtons->AddButton( m_stdButtonsCancel );
84  m_stdButtons->Realize();
85 
86  bSizer7->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
87 
88 
89  this->SetSizer( bSizer7 );
90  this->Layout();
91 
92  // Connect Events
93  m_viaTraceGapEqual->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
94  m_stdButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnCancelClick ), NULL, this );
95  m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnOkClick ), NULL, this );
96 }
97 
99 {
100  // Disconnect Events
101  m_viaTraceGapEqual->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnViaTraceGapEqualCheck ), NULL, this );
102  m_stdButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnCancelClick ), NULL, this );
103  m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE::OnOkClick ), NULL, this );
104 
105 }
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)
wxTextCtrl wrapper to handle math expression evaluation.