33 if( aFormat->
Range.EndsWith( wxS(
"V" ) ) )
36 SetTitle( wxString::Format( GetTitle(),
_(
"Voltage" ) ) );
38 else if( aFormat->
Range.EndsWith( wxS(
"A" ) ) )
41 SetTitle( wxString::Format( GetTitle(),
_(
"Current" ) ) );
43 else if( aFormat->
Range.EndsWith( wxS(
"s" ) ) )
46 SetTitle( wxString::Format( GetTitle(),
_(
"Time" ) ) );
48 else if( aFormat->
Range.EndsWith( wxS(
"Hz" ) ) )
51 SetTitle( wxString::Format( GetTitle(),
_(
"Frequency" ) ) );
53 else if( aFormat->
Range.EndsWith( wxS(
"dB" ) ) )
56 SetTitle( wxString::Format( GetTitle(),
_(
"Gain" ) ) );
58 else if( aFormat->
Range.EndsWith( wxS(
"°" ) ) )
61 SetTitle( wxString::Format( GetTitle(),
_(
"Phase" ) ) );
63 else if( aFormat->
Range.StartsWith( wxS(
"~" ), &
m_units ) )
66 SetTitle( wxString::Format( GetTitle(),
_(
"Value" ) ) );
75 SetTitle( wxString::Format( GetTitle(),
_(
"Value" ) ) );
80 for(
int ii = 1; ii < (int)
m_rangeCtrl->GetCount(); ++ii )
83 if( aFormat->
Range.GetChar( 0 ) ==
'~' )
static UNIT_PREFIX ParseSIPrefix(wxChar c)