KiCad PCB EDA Suite
dialog_pns_length_tuning_settings_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Mar 9 2015)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE::DIALOG_PNS_LENGTH_TUNING_SETTINGS_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* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxStaticBoxSizer* sbSizer1;
20  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Length/skew") ), wxVERTICAL );
21 
22  wxFlexGridSizer* fgSizerLenSkew;
23  fgSizerLenSkew = new wxFlexGridSizer( 0, 3, 0, 0 );
24  fgSizerLenSkew->AddGrowableCol( 1 );
25  fgSizerLenSkew->SetFlexibleDirection( wxBOTH );
26  fgSizerLenSkew->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 
28  m_staticText4 = new wxStaticText( this, wxID_ANY, _("Tune from:"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_staticText4->Wrap( -1 );
30  fgSizerLenSkew->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
31 
32  wxArrayString m_choicePathFromChoices;
33  m_choicePathFrom = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePathFromChoices, 0 );
34  m_choicePathFrom->SetSelection( 0 );
35  fgSizerLenSkew->Add( m_choicePathFrom, 0, wxALL|wxEXPAND, 5 );
36 
37 
38  fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
39 
40  m_staticText15 = new wxStaticText( this, wxID_ANY, _("Tune to:"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_staticText15->Wrap( -1 );
42  fgSizerLenSkew->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
43 
44  wxArrayString m_choice4Choices;
45  m_choice4 = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choice4Choices, 0 );
46  m_choice4->SetSelection( 0 );
47  fgSizerLenSkew->Add( m_choice4, 0, wxALL|wxEXPAND, 5 );
48 
49 
50  fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
51 
52  m_staticText3 = new wxStaticText( this, wxID_ANY, _("Constraint:"), wxDefaultPosition, wxDefaultSize, 0 );
53  m_staticText3->Wrap( -1 );
54  fgSizerLenSkew->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
55 
56  wxString m_constraintSourceChoices[] = { _("From Design Rules"), _("Manual") };
57  int m_constraintSourceNChoices = sizeof( m_constraintSourceChoices ) / sizeof( wxString );
58  m_constraintSource = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_constraintSourceNChoices, m_constraintSourceChoices, 0 );
59  m_constraintSource->SetSelection( 1 );
60  m_constraintSource->Enable( false );
61 
62  fgSizerLenSkew->Add( m_constraintSource, 1, wxALL|wxEXPAND, 5 );
63 
64 
65  fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
66 
67  m_targetLengthLabel = new wxStaticText( this, wxID_ANY, _("Target length:"), wxDefaultPosition, wxDefaultSize, 0 );
68  m_targetLengthLabel->Wrap( -1 );
69  fgSizerLenSkew->Add( m_targetLengthLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
70 
71  m_targetLengthText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
72  fgSizerLenSkew->Add( m_targetLengthText, 0, wxALL|wxEXPAND, 5 );
73 
74  m_targetLengthUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
75  m_targetLengthUnit->Wrap( -1 );
76  fgSizerLenSkew->Add( m_targetLengthUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
77 
78 
79  sbSizer1->Add( fgSizerLenSkew, 1, wxEXPAND, 5 );
80 
81 
82  bMainSizer->Add( sbSizer1, 0, wxEXPAND|wxALL, 5 );
83 
84  wxStaticBoxSizer* sbSizer2;
85  sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Meandering") ), wxVERTICAL );
86 
87  m_legend = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
88  sbSizer2->Add( m_legend, 1, wxALL|wxEXPAND, 5 );
89 
90  wxFlexGridSizer* fgSizer3;
91  fgSizer3 = new wxFlexGridSizer( 0, 3, 0, 0 );
92  fgSizer3->AddGrowableCol( 1 );
93  fgSizer3->SetFlexibleDirection( wxBOTH );
94  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
95 
96  m_staticText9 = new wxStaticText( this, wxID_ANY, _("Min amplitude (Amin):"), wxDefaultPosition, wxDefaultSize, 0 );
97  m_staticText9->Wrap( -1 );
98  fgSizer3->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
99 
100  m_minAmplText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
101  fgSizer3->Add( m_minAmplText, 0, wxALL|wxEXPAND, 5 );
102 
103  m_minAmplUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
104  m_minAmplUnit->Wrap( -1 );
105  fgSizer3->Add( m_minAmplUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
106 
107  m_staticText91 = new wxStaticText( this, wxID_ANY, _("Max amplitude (Amax):"), wxDefaultPosition, wxDefaultSize, 0 );
108  m_staticText91->Wrap( -1 );
109  fgSizer3->Add( m_staticText91, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
110 
111  m_maxAmplText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
112  fgSizer3->Add( m_maxAmplText, 0, wxALL|wxEXPAND, 5 );
113 
114  m_maxAmplUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
115  m_maxAmplUnit->Wrap( -1 );
116  fgSizer3->Add( m_maxAmplUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
117 
118  m_staticText11 = new wxStaticText( this, wxID_ANY, _("Spacing (s):"), wxDefaultPosition, wxDefaultSize, 0 );
119  m_staticText11->Wrap( -1 );
120  fgSizer3->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
121 
122  m_spacingText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
123  fgSizer3->Add( m_spacingText, 0, wxALL|wxEXPAND, 5 );
124 
125  m_spacingUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
126  m_spacingUnit->Wrap( -1 );
127  fgSizer3->Add( m_spacingUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
128 
129  m_staticText13 = new wxStaticText( this, wxID_ANY, _("Miter radius (r):"), wxDefaultPosition, wxDefaultSize, 0 );
130  m_staticText13->Wrap( -1 );
131  fgSizer3->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
132 
133  m_radiusText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
134  fgSizer3->Add( m_radiusText, 0, wxALL|wxEXPAND, 5 );
135 
136  m_radiusUnit = new wxStaticText( this, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
137  m_radiusUnit->Wrap( -1 );
138  fgSizer3->Add( m_radiusUnit, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
139 
140  m_staticText14 = new wxStaticText( this, wxID_ANY, _("Miter style:"), wxDefaultPosition, wxDefaultSize, 0 );
141  m_staticText14->Wrap( -1 );
142  m_staticText14->Enable( false );
143 
144  fgSizer3->Add( m_staticText14, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
145 
146  wxString m_miterStyleChoices[] = { _("45 degree"), _("arc") };
147  int m_miterStyleNChoices = sizeof( m_miterStyleChoices ) / sizeof( wxString );
148  m_miterStyle = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_miterStyleNChoices, m_miterStyleChoices, 0 );
149  m_miterStyle->SetSelection( 0 );
150  m_miterStyle->Enable( false );
151 
152  fgSizer3->Add( m_miterStyle, 0, wxALL|wxEXPAND, 5 );
153 
154 
155  sbSizer2->Add( fgSizer3, 1, wxEXPAND, 5 );
156 
157 
158  bMainSizer->Add( sbSizer2, 1, wxALL|wxEXPAND, 5 );
159 
160  m_stdButtons = new wxStdDialogButtonSizer();
161  m_stdButtonsOK = new wxButton( this, wxID_OK );
162  m_stdButtons->AddButton( m_stdButtonsOK );
163  m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
164  m_stdButtons->AddButton( m_stdButtonsCancel );
165  m_stdButtons->Realize();
166 
167  bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
168 
169 
170  this->SetSizer( bMainSizer );
171  this->Layout();
172 
173  // Connect Events
174  m_stdButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE::OnOkClick ), NULL, this );
175 }
176 
178 {
179  // Disconnect Events
180  m_stdButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE::OnOkClick ), NULL, this );
181 
182 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
DIALOG_PNS_LENGTH_TUNING_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Trace length tuning"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(404, 565), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)