KiCad PCB EDA Suite
|
#include <panel_galvanic_corrosion.h>
Public Member Functions | |
PANEL_GALVANIC_CORROSION (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString) | |
~PANEL_GALVANIC_CORROSION () | |
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 | OnNomenclatureChange (wxCommandEvent &aEvent) override |
void | OnCorFilterChange (wxCommandEvent &aEvent) override |
Public Attributes | |
std::vector< CORROSION_TABLE_ENTRY > | m_entries |
Protected Attributes | |
wxBoxSizer * | bSizerMain |
wxScrolledWindow * | m_scrolledWindow1 |
wxGrid * | m_table |
HTML_WINDOW * | m_helpText |
wxStaticText * | m_staticText2 |
wxTextCtrl * | m_corFilterCtrl |
wxStaticText * | m_staticText3 |
wxStaticLine * | m_staticline |
wxStaticText * | m_stOpts |
wxRadioButton * | m_radioBtnSymbol |
wxRadioButton * | m_radioBtnName |
Private Member Functions | |
void | fillTable () |
Private Attributes | |
bool | m_symbolicStatus |
double | m_corFilterValue |
Definition at line 40 of file panel_galvanic_corrosion.h.
PANEL_GALVANIC_CORROSION::PANEL_GALVANIC_CORROSION | ( | 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 40 of file panel_galvanic_corrosion.cpp.
References _, ConvertMarkdown2Html(), fillTable(), galvanic_corrosion_help, m_corFilterValue, m_entries, PANEL_GALVANIC_CORROSION_BASE::m_helpText, m_symbolicStatus, PANEL_GALVANIC_CORROSION_BASE::m_table, and HTML_WINDOW::SetPage().
PANEL_GALVANIC_CORROSION::~PANEL_GALVANIC_CORROSION | ( | ) |
Definition at line 89 of file panel_galvanic_corrosion.cpp.
|
private |
Definition at line 144 of file panel_galvanic_corrosion.cpp.
References KiROUND(), m_corFilterValue, m_entries, m_symbolicStatus, and PANEL_GALVANIC_CORROSION_BASE::m_table.
Referenced by LoadSettings(), OnCorFilterChange(), OnNomenclatureChange(), and PANEL_GALVANIC_CORROSION().
|
overridevirtual |
Load the settings into the panel.
aCfg | is the settings structure to load from |
Implements CALCULATOR_PANEL.
Definition at line 100 of file panel_galvanic_corrosion.cpp.
References DoubleFromString(), fillTable(), PANEL_GALVANIC_CORROSION_BASE::m_corFilterCtrl, m_corFilterValue, PCB_CALCULATOR_SETTINGS::m_CorrosionTable, PANEL_GALVANIC_CORROSION_BASE::m_radioBtnName, PANEL_GALVANIC_CORROSION_BASE::m_radioBtnSymbol, m_symbolicStatus, PCB_CALCULATOR_SETTINGS::CORROSION_TABLE::show_symbols, and PCB_CALCULATOR_SETTINGS::CORROSION_TABLE::threshold_voltage.
|
overridevirtual |
Reimplemented from PANEL_GALVANIC_CORROSION_BASE.
Definition at line 137 of file panel_galvanic_corrosion.cpp.
References DoubleFromString(), fillTable(), PANEL_GALVANIC_CORROSION_BASE::m_corFilterCtrl, and m_corFilterValue.
|
overridevirtual |
Reimplemented from PANEL_GALVANIC_CORROSION_BASE.
Definition at line 121 of file panel_galvanic_corrosion.cpp.
References fillTable(), PANEL_GALVANIC_CORROSION_BASE::m_radioBtnName, PANEL_GALVANIC_CORROSION_BASE::m_radioBtnSymbol, and m_symbolicStatus.
|
overridevirtual |
Save the settings from the panel.
aCfg | is the settings structure to save to |
Implements CALCULATOR_PANEL.
Definition at line 115 of file panel_galvanic_corrosion.cpp.
References m_corFilterValue, PCB_CALCULATOR_SETTINGS::m_CorrosionTable, m_symbolicStatus, PCB_CALCULATOR_SETTINGS::CORROSION_TABLE::show_symbols, and PCB_CALCULATOR_SETTINGS::CORROSION_TABLE::threshold_voltage.
|
overridevirtual |
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 93 of file panel_galvanic_corrosion.cpp.
References PANEL_GALVANIC_CORROSION_BASE::m_helpText, and HTML_WINDOW::ThemeChanged().
|
protectedinherited |
Definition at line 41 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 46 of file panel_galvanic_corrosion_base.h.
Referenced by LoadSettings(), OnCorFilterChange(), PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE(), and PANEL_GALVANIC_CORROSION_BASE::~PANEL_GALVANIC_CORROSION_BASE().
|
private |
Definition at line 62 of file panel_galvanic_corrosion.h.
Referenced by fillTable(), LoadSettings(), OnCorFilterChange(), PANEL_GALVANIC_CORROSION(), and SaveSettings().
std::vector<CORROSION_TABLE_ENTRY> PANEL_GALVANIC_CORROSION::m_entries |
Definition at line 49 of file panel_galvanic_corrosion.h.
Referenced by fillTable(), and PANEL_GALVANIC_CORROSION().
|
protectedinherited |
Definition at line 44 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION(), PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE(), and ThemeChanged().
|
protectedinherited |
Definition at line 51 of file panel_galvanic_corrosion_base.h.
Referenced by LoadSettings(), OnNomenclatureChange(), PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE(), and PANEL_GALVANIC_CORROSION_BASE::~PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 50 of file panel_galvanic_corrosion_base.h.
Referenced by LoadSettings(), OnNomenclatureChange(), PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE(), and PANEL_GALVANIC_CORROSION_BASE::~PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 42 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 48 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 45 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 47 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().
|
protectedinherited |
Definition at line 49 of file panel_galvanic_corrosion_base.h.
Referenced by PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().
|
private |
Definition at line 61 of file panel_galvanic_corrosion.h.
Referenced by fillTable(), LoadSettings(), OnNomenclatureChange(), PANEL_GALVANIC_CORROSION(), and SaveSettings().
|
protectedinherited |
Definition at line 43 of file panel_galvanic_corrosion_base.h.
Referenced by fillTable(), PANEL_GALVANIC_CORROSION(), and PANEL_GALVANIC_CORROSION_BASE::PANEL_GALVANIC_CORROSION_BASE().