KiCad PCB EDA Suite
PANEL_LIBEDIT_SETTINGS_BASE Class Reference

Class PANEL_LIBEDIT_SETTINGS_BASE. More...

#include <panel_libedit_settings_base.h>

Inheritance diagram for PANEL_LIBEDIT_SETTINGS_BASE:
PANEL_LIBEDIT_SETTINGS

Public Member Functions

 PANEL_LIBEDIT_SETTINGS_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL)
 
 ~PANEL_LIBEDIT_SETTINGS_BASE ()
 

Protected Attributes

wxStaticText * m_lineWidthLabel
 
wxTextCtrl * m_lineWidthCtrl
 
wxStaticText * m_lineWidthUnits
 
wxStaticText * m_pinLengthLabel
 
wxTextCtrl * m_pinLengthCtrl
 
wxStaticText * m_pinLengthUnits
 
wxStaticText * m_pinNumSizeLabel
 
wxTextCtrl * m_pinNumSizeCtrl
 
wxStaticText * m_pinNumSizeUnits
 
wxStaticText * m_pinNameSizeLabel
 
wxTextCtrl * m_pinNameSizeCtrl
 
wxStaticText * m_pinNameSizeUnits
 
wxCheckBox * m_checkShowPinElectricalType
 
wxStaticText * m_hPitchLabel
 
wxTextCtrl * m_hPitchCtrl
 
wxStaticText * m_hPitchUnits
 
wxStaticText * m_vPitchLabel
 
wxTextCtrl * m_vPitchCtrl
 
wxStaticText * m_vPitchUnits
 
wxStaticText * m_pinPitchLabel
 
wxChoice * m_choicePinDisplacement
 
wxStaticText * m_pinPitchUnis
 
wxStaticText * m_labelIncrementLabel
 
wxSpinCtrl * m_spinRepeatLabel
 

Detailed Description

Constructor & Destructor Documentation

PANEL_LIBEDIT_SETTINGS_BASE::PANEL_LIBEDIT_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 12 of file panel_libedit_settings_base.cpp.

References m_checkShowPinElectricalType, m_choicePinDisplacement, m_hPitchCtrl, m_hPitchLabel, m_hPitchUnits, m_labelIncrementLabel, m_lineWidthCtrl, m_lineWidthLabel, m_lineWidthUnits, m_pinLengthCtrl, m_pinLengthLabel, m_pinLengthUnits, m_pinNameSizeCtrl, m_pinNameSizeLabel, m_pinNameSizeUnits, m_pinNumSizeCtrl, m_pinNumSizeLabel, m_pinNumSizeUnits, m_pinPitchLabel, m_pinPitchUnis, m_spinRepeatLabel, m_vPitchCtrl, m_vPitchLabel, and m_vPitchUnits.

