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