27#include "units_scales.h"
30 const wxPoint& pos,
const wxSize& size,
31 const wxArrayString& choices,
long style ) :
38 Append(
_(
"inch" ) );
47 switch( GetCurrentSelection() )
61 const wxPoint& pos,
const wxSize& size,
62 const wxArrayString& choices,
long style )
65 Append( wxT(
"mm" ) );
66 Append( wxT(
"µm" ) );
67 Append( wxT(
"cm" ) );
68 Append( wxT(
"mil" ) );
69 Append( wxT(
"inch" ) );
70 Append( wxT(
"oz/ft²" ) );
81 switch( GetCurrentSelection() )
95 const wxPoint& pos,
const wxSize& size,
96 const wxArrayString& choices,
long style ):
100 Append(
_(
"MHz" ) );
101 Append(
_(
"kHz" ) );
112 switch( GetCurrentSelection() )
124 const wxPoint& pos,
const wxSize& size,
125 const wxArrayString& choices,
long style ) :
128 Append(
_(
"rad" ) );
129 Append(
_(
"deg" ) );
139 switch( GetCurrentSelection() )
149 const wxPoint& pos,
const wxSize& size,
150 const wxArrayString& choices,
long style )
153 Append( wxT(
"Ω" ) );
154 Append( wxT(
"kΩ" ) );
165 switch( GetCurrentSelection() )
175 const wxPoint& pos,
const wxSize& size,
176 const wxArrayString& choices,
long style )
179 Append( wxT(
"Ω/m" ) );
180 Append( wxT(
"Ω/km" ) );
181 Append( wxT(
"Ω/ft" ) );
182 Append( wxT(
"Ω/1000ft" ) );
193 switch( GetCurrentSelection() )
205 const wxPoint& pos,
const wxSize& size,
206 const wxArrayString& choices,
long style ) :
212 Append(
_(
"inch" ) );
213 Append(
_(
"feet" ) );
223 switch( GetCurrentSelection() )
226 case 1:
return UNIT_M;
break;
241 switch( GetCurrentSelection() )
250 const wxSize& size,
const wxArrayString& choices,
265 switch( GetCurrentSelection() )
274 const wxSize& size,
const wxArrayString& choices,
283 const wxSize& size,
const wxArrayString& choices,
287 Append(
_(
"m/s" ) );
288 Append(
_(
"ft/s" ) );
289 Append(
_(
"km/h" ) );
290 Append(
_(
"mi/h" ) );
300 switch( GetCurrentSelection() )
311 const wxSize& size,
const wxArrayString& choices,
326 switch( GetCurrentSelection() )
UNIT_SELECTOR_ANGLE(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
UNIT_SELECTOR_FREQUENCY(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
double GetUnitScale() override
UNIT_SELECTOR_LEN_CABLE(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
UNIT_SELECTOR_LEN(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
Return the scaling factor to convert users units to normalized units (meter).
UNIT_SELECTOR_LINEAR_RESISTANCE(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
double GetUnitScale() override
UNIT_SELECTOR_POWER(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
UNIT_SELECTOR_RESISTOR(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
double GetUnitScale() override
UNIT_SELECTOR_SPEED(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
UNIT_SELECTOR_THICKNESS(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
UNIT_SELECTOR_TIME(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
double GetUnitScale() override
double GetUnitScale() override
UNIT_SELECTOR_VOLTAGE(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
UNIT_SELECTOR(wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
#define UNIT_MILES_PER_HOUR
#define UNIT_METER_PER_SECOND
#define UNIT_OHM_PER_METER
#define UNIT_KILOMETER_PER_HOUR
#define UNIT_FEET_PER_SECOND
#define UNIT_OHM_PER_FEET
#define UNIT_OHM_PER_1000FEET
#define UNIT_OHM_PER_KILOMETER
a wxChoiceBox to select units in Pcb_Calculator