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

#include <panel_rf_attenuators.h>

Inheritance diagram for PANEL_RF_ATTENUATORS:
PANEL_RF_ATTENUATORS_BASE CALCULATOR_PANEL

Public Member Functions

 PANEL_RF_ATTENUATORS (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_RF_ATTENUATORS ()
 
wxRadioBox * GetAttenuatorsSelector ()
 
void LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Load the settings into the panel.
 
void SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Save the settings from the panel.
 
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.
 
void UpdateUI ()
 
void OnAttenuatorSelection (wxCommandEvent &event) override
 
void SetAttenuator (unsigned aIdx)
 
void OnCalculateAttenuator (wxCommandEvent &event) override
 
void TransfPanelDataToAttenuator ()
 
void TransfAttenuatorDataToPanel ()
 
void TransfAttenuatorResultsToPanel ()
 

Public Attributes

ATTENUATORm_CurrAttenuator
 
std::vector< ATTENUATOR * > m_AttenuatorList
 

Protected Attributes

wxRadioBox * m_AttenuatorsSelection
 
wxStaticBitmap * m_attenuatorBitmap
 
wxStaticText * m_attenuationLabel
 
wxTextCtrl * m_AttValueCtrl
 
wxStaticText * m_attUnit
 
wxStaticText * m_attenuationZinLabel
 
wxTextCtrl * m_ZinValueCtrl
 
wxStaticText * m_attZinUnit
 
wxStaticText * m_ZoutLabel
 
wxTextCtrl * m_ZoutValueCtrl
 
wxStaticText * m_attZoutUnit
 
wxButton * m_buttonAlcAtt
 
STD_BITMAP_BUTTONm_bpButtonCalcAtt
 
wxStaticText * m_attenuatorR1Label
 
wxTextCtrl * m_Att_R1_Value
 
wxStaticText * m_attR1Unit
 
wxStaticText * m_attenuatorR2Label
 
wxTextCtrl * m_Att_R2_Value
 
wxStaticText * m_attR2Unit
 
wxStaticText * m_attenuatorR3Label
 
wxTextCtrl * m_Att_R3_Value
 
wxStaticText * m_attR3Unit
 
wxStaticText * m_staticTextAttMsg
 
HTML_WINDOWm_Attenuator_Messages
 
HTML_WINDOWm_panelAttFormula
 

Detailed Description

Definition at line 30 of file panel_rf_attenuators.h.

Constructor & Destructor Documentation

◆ PANEL_RF_ATTENUATORS()

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

◆ ~PANEL_RF_ATTENUATORS()

PANEL_RF_ATTENUATORS::~PANEL_RF_ATTENUATORS ( )

Definition at line 64 of file panel_rf_attenuators.cpp.

References m_AttenuatorList.

Member Function Documentation

◆ GetAttenuatorsSelector()

wxRadioBox * PANEL_RF_ATTENUATORS::GetAttenuatorsSelector ( )
inline

◆ LoadSettings()

void PANEL_RF_ATTENUATORS::LoadSettings ( PCB_CALCULATOR_SETTINGS aCfg)
overridevirtual

Load the settings into the panel.

Parameters
aCfgis the settings structure to load from

Implements CALCULATOR_PANEL.

Definition at line 98 of file panel_rf_attenuators.cpp.

References m_AttenuatorList, PCB_CALCULATOR_SETTINGS::m_Attenuators, PANEL_RF_ATTENUATORS_BASE::m_AttenuatorsSelection, SetAttenuator(), and PCB_CALCULATOR_SETTINGS::ATTENUATORS::type.

◆ OnAttenuatorSelection()

void PANEL_RF_ATTENUATORS::OnAttenuatorSelection ( wxCommandEvent &  event)
overridevirtual

Reimplemented from PANEL_RF_ATTENUATORS_BASE.

Definition at line 122 of file panel_rf_attenuators.cpp.

References Refresh(), and SetAttenuator().

◆ OnCalculateAttenuator()

void PANEL_RF_ATTENUATORS::OnCalculateAttenuator ( wxCommandEvent &  event)
overridevirtual

◆ SaveSettings()

void PANEL_RF_ATTENUATORS::SaveSettings ( PCB_CALCULATOR_SETTINGS aCfg)
overridevirtual

Save the settings from the panel.

Parameters
aCfgis the settings structure to save to

Implements CALCULATOR_PANEL.

Definition at line 110 of file panel_rf_attenuators.cpp.

References m_AttenuatorList, PCB_CALCULATOR_SETTINGS::m_Attenuators, PANEL_RF_ATTENUATORS_BASE::m_AttenuatorsSelection, and PCB_CALCULATOR_SETTINGS::ATTENUATORS::type.

◆ SetAttenuator()

◆ ThemeChanged()

◆ TransfAttenuatorDataToPanel()

◆ TransfAttenuatorResultsToPanel()

◆ TransfPanelDataToAttenuator()

◆ UpdateUI()

void PANEL_RF_ATTENUATORS::UpdateUI ( )

Member Data Documentation

◆ m_Att_R1_Value

wxTextCtrl* PANEL_RF_ATTENUATORS_BASE::m_Att_R1_Value
protectedinherited

◆ m_Att_R2_Value

wxTextCtrl* PANEL_RF_ATTENUATORS_BASE::m_Att_R2_Value
protectedinherited

◆ m_Att_R3_Value

wxTextCtrl* PANEL_RF_ATTENUATORS_BASE::m_Att_R3_Value
protectedinherited

◆ m_attenuationLabel

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attenuationLabel
protectedinherited

◆ m_attenuationZinLabel

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attenuationZinLabel
protectedinherited

◆ m_Attenuator_Messages

HTML_WINDOW* PANEL_RF_ATTENUATORS_BASE::m_Attenuator_Messages
protectedinherited

◆ m_attenuatorBitmap

wxStaticBitmap* PANEL_RF_ATTENUATORS_BASE::m_attenuatorBitmap
protectedinherited

◆ m_AttenuatorList

std::vector<ATTENUATOR*> PANEL_RF_ATTENUATORS::m_AttenuatorList

◆ m_attenuatorR1Label

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attenuatorR1Label
protectedinherited

◆ m_attenuatorR2Label

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attenuatorR2Label
protectedinherited

◆ m_attenuatorR3Label

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attenuatorR3Label
protectedinherited

◆ m_AttenuatorsSelection

wxRadioBox* PANEL_RF_ATTENUATORS_BASE::m_AttenuatorsSelection
protectedinherited

◆ m_attR1Unit

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attR1Unit
protectedinherited

◆ m_attR2Unit

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attR2Unit
protectedinherited

◆ m_attR3Unit

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attR3Unit
protectedinherited

◆ m_attUnit

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attUnit
protectedinherited

◆ m_AttValueCtrl

wxTextCtrl* PANEL_RF_ATTENUATORS_BASE::m_AttValueCtrl
protectedinherited

◆ m_attZinUnit

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attZinUnit
protectedinherited

◆ m_attZoutUnit

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_attZoutUnit
protectedinherited

◆ m_bpButtonCalcAtt

◆ m_buttonAlcAtt

wxButton* PANEL_RF_ATTENUATORS_BASE::m_buttonAlcAtt
protectedinherited

◆ m_CurrAttenuator

◆ m_panelAttFormula

HTML_WINDOW* PANEL_RF_ATTENUATORS_BASE::m_panelAttFormula
protectedinherited

◆ m_staticTextAttMsg

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_staticTextAttMsg
protectedinherited

◆ m_ZinValueCtrl

wxTextCtrl* PANEL_RF_ATTENUATORS_BASE::m_ZinValueCtrl
protectedinherited

◆ m_ZoutLabel

wxStaticText* PANEL_RF_ATTENUATORS_BASE::m_ZoutLabel
protectedinherited

◆ m_ZoutValueCtrl

wxTextCtrl* PANEL_RF_ATTENUATORS_BASE::m_ZoutValueCtrl
protectedinherited

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