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)
 
 ~PANEL_EESCHEMA_SETTINGS_BASE ()
 

Protected Member Functions

virtual void OnChooseUnits (wxCommandEvent &event)
 

Protected Attributes

wxStaticText * m_staticText2
 
wxChoice * m_choiceUnits
 
wxStaticText * m_textSizeLabel
 
wxTextCtrl * m_textSizeCtrl
 
wxStaticText * m_textSizeUnits
 
wxStaticText * m_hPitchLabel
 
wxTextCtrl * m_hPitchCtrl
 
wxStaticText * m_hPitchUnits
 
wxStaticText * m_vPitchLabel
 
wxTextCtrl * m_vPitchCtrl
 
wxStaticText * m_vPitchUnits
 
wxStaticText * m_staticText16
 
wxSpinCtrl * m_spinRepeatLabel
 
wxCheckBox * m_checkHVOrientation
 
wxCheckBox * m_mouseDragIsDrag
 
wxCheckBox * m_checkAutoplaceFields
 
wxCheckBox * m_checkAutoplaceJustify
 
wxCheckBox * m_checkAutoplaceAlign
 
wxCheckBox * m_footprintPreview
 

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 
)

Definition at line 16 of file panel_eeschema_settings_base.cpp.

16  : wxPanel( parent, id, pos, size, style )
17 {
18  wxBoxSizer* bPanelSizer;
19  bPanelSizer = new wxBoxSizer( wxVERTICAL );
20 
21  wxBoxSizer* bLeftColumn;
22  bLeftColumn = new wxBoxSizer( wxVERTICAL );
23 
24  wxFlexGridSizer* fgSizer3;
25  fgSizer3 = new wxFlexGridSizer( 0, 3, 5, 5 );
26  fgSizer3->AddGrowableCol( 0 );
27  fgSizer3->AddGrowableCol( 1 );
28  fgSizer3->AddGrowableCol( 2 );
29  fgSizer3->SetFlexibleDirection( wxBOTH );
30  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 
32  m_staticText2 = new wxStaticText( this, wxID_ANY, _("&Measurement units:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_staticText2->Wrap( -1 );
34  fgSizer3->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
35 
36  wxString m_choiceUnitsChoices[] = { _("inches"), _("millimeters") };
37  int m_choiceUnitsNChoices = sizeof( m_choiceUnitsChoices ) / sizeof( wxString );
38  m_choiceUnits = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsNChoices, m_choiceUnitsChoices, 0 );
39  m_choiceUnits->SetSelection( 0 );
40  fgSizer3->Add( m_choiceUnits, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
41 
42 
43  fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
44 
45  m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Default schematic text size:"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_textSizeLabel->Wrap( -1 );
47  fgSizer3->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
48 
49  m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
50  fgSizer3->Add( m_textSizeCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 10 );
51 
52  m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
53  m_textSizeUnits->Wrap( -1 );
54  fgSizer3->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
55 
56  m_hPitchLabel = new wxStaticText( this, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
57  m_hPitchLabel->Wrap( -1 );
58  fgSizer3->Add( m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
59 
60  m_hPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
61  fgSizer3->Add( m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
62 
63  m_hPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
64  m_hPitchUnits->Wrap( -1 );
65  fgSizer3->Add( m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
66 
67  m_vPitchLabel = new wxStaticText( this, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
68  m_vPitchLabel->Wrap( -1 );
69  fgSizer3->Add( m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
70 
71  m_vPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
72  fgSizer3->Add( m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
73 
74  m_vPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
75  m_vPitchUnits->Wrap( -1 );
76  fgSizer3->Add( m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
77 
78  m_staticText16 = new wxStaticText( this, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
79  m_staticText16->Wrap( -1 );
80  fgSizer3->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
81 
82  m_spinRepeatLabel = new wxSpinCtrl( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -10, 10, 1 );
83  fgSizer3->Add( m_spinRepeatLabel, 0, wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
84 
85 
86  fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
87 
88 
89  bLeftColumn->Add( fgSizer3, 0, wxLEFT|wxRIGHT, 5 );
90 
91  wxStaticBoxSizer* sbSizer11;
92  sbSizer11 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Editing") ), wxVERTICAL );
93 
94  m_checkHVOrientation = new wxCheckBox( sbSizer11->GetStaticBox(), wxID_ANY, _("&Restrict buses and wires to H and V orientation"), wxDefaultPosition, wxDefaultSize, 0 );
95  m_checkHVOrientation->SetValue(true);
96  sbSizer11->Add( m_checkHVOrientation, 0, wxRIGHT|wxLEFT, 5 );
97 
98  m_mouseDragIsDrag = new wxCheckBox( sbSizer11->GetStaticBox(), wxID_ANY, _("Mouse drag performs drag (G) operation"), wxDefaultPosition, wxDefaultSize, 0 );
99  m_mouseDragIsDrag->SetToolTip( _("If unchecked, mouse drag will perform move (M) operation") );
100 
101  sbSizer11->Add( m_mouseDragIsDrag, 0, wxALL, 5 );
102 
103 
104  bLeftColumn->Add( sbSizer11, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
105 
106  wxStaticBoxSizer* sbSizer1;
107  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Symbol Field Automatic Placement") ), wxVERTICAL );
108 
109  m_checkAutoplaceFields = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
110  sbSizer1->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
111 
112  m_checkAutoplaceJustify = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
113  sbSizer1->Add( m_checkAutoplaceJustify, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
114 
115  m_checkAutoplaceAlign = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
116  sbSizer1->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxALL, 5 );
117 
118 
119  bLeftColumn->Add( sbSizer1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
120 
121  wxBoxSizer* bSizer9;
122  bSizer9 = new wxBoxSizer( wxVERTICAL );
123 
124  m_footprintPreview = new wxCheckBox( this, wxID_ANY, _("Show footprint previews in symbol chooser"), wxDefaultPosition, wxDefaultSize, 0 );
125  bSizer9->Add( m_footprintPreview, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
126 
127 
128  bLeftColumn->Add( bSizer9, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
129 
130 
131  bPanelSizer->Add( bLeftColumn, 0, wxRIGHT|wxLEFT, 5 );
132 
133 
134  this->SetSizer( bPanelSizer );
135  this->Layout();
136  bPanelSizer->Fit( this );
137 }
#define _(s)

References _.

◆ ~PANEL_EESCHEMA_SETTINGS_BASE()

PANEL_EESCHEMA_SETTINGS_BASE::~PANEL_EESCHEMA_SETTINGS_BASE ( )

Definition at line 139 of file panel_eeschema_settings_base.cpp.

140 {
141 }

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 64 of file panel_eeschema_settings_base.h.

64 { event.Skip(); }

Referenced by _wxFB_OnChooseUnits().

Member Data Documentation

◆ 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

◆ m_hPitchLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchLabel
protected

Definition at line 48 of file panel_eeschema_settings_base.h.

◆ m_hPitchUnits

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchUnits
protected

Definition at line 50 of file panel_eeschema_settings_base.h.

◆ m_mouseDragIsDrag

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_mouseDragIsDrag
protected

◆ m_spinRepeatLabel

wxSpinCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_spinRepeatLabel
protected

◆ m_staticText16

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_staticText16
protected

Definition at line 54 of file panel_eeschema_settings_base.h.

◆ m_staticText2

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_staticText2
protected

Definition at line 43 of file panel_eeschema_settings_base.h.

◆ m_textSizeCtrl

wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_textSizeCtrl
protected

◆ m_textSizeLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_textSizeLabel
protected

Definition at line 45 of file panel_eeschema_settings_base.h.

◆ m_textSizeUnits

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_textSizeUnits
protected

Definition at line 47 of file panel_eeschema_settings_base.h.

◆ m_vPitchCtrl

wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchCtrl
protected

◆ m_vPitchLabel

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchLabel
protected

Definition at line 51 of file panel_eeschema_settings_base.h.

◆ m_vPitchUnits

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchUnits
protected

Definition at line 53 of file panel_eeschema_settings_base.h.


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