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

#include <panel_color_code.h>

Inheritance diagram for PANEL_COLOR_CODE:
PANEL_COLOR_CODE_BASE CALCULATOR_PANEL

Public Member Functions

 PANEL_COLOR_CODE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_COLOR_CODE ()
 
void OnToleranceSelection (wxCommandEvent &event) override
 
void ToleranceSelection (int aSelection)
 
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.
 

Protected Attributes

wxRadioBox * m_rbToleranceSelection
 
wxStaticText * m_staticTextBand1
 
wxStaticText * m_staticTextBand2
 
wxStaticText * m_staticTextBand3
 
wxStaticText * m_staticTextBand4
 
wxStaticText * m_staticTextBand5
 
wxStaticText * m_staticTextBand6
 
wxStaticBitmap * m_Band1bitmap
 
wxStaticBitmap * m_Band2bitmap
 
wxStaticBitmap * m_Band3bitmap
 
wxStaticBitmap * m_Band4bitmap
 
wxStaticBitmap * m_Band_mult_bitmap
 
wxStaticBitmap * m_Band_tol_bitmap
 

Detailed Description

Definition at line 27 of file panel_color_code.h.

Constructor & Destructor Documentation

◆ PANEL_COLOR_CODE()

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

◆ ~PANEL_COLOR_CODE()

PANEL_COLOR_CODE::~PANEL_COLOR_CODE ( )

Definition at line 37 of file panel_color_code.cpp.

Member Function Documentation

◆ LoadSettings()

void PANEL_COLOR_CODE::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 56 of file panel_color_code.cpp.

References PCB_CALCULATOR_SETTINGS::m_ColorCodeTolerance, PANEL_COLOR_CODE_BASE::m_rbToleranceSelection, and ToleranceSelection().

◆ OnToleranceSelection()

void PANEL_COLOR_CODE::OnToleranceSelection ( wxCommandEvent &  event)
overridevirtual

Reimplemented from PANEL_COLOR_CODE_BASE.

Definition at line 69 of file panel_color_code.cpp.

References ToleranceSelection().

◆ SaveSettings()

void PANEL_COLOR_CODE::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 63 of file panel_color_code.cpp.

References PCB_CALCULATOR_SETTINGS::m_ColorCodeTolerance, and PANEL_COLOR_CODE_BASE::m_rbToleranceSelection.

◆ ThemeChanged()

void PANEL_COLOR_CODE::ThemeChanged ( )
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 42 of file panel_color_code.cpp.

References KiBitmapBundle(), PANEL_COLOR_CODE_BASE::m_Band1bitmap, PANEL_COLOR_CODE_BASE::m_Band2bitmap, PANEL_COLOR_CODE_BASE::m_Band3bitmap, PANEL_COLOR_CODE_BASE::m_Band4bitmap, PANEL_COLOR_CODE_BASE::m_Band_mult_bitmap, PANEL_COLOR_CODE_BASE::m_Band_tol_bitmap, and Refresh().

◆ ToleranceSelection()

Member Data Documentation

◆ m_Band1bitmap

wxStaticBitmap* PANEL_COLOR_CODE_BASE::m_Band1bitmap
protectedinherited

◆ m_Band2bitmap

wxStaticBitmap* PANEL_COLOR_CODE_BASE::m_Band2bitmap
protectedinherited

◆ m_Band3bitmap

wxStaticBitmap* PANEL_COLOR_CODE_BASE::m_Band3bitmap
protectedinherited

◆ m_Band4bitmap

wxStaticBitmap* PANEL_COLOR_CODE_BASE::m_Band4bitmap
protectedinherited

◆ m_Band_mult_bitmap

wxStaticBitmap* PANEL_COLOR_CODE_BASE::m_Band_mult_bitmap
protectedinherited

◆ m_Band_tol_bitmap

wxStaticBitmap* PANEL_COLOR_CODE_BASE::m_Band_tol_bitmap
protectedinherited

◆ m_rbToleranceSelection

wxRadioBox* PANEL_COLOR_CODE_BASE::m_rbToleranceSelection
protectedinherited

◆ m_staticTextBand1

wxStaticText* PANEL_COLOR_CODE_BASE::m_staticTextBand1
protectedinherited

◆ m_staticTextBand2

wxStaticText* PANEL_COLOR_CODE_BASE::m_staticTextBand2
protectedinherited

◆ m_staticTextBand3

wxStaticText* PANEL_COLOR_CODE_BASE::m_staticTextBand3
protectedinherited

◆ m_staticTextBand4

wxStaticText* PANEL_COLOR_CODE_BASE::m_staticTextBand4
protectedinherited

◆ m_staticTextBand5

wxStaticText* PANEL_COLOR_CODE_BASE::m_staticTextBand5
protectedinherited

◆ m_staticTextBand6

wxStaticText* PANEL_COLOR_CODE_BASE::m_staticTextBand6
protectedinherited

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