KiCad PCB EDA Suite
Loading...
Searching...
No Matches
UNIT_SELECTOR_FREQUENCY Class Reference

#include <unit_selector.h>

Inheritance diagram for UNIT_SELECTOR_FREQUENCY:
UNIT_SELECTOR

Public Member Functions

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

Detailed Description

Definition at line 87 of file unit_selector.h.

Constructor & Destructor Documentation

◆ UNIT_SELECTOR_FREQUENCY()

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

Definition at line 95 of file unit_selector.cpp.

References _.

Member Function Documentation

◆ GetUnitName()

wxString UNIT_SELECTOR::GetUnitName ( )
inlineinherited

Definition at line 51 of file unit_selector.h.

Referenced by PANEL_TRACK_WIDTH::TWDisplayValues().

◆ GetUnitScale()

double UNIT_SELECTOR_FREQUENCY::GetUnitScale ( )
overridevirtual

Function GetUnitScale.

Returns
the scaling factor to convert users units to normalized units (Hz)

Implements UNIT_SELECTOR.

Definition at line 111 of file unit_selector.cpp.

References GetCurrentSelection(), UNIT_GHZ, UNIT_KHZ, and UNIT_MHZ.

Referenced by PANEL_CABLE_SIZE::OnFrequencyChange(), PANEL_WAVELENGTH::OnFrequencyChange(), PANEL_CABLE_SIZE::printAll(), and PANEL_WAVELENGTH::update().


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