20#ifndef PANEL_ESERIES_DISPLAY_H
21#define PANEL_ESERIES_DISPLAY_H
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
long style = wxTAB_TRAVERSAL,
35 const wxString&
name = wxEmptyString );
Class PANEL_ESERIES_DISPLAY_BASE.
wxColour m_colourE48Pair[2]
Calculated colours for E48 column in current (light,dark) theme.
static constexpr uint32_t s_cE96BGR
Colour for E96 column in light theme. Passed to wxColour constructor.
wxColour m_colourE6Pair[2]
Calculated colours for E6 column in current (light,dark) theme.
wxColour m_colourE12Pair[2]
Calculated colours for E12 column in current (light,dark) theme.
wxColour s_colourMatching
Calculated matching colour for empty columns. Same as background of labels.
void recolourE2496Tree()
Colour large E-series tree according to current theme.
static constexpr uint32_t s_cE3BGR
Colour for E3 column in light theme. Passed to wxColour constructor.
static constexpr int s_darkAdjustValue
Adjustment factor to create darker grid cells in dark theme.
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
void populateE2496Tree()
Fill larger E-series tree with values.
static constexpr uint32_t s_cE1BGR
Colour for E1 column in light theme. Passed to wxColour constructor.
static constexpr uint32_t s_cE48BGR
Colour for E48 column in light theme. Passed to wxColour constructor.
wxColour m_colourE24Pair[2]
Calculated colours for E24 column in current (light,dark) theme.
wxColour m_colourE1Column
Calculated colour for E1 column in current (light,dark) theme.
static constexpr uint32_t s_cE6BGR
Colour for E6 column in light theme. Passed to wxColour constructor.
static constexpr int s_altAdjustValue
Adjustment factor to create alternating R-series table entry colours.
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
void recolourE112Tree()
Colour small E-series tree according to current theme.
void recalculateColumnColours(bool aDarkModeOn)
Recalculate colours used to highlight the E-series columns.
static constexpr uint32_t s_cE24BGR
Colour for E24 column in light theme. Passed to wxColour constructor.
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
PANEL_ESERIES_DISPLAY(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxColour m_colourE96Pair[2]
Calculated colours for E96 column in current (light,dark) theme.
static constexpr uint32_t s_cE12BGR
Colour for E12 column in light theme. Passed to wxColour constructor.
wxColour m_colourE3Pair[2]
Calculated colours for E3 column in current (light,dark) theme.
void populateE112Tree()
Fill small E-series tree with values.