KiCad PCB EDA Suite
PANEL_EESCHEMA_SETTINGS_BASE Class Reference

Class PANEL_EESCHEMA_SETTINGS_BASE. More...

#include <panel_eeschema_settings_base.h>

Inheritance diagram for PANEL_EESCHEMA_SETTINGS_BASE:
PANEL_EESCHEMA_SETTINGS

Public Member Functions

 PANEL_EESCHEMA_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_EESCHEMA_SETTINGS_BASE ()
 

Protected Member Functions

virtual void OnChooseUnits (wxCommandEvent &event)
 

Protected Attributes

wxStaticText * m_staticText2
 
wxChoice * m_choiceUnits
 
wxCheckBox * m_checkHVOrientation
 
wxCheckBox * m_mouseDragIsDrag
 
wxStaticText * m_borderColorLabel
 
COLOR_SWATCHm_borderColorSwatch
 
wxStaticText * m_backgroundColorLabel
 
COLOR_SWATCHm_backgroundColorSwatch
 
wxCheckBox * m_cbPinSelectionOpt
 
wxCheckBox * m_checkAutoplaceFields
 
wxCheckBox * m_checkAutoplaceJustify
 
wxCheckBox * m_checkAutoplaceAlign
 
wxStaticText * m_hPitchLabel
 
wxTextCtrl * m_hPitchCtrl
 
wxStaticText * m_hPitchUnits
 
wxStaticText * m_vPitchLabel
 
wxTextCtrl * m_vPitchCtrl
 
wxStaticText * m_vPitchUnits
 
wxStaticText * m_labelIncrementLabel
 
wxSpinCtrl * m_spinLabelRepeatStep
 
wxCheckBox * m_footprintPreview
 
wxCheckBox * m_navigatorStaysOpen
 

Private Member Functions

void _wxFB_OnChooseUnits (wxCommandEvent &event)
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_EESCHEMA_SETTINGS_BASE()

PANEL_EESCHEMA_SETTINGS_BASE::PANEL_EESCHEMA_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_eeschema_settings_base.cpp.