12  : wxPanel( parent, id, pos, size, style )
13 {
14  wxBoxSizer* p1mainSizer;
15  p1mainSizer = new wxBoxSizer( wxHORIZONTAL );
16 
17  wxBoxSizer* bLeftColumn;
18  bLeftColumn = new wxBoxSizer( wxVERTICAL );
19 
20  wxFlexGridSizer* fgSizer;
21  fgSizer = new wxFlexGridSizer( 0, 3, 3, 0 );
22  fgSizer->AddGrowableCol( 0 );
23  fgSizer->AddGrowableCol( 1 );
24  fgSizer->AddGrowableCol( 2 );
25  fgSizer->SetFlexibleDirection( wxBOTH );
26  fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 
28  m_lineWidthLabel = new wxStaticText( this, wxID_ANY, _("&Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_lineWidthLabel->Wrap( -1 );
30  fgSizer->Add( m_lineWidthLabel, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
31 
32  m_lineWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
33  fgSizer->Add( m_lineWidthCtrl, 0, wxALL|wxEXPAND, 5 );
34 
35  m_lineWidthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_lineWidthUnits->Wrap( -1 );
37  fgSizer->Add( m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 3 );
38 
39 
40  fgSizer->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 10 );
41 
42 
43  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
44 
45 
46  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
47 
48  m_pinLengthLabel = new wxStaticText( this, wxID_ANY, _("D&efault pin length:"), wxDefaultPosition, wxDefaultSize, 0 );
49  m_pinLengthLabel->Wrap( -1 );
50  fgSizer->Add( m_pinLengthLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
51 
52  m_pinLengthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
53  fgSizer->Add( m_pinLengthCtrl, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
54 
55  m_pinLengthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
56  m_pinLengthUnits->Wrap( -1 );
57  fgSizer->Add( m_pinLengthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 3 );
58 
59  m_pinNumSizeLabel = new wxStaticText( this, wxID_ANY, _("De&fault pin number size:"), wxDefaultPosition, wxDefaultSize, 0 );
60  m_pinNumSizeLabel->Wrap( -1 );
61  fgSizer->Add( m_pinNumSizeLabel, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
62 
63  m_pinNumSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
64  fgSizer->Add( m_pinNumSizeCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
65 
66  m_pinNumSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
67  m_pinNumSizeUnits->Wrap( -1 );
68  fgSizer->Add( m_pinNumSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 3 );
69 
70  m_pinNameSizeLabel = new wxStaticText( this, wxID_ANY, _("Def&ault pin name size:"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_pinNameSizeLabel->Wrap( -1 );
72  fgSizer->Add( m_pinNameSizeLabel, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
73 
74  m_pinNameSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
75  fgSizer->Add( m_pinNameSizeCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
76 
77  m_pinNameSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
78  m_pinNameSizeUnits->Wrap( -1 );
79  fgSizer->Add( m_pinNameSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 3 );
80 
81  m_checkShowPinElectricalType = new wxCheckBox( this, wxID_ANY, _("Show pin &electrical type"), wxDefaultPosition, wxDefaultSize, 0 );
82  fgSizer->Add( m_checkShowPinElectricalType, 0, wxTOP|wxBOTTOM|wxRIGHT, 3 );
83 
84 
85  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
86 
87 
88  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
89 
90 
91  fgSizer->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 10 );
92 
93 
94  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
95 
96 
97  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
98 
99  m_hPitchLabel = new wxStaticText( this, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
100  m_hPitchLabel->Wrap( -1 );
101  fgSizer->Add( m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
102 
103  m_hPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS );
104  fgSizer->Add( m_hPitchCtrl, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
105 
106  m_hPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
107  m_hPitchUnits->Wrap( -1 );
108  fgSizer->Add( m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
109 
110  m_vPitchLabel = new wxStaticText( this, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
111  m_vPitchLabel->Wrap( -1 );
112  fgSizer->Add( m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
113 
114  m_vPitchCtrl = new wxTextCtrl( this, wxID_ANY, _("100"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS );
115  fgSizer->Add( m_vPitchCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
116 
117  m_vPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
118  m_vPitchUnits->Wrap( -1 );
119  fgSizer->Add( m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
120 
121  m_pinPitchLabel = new wxStaticText( this, wxID_ANY, _("&Pitch of repeated pins:"), wxDefaultPosition, wxDefaultSize, 0 );
122  m_pinPitchLabel->Wrap( -1 );
123  fgSizer->Add( m_pinPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
124 
125  wxString m_choicePinDisplacementChoices[] = { _("100"), _("50") };
126  int m_choicePinDisplacementNChoices = sizeof( m_choicePinDisplacementChoices ) / sizeof( wxString );
127  m_choicePinDisplacement = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePinDisplacementNChoices, m_choicePinDisplacementChoices, 0 );
128  m_choicePinDisplacement->SetSelection( 0 );
129  fgSizer->Add( m_choicePinDisplacement, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
130 
131  m_pinPitchUnis = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
132  m_pinPitchUnis->Wrap( -1 );
133  fgSizer->Add( m_pinPitchUnis, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
134 
135  m_labelIncrementLabel = new wxStaticText( this, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
136  m_labelIncrementLabel->Wrap( -1 );
137  fgSizer->Add( m_labelIncrementLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
138 
139  m_spinRepeatLabel = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -10, 10, 1 );
140  fgSizer->Add( m_spinRepeatLabel, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
141 
142 
143  fgSizer->Add( 0, 0, 0, 0, 5 );
144 
145 
146  bLeftColumn->Add( fgSizer, 0, wxALL, 5 );
147 
148 
149  p1mainSizer->Add( bLeftColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
150 
151 
152  this->SetSizer( p1mainSizer );
153  this->Layout();
154  p1mainSizer->Fit( this );
155 }
PANEL_LIBEDIT_SETTINGS_BASE::~PANEL_LIBEDIT_SETTINGS_BASE ( )

Definition at line 157 of file panel_libedit_settings_base.cpp.

158 {
159 }

Member Data Documentation

wxCheckBox* PANEL_LIBEDIT_SETTINGS_BASE::m_checkShowPinElectricalType
protected
wxChoice* PANEL_LIBEDIT_SETTINGS_BASE::m_choicePinDisplacement
protected
wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_hPitchCtrl
protected
wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_hPitchLabel
protected

Definition at line 51 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_hPitchUnits
protected

Definition at line 53 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_labelIncrementLabel
protected

Definition at line 60 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_lineWidthCtrl
protected
wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_lineWidthLabel
protected

Definition at line 38 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_lineWidthUnits
protected

Definition at line 40 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_pinLengthCtrl
protected
wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinLengthLabel
protected

Definition at line 41 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinLengthUnits
protected

Definition at line 43 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNameSizeCtrl
protected
wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNameSizeLabel
protected

Definition at line 47 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNameSizeUnits
protected

Definition at line 49 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNumSizeCtrl
protected
wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNumSizeLabel
protected

Definition at line 44 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNumSizeUnits
protected

Definition at line 46 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinPitchLabel
protected

Definition at line 57 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinPitchUnis
protected

Definition at line 59 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxSpinCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_spinRepeatLabel
protected
wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_vPitchCtrl
protected
wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_vPitchLabel
protected

Definition at line 54 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_vPitchUnits
protected

Definition at line 56 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().


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