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

#include <panel_wavelength.h>

Inheritance diagram for PANEL_WAVELENGTH:
PANEL_WAVELENGTH_BASE CALCULATOR_PANEL

Public Member Functions

 PANEL_WAVELENGTH (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_WAVELENGTH ()
 
void LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Load the settings into the panel. More...
 
void SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Save the settings from the panel. More...
 
void ThemeChanged () override
 Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme. More...
 
void OnFrequencyChange (wxCommandEvent &event) override
 
void OnPeriodChange (wxCommandEvent &event) override
 
void OnWavelengthVacuumChange (wxCommandEvent &event) override
 
void OnWavelengthMediumChange (wxCommandEvent &event) override
 
void OnPermittivityChange (wxCommandEvent &event) override
 
void OnPermeabilityChange (wxCommandEvent &event) override
 
void OnButtonPermittivity (wxCommandEvent &event) override
 

Protected Attributes

wxStaticText * m_staticText18
 
wxTextCtrl * m_frequencyCtrl
 
UNIT_SELECTOR_FREQUENCYm_frequencyUnit
 
wxStaticText * m_staticText181
 
wxTextCtrl * m_periodCtrl
 
UNIT_SELECTOR_TIMEm_periodUnit
 
wxStaticText * m_staticText1811
 
wxTextCtrl * m_wavelengthVacuumCtrl
 
UNIT_SELECTOR_LEN_CABLEm_wavelengthVacuumUnit
 
wxStaticText * m_staticText18111
 
wxTextCtrl * m_wavelengthMediumCtrl
 
UNIT_SELECTOR_LEN_CABLEm_wavelengthMediumUnit
 
wxStaticText * m_staticText181112
 
wxTextCtrl * m_speedCtrl
 
UNIT_SELECTOR_SPEEDm_speedUnit
 
wxStaticText * m_staticText181111
 
wxTextCtrl * m_permittivityCtrl
 
wxButton * m_button1
 
wxStaticText * m_staticText42
 
wxTextCtrl * m_permeabilityCtrl
 

Private Member Functions

void update (double aFrequency)
 
void updateUnits (wxCommandEvent &aEvent) override
 

Private Attributes

double m_permittivity = 1
 
double m_permeability = 1
 
double m_frequency = 1
 
bool m_updatingFrequency = false
 
bool m_updatingPeriod = false
 
bool m_updatingWavelengthVacuum = false
 
bool m_updatingWavelengthMedium = false
 
bool m_updatingSpeed = false
 
bool m_updatingUI = false
 

Detailed Description

Definition at line 27 of file panel_wavelength.h.

Constructor & Destructor Documentation

◆ PANEL_WAVELENGTH()

PANEL_WAVELENGTH::PANEL_WAVELENGTH ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 31 of file panel_wavelength.cpp.

References PANEL_WAVELENGTH_BASE::m_speedCtrl, and minSize.

◆ ~PANEL_WAVELENGTH()

PANEL_WAVELENGTH::~PANEL_WAVELENGTH ( )
inline

Definition at line 33 of file panel_wavelength.h.

Member Function Documentation

◆ LoadSettings()

◆ OnButtonPermittivity()

void PANEL_WAVELENGTH::OnButtonPermittivity ( wxCommandEvent &  event)
overridevirtual

◆ OnFrequencyChange()

void PANEL_WAVELENGTH::OnFrequencyChange ( wxCommandEvent &  event)
overridevirtual

◆ OnPeriodChange()

void PANEL_WAVELENGTH::OnPeriodChange ( wxCommandEvent &  event)
overridevirtual

◆ OnPermeabilityChange()

void PANEL_WAVELENGTH::OnPermeabilityChange ( wxCommandEvent &  event)
overridevirtual

◆ OnPermittivityChange()

void PANEL_WAVELENGTH::OnPermittivityChange ( wxCommandEvent &  event)
overridevirtual

◆ OnWavelengthMediumChange()

void PANEL_WAVELENGTH::OnWavelengthMediumChange ( wxCommandEvent &  event)
overridevirtual

◆ OnWavelengthVacuumChange()

void PANEL_WAVELENGTH::OnWavelengthVacuumChange ( wxCommandEvent &  event)
overridevirtual

◆ SaveSettings()

◆ ThemeChanged()

void PANEL_WAVELENGTH::ThemeChanged ( )
inlineoverridevirtual

Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.

Implements CALCULATOR_PANEL.

Definition at line 38 of file panel_wavelength.h.

◆ update()

◆ updateUnits()

void PANEL_WAVELENGTH::updateUnits ( wxCommandEvent &  aEvent)
overrideprivatevirtual

Reimplemented from PANEL_WAVELENGTH_BASE.

Definition at line 79 of file panel_wavelength.cpp.

References m_frequency, and update().

Member Data Documentation

◆ m_button1

wxButton* PANEL_WAVELENGTH_BASE::m_button1
protectedinherited

◆ m_frequency

double PANEL_WAVELENGTH::m_frequency = 1
private

◆ m_frequencyCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_frequencyCtrl
protectedinherited

◆ m_frequencyUnit

◆ m_periodCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_periodCtrl
protectedinherited

◆ m_periodUnit

◆ m_permeability

double PANEL_WAVELENGTH::m_permeability = 1
private

◆ m_permeabilityCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_permeabilityCtrl
protectedinherited

◆ m_permittivity

double PANEL_WAVELENGTH::m_permittivity = 1
private

◆ m_permittivityCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_permittivityCtrl
protectedinherited

◆ m_speedCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_speedCtrl
protectedinherited

◆ m_speedUnit

◆ m_staticText18

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText18
protectedinherited

◆ m_staticText181

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText181
protectedinherited

◆ m_staticText1811

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText1811
protectedinherited

◆ m_staticText18111

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText18111
protectedinherited

◆ m_staticText181111

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText181111
protectedinherited

◆ m_staticText181112

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText181112
protectedinherited

◆ m_staticText42

wxStaticText* PANEL_WAVELENGTH_BASE::m_staticText42
protectedinherited

◆ m_updatingFrequency

bool PANEL_WAVELENGTH::m_updatingFrequency = false
private

Definition at line 56 of file panel_wavelength.h.

Referenced by OnFrequencyChange(), and update().

◆ m_updatingPeriod

bool PANEL_WAVELENGTH::m_updatingPeriod = false
private

Definition at line 57 of file panel_wavelength.h.

Referenced by OnPeriodChange(), and update().

◆ m_updatingSpeed

bool PANEL_WAVELENGTH::m_updatingSpeed = false
private

Definition at line 60 of file panel_wavelength.h.

Referenced by update().

◆ m_updatingUI

bool PANEL_WAVELENGTH::m_updatingUI = false
private

◆ m_updatingWavelengthMedium

bool PANEL_WAVELENGTH::m_updatingWavelengthMedium = false
private

Definition at line 59 of file panel_wavelength.h.

Referenced by OnWavelengthMediumChange(), and update().

◆ m_updatingWavelengthVacuum

bool PANEL_WAVELENGTH::m_updatingWavelengthVacuum = false
private

Definition at line 58 of file panel_wavelength.h.

Referenced by OnWavelengthVacuumChange(), and update().

◆ m_wavelengthMediumCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_wavelengthMediumCtrl
protectedinherited

◆ m_wavelengthMediumUnit

◆ m_wavelengthVacuumCtrl

wxTextCtrl* PANEL_WAVELENGTH_BASE::m_wavelengthVacuumCtrl
protectedinherited

◆ m_wavelengthVacuumUnit


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