KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_regulator.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KICAD, a free EDA CAD application.
3 *
4 * Copyright (C) 1992-2011 jean-pierre.charras
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#include <wx/choicdlg.h>
22#include <wx/filedlg.h>
23#include <wx/msgdlg.h>
24#include <wx/clipbrd.h>
25#include <kiplatform/ui.h>
26
27#include <bitmaps.h>
32
33extern double DoubleFromString( const wxString& TextValue );
34
35// extension of pcb_calculator data filename:
36static const wxString DataFileNameExt( wxT( "pcbcalc" ) );
37
38
39PANEL_REGULATOR::PANEL_REGULATOR( wxWindow* parent, wxWindowID id, const wxPoint& pos,
40 const wxSize& size, long style, const wxString& name ) :
41 PANEL_REGULATOR_BASE( parent, id, pos, size, style, name ),
43{
46
47 m_choiceRegulatorSelector->Append( m_RegulatorList.GetRegList() );
49
50 // Needed on wxWidgets 3.0 to ensure sizers are correctly set
51 GetSizer()->SetSizeHints( this );
52}
53
57
58
60{
61 // Update the bitmaps
64}
65
66
68{
70}
71
72
74{
75 m_resTolVal->SetValue( wxT( DEFAULT_REGULATOR_RESTOL ) );
76
77 m_r1MinVal->SetValue( wxT( "" ) );
78 m_r1TypVal->SetValue( wxT( DEFAULT_REGULATOR_R1 ) );
79 m_r1MaxVal->SetValue( wxT( "" ) );
80
81 m_r2MinVal->SetValue( wxT( "" ) );
82 m_r2TypVal->SetValue( wxT( DEFAULT_REGULATOR_R2 ) );
83 m_r2MaxVal->SetValue( wxT( "" ) );
84
85 m_vrefMinVal->SetValue( wxT( DEFAULT_REGULATOR_VREF_MIN ) );
86 m_vrefTypVal->SetValue( wxT( DEFAULT_REGULATOR_VREF_TYP ) );
87 m_vrefMaxVal->SetValue( wxT( DEFAULT_REGULATOR_VREF_MAX ) );
88
89 m_voutMinVal->SetValue( wxT( "" ) );
90 m_voutTypVal->SetValue( wxT( DEFAULT_REGULATOR_VOUT_TYP ) );
91 m_voutMaxVal->SetValue( wxT( "" ) );
92
93 m_iadjTypVal->SetValue( wxT( DEFAULT_REGULATOR_IADJ_TYP ) );
94 m_iadjMaxVal->SetValue( wxT( DEFAULT_REGULATOR_IADJ_MAX ) );
95
96 m_tolTotalMin->SetValue( wxT( "" ) );
97 m_TolTotalMax->SetValue( wxT( "" ) );
98
99 m_choiceRegType->SetSelection( 1 );
100 m_rbRegulR1->SetValue( false );
101 m_rbRegulR2->SetValue( false );
102 m_rbRegulVout->SetValue( true );
104}
105
106
108{
109 switch( m_choiceRegType->GetSelection() )
110 {
111 default:
112 case 0:
113 m_bitmapRegul4pins->Show( true );
114 m_bitmapRegul3pins->Show( false );
115
116 m_RegulIadjTitle->Show( false );
117 m_iadjTypVal->Show( false );
118 m_iadjMaxVal->Show( false );
119 m_labelUnitsIadj->Show( false );
120
121 m_RegulFormula->SetLabel( wxT( "Vout = Vref * (R1 + R2) / R2" ) );
122 break;
123
124 case 1:
125 m_bitmapRegul4pins->Show( false );
126 m_bitmapRegul3pins->Show( true );
127
128 m_RegulIadjTitle->Show( true );
129 m_iadjTypVal->Show( true );
130 m_iadjMaxVal->Show( true );
131 m_labelUnitsIadj->Show( true );
132
133 m_RegulFormula->SetLabel( wxT( "Vout = Vref * (R1 + R2) / R1 + Iadj * R2" ) );
134 break;
135 }
136
137 // The new icon size must be taken in account
138 GetSizer()->Layout();
139
140 // Enable/disable buttons:
141 bool enbl = m_choiceRegulatorSelector->GetCount() > 0;
142 m_buttonEditItem->Enable( enbl );
143 m_buttonRemoveItem->Enable( enbl );
144
145 Refresh();
146}
147
148
149void PANEL_REGULATOR::OnRegulTypeSelection( wxCommandEvent& event )
150{
152}
153
154
155void PANEL_REGULATOR::OnRegulatorSelection( wxCommandEvent& event )
156{
157 wxString name = m_choiceRegulatorSelector->GetStringSelection();
158 REGULATOR_DATA* item = m_RegulatorList.GetReg( name );
159
160 if( item )
161 {
163 m_choiceRegType->SetSelection( item->m_Type );
164 wxString value;
165
166 value.Printf( wxT( "%g" ), item->m_VrefMin );
167 m_vrefMinVal->SetValue( value );
168 value.Printf( wxT( "%g" ), item->m_VrefTyp );
169 m_vrefTypVal->SetValue( value );
170 value.Printf( wxT( "%g" ), item->m_VrefMax );
171 m_vrefMaxVal->SetValue( value );
172
173 value.Printf( wxT( "%g" ), item->m_IadjTyp );
174 m_iadjTypVal->SetValue( value );
175
176 value.Printf( wxT( "%g" ), item->m_IadjMax );
177 m_iadjMaxVal->SetValue( value );
178 }
179
180 // Call RegulatorPageUpdate to enable/disable tools,
181 // even if no item selected
183}
184
185
186void PANEL_REGULATOR::OnDataFileSelection( wxCommandEvent& event )
187{
188 wxString fullfilename = GetDataFilename();
189
190 wxString wildcard;
191 wildcard.Printf( _( "PCB Calculator data file" ) + wxT( " (*.%s)|*.%s" ),
193
194 wxWindow* topLevelParent = wxGetTopLevelParent( this );
195
196 // Must be wxFD_SAVE, otherwise you cannot assign a file name
197 wxFileDialog dlg( topLevelParent, _( "Select PCB Calculator Data File" ), wxEmptyString,
198 fullfilename, wildcard, wxFD_SAVE );
199
201
202 if( dlg.ShowModal() == wxID_CANCEL )
203 return;
204
205 fullfilename = dlg.GetPath();
206
207 if( fullfilename == GetDataFilename() )
208 return;
209
210 SetDataFilename( fullfilename );
211
212 if( wxFileExists( fullfilename ) && m_RegulatorList.GetCount() > 0 ) // Read file
213 {
214 if( wxMessageBox( _( "Do you want to load this file and replace current regulator list?" ),
215 wxASCII_STR( wxMessageBoxCaptionStr ), wxOK | wxCANCEL | wxCENTER, this )
216 != wxOK )
217 {
218 return;
219 }
220 }
221
222 if( ReadDataFile() )
223 {
226 m_choiceRegulatorSelector->Append( m_RegulatorList.GetRegList() );
228 }
229 else
230 {
231 wxString msg;
232 msg.Printf( _( "Unable to read data file '%s'." ), fullfilename );
233 wxMessageBox( msg );
234 }
235}
236
237
238void PANEL_REGULATOR::OnAddRegulator( wxCommandEvent& event )
239{
240 DIALOG_REGULATOR_FORM dlg( wxGetTopLevelParent( this ), wxEmptyString );
241
242 if( dlg.ShowModal() != wxID_OK )
243 return;
244
245 REGULATOR_DATA* new_item = dlg.BuildRegulatorFromData();
246
247 // Add new item, if not existing
248 if( m_RegulatorList.GetReg( new_item->m_Name ) == nullptr )
249 {
250 // Add item in list
251 m_RegulatorList.Add( new_item );
254 m_choiceRegulatorSelector->Append( m_RegulatorList.GetRegList() );
257 }
258 else
259 {
260 wxMessageBox( _( "This regulator is already in list. Aborted" ) );
261 delete new_item;
262 }
263}
264
265
266void PANEL_REGULATOR::OnEditRegulator( wxCommandEvent& event )
267{
268 wxString name = m_choiceRegulatorSelector->GetStringSelection();
269 REGULATOR_DATA* item = m_RegulatorList.GetReg( name );
270
271 if( item == nullptr )
272 return;
273
274 DIALOG_REGULATOR_FORM dlg( wxGetTopLevelParent( this ), name );
275
276 dlg.CopyRegulatorDataToDialog( item );
277
278 if( dlg.ShowModal() != wxID_OK )
279 return;
280
281 REGULATOR_DATA* new_item = dlg.BuildRegulatorFromData();
282 m_RegulatorList.Replace( new_item );
283
285
287}
288
289
290void PANEL_REGULATOR::OnRemoveRegulator( wxCommandEvent& event )
291{
292 wxString name = wxGetSingleChoice( _( "Remove Regulator" ), wxEmptyString,
293 m_RegulatorList.GetRegList() );
294 if( name.IsEmpty() )
295 return;
296
297 m_RegulatorList.Remove( name );
300 m_choiceRegulatorSelector->Append( m_RegulatorList.GetRegList() );
301
304
306}
307
308
310{
311 // Find last selected in regulator list:
312 int idx = -1;
313
314 if( !m_lastSelectedRegulatorName.IsEmpty() )
315 {
316 for( unsigned ii = 0; ii < m_RegulatorList.GetCount(); ii++ )
317 {
318 if( m_RegulatorList.m_List[ii]->m_Name == m_lastSelectedRegulatorName )
319 {
320 idx = ii;
321 break;
322 }
323 }
324 }
325
326 m_choiceRegulatorSelector->SetSelection( idx );
327 wxCommandEvent event;
328 OnRegulatorSelection( event );
329}
330
331
332void PANEL_REGULATOR::OnCopyCB( wxCommandEvent& event )
333{
334 if( wxTheClipboard->Open() )
335 {
336 // This data objects are held by the clipboard,
337 // so do not delete them in the app.
338 wxTheClipboard->SetData( new wxTextDataObject( m_textPowerComment->GetValue() ) );
339 wxTheClipboard->Close();
340 }
341}
342
343
345{
346 int id;
347
348 if( m_rbRegulR1->GetValue() )
349 {
350 id = 0; // for R1 calculation
351 }
352 else if( m_rbRegulR2->GetValue() )
353 {
354 id = 1; // for R2 calculation
355 }
356 else if( m_rbRegulVout->GetValue() )
357 {
358 id = 2; // for Vout calculation
359 }
360 else
361 {
362 wxMessageBox( wxT("Selection error" ) );
363 return;
364 }
365
366 double restol;
367 double r1min, r1typ, r1max;
368 double r2min, r2typ, r2max;
369 double vrefmin, vreftyp, vrefmax;
370 double voutmin, vouttyp, voutmax;
371 double toltotalmin, toltotalmax;
372
373 wxString txt;
374
375 m_RegulMessage->SetLabel( wxEmptyString);
376
377 // Convert r1 and r2 in ohms
378 int r1scale = 1000;
379 int r2scale = 1000;
380
381 // Read values from panel:
382 txt = m_resTolVal->GetValue();
383 restol = DoubleFromString( txt ) / 100;
384
385 txt = m_r1TypVal->GetValue();
386 r1typ = DoubleFromString( txt ) * r1scale;
387
388 txt = m_r2TypVal->GetValue();
389 r2typ = DoubleFromString( txt ) * r2scale;
390
391 txt = m_vrefMinVal->GetValue();
392 vrefmin = DoubleFromString( txt );
393 txt = m_vrefTypVal->GetValue();
394 vreftyp = DoubleFromString( txt );
395 txt = m_vrefMaxVal->GetValue();
396 vrefmax = DoubleFromString( txt );
397
398 txt = m_voutTypVal->GetValue();
399 vouttyp = DoubleFromString( txt );
400
401 // Some tests:
402 if( ( vouttyp < vrefmin || vouttyp < vreftyp || vouttyp < vrefmax ) && id != 2 )
403 {
404 m_RegulMessage->SetLabel( _( "Vout must be greater than Vref" ) );
405 return;
406 }
407
408 if( vrefmin == 0.0 || vreftyp == 0.0 || vrefmax == 0.0 )
409 {
410 m_RegulMessage->SetLabel( _( "Vref set to 0 !" ) );
411 return;
412 }
413
414 if( vrefmin > vreftyp || vreftyp > vrefmax )
415 {
416 m_RegulMessage->SetLabel( _( "Vref must VrefMin < VrefTyp < VrefMax" ) );
417 return;
418 }
419
420 if( ( r1typ < 0 && id != 0 ) || ( r2typ <= 0 && id != 1 ) )
421 {
422 m_RegulMessage->SetLabel( _( "Incorrect value for R1 R2" ) );
423 return;
424 }
425
426 // Calculate
427 if( m_choiceRegType->GetSelection() == 1)
428 {
429 // 3 terminal regulator
430 txt = m_iadjTypVal->GetValue();
431 double iadjtyp = DoubleFromString( txt );
432 txt = m_iadjMaxVal->GetValue();
433 double iadjmax = DoubleFromString( txt );
434
435 if( iadjtyp > iadjmax )
436 {
437 m_RegulMessage->SetLabel( _( "Iadj must IadjTyp < IadjMax" ) );
438 return;
439 }
440
441 // iadj is given in micro amp, so convert it in amp.
442 iadjtyp /= 1000000;
443 iadjmax /= 1000000;
444
445 switch( id )
446 {
447 case 0:
448 // typical formula
449 r1typ = vreftyp * r2typ / ( vouttyp - vreftyp - ( r2typ * iadjtyp ) );
450 break;
451
452 case 1:
453 // typical formula
454 r2typ = ( vouttyp - vreftyp ) / ( iadjtyp + ( vreftyp / r1typ ) );
455 break;
456
457 case 2:
458 // typical formula
459 vouttyp = vreftyp * ( r1typ + r2typ ) / r1typ;
460 vouttyp += r2typ * iadjtyp;
461 break;
462 }
463
464 r1min = r1typ - r1typ * restol;
465 r1max = r1typ + r1typ * restol;
466
467 r2min = r2typ - r2typ * restol;
468 r2max = r2typ + r2typ * restol;
469
470 voutmin = vrefmin * ( r1max + r2min ) / r1max;
471 voutmin += r2min * iadjtyp;
472
473 voutmax = vrefmax * ( r1min + r2max ) / r1min;
474 voutmax += r2max * iadjmax;
475 }
476 else
477 { // Standard 4 terminal regulator
478 switch( id )
479 {
480 case 0:
481 // typical formula
482 r1typ = ( vouttyp / vreftyp - 1 ) * r2typ;
483 break;
484
485 case 1:
486 // typical formula
487 r2typ = r1typ / ( vouttyp / vreftyp - 1 );
488 break;
489
490 case 2:
491 // typical formula
492 vouttyp = vreftyp * ( r1typ + r2typ ) / r2typ;
493 break;
494 }
495
496 r1min = r1typ - r1typ * restol;
497 r1max = r1typ + r1typ * restol;
498
499 r2min = r2typ - r2typ * restol;
500 r2max = r2typ + r2typ * restol;
501
502 voutmin = vrefmin * ( r1min + r2max ) / r2max;
503 voutmax = vrefmax * ( r1max + r2min ) / r2min;
504 }
505
506 toltotalmin = ( voutmin - vouttyp ) / vouttyp * 100.0;
507 toltotalmax = ( voutmax - vouttyp ) / voutmax * 100.0;
508
509 // write values to panel:
510 txt.Printf( wxT( "%g" ), round_to( r1min / r1scale ) );
511 m_r1MinVal->SetValue( txt );
512 txt.Printf( wxT( "%g" ), round_to( r1typ / r1scale ) );
513 m_r1TypVal->SetValue( txt );
514 txt.Printf( wxT( "%g" ), round_to( r1max / r1scale ) );
515 m_r1MaxVal->SetValue( txt );
516
517 txt.Printf( wxT( "%g" ), round_to( r2min / r2scale ) );
518 m_r2MinVal->SetValue( txt );
519 txt.Printf( wxT( "%g" ), round_to( r2typ / r2scale ) );
520 m_r2TypVal->SetValue( txt );
521 txt.Printf( wxT( "%g" ), round_to( r2max / r2scale ) );
522 m_r2MaxVal->SetValue( txt );
523
524 txt.Printf( wxT( "%g" ), round_to( voutmin ) );
525 m_voutMinVal->SetValue( txt );
526 txt.Printf( wxT( "%g" ), round_to( vouttyp ) );
527 m_voutTypVal->SetValue( txt );
528 txt.Printf( wxT( "%g" ), round_to( voutmax ) );
529 m_voutMaxVal->SetValue( txt );
530
531 txt.Printf( wxT( "%g" ), round_to( toltotalmin, 0.01 ) );
532 m_tolTotalMin->SetValue( txt );
533 txt.Printf( wxT( "%g" ), round_to( toltotalmax, 0.01 ) );
534 m_TolTotalMax->SetValue( txt );
535
536 txt = wxString::Format( "%gV [%gV ... %gV]", round_to( vouttyp, 0.01 ),
537 round_to( voutmin, 0.01 ), round_to( voutmax, 0.01 ) );
538 m_textPowerComment->SetValue( txt );
539}
540
541
543{
544 m_resTolVal->SetValue( aCfg->m_Regulators.resTol );
545
546 m_r1TypVal->SetValue( aCfg->m_Regulators.r1 );
547 m_r2TypVal->SetValue( aCfg->m_Regulators.r2 );
548
549 m_vrefMinVal->SetValue( aCfg->m_Regulators.vrefMin );
550 m_vrefTypVal->SetValue( aCfg->m_Regulators.vrefTyp );
551 m_vrefMaxVal->SetValue( aCfg->m_Regulators.vrefMax );
552
553 m_voutTypVal->SetValue( aCfg->m_Regulators.voutTyp );
554
555 m_iadjTypVal->SetValue( aCfg->m_Regulators.iadjTyp );
556 m_iadjMaxVal->SetValue( aCfg->m_Regulators.iadjMax );
557
560 m_choiceRegType->SetSelection( aCfg->m_Regulators.type );
561
562 wxRadioButton* regprms[3] = { m_rbRegulR1, m_rbRegulR2, m_rbRegulVout };
563
564 if( aCfg->m_Regulators.last_param >= 3 )
565 aCfg->m_Regulators.last_param = 0;
566
567 for( int ii = 0; ii < 3; ii++ )
568 regprms[ii]->SetValue( aCfg->m_Regulators.last_param == ii );
569
571}
572
573
575{
576 aCfg->m_Regulators.resTol = m_resTolVal->GetValue();
577
578 aCfg->m_Regulators.r1 = m_r1TypVal->GetValue();
579 aCfg->m_Regulators.r2 = m_r2TypVal->GetValue();
580
581 aCfg->m_Regulators.vrefMin = m_vrefMinVal->GetValue();
582 aCfg->m_Regulators.vrefTyp = m_vrefTypVal->GetValue();
583 aCfg->m_Regulators.vrefMax = m_vrefMaxVal->GetValue();
584
585 m_voutTypVal->SetValue( aCfg->m_Regulators.voutTyp );
586
587 aCfg->m_Regulators.iadjTyp = m_iadjTypVal->GetValue();
588 aCfg->m_Regulators.iadjMax = m_iadjMaxVal->GetValue();
589
592 aCfg->m_Regulators.type = m_choiceRegType->GetSelection();
593
594 wxRadioButton* regprms[3] = { m_rbRegulR1, m_rbRegulR2, m_rbRegulVout };
595
596 aCfg->m_Regulators.last_param = 0;
597
598 for( int ii = 0; ii < 3; ii++ )
599 {
600 if( regprms[ii]->GetValue() )
601 {
602 aCfg->m_Regulators.last_param = ii;
603 break;
604 }
605 }
606}
607
608
610{
611 if( m_regulators_fileNameCtrl->GetValue().IsEmpty() )
612 return wxEmptyString;
613
614 wxFileName fn( m_regulators_fileNameCtrl->GetValue() );
615 fn.SetExt( DataFileNameExt );
616 return fn.GetFullPath();
617}
618
619
620void PANEL_REGULATOR::SetDataFilename( const wxString& aFilename )
621{
622 if( aFilename.IsEmpty() )
623 {
624 m_regulators_fileNameCtrl->SetValue( wxEmptyString );
625 }
626 else
627 {
628 wxFileName fn( aFilename );
629 fn.SetExt( DataFileNameExt );
630 m_regulators_fileNameCtrl->SetValue( fn.GetFullPath() );
631 }
632}
633
634double PANEL_REGULATOR::round_to( double value, double precision )
635{
636 return std::round( value / precision ) * precision;
637}
const char * name
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
Definition bitmap.cpp:110
Subclass of DIALOG_REGULATOR_FORM_BASE, which is generated by wxFormBuilder.
REGULATOR_DATA * BuildRegulatorFromData()
Create a new REGULATOR_DATA from dialog data.
void CopyRegulatorDataToDialog(REGULATOR_DATA *aItem)
Transfer data from dialog to aItem.
int ShowModal() override
wxStaticText * m_RegulIadjTitle
wxTextCtrl * m_regulators_fileNameCtrl
wxRadioButton * m_rbRegulVout
wxStaticBitmap * m_bitmapRegul4pins
wxStaticBitmap * m_bitmapRegul3pins
wxStaticText * m_labelUnitsIadj
PANEL_REGULATOR_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)
void OnEditRegulator(wxCommandEvent &event) override
void OnRegulatorSelection(wxCommandEvent &event) override
static double round_to(double value, double precision=0.001)
void OnRegulatorResetButtonClick(wxCommandEvent &event) override
REGULATOR_LIST m_RegulatorList
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
const wxString GetDataFilename()
void OnRegulatorCalcButtonClick(wxCommandEvent &event) override
void OnDataFileSelection(wxCommandEvent &event) override
void SetDataFilename(const wxString &aFilename)
Initialize the full filename of the selected pcb_calculator data file force the standard extension of...
void SelectLastSelectedRegulator()
If m_lastSelectedRegulatorName is empty, just calls RegulatorPageUpdate()
void OnRegulTypeSelection(wxCommandEvent &event) override
void OnCopyCB(wxCommandEvent &event) override
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
void OnRemoveRegulator(wxCommandEvent &event) override
wxString m_lastSelectedRegulatorName
void OnAddRegulator(wxCommandEvent &event) override
PANEL_REGULATOR(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
void RegulatorPageUpdate()
Update the regulator page dialog display.
Contains structures for storage of regulator data.
#define _(s)
void AllowNetworkFileSystems(wxDialog *aDialog)
Configure a file dialog to show network and virtual file systems.
Definition wxgtk/ui.cpp:717
double DoubleFromString(const wxString &TextValue)
double DoubleFromString(const wxString &TextValue)
const wxString DataFileNameExt
#define DEFAULT_REGULATOR_RESTOL
#define DEFAULT_REGULATOR_IADJ_MAX
#define DEFAULT_REGULATOR_IADJ_TYP
#define DEFAULT_REGULATOR_R2
#define DEFAULT_REGULATOR_R1
#define DEFAULT_REGULATOR_VREF_TYP
#define DEFAULT_REGULATOR_VREF_MIN
#define DEFAULT_REGULATOR_VREF_MAX
#define DEFAULT_REGULATOR_VOUT_TYP
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
#define wxASCII_STR(s)
Definition util.cpp:41