KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_cable_size_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14PANEL_CABLE_SIZE_BASE::PANEL_CABLE_SIZE_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : CALCULATOR_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizer9;
20 bSizer9 = new wxBoxSizer( wxHORIZONTAL );
21
22 wxBoxSizer* bSizer4;
23 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
24
25 wxStaticBoxSizer* sbSizerLeft;
26 sbSizerLeft = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Wire properties") ), wxVERTICAL );
27
28 wxFlexGridSizer* fgSizerLeft;
29 fgSizerLeft = new wxFlexGridSizer( 0, 3, 0, 0 );
30 fgSizerLeft->AddGrowableCol( 1 );
31 fgSizerLeft->SetFlexibleDirection( wxBOTH );
32 fgSizerLeft->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33
34 m_staticTextSize = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Standard Size:"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_staticTextSize->Wrap( -1 );
36 fgSizerLeft->Add( m_staticTextSize, 0, wxALIGN_CENTER_VERTICAL, 5 );
37
38 wxArrayString m_sizeChoiceChoices;
39 m_sizeChoice = new wxChoice( sbSizerLeft->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_sizeChoiceChoices, 0 );
40 m_sizeChoice->SetSelection( 0 );
41 fgSizerLeft->Add( m_sizeChoice, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
42
43
44 fgSizerLeft->Add( 0, 0, 1, wxEXPAND, 5 );
45
46 m_staticTextDiameter = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_staticTextDiameter->Wrap( -1 );
48 fgSizerLeft->Add( m_staticTextDiameter, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
49
50 m_diameterCtrl = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
51 fgSizerLeft->Add( m_diameterCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
52
53 wxArrayString m_diameterUnitChoices;
54 m_diameterUnit = new UNIT_SELECTOR_LEN( sbSizerLeft->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_diameterUnitChoices, 0 );
55 m_diameterUnit->SetSelection( 0 );
56 fgSizerLeft->Add( m_diameterUnit, 0, wxEXPAND|wxTOP, 5 );
57
58 m_staticTextArea = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Area:"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_staticTextArea->Wrap( -1 );
60 fgSizerLeft->Add( m_staticTextArea, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
61
62 m_areaCtrl = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
63 fgSizerLeft->Add( m_areaCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
64
65 m_stUnitmmSq = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("mm^2"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_stUnitmmSq->Wrap( -1 );
67 fgSizerLeft->Add( m_stUnitmmSq, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxTOP, 5 );
68
69 m_staticTextResitivity = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Conductor resistivity:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_staticTextResitivity->Wrap( -1 );
71 m_staticTextResitivity->SetToolTip( _("Specific resistance in Ohm*m at 20 deg C") );
72
73 fgSizerLeft->Add( m_staticTextResitivity, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
74
75 wxBoxSizer* bSizerResistivity;
76 bSizerResistivity = new wxBoxSizer( wxHORIZONTAL );
77
78 m_textCtrlConductorResistivity = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
79 m_textCtrlConductorResistivity->SetMinSize( wxSize( 100,-1 ) );
80
81 bSizerResistivity->Add( m_textCtrlConductorResistivity, 1, wxEXPAND|wxLEFT|wxTOP, 5 );
82
83 m_button_ResistivityConductor = new wxButton( sbSizerLeft->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
84 bSizerResistivity->Add( m_button_ResistivityConductor, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
85
86
87 fgSizerLeft->Add( bSizerResistivity, 0, wxEXPAND, 5 );
88
89 m_stUnitOhmMeter = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("ohm-meter"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_stUnitOhmMeter->Wrap( -1 );
91 fgSizerLeft->Add( m_stUnitOhmMeter, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxTOP, 5 );
92
93 m_staticTextTempCoeff = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Temperature Coefficient:"), wxDefaultPosition, wxDefaultSize, 0 );
94 m_staticTextTempCoeff->Wrap( -1 );
95 m_staticTextTempCoeff->SetToolTip( _("Thermal coefficient at 20 deg C") );
96
97 fgSizerLeft->Add( m_staticTextTempCoeff, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
98
99 wxBoxSizer* bSizerTempCoeff;
100 bSizerTempCoeff = new wxBoxSizer( wxHORIZONTAL );
101
102 m_textCtrlConductorThermCoef = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
103 bSizerTempCoeff->Add( m_textCtrlConductorThermCoef, 1, wxEXPAND|wxLEFT|wxTOP, 5 );
104
105 m_button_Temp_Coef_Conductor = new wxButton( sbSizerLeft->GetStaticBox(), wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
106 bSizerTempCoeff->Add( m_button_Temp_Coef_Conductor, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
107
108
109 fgSizerLeft->Add( bSizerTempCoeff, 0, wxEXPAND, 5 );
110
111
112 fgSizerLeft->Add( 0, 0, 1, wxEXPAND, 5 );
113
114 m_staticTextLinRes = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Linear resistance:"), wxDefaultPosition, wxDefaultSize, 0 );
115 m_staticTextLinRes->Wrap( -1 );
116 fgSizerLeft->Add( m_staticTextLinRes, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
117
118 m_linResistanceCtrl = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
119 fgSizerLeft->Add( m_linResistanceCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
120
121 wxArrayString m_linResistanceUnitChoices;
122 m_linResistanceUnit = new UNIT_SELECTOR_LINEAR_RESISTANCE( sbSizerLeft->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_linResistanceUnitChoices, 0 );
123 m_linResistanceUnit->SetSelection( 0 );
124 fgSizerLeft->Add( m_linResistanceUnit, 0, wxEXPAND|wxTOP, 5 );
125
126 m_staticTextSkin = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Frequency for 100% skin depth:"), wxDefaultPosition, wxDefaultSize, 0 );
127 m_staticTextSkin->Wrap( -1 );
128 fgSizerLeft->Add( m_staticTextSkin, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
129
130 m_frequencyCtrl = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
131 fgSizerLeft->Add( m_frequencyCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
132
133 wxArrayString m_frequencyUnitChoices;
134 m_frequencyUnit = new UNIT_SELECTOR_FREQUENCY( sbSizerLeft->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_frequencyUnitChoices, 0 );
135 m_frequencyUnit->SetSelection( 0 );
136 fgSizerLeft->Add( m_frequencyUnit, 0, wxEXPAND|wxTOP, 5 );
137
138 m_staticTextAmpacity = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Ampacity:"), wxDefaultPosition, wxDefaultSize, 0 );
139 m_staticTextAmpacity->Wrap( -1 );
140 fgSizerLeft->Add( m_staticTextAmpacity, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
141
142 m_AmpacityCtrl = new wxTextCtrl( sbSizerLeft->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
143 fgSizerLeft->Add( m_AmpacityCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
144
145 m_staticText16421 = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_staticText16421->Wrap( -1 );
147 fgSizerLeft->Add( m_staticText16421, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
148
149 m_staticTextDensity = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Current density"), wxDefaultPosition, wxDefaultSize, 0 );
150 m_staticTextDensity->Wrap( -1 );
151 fgSizerLeft->Add( m_staticTextDensity, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
152
153 m_slCurrentDensity = new wxSlider( sbSizerLeft->GetStaticBox(), wxID_ANY, 3, 3, 12, wxDefaultPosition, wxDefaultSize, wxSL_AUTOTICKS|wxSL_HORIZONTAL|wxSL_LABELS|wxSL_VALUE_LABEL );
154 fgSizerLeft->Add( m_slCurrentDensity, 0, wxEXPAND|wxRIGHT|wxTOP, 5 );
155
156 m_stUnitAmp_mmSq = new wxStaticText( sbSizerLeft->GetStaticBox(), wxID_ANY, _("A/mm^2"), wxDefaultPosition, wxDefaultSize, 0 );
157 m_stUnitAmp_mmSq->Wrap( -1 );
158 fgSizerLeft->Add( m_stUnitAmp_mmSq, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
159
160
161 sbSizerLeft->Add( fgSizerLeft, 0, wxALL|wxEXPAND, 5 );
162
163
164 bSizer4->Add( sbSizerLeft, 0, wxALL|wxEXPAND, 5 );
165
166 wxStaticBoxSizer* sbSizerRight;
167 sbSizerRight = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Application") ), wxVERTICAL );
168
169 wxFlexGridSizer* fgSizerRight;
170 fgSizerRight = new wxFlexGridSizer( 0, 3, 0, 0 );
171 fgSizerRight->AddGrowableCol( 1 );
172 fgSizerRight->SetFlexibleDirection( wxBOTH );
173 fgSizerRight->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
174
175 m_staticTextCableTemp = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("Cable temperature:"), wxDefaultPosition, wxDefaultSize, 0 );
176 m_staticTextCableTemp->Wrap( -1 );
177 m_staticTextCableTemp->SetToolTip( _("Off-Load max conductor temp. Reference: 20 deg C") );
178
179 fgSizerRight->Add( m_staticTextCableTemp, 0, wxALIGN_CENTER_VERTICAL, 5 );
180
181 m_conductorTempCtrl = new wxTextCtrl( sbSizerRight->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
182 m_conductorTempCtrl->SetMinSize( wxSize( 120,-1 ) );
183
184 fgSizerRight->Add( m_conductorTempCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
185
186 m_stUnitDegC = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("deg C"), wxDefaultPosition, wxDefaultSize, 0 );
187 m_stUnitDegC->Wrap( -1 );
188 fgSizerRight->Add( m_stUnitDegC, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
189
190 m_staticTextCurrent = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("Current:"), wxDefaultPosition, wxDefaultSize, 0 );
191 m_staticTextCurrent->Wrap( -1 );
192 fgSizerRight->Add( m_staticTextCurrent, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
193
194 m_currentCtrl = new wxTextCtrl( sbSizerRight->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
195 fgSizerRight->Add( m_currentCtrl, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
196
197 m_staticText = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 );
198 m_staticText->Wrap( -1 );
199 fgSizerRight->Add( m_staticText, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxTOP, 5 );
200
201 m_staticTextLen = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("Length:"), wxDefaultPosition, wxDefaultSize, 0 );
202 m_staticTextLen->Wrap( -1 );
203 m_staticTextLen->SetToolTip( _("Length includes the return path") );
204
205 fgSizerRight->Add( m_staticTextLen, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
206
207 m_lengthCtrl = new wxTextCtrl( sbSizerRight->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
208 fgSizerRight->Add( m_lengthCtrl, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
209
210 wxArrayString m_lengthUnitChoices;
211 m_lengthUnit = new UNIT_SELECTOR_LEN_CABLE( sbSizerRight->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_lengthUnitChoices, 0 );
212 m_lengthUnit->SetSelection( 0 );
213 fgSizerRight->Add( m_lengthUnit, 0, wxTOP|wxEXPAND, 5 );
214
215 m_staticTextResDC = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("Resistance DC:"), wxDefaultPosition, wxDefaultSize, 0 );
216 m_staticTextResDC->Wrap( -1 );
217 m_staticTextResDC->SetToolTip( _("DC Resistance of the conductor") );
218
219 fgSizerRight->Add( m_staticTextResDC, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
220
221 m_resistanceDcCtrl = new wxTextCtrl( sbSizerRight->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
222 fgSizerRight->Add( m_resistanceDcCtrl, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
223
224 m_stUnitOhm = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("ohm"), wxDefaultPosition, wxDefaultSize, 0 );
225 m_stUnitOhm->Wrap( -1 );
226 fgSizerRight->Add( m_stUnitOhm, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
227
228 m_staticTextDrop = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("Voltage drop:"), wxDefaultPosition, wxDefaultSize, 0 );
229 m_staticTextDrop->Wrap( -1 );
230 fgSizerRight->Add( m_staticTextDrop, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
231
232 m_vDropCtrl = new wxTextCtrl( sbSizerRight->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
233 fgSizerRight->Add( m_vDropCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
234
235 wxArrayString m_vDropUnitChoices;
236 m_vDropUnit = new UNIT_SELECTOR_VOLTAGE( sbSizerRight->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_vDropUnitChoices, 0 );
237 m_vDropUnit->SetSelection( 0 );
238 fgSizerRight->Add( m_vDropUnit, 0, wxEXPAND|wxTOP, 5 );
239
240 m_staticTextPower = new wxStaticText( sbSizerRight->GetStaticBox(), wxID_ANY, _("Dissipated power:"), wxDefaultPosition, wxDefaultSize, 0 );
241 m_staticTextPower->Wrap( -1 );
242 fgSizerRight->Add( m_staticTextPower, 0, wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
243
244 m_powerCtrl = new wxTextCtrl( sbSizerRight->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
245 fgSizerRight->Add( m_powerCtrl, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
246
247 wxArrayString m_powerUnitChoices;
248 m_powerUnit = new UNIT_SELECTOR_POWER( sbSizerRight->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_powerUnitChoices, 0 );
249 m_powerUnit->SetSelection( 0 );
250 fgSizerRight->Add( m_powerUnit, 0, wxEXPAND|wxTOP, 5 );
251
252
253 sbSizerRight->Add( fgSizerRight, 1, wxALL, 5 );
254
255
256 bSizer4->Add( sbSizerRight, 1, wxALL|wxEXPAND, 5 );
257
258
259 bSizer9->Add( bSizer4, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
260
261
262 bSizerMain->Add( bSizer9, 0, wxEXPAND, 5 );
263
264
265 this->SetSizer( bSizerMain );
266 this->Layout();
267 bSizerMain->Fit( this );
268
269 // Connect Events
270 m_sizeChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnCableSizeChange ), NULL, this );
271 m_diameterCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnDiameterChange ), NULL, this );
272 m_diameterUnit->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
273 m_areaCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnAreaChange ), NULL, this );
274 m_textCtrlConductorResistivity->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorResistivityChange ), NULL, this );
275 m_button_ResistivityConductor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorResistivity_Button ), NULL, this );
276 m_textCtrlConductorThermCoef->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorThermCoefChange ), NULL, this );
277 m_button_Temp_Coef_Conductor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorThermCoefChange_Button ), NULL, this );
278 m_linResistanceCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnLinResistanceChange ), NULL, this );
279 m_linResistanceUnit->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
280 m_frequencyCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnFrequencyChange ), NULL, this );
281 m_frequencyUnit->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
282 m_AmpacityCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnAmpacityChange ), NULL, this );
283 m_slCurrentDensity->Connect( wxEVT_SCROLL_TOP, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
284 m_slCurrentDensity->Connect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
285 m_slCurrentDensity->Connect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
286 m_slCurrentDensity->Connect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
287 m_slCurrentDensity->Connect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
288 m_slCurrentDensity->Connect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
289 m_slCurrentDensity->Connect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
290 m_slCurrentDensity->Connect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
291 m_slCurrentDensity->Connect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
292 m_conductorTempCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorTempChange ), NULL, this );
293 m_currentCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnCurrentChange ), NULL, this );
294 m_lengthCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnLengthChange ), NULL, this );
295 m_lengthUnit->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
296 m_resistanceDcCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnResistanceDcChange ), NULL, this );
297 m_vDropCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnVDropChange ), NULL, this );
298 m_vDropUnit->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
299 m_powerCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnPowerChange ), NULL, this );
300 m_powerUnit->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
301}
302
304{
305 // Disconnect Events
306 m_sizeChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnCableSizeChange ), NULL, this );
307 m_diameterCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnDiameterChange ), NULL, this );
308 m_diameterUnit->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
309 m_areaCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnAreaChange ), NULL, this );
310 m_textCtrlConductorResistivity->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorResistivityChange ), NULL, this );
311 m_button_ResistivityConductor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorResistivity_Button ), NULL, this );
312 m_textCtrlConductorThermCoef->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorThermCoefChange ), NULL, this );
313 m_button_Temp_Coef_Conductor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorThermCoefChange_Button ), NULL, this );
314 m_linResistanceCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnLinResistanceChange ), NULL, this );
315 m_linResistanceUnit->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
316 m_frequencyCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnFrequencyChange ), NULL, this );
317 m_frequencyUnit->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
318 m_AmpacityCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnAmpacityChange ), NULL, this );
319 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_TOP, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
320 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_BOTTOM, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
321 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_LINEUP, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
322 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_LINEDOWN, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
323 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_PAGEUP, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
324 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_PAGEDOWN, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
325 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
326 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_THUMBRELEASE, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
327 m_slCurrentDensity->Disconnect( wxEVT_SCROLL_CHANGED, wxScrollEventHandler( PANEL_CABLE_SIZE_BASE::onUpdateCurrentDensity ), NULL, this );
328 m_conductorTempCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnConductorTempChange ), NULL, this );
329 m_currentCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnCurrentChange ), NULL, this );
330 m_lengthCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnLengthChange ), NULL, this );
331 m_lengthUnit->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
332 m_resistanceDcCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnResistanceDcChange ), NULL, this );
333 m_vDropCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnVDropChange ), NULL, this );
334 m_vDropUnit->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
335 m_powerCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnPowerChange ), NULL, this );
336 m_powerUnit->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_CABLE_SIZE_BASE::OnUpdateUnit ), NULL, this );
337
338}
const char * name
Definition: DXF_plotter.cpp:57
wxStaticText * m_staticTextTempCoeff
wxStaticText * m_staticTextResitivity
PANEL_CABLE_SIZE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
UNIT_SELECTOR_LEN_CABLE * m_lengthUnit
virtual void OnResistanceDcChange(wxCommandEvent &event)
UNIT_SELECTOR_POWER * m_powerUnit
wxStaticText * m_staticTextDiameter
wxStaticText * m_staticTextResDC
virtual void OnConductorTempChange(wxCommandEvent &event)
UNIT_SELECTOR_FREQUENCY * m_frequencyUnit
wxStaticText * m_staticTextAmpacity
virtual void OnPowerChange(wxCommandEvent &event)
virtual void OnCurrentChange(wxCommandEvent &event)
virtual void onUpdateCurrentDensity(wxScrollEvent &event)
wxStaticText * m_staticText16421
virtual void OnLengthChange(wxCommandEvent &event)
wxTextCtrl * m_textCtrlConductorResistivity
virtual void OnVDropChange(wxCommandEvent &event)
virtual void OnAreaChange(wxCommandEvent &event)
wxStaticText * m_staticTextDensity
virtual void OnConductorResistivity_Button(wxCommandEvent &event)
virtual void OnConductorThermCoefChange_Button(wxCommandEvent &event)
wxButton * m_button_ResistivityConductor
virtual void OnUpdateUnit(wxCommandEvent &event)
virtual void OnLinResistanceChange(wxCommandEvent &event)
virtual void OnConductorThermCoefChange(wxCommandEvent &event)
UNIT_SELECTOR_LEN * m_diameterUnit
wxStaticText * m_staticTextCableTemp
wxStaticText * m_staticTextPower
virtual void OnDiameterChange(wxCommandEvent &event)
virtual void OnConductorResistivityChange(wxCommandEvent &event)
virtual void OnFrequencyChange(wxCommandEvent &event)
virtual void OnCableSizeChange(wxCommandEvent &event)
wxStaticText * m_staticTextLinRes
UNIT_SELECTOR_VOLTAGE * m_vDropUnit
virtual void OnAmpacityChange(wxCommandEvent &event)
wxStaticText * m_staticTextCurrent
UNIT_SELECTOR_LINEAR_RESISTANCE * m_linResistanceUnit
wxTextCtrl * m_textCtrlConductorThermCoef
#define _(s)