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_footprintPreview
 
wxCheckBox * m_checkAutoplaceFields
 
wxCheckBox * m_checkAutoplaceJustify
 
wxCheckBox * m_checkAutoplaceAlign
 

Private Member Functions

void _wxFB_OnChooseUnits (wxCommandEvent &event)
 

Detailed Description

Constructor & Destructor Documentation

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.

Referenced by OnChooseUnits().

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, 3, 0 );
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|wxRIGHT, 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, wxEXPAND|wxTOP|wxBOTTOM, 5 );
41 
42 
43  fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
44 
45  m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Def&ault text size:"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_textSizeLabel->Wrap( -1 );
47  fgSizer3->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
48 
49  m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
50  fgSizer3->Add( m_textSizeCtrl, 0, wxEXPAND|wxTOP|wxBOTTOM, 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|wxALL, 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|wxTOP|wxRIGHT, 10 );
59 
60  m_hPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
61  fgSizer3->Add( m_hPitchCtrl, 0, wxEXPAND|wxTOP, 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|wxTOP|wxRIGHT|wxLEFT, 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|wxRIGHT, 5 );
70 
71  m_vPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
72  fgSizer3->Add( m_vPitchCtrl, 0, 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|wxRIGHT|wxLEFT, 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|wxBOTTOM|wxRIGHT, 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, wxEXPAND|wxBOTTOM, 5 );
84 
85 
86  fgSizer3->Add( 0, 0, 1, wxEXPAND, 3 );
87 
88 
89  bLeftColumn->Add( fgSizer3, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
90 
91  wxBoxSizer* bSizer9;
92  bSizer9 = new wxBoxSizer( wxVERTICAL );
93 
94  m_checkHVOrientation = new wxCheckBox( this, wxID_ANY, _("&Restrict buses and wires to H and V orientation"), wxDefaultPosition, wxDefaultSize, 0 );
95  bSizer9->Add( m_checkHVOrientation, 0, wxEXPAND|wxALL, 5 );
96 
97  m_footprintPreview = new wxCheckBox( this, wxID_ANY, _("Show footprint previews in symbol chooser"), wxDefaultPosition, wxDefaultSize, 0 );
98  bSizer9->Add( m_footprintPreview, 0, wxALL, 5 );
99 
100 
101  bLeftColumn->Add( bSizer9, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
102 
103  wxStaticBoxSizer* sbSizer1;
104  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Symbol Field Automatic Placement") ), wxVERTICAL );
105 
106  m_checkAutoplaceFields = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
107  sbSizer1->Add( m_checkAutoplaceFields, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
108 
109  m_checkAutoplaceJustify = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
110  sbSizer1->Add( m_checkAutoplaceJustify, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
111 
112  m_checkAutoplaceAlign = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
113  sbSizer1->Add( m_checkAutoplaceAlign, 0, wxEXPAND|wxALL, 5 );
114 
115 
116  bLeftColumn->Add( sbSizer1, 0, wxTOP|wxEXPAND, 5 );
117 
118 
119  bPanelSizer->Add( bLeftColumn, 0, wxRIGHT|wxLEFT, 5 );
120 
121 
122  this->SetSizer( bPanelSizer );
123  this->Layout();
124  bPanelSizer->Fit( this );
125 }
PANEL_EESCHEMA_SETTINGS_BASE::~PANEL_EESCHEMA_SETTINGS_BASE ( )

Definition at line 127 of file panel_eeschema_settings_base.cpp.

Referenced by OnChooseUnits().

128 {
129 }

Member Function Documentation

void PANEL_EESCHEMA_SETTINGS_BASE::_wxFB_OnChooseUnits ( wxCommandEvent &  event)
inlineprivate

Definition at line 39 of file panel_eeschema_settings_base.h.

References OnChooseUnits().

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

Definition at line 63 of file panel_eeschema_settings_base.h.

References PANEL_EESCHEMA_SETTINGS_BASE(), and ~PANEL_EESCHEMA_SETTINGS_BASE().

Referenced by _wxFB_OnChooseUnits().

63 { event.Skip(); }

Member Data Documentation

wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkAutoplaceAlign
protected
wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkAutoplaceFields
protected
wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkAutoplaceJustify
protected
wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_checkHVOrientation
protected
wxChoice* PANEL_EESCHEMA_SETTINGS_BASE::m_choiceUnits
protected
wxCheckBox* PANEL_EESCHEMA_SETTINGS_BASE::m_footprintPreview
protected
wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchCtrl
protected
wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchLabel
protected

Definition at line 48 of file panel_eeschema_settings_base.h.

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_hPitchUnits
protected

Definition at line 50 of file panel_eeschema_settings_base.h.

wxSpinCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_spinRepeatLabel
protected
wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_staticText16
protected

Definition at line 54 of file panel_eeschema_settings_base.h.

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_staticText2
protected

Definition at line 43 of file panel_eeschema_settings_base.h.

wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_textSizeCtrl
protected
wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_textSizeLabel
protected

Definition at line 45 of file panel_eeschema_settings_base.h.

wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_textSizeUnits
protected

Definition at line 47 of file panel_eeschema_settings_base.h.

wxTextCtrl* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchCtrl
protected
wxStaticText* PANEL_EESCHEMA_SETTINGS_BASE::m_vPitchLabel
protected

Definition at line 51 of file panel_eeschema_settings_base.h.

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: