KiCad PCB EDA Suite
PANEL_LIBEDIT_COLOR_SETTINGS_BASE Class Reference

Class PANEL_LIBEDIT_COLOR_SETTINGS_BASE. More...

#include <panel_libedit_color_settings_base.h>

Inheritance diagram for PANEL_LIBEDIT_COLOR_SETTINGS_BASE:
PANEL_LIBEDIT_COLOR_SETTINGS

Public Member Functions

 PANEL_LIBEDIT_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_LIBEDIT_COLOR_SETTINGS_BASE ()
 

Protected Member Functions

virtual void OnUseEeschemaThemeChanged (wxCommandEvent &event)
 

Protected Attributes

wxCheckBox * m_useEeschemaTheme
 
wxStaticText * m_txtTheme
 
wxChoice * m_themeSelection
 

Private Member Functions

void _wxFB_OnUseEeschemaThemeChanged (wxCommandEvent &event)
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_LIBEDIT_COLOR_SETTINGS_BASE()

PANEL_LIBEDIT_COLOR_SETTINGS_BASE::PANEL_LIBEDIT_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_libedit_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") ), wxHORIZONTAL );
23 
24  sbSizer1->SetMinSize( wxSize( 250,-1 ) );
25  m_useEeschemaTheme = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Use Eeschema color theme"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_useEeschemaTheme->SetValue(true);
27  sbSizer1->Add( m_useEeschemaTheme, 0, wxALL|wxEXPAND, 10 );
28 
29  m_txtTheme = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Theme:"), wxDefaultPosition, wxDefaultSize, 0 );
30  m_txtTheme->Wrap( -1 );
31  m_txtTheme->Enable( false );
32 
33  sbSizer1->Add( m_txtTheme, 0, wxALIGN_CENTER_VERTICAL|wxALL, 10 );
34 
35  wxArrayString m_themeSelectionChoices;
36  m_themeSelection = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_themeSelectionChoices, 0 );
37  m_themeSelection->SetSelection( 0 );
38  m_themeSelection->Enable( false );
39 
40  sbSizer1->Add( m_themeSelection, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 10 );
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:60
#define _(s)
Definition: 3d_actions.cpp:33

References _.

◆ ~PANEL_LIBEDIT_COLOR_SETTINGS_BASE()

PANEL_LIBEDIT_COLOR_SETTINGS_BASE::~PANEL_LIBEDIT_COLOR_SETTINGS_BASE ( )

Definition at line 54 of file panel_libedit_color_settings_base.cpp.

55 {
56 }

Member Function Documentation

◆ _wxFB_OnUseEeschemaThemeChanged()

void PANEL_LIBEDIT_COLOR_SETTINGS_BASE::_wxFB_OnUseEeschemaThemeChanged ( wxCommandEvent &  event)
inlineprivate

Definition at line 37 of file panel_libedit_color_settings_base.h.

37 { OnUseEeschemaThemeChanged( event ); }
virtual void OnUseEeschemaThemeChanged(wxCommandEvent &event)

References OnUseEeschemaThemeChanged().

◆ OnUseEeschemaThemeChanged()

virtual void PANEL_LIBEDIT_COLOR_SETTINGS_BASE::OnUseEeschemaThemeChanged ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_LIBEDIT_COLOR_SETTINGS.

Definition at line 46 of file panel_libedit_color_settings_base.h.

46 { event.Skip(); }

Referenced by _wxFB_OnUseEeschemaThemeChanged().

Member Data Documentation

◆ m_themeSelection

◆ m_txtTheme

wxStaticText* PANEL_LIBEDIT_COLOR_SETTINGS_BASE::m_txtTheme
protected

◆ m_useEeschemaTheme


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