35 if( aFormat->
Range.EndsWith( wxS(
"V" ) ) )
38 SetTitle( wxString::Format( GetTitle(),
_(
"Voltage" ) ) );
40 else if( aFormat->
Range.EndsWith( wxS(
"A" ) ) )
43 SetTitle( wxString::Format( GetTitle(),
_(
"Current" ) ) );
45 else if( aFormat->
Range.EndsWith( wxS(
"s" ) ) )
48 SetTitle( wxString::Format( GetTitle(),
_(
"Time" ) ) );
50 else if( aFormat->
Range.EndsWith( wxS(
"Hz" ) ) )
53 SetTitle( wxString::Format( GetTitle(),
_(
"Frequency" ) ) );
55 else if( aFormat->
Range.EndsWith( wxS(
"dB" ) ) )
58 SetTitle( wxString::Format( GetTitle(),
_(
"Gain" ) ) );
60 else if( aFormat->
Range.EndsWith( wxS(
"°" ) ) )
63 SetTitle( wxString::Format( GetTitle(),
_(
"Phase" ) ) );
65 else if( aFormat->
Range.StartsWith( wxS(
"~" ), &
m_units ) )
68 SetTitle( wxString::Format( GetTitle(),
_(
"Value" ) ) );
77 SetTitle( wxString::Format( GetTitle(),
_(
"Value" ) ) );
82 for(
int ii = 1; ii < (int)
m_rangeCtrl->GetCount(); ++ii )
85 if( aFormat->
Range.GetChar( 0 ) ==
'~' )
void OptOut(wxWindow *aWindow)
Opt out of control state saving.
static UNIT_PREFIX ParseSIPrefix(wxChar c)