KiCad PCB EDA Suite
PANEL_SYM_COLOR_SETTINGS_BASE Class Reference

Class PANEL_SYM_COLOR_SETTINGS_BASE. More...

#include <panel_sym_color_settings_base.h>

Inheritance diagram for PANEL_SYM_COLOR_SETTINGS_BASE:
PANEL_SYM_COLOR_SETTINGS

Public Member Functions

 PANEL_SYM_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_SYM_COLOR_SETTINGS_BASE ()
 

Protected Member Functions

virtual void OnThemeChanged (wxCommandEvent &event)
 

Protected Attributes

wxRadioButton * m_eeschemaRB
 
wxRadioButton * m_themeRB
 
wxChoice * m_themes
 

Private Member Functions

void _wxFB_OnThemeChanged (wxCommandEvent &event)
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_SYM_COLOR_SETTINGS_BASE()

PANEL_SYM_COLOR_SETTINGS_BASE::PANEL_SYM_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 
)

Definition at line 16 of file panel_sym_color_settings_base.cpp.

16 : wxPanel( parent, id, pos, size, style, name )
17{
18 wxBoxSizer* p1mainSizer;
19 p1mainSizer = new wxBoxSizer( wxHORIZONTAL );
20
21 wxStaticBoxSizer* sbSizer1;
22 sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Color Theme") ), wxVERTICAL );
23
24 sbSizer1->SetMinSize( wxSize( 250,-1 ) );
25 m_eeschemaRB = new wxRadioButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Use schematic editor color theme"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
26 sbSizer1->Add( m_eeschemaRB, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
27
28 wxBoxSizer* bSizer2;
29 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
30
31 m_themeRB = new wxRadioButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Use theme:"), wxDefaultPosition, wxDefaultSize, 0 );
32 bSizer2->Add( m_themeRB, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
33
34 wxArrayString m_themesChoices;
35 m_themes = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_themesChoices, 0 );
36 m_themes->SetSelection( 0 );
37 bSizer2->Add( m_themes, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
38
39
40 sbSizer1->Add( bSizer2, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
41
42
43 p1mainSizer->Add( sbSizer1, 0, wxALL, 5 );
44
45
46 p1mainSizer->Add( 0, 0, 1, wxEXPAND, 5 );
47
48
49 this->SetSizer( p1mainSizer );
50 this->Layout();
51 p1mainSizer->Fit( this );
52}
const char * name
Definition: DXF_plotter.cpp:56
#define _(s)

References _.

◆ ~PANEL_SYM_COLOR_SETTINGS_BASE()

PANEL_SYM_COLOR_SETTINGS_BASE::~PANEL_SYM_COLOR_SETTINGS_BASE ( )

Definition at line 54 of file panel_sym_color_settings_base.cpp.

55{
56}

Member Function Documentation

◆ _wxFB_OnThemeChanged()

void PANEL_SYM_COLOR_SETTINGS_BASE::_wxFB_OnThemeChanged ( wxCommandEvent &  event)
inlineprivate

Definition at line 36 of file panel_sym_color_settings_base.h.

36{ OnThemeChanged( event ); }
virtual void OnThemeChanged(wxCommandEvent &event)

References OnThemeChanged().

◆ OnThemeChanged()

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

Reimplemented in PANEL_SYM_COLOR_SETTINGS.

Definition at line 45 of file panel_sym_color_settings_base.h.

45{ event.Skip(); }

Referenced by _wxFB_OnThemeChanged().

Member Data Documentation

◆ m_eeschemaRB

wxRadioButton* PANEL_SYM_COLOR_SETTINGS_BASE::m_eeschemaRB
protected

◆ m_themeRB

wxRadioButton* PANEL_SYM_COLOR_SETTINGS_BASE::m_themeRB
protected

◆ m_themes

wxChoice* PANEL_SYM_COLOR_SETTINGS_BASE::m_themes
protected

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