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, const wxString &name=wxEmptyString)
 
 ~PANEL_LIBEDIT_SETTINGS_BASE ()
 

Protected Attributes

wxStaticText * m_lineWidthLabel
 
wxTextCtrl * m_lineWidthCtrl
 
wxStaticText * m_lineWidthUnits
 
wxStaticText * m_textSizeLabel
 
wxTextCtrl * m_textSizeCtrl
 
wxStaticText * m_textSizeUnits
 
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_cbShowPinElectricalType
 
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_pinPitchUnits
 
wxStaticText * m_labelIncrementLabel1
 
wxSpinCtrl * m_spinRepeatLabel
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_LIBEDIT_SETTINGS_BASE()

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,
const wxString &  name = wxEmptyString 
)

Definition at line 12 of file panel_libedit_settings_base.cpp.

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

References _, m_cbShowPinElectricalType, m_choicePinDisplacement, m_hPitchCtrl, m_hPitchLabel, m_hPitchUnits, m_labelIncrementLabel1, 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_pinPitchUnits, m_spinRepeatLabel, m_textSizeCtrl, m_textSizeLabel, m_textSizeUnits, m_vPitchCtrl, m_vPitchLabel, and m_vPitchUnits.

◆ ~PANEL_LIBEDIT_SETTINGS_BASE()

PANEL_LIBEDIT_SETTINGS_BASE::~PANEL_LIBEDIT_SETTINGS_BASE ( )

Definition at line 175 of file panel_libedit_settings_base.cpp.

176 {
177 }

Member Data Documentation

◆ m_cbShowPinElectricalType

wxCheckBox* PANEL_LIBEDIT_SETTINGS_BASE::m_cbShowPinElectricalType
protected

◆ m_choicePinDisplacement

wxChoice* PANEL_LIBEDIT_SETTINGS_BASE::m_choicePinDisplacement
protected

◆ m_hPitchCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_hPitchCtrl
protected

Definition at line 55 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_hPitchLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_hPitchLabel
protected

Definition at line 54 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_hPitchUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_hPitchUnits
protected

Definition at line 56 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_labelIncrementLabel1

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_labelIncrementLabel1
protected

Definition at line 63 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_lineWidthCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_lineWidthCtrl
protected

Definition at line 39 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_lineWidthLabel

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().

◆ m_lineWidthUnits

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().

◆ m_pinLengthCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_pinLengthCtrl
protected

Definition at line 45 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinLengthLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinLengthLabel
protected

Definition at line 44 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinLengthUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinLengthUnits
protected

Definition at line 46 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinNameSizeCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNameSizeCtrl
protected

Definition at line 51 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinNameSizeLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNameSizeLabel
protected

Definition at line 50 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinNameSizeUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNameSizeUnits
protected

Definition at line 52 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinNumSizeCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNumSizeCtrl
protected

Definition at line 48 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinNumSizeLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNumSizeLabel
protected

Definition at line 47 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinNumSizeUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinNumSizeUnits
protected

Definition at line 49 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinPitchLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinPitchLabel
protected

Definition at line 60 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_pinPitchUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_pinPitchUnits
protected

Definition at line 62 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_spinRepeatLabel

wxSpinCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_spinRepeatLabel
protected

◆ m_textSizeCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_textSizeCtrl
protected

Definition at line 42 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_textSizeLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_textSizeLabel
protected

Definition at line 41 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_textSizeUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_textSizeUnits
protected

Definition at line 43 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_vPitchCtrl

wxTextCtrl* PANEL_LIBEDIT_SETTINGS_BASE::m_vPitchCtrl
protected

Definition at line 58 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_vPitchLabel

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_vPitchLabel
protected

Definition at line 57 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().

◆ m_vPitchUnits

wxStaticText* PANEL_LIBEDIT_SETTINGS_BASE::m_vPitchUnits
protected

Definition at line 59 of file panel_libedit_settings_base.h.

Referenced by PANEL_LIBEDIT_SETTINGS_BASE().


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