16  : wxPanel( parent, id, pos, size, style, name )
17 {
18  wxBoxSizer* bPanelSizer;
19  bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
20 
21  wxBoxSizer* bLeftColumn;
22  bLeftColumn = new wxBoxSizer( wxVERTICAL );
23 
24  wxStaticBoxSizer* sbSizer7;
25  sbSizer7 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Units") ), wxHORIZONTAL );
26 
27  m_staticText2 = new wxStaticText( sbSizer7->GetStaticBox(), wxID_ANY, _("&Measurement units:"), wxDefaultPosition, wxDefaultSize, 0 );
28  m_staticText2->Wrap( -1 );
29  sbSizer7->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
30 
31  wxString m_choiceUnitsChoices[] = { _("inches"), _("millimeters") };
32  int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
33  m_choiceUnits = new wxChoice( sbSizer7->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
34  m_choiceUnits->SetSelection( 0 );
35  sbSizer7->Add( m_choiceUnits, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
36 
37 
38  bLeftColumn->Add( sbSizer7, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
39 
40  wxStaticBoxSizer* sbSizerEditOpt;
41  sbSizerEditOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Editing") ), wxVERTICAL );
42 
43  m_checkHVOrientation = new wxCheckBox( sbSizerEditOpt->GetStaticBox(), wxID_ANY, _("&Restrict buses and wires to H and V orientation"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_checkHVOrientation->SetValue(true);
45  sbSizerEditOpt->Add( m_checkHVOrientation, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
46 
47  m_mouseDragIsDrag = new wxCheckBox( sbSizerEditOpt->GetStaticBox(), wxID_ANY, _("Mouse drag performs drag (G) operation"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_mouseDragIsDrag->SetToolTip( _("If unchecked, mouse drag will perform move (M) operation") );
49 
50  sbSizerEditOpt->Add( m_mouseDragIsDrag, 0, wxALL, 5 );
51 
52 
53  bLeftColumn->Add( sbSizerEditOpt, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
54 
55  wxStaticBoxSizer* sbSizer5;
56  sbSizer5 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Defaults for New Objects") ), wxVERTICAL );
57 
58  wxBoxSizer* bSizer6;
59  bSizer6 = new wxBoxSizer( wxHORIZONTAL );
60 
61  m_borderColorLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Sheet border:"), wxDefaultPosition, wxDefaultSize, 0 );
62  m_borderColorLabel->Wrap( -1 );
63  bSizer6->Add( m_borderColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
64 
65  m_borderColorSwatch = new COLOR_SWATCH( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
66  m_borderColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
67  m_borderColorSwatch->SetMinSize( wxSize( 48,24 ) );
68 
69  bSizer6->Add( m_borderColorSwatch, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
70 
71  m_backgroundColorLabel = new wxStaticText( sbSizer5->GetStaticBox(), wxID_ANY, _("Sheet background:"), wxDefaultPosition, wxDefaultSize, 0 );
72  m_backgroundColorLabel->Wrap( -1 );
73  bSizer6->Add( m_backgroundColorLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
74 
75  m_backgroundColorSwatch = new COLOR_SWATCH( sbSizer5->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
76  m_backgroundColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
77  m_backgroundColorSwatch->SetMinSize( wxSize( 48,24 ) );
78 
79  bSizer6->Add( m_backgroundColorSwatch, 1, wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
80 
81 
82  sbSizer5->Add( bSizer6, 0, wxEXPAND|wxBOTTOM, 5 );
83 
84 
85  bLeftColumn->Add( sbSizer5, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
86 
87  wxStaticBoxSizer* sbSizerPinSel;
88  sbSizerPinSel = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Selection") ), wxVERTICAL );
89 
90  m_cbPinSelectionOpt = new wxCheckBox( sbSizerPinSel->GetStaticBox(), wxID_ANY, _("Clicking on a pin selects the symbol"), wxDefaultPosition, wxDefaultSize, 0 );
91  m_cbPinSelectionOpt->SetToolTip( _("In schematic editor:\nIf enabled, clicking on a pin select the parent symbol.\nIf disabled, clicking on a pin select only the pin.") );
92 
93  sbSizerPinSel->Add( m_cbPinSelectionOpt, 0, wxALL, 5 );
94 
95 
96  bLeftColumn->Add( sbSizerPinSel, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
97 
98 
99  bPanelSizer->Add( bLeftColumn, 1, wxRIGHT|wxLEFT, 5 );
100 
101  wxBoxSizer* bRightColumn;
102  bRightColumn = new wxBoxSizer( wxVERTICAL );
103 
104  wxStaticBoxSizer* sbSizerFieldAutoPlace;
105  sbSizerFieldAutoPlace = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Symbol Field Automatic Placement") ), wxVERTICAL );
106 
107  m_checkAutoplaceFields = new wxCheckBox( sbSizerFieldAutoPlace->GetStaticBox(), wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
108  sbSizerFieldAutoPlace->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
109 
110  m_checkAutoplaceJustify = new wxCheckBox( sbSizerFieldAutoPlace->GetStaticBox(), wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
111  sbSizerFieldAutoPlace->Add( m_checkAutoplaceJustify, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
112 
113  m_checkAutoplaceAlign = new wxCheckBox( sbSizerFieldAutoPlace->GetStaticBox(), wxID_ANY, _("Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
114  sbSizerFieldAutoPlace->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxALL, 5 );
115 
116 
117  bRightColumn->Add( sbSizerFieldAutoPlace, 0, wxEXPAND|wxALL, 5 );
118 
119  wxStaticBoxSizer* repeatSizer;
120  repeatSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Repeated Items") ), wxVERTICAL );
121 
122  wxFlexGridSizer* fgSizerRepeatOpt1;
123  fgSizerRepeatOpt1 = new wxFlexGridSizer( 0, 3, 5, 5 );
124  fgSizerRepeatOpt1->AddGrowableCol( 0 );
125  fgSizerRepeatOpt1->AddGrowableCol( 1 );
126  fgSizerRepeatOpt1->AddGrowableCol( 2 );
127  fgSizerRepeatOpt1->SetFlexibleDirection( wxBOTH );
128  fgSizerRepeatOpt1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
129 
130  m_hPitchLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("&Horizontal pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
131  m_hPitchLabel->Wrap( -1 );
132  fgSizerRepeatOpt1->Add( m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
133 
134  m_hPitchCtrl = new wxTextCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
135  fgSizerRepeatOpt1->Add( m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
136 
137  m_hPitchUnits = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
138  m_hPitchUnits->Wrap( -1 );
139  fgSizerRepeatOpt1->Add( m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
140 
141  m_vPitchLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("&Vertical pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
142  m_vPitchLabel->Wrap( -1 );
143  fgSizerRepeatOpt1->Add( m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
144 
145  m_vPitchCtrl = new wxTextCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
146  fgSizerRepeatOpt1->Add( m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
147 
148  m_vPitchUnits = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
149  m_vPitchUnits->Wrap( -1 );
150  fgSizerRepeatOpt1->Add( m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
151 
152  m_labelIncrementLabel = new wxStaticText( repeatSizer->GetStaticBox(), wxID_ANY, _("Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
153  m_labelIncrementLabel->Wrap( -1 );
154  fgSizerRepeatOpt1->Add( m_labelIncrementLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
155 
156  m_spinLabelRepeatStep = new wxSpinCtrl( repeatSizer->GetStaticBox(), wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
157  fgSizerRepeatOpt1->Add( m_spinLabelRepeatStep, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
158 
159 
160  fgSizerRepeatOpt1->Add( 0, 0, 1, wxEXPAND, 3 );
161 
162 
163  repeatSizer->Add( fgSizerRepeatOpt1, 1, wxEXPAND, 5 );
164 
165 
166  bRightColumn->Add( repeatSizer, 0, wxEXPAND|wxALL, 5 );
167 
168  wxStaticBoxSizer* sbSizer6;
169  sbSizer6 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Dialog Preferences") ), wxVERTICAL );
170 
171  m_footprintPreview = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Show footprint previews in Symbol Chooser"), wxDefaultPosition, wxDefaultSize, 0 );
172  sbSizer6->Add( m_footprintPreview, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
173 
174  m_navigatorStaysOpen = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Keep hierarchy navigator open"), wxDefaultPosition, wxDefaultSize, 0 );
175  m_navigatorStaysOpen->SetValue(true);
176  sbSizer6->Add( m_navigatorStaysOpen, 0, wxALL, 5 );
177 
178 
179  bRightColumn->Add( sbSizer6, 0, wxEXPAND|wxALL, 5 );
180 
181 
182  bPanelSizer->Add( bRightColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
183 
184 
185  this->SetSizer( bPanelSizer );
186  this->Layout();
187  bPanelSizer->Fit( this );
188 }
const char * name
Definition: DXF_plotter.cpp:60
#define _(s)
Definition: 3d_actions.cpp:33
Class representing a simple color swatch, of the kind used to set layer colors.
Definition: color_swatch.h:38

References _.

◆ ~PANEL_EESCHEMA_SETTINGS_BASE()

PANEL_EESCHEMA_SETTINGS_BASE::~PANEL_EESCHEMA_SETTINGS_BASE ( )

Definition at line 190 of file panel_eeschema_settings_base.cpp.

191 {
192 }

Member Function Documentation

◆ _wxFB_OnChooseUnits()

void PANEL_EESCHEMA_SETTINGS_BASE::_wxFB_OnChooseUnits ( wxCommandEvent &  event)
inlineprivate

Definition at line 39 of file panel_eeschema_settings_base.h.

39 { OnChooseUnits( event ); }
virtual void OnChooseUnits(wxCommandEvent &event)

References OnChooseUnits().

◆ OnChooseUnits()

virtual void PANEL_EESCHEMA_SETTINGS_BASE::OnChooseUnits ( wxCommandEvent &  event)
inlineprotectedvirtual

Definition at line 67 of file panel_eeschema_settings_base.h.

67 { event.Skip(); }

Referenced by _wxFB_OnChooseUnits().

Member Data Documentation

◆ m_backgroundColorLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_backgroundColorLabel
protected

Definition at line 49 of file panel_eeschema_settings_base.h.

◆ m_backgroundColorSwatch

COLOR_SWATCH* PANEL_EESCHEMA_SETTINGS_BASE::m_backgroundColorSwatch
protected

◆ m_borderColorLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_borderColorLabel
protected

Definition at line 47 of file panel_eeschema_settings_base.h.

◆ m_borderColorSwatch

COLOR_SWATCH* PANEL_EESCHEMA_SETTINGS_BASE::m_borderColorSwatch
protected

◆ m_cbPinSelectionOpt

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_cbPinSelectionOpt
protected

◆ m_checkAutoplaceAlign

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkAutoplaceAlign
protected

◆ m_checkAutoplaceFields

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkAutoplaceFields
protected

◆ m_checkAutoplaceJustify

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkAutoplaceJustify
protected

◆ m_checkHVOrientation

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkHVOrientation
protected

◆ m_choiceUnits

wxChoice* PANEL_EESCHEMA_SETTINGS_BASE::m_choiceUnits
protected

◆ m_footprintPreview

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_footprintPreview
protected

◆ m_hPitchCtrl

wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchCtrl
protected

Definition at line 56 of file panel_eeschema_settings_base.h.

◆ m_hPitchLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchLabel
protected

Definition at line 55 of file panel_eeschema_settings_base.h.

◆ m_hPitchUnits

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchUnits
protected

Definition at line 57 of file panel_eeschema_settings_base.h.

◆ m_labelIncrementLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_labelIncrementLabel
protected

Definition at line 61 of file panel_eeschema_settings_base.h.

◆ m_mouseDragIsDrag

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_mouseDragIsDrag
protected

◆ m_navigatorStaysOpen

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_navigatorStaysOpen
protected

◆ m_spinLabelRepeatStep

wxSpinCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_spinLabelRepeatStep
protected

◆ m_staticText2

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_staticText2
protected

Definition at line 43 of file panel_eeschema_settings_base.h.

◆ m_vPitchCtrl

wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchCtrl
protected

Definition at line 59 of file panel_eeschema_settings_base.h.

◆ m_vPitchLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchLabel
protected

Definition at line 58 of file panel_eeschema_settings_base.h.

◆ m_vPitchUnits

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchUnits
protected

Definition at line 60 of file panel_eeschema_settings_base.h.


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