22 #include <wx/choicdlg.h> 23 #include <wx/msgdlg.h> 37 const wxPoint& pos,
const wxSize& size,
38 long style,
const wxString&
name ) :
61 GetSizer()->SetSizeHints(
this );
104 attenuator->ReadConfig();
118 attenuator->WriteConfig();
215 msg.Printf(
_(
"Attenuation more than %f dB" ),
wxTextCtrl * m_ZoutValueCtrl
void SetAttenuator(unsigned aIdx)
PANEL_ATTENUATORS(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxStaticText * m_attZinUnit
void TransfAttenuatorDataToPanel()
wxStaticBitmap * m_attenuatorBitmap
wxFont GetInfoFont(wxWindow *aWindow)
bool m_Attenuation_Enable
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
void OnCalculateAttenuator(wxCommandEvent &event) override
void TransfPanelDataToAttenuator()
void OnAttenuatorSelection(wxCommandEvent &event) override
wxRadioBox * m_AttenuatorsSelection
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
wxTextCtrl * m_Att_R1_Value
wxTextCtrl * m_AttValueCtrl
virtual bool Calculate()
Calculates the values of components in attenuator.
bool AppendToPage(const wxString &aSource)
void ConvertMarkdown2Html(const wxString &aMarkdownInput, wxString &aHtmlOutput)
ATTENUATORS m_Attenuators
Functions to provide common constants and other functions to assist in making a consistent UI.
bool SetPage(const wxString &aSource) override
double DoubleFromString(const wxString &TextValue)
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
wxStaticText * m_attR1Unit
HTML_WINDOW * m_panelAttFormula
void TransfAttenuatorResultsToPanel()
Class PANEL_ATTENUATORS_BASE.
wxTextCtrl * m_Att_R3_Value
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
wxTextCtrl * m_ZinValueCtrl
wxStaticText * m_attR2Unit
wxStaticText * m_attR3Unit
wxBitmapButton * m_bpButtonCalcAtt
HTML_WINDOW * m_Attenuator_Messages
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
wxStaticText * m_attZoutUnit
wxTextCtrl * m_Att_R2_Value
wxStaticText * m_staticTextAttMsg
ATTENUATOR * m_CurrAttenuator