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

#include <unit_selector.h>

Inheritance diagram for UNIT_SELECTOR_POWER:
UNIT_SELECTOR

Public Member Functions

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

Detailed Description

Definition at line 176 of file unit_selector.h.

Constructor & Destructor Documentation

◆ UNIT_SELECTOR_POWER()

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

Definition at line 274 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_POWER::GetUnitScale ( )
overridevirtual

Function GetUnitScale.

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

Implements UNIT_SELECTOR.

Definition at line 264 of file unit_selector.cpp.

References GetCurrentSelection(), UNIT_MILLIWATT, and UNIT_WATT.

Referenced by PANEL_CABLE_SIZE::OnPowerChange(), and PANEL_CABLE_SIZE::printAll().


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