22#include <wx/choicdlg.h>
37 const wxSize& size,
long style,
const wxString&
name ) :
60 GetSizer()->SetSizeHints(
this );
103 attenuator->ReadConfig();
117 attenuator->WriteConfig();
142 bool enable = aIdx != 2;
220 msg.Printf(
_(
"Attenuation more than %f dB" ),
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
virtual bool Calculate()
Calculates the values of components in attenuator.
bool m_Attenuation_Enable
bool SetPage(const wxString &aSource) override
bool AppendToPage(const wxString &aSource)
Class PANEL_RF_ATTENUATORS_BASE.
wxTextCtrl * m_ZinValueCtrl
wxStaticText * m_attR3Unit
wxTextCtrl * m_ZoutValueCtrl
wxStaticText * m_staticTextAttMsg
wxTextCtrl * m_Att_R2_Value
wxTextCtrl * m_Att_R1_Value
wxStaticText * m_attZoutUnit
wxStaticBitmap * m_attenuatorBitmap
HTML_WINDOW * m_panelAttFormula
wxStaticText * m_attR2Unit
HTML_WINDOW * m_Attenuator_Messages
wxStaticText * m_attZinUnit
wxTextCtrl * m_AttValueCtrl
STD_BITMAP_BUTTON * m_bpButtonCalcAtt
wxTextCtrl * m_Att_R3_Value
wxStaticText * m_attR1Unit
wxStaticText * m_attenuatorR3Label
wxRadioBox * m_AttenuatorsSelection
void TransfPanelDataToAttenuator()
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
void OnAttenuatorSelection(wxCommandEvent &event) override
void SetAttenuator(unsigned aIdx)
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
ATTENUATOR * m_CurrAttenuator
void TransfAttenuatorResultsToPanel()
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
std::vector< ATTENUATOR * > m_AttenuatorList
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)
void OnCalculateAttenuator(wxCommandEvent &event) override
void TransfAttenuatorDataToPanel()
ATTENUATORS m_Attenuators
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
double DoubleFromString(const wxString &TextValue)
double DoubleFromString(const wxString &TextValue)
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
void ConvertMarkdown2Html(const wxString &aMarkdownInput, wxString &aHtmlOutput)
Functions to provide common constants and other functions to assist in making a consistent UI.