KiCad PCB EDA Suite
UNIT_SELECTOR Class Referenceabstract

#include <UnitSelector.h>

Inheritance diagram for UNIT_SELECTOR:
UNIT_SELECTOR_ANGLE UNIT_SELECTOR_FREQUENCY UNIT_SELECTOR_LEN UNIT_SELECTOR_RESISTOR UNIT_SELECTOR_THICKNESS

Public Member Functions

 UNIT_SELECTOR (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0)
 
virtual double GetUnitScale ()=0
 Function GetUnitScale. More...
 
wxString GetUnitName ()
 

Detailed Description

Definition at line 34 of file UnitSelector.h.

Constructor & Destructor Documentation

◆ UNIT_SELECTOR()

UNIT_SELECTOR::UNIT_SELECTOR ( wxWindow *  parent,
wxWindowID  id,
const wxPoint pos,
const wxSize &  size,
const wxArrayString &  choices,
long  style = 0 
)
inline

Definition at line 37 of file UnitSelector.h.

39  :
40  wxChoice( parent, id, pos, size, choices, style )
41  {
42  }

Member Function Documentation

◆ GetUnitName()

wxString UNIT_SELECTOR::GetUnitName ( )
inline

Definition at line 51 of file UnitSelector.h.

52  {
53  return GetStringSelection();
54  }

Referenced by PCB_CALCULATOR_FRAME::TWDisplayValues().

◆ GetUnitScale()

virtual double UNIT_SELECTOR::GetUnitScale ( )
pure virtual

Function GetUnitScale.

Returns
the scaling factor to convert users units to normalized units (meter, herz, ohm, radian )

Implemented in UNIT_SELECTOR_RESISTOR, UNIT_SELECTOR_ANGLE, UNIT_SELECTOR_FREQUENCY, UNIT_SELECTOR_THICKNESS, and UNIT_SELECTOR_LEN.

Referenced by PCB_CALCULATOR_FRAME::TransfDlgDataToTranslineParams().


The documentation for this class was generated from the following file: