| 
    KiCad PCB EDA Suite
    
   | 
 
#include <panel_color_code.h>
  
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 | 
Definition at line 27 of file panel_color_code.h.
| 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 ) | 
Definition at line 26 of file panel_color_code.cpp.
References PANEL_COLOR_CODE_BASE::m_rbToleranceSelection, name, PANEL_COLOR_CODE_BASE::PANEL_COLOR_CODE_BASE(), and ToleranceSelection().
| PANEL_COLOR_CODE::~PANEL_COLOR_CODE | ( | ) | 
Definition at line 37 of file panel_color_code.cpp.
      
  | 
  overridevirtual | 
Load the settings into the panel.
| aCfg | is 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().
      
  | 
  overridevirtual | 
Reimplemented from PANEL_COLOR_CODE_BASE.
Definition at line 69 of file panel_color_code.cpp.
References ToleranceSelection().
      
  | 
  overridevirtual | 
Save the settings from the panel.
| aCfg | is 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.
      
  | 
  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 color_code_multiplier, color_code_tolerance, color_code_value, color_code_value_and_name, 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().
| void PANEL_COLOR_CODE::ToleranceSelection | ( | int | aSelection | ) | 
Definition at line 75 of file panel_color_code.cpp.
References color_code_multiplier, color_code_tolerance, color_code_value, color_code_value_and_name, 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, PANEL_COLOR_CODE_BASE::m_staticTextBand4, and Refresh().
Referenced by LoadSettings(), OnToleranceSelection(), and PANEL_COLOR_CODE().
      
  | 
  protectedinherited | 
Definition at line 46 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::ThemeChanged(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 47 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::ThemeChanged(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 48 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::ThemeChanged(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 49 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::ThemeChanged(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 50 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::ThemeChanged(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 51 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::ThemeChanged(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 39 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE::LoadSettings(), PANEL_COLOR_CODE::PANEL_COLOR_CODE(), PANEL_COLOR_CODE_BASE(), PANEL_COLOR_CODE::SaveSettings(), and ~PANEL_COLOR_CODE_BASE().
      
  | 
  protectedinherited | 
Definition at line 40 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE().
      
  | 
  protectedinherited | 
Definition at line 41 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE().
      
  | 
  protectedinherited | 
Definition at line 42 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE().
      
  | 
  protectedinherited | 
Definition at line 43 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE(), and PANEL_COLOR_CODE::ToleranceSelection().
      
  | 
  protectedinherited | 
Definition at line 44 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE().
      
  | 
  protectedinherited | 
Definition at line 45 of file panel_color_code_base.h.
Referenced by PANEL_COLOR_CODE_BASE().