KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_COLOR_SETTINGS_BASE Class Referenceabstract

Class PANEL_COLOR_SETTINGS_BASE. More...

#include <panel_color_settings_base.h>

Inheritance diagram for PANEL_COLOR_SETTINGS_BASE:
RESETTABLE_PANEL PANEL_COLOR_SETTINGS PANEL_EESCHEMA_COLOR_SETTINGS PANEL_FP_EDITOR_COLOR_SETTINGS PANEL_GERBVIEW_COLOR_SETTINGS PANEL_PCBNEW_COLOR_SETTINGS

Public Member Functions

 PANEL_COLOR_SETTINGS_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_COLOR_SETTINGS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel.
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel.
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
 

Public Attributes

wxCheckBox * m_optOverrideColors
 

Protected Member Functions

virtual void OnSize (wxSizeEvent &event)
 
virtual void OnThemeChanged (wxCommandEvent &event)
 
virtual void OnLeftDownTheme (wxMouseEvent &event)
 
virtual void OnOverrideItemColorsClicked (wxCommandEvent &event)
 
virtual void OnBtnOpenThemeFolderClicked (wxCommandEvent &event)
 

Protected Attributes

wxBoxSizer * m_mainSizer
 
wxStaticText * m_staticText9
 
wxChoice * m_cbTheme
 
wxButton * m_btnOpenFolder
 
WX_PANELm_panel1
 
wxBoxSizer * m_colorsMainSizer
 
wxScrolledWindow * m_colorsListWindow
 
wxFlexGridSizer * m_colorsGridSizer
 
wxBoxSizer * m_previewPanelSizer
 

Detailed Description

Class PANEL_COLOR_SETTINGS_BASE.

Definition at line 37 of file panel_color_settings_base.h.

Constructor & Destructor Documentation

◆ PANEL_COLOR_SETTINGS_BASE()

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

◆ ~PANEL_COLOR_SETTINGS_BASE()

PANEL_COLOR_SETTINGS_BASE::~PANEL_COLOR_SETTINGS_BASE ( )

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ OnBtnOpenThemeFolderClicked()

virtual void PANEL_COLOR_SETTINGS_BASE::OnBtnOpenThemeFolderClicked ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COLOR_SETTINGS.

Definition at line 57 of file panel_color_settings_base.h.

Referenced by PANEL_COLOR_SETTINGS_BASE(), and ~PANEL_COLOR_SETTINGS_BASE().

◆ OnLeftDownTheme()

virtual void PANEL_COLOR_SETTINGS_BASE::OnLeftDownTheme ( wxMouseEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COLOR_SETTINGS.

Definition at line 55 of file panel_color_settings_base.h.

Referenced by PANEL_COLOR_SETTINGS_BASE(), and ~PANEL_COLOR_SETTINGS_BASE().

◆ OnOverrideItemColorsClicked()

virtual void PANEL_COLOR_SETTINGS_BASE::OnOverrideItemColorsClicked ( wxCommandEvent &  event)
inlineprotectedvirtual

◆ OnSize()

virtual void PANEL_COLOR_SETTINGS_BASE::OnSize ( wxSizeEvent &  event)
inlineprotectedvirtual

◆ OnThemeChanged()

virtual void PANEL_COLOR_SETTINGS_BASE::OnThemeChanged ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_COLOR_SETTINGS.

Definition at line 54 of file panel_color_settings_base.h.

Referenced by PANEL_COLOR_SETTINGS_BASE(), and ~PANEL_COLOR_SETTINGS_BASE().

◆ ResetPanel()

Member Data Documentation

◆ m_btnOpenFolder

wxButton* PANEL_COLOR_SETTINGS_BASE::m_btnOpenFolder
protected

◆ m_cbTheme

◆ m_colorsGridSizer

◆ m_colorsListWindow

◆ m_colorsMainSizer

wxBoxSizer* PANEL_COLOR_SETTINGS_BASE::m_colorsMainSizer
protected

◆ m_mainSizer

wxBoxSizer* PANEL_COLOR_SETTINGS_BASE::m_mainSizer
protected

Definition at line 42 of file panel_color_settings_base.h.

Referenced by PANEL_COLOR_SETTINGS_BASE().

◆ m_optOverrideColors

◆ m_panel1

◆ m_previewPanelSizer

wxBoxSizer* PANEL_COLOR_SETTINGS_BASE::m_previewPanelSizer
protected

◆ m_staticText9

wxStaticText* PANEL_COLOR_SETTINGS_BASE::m_staticText9
protected

Definition at line 43 of file panel_color_settings_base.h.

Referenced by PANEL_COLOR_SETTINGS_BASE().


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