KiCad PCB EDA Suite
dialog_pns_length_tuning_settings_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_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 )
15{
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
17
18 wxBoxSizer* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxVERTICAL );
20
21 wxStaticBoxSizer* sbSizerUpper;
22 sbSizerUpper = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Length / Skew") ), wxVERTICAL );
23
24 wxFlexGridSizer* fgSizerLenSkew;
25 fgSizerLenSkew = new wxFlexGridSizer( 0, 3, 0, 0 );
26 fgSizerLenSkew->AddGrowableCol( 1 );
27 fgSizerLenSkew->SetFlexibleDirection( wxBOTH );
28 fgSizerLenSkew->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29
30 m_staticText4 = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Tune from:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_staticText4->Wrap( -1 );
32 m_staticText4->Hide();
33
34 fgSizerLenSkew->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
35
36 wxArrayString m_choicePathFromChoices;
37 m_choicePathFrom = new wxChoice( sbSizerUpper->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePathFromChoices, 0 );
38 m_choicePathFrom->SetSelection( 0 );
39 m_choicePathFrom->Hide();
40
41 fgSizerLenSkew->Add( m_choicePathFrom, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
42
43
44 fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
45
46 m_staticText15 = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Tune to:"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_staticText15->Wrap( -1 );
48 m_staticText15->Hide();
49
50 fgSizerLenSkew->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
51
52 wxArrayString m_choice4Choices;
53 m_choice4 = new wxChoice( sbSizerUpper->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choice4Choices, 0 );
54 m_choice4->SetSelection( 0 );
55 m_choice4->Hide();
56
57 fgSizerLenSkew->Add( m_choice4, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
58
59
60 fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
61
62 m_staticText3 = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Constraint:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_staticText3->Wrap( -1 );
64 m_staticText3->Hide();
65
66 fgSizerLenSkew->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
67
68 wxString m_constraintSourceChoices[] = { _("From Design Rules"), _("Manual") };
69 int m_constraintSourceNChoices = sizeof( m_constraintSourceChoices ) / sizeof( wxString );
70 m_constraintSource = new wxChoice( sbSizerUpper->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_constraintSourceNChoices, m_constraintSourceChoices, 0 );
71 m_constraintSource->SetSelection( 1 );
72 m_constraintSource->Enable( false );
73 m_constraintSource->Hide();
74
75 fgSizerLenSkew->Add( m_constraintSource, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
76
77
78 fgSizerLenSkew->Add( 0, 0, 0, 0, 5 );
79
80 m_targetLengthLabel = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("Target length:"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_targetLengthLabel->Wrap( -1 );
82 fgSizerLenSkew->Add( m_targetLengthLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
83
84 m_targetLengthText = new wxTextCtrl( sbSizerUpper->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
85 fgSizerLenSkew->Add( m_targetLengthText, 0, wxALL|wxEXPAND, 5 );
86
87 m_targetLengthUnit = new wxStaticText( sbSizerUpper->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_targetLengthUnit->Wrap( -1 );
89 fgSizerLenSkew->Add( m_targetLengthUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
90
91
92 sbSizerUpper->Add( fgSizerLenSkew, 1, wxEXPAND, 5 );
93
94
95 bMainSizer->Add( sbSizerUpper, 0, wxEXPAND|wxALL, 10 );
96
97 wxStaticBoxSizer* sbSizerLower;
98 sbSizerLower = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Meandering") ), wxHORIZONTAL );
99
100 m_legend = new wxStaticBitmap( sbSizerLower->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
101 sbSizerLower->Add( m_legend, 0, wxALL|wxEXPAND, 5 );
102
103 wxFlexGridSizer* fgSizer3;
104 fgSizer3 = new wxFlexGridSizer( 0, 3, 0, 0 );
105 fgSizer3->AddGrowableCol( 1 );
106 fgSizer3->SetFlexibleDirection( wxBOTH );
107 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
108
109 m_minAmplLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Min amplitude (Amin):"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_minAmplLabel->Wrap( -1 );
111 fgSizer3->Add( m_minAmplLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
112
113 m_minAmplText = new wxTextCtrl( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
114 fgSizer3->Add( m_minAmplText, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
115
116 m_minAmplUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_minAmplUnit->Wrap( -1 );
118 fgSizer3->Add( m_minAmplUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
119
120 m_maxAmplLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Max amplitude (Amax):"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_maxAmplLabel->Wrap( -1 );
122 fgSizer3->Add( m_maxAmplLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
123
124 m_maxAmplText = new wxTextCtrl( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
125 fgSizer3->Add( m_maxAmplText, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
126
127 m_maxAmplUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
128 m_maxAmplUnit->Wrap( -1 );
129 fgSizer3->Add( m_maxAmplUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
130
131 m_spacingLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Min spacing (s):"), wxDefaultPosition, wxDefaultSize, 0 );
132 m_spacingLabel->Wrap( -1 );
133 fgSizer3->Add( m_spacingLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
134
135 m_spacingText = new wxTextCtrl( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
136 m_spacingText->SetToolTip( _("Minimum spacing between adjacent meander segments. The resulting spacing may be greater based on design rules.") );
137
138 fgSizer3->Add( m_spacingText, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
139
140 m_spacingUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
141 m_spacingUnit->Wrap( -1 );
142 fgSizer3->Add( m_spacingUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
143
144 m_staticText14 = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Miter style:"), wxDefaultPosition, wxDefaultSize, 0 );
145 m_staticText14->Wrap( -1 );
146 fgSizer3->Add( m_staticText14, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
147
148 wxString m_miterStyleChoices[] = { _("45 degree"), _("arc") };
149 int m_miterStyleNChoices = sizeof( m_miterStyleChoices ) / sizeof( wxString );
150 m_miterStyle = new wxChoice( sbSizerLower->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_miterStyleNChoices, m_miterStyleChoices, 0 );
151 m_miterStyle->SetSelection( 0 );
152 fgSizer3->Add( m_miterStyle, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
153
154
155 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
156
157 m_radiusLabel = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("Miter radius (r):"), wxDefaultPosition, wxDefaultSize, 0 );
158 m_radiusLabel->Wrap( -1 );
159 fgSizer3->Add( m_radiusLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
160
161 m_radiusText = new TEXT_CTRL_EVAL( sbSizerLower->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
162 fgSizer3->Add( m_radiusText, 0, wxALL|wxEXPAND, 5 );
163
164 m_radiusUnit = new wxStaticText( sbSizerLower->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
165 m_radiusUnit->Wrap( -1 );
166 fgSizer3->Add( m_radiusUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
167
168
169 sbSizerLower->Add( fgSizer3, 1, wxEXPAND, 5 );
170
171
172 bMainSizer->Add( sbSizerLower, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
173
174 m_stdButtons = new wxStdDialogButtonSizer();
175 m_stdButtonsOK = new wxButton( this, wxID_OK );
176 m_stdButtons->AddButton( m_stdButtonsOK );
177 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
178 m_stdButtons->AddButton( m_stdButtonsCancel );
179 m_stdButtons->Realize();
180
181 bMainSizer->Add( m_stdButtons, 0, wxEXPAND|wxALL, 5 );
182
183
184 this->SetSizer( bMainSizer );
185 this->Layout();
186 bMainSizer->Fit( this );
187}
188
190{
191}
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(-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:83
wxTextCtrl wrapper to handle math expression evaluation.
#define _(s)