KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_sym_editing_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( 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 m_defaultsLabel = new wxStaticText( this, wxID_ANY, _("Defaults for New Objects"), wxDefaultPosition, wxDefaultSize, 0 );
21 m_defaultsLabel->Wrap( -1 );
22 leftColumn->Add( m_defaultsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
23
24 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
25 leftColumn->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
26
27 wxGridBagSizer* gbSizer1;
28 gbSizer1 = new wxGridBagSizer( 2, 0 );
29 gbSizer1->SetFlexibleDirection( wxBOTH );
30 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 gbSizer1->SetEmptyCellSize( wxSize( -1,8 ) );
32
33 m_lineWidthLabel = new wxStaticText( this, wxID_ANY, _("&Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_lineWidthLabel->Wrap( -1 );
35 gbSizer1->Add( m_lineWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
36
37 m_lineWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 gbSizer1->Add( m_lineWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
39
40 m_lineWidthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_lineWidthUnits->Wrap( -1 );
42 gbSizer1->Add( m_lineWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
43
44 m_widthHelpText = new wxStaticText( this, wxID_ANY, _("Set to 0 to allow symbols to inherit line width properties\nfrom schematic"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_widthHelpText->Wrap( -1 );
46 gbSizer1->Add( m_widthHelpText, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxLEFT, 5 );
47
48 m_textSizeLabel = new wxStaticText( this, wxID_ANY, _("Default text size:"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_textSizeLabel->Wrap( -1 );
50 gbSizer1->Add( m_textSizeLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
51
52 m_textSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
53 gbSizer1->Add( m_textSizeCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
54
55 m_textSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_textSizeUnits->Wrap( -1 );
57 gbSizer1->Add( m_textSizeUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
58
59 m_pinLengthLabel = new wxStaticText( this, wxID_ANY, _("D&efault pin length:"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_pinLengthLabel->Wrap( -1 );
61 gbSizer1->Add( m_pinLengthLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
62
63 m_pinLengthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64 gbSizer1->Add( m_pinLengthCtrl, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
65
66 m_pinLengthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_pinLengthUnits->Wrap( -1 );
68 gbSizer1->Add( m_pinLengthUnits, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
69
70 m_pinNumSizeLabel = new wxStaticText( this, wxID_ANY, _("De&fault pin number size:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_pinNumSizeLabel->Wrap( -1 );
72 gbSizer1->Add( m_pinNumSizeLabel, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
73
74 m_pinNumSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
75 gbSizer1->Add( m_pinNumSizeCtrl, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
76
77 m_pinNumSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_pinNumSizeUnits->Wrap( -1 );
79 gbSizer1->Add( m_pinNumSizeUnits, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
80
81 m_pinNameSizeLabel = new wxStaticText( this, wxID_ANY, _("Def&ault pin name size:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_pinNameSizeLabel->Wrap( -1 );
83 gbSizer1->Add( m_pinNameSizeLabel, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
84
85 m_pinNameSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
86 gbSizer1->Add( m_pinNameSizeCtrl, wxGBPosition( 6, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
87
88 m_pinNameSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_pinNameSizeUnits->Wrap( -1 );
90 gbSizer1->Add( m_pinNameSizeUnits, wxGBPosition( 6, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
91
92
93 leftColumn->Add( gbSizer1, 0, wxEXPAND|wxALL, 5 );
94
95
96 leftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
97
98 m_repeatLabel = new wxStaticText( this, wxID_ANY, _("Repeated Items"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_repeatLabel->Wrap( -1 );
100 leftColumn->Add( m_repeatLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
101
102 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
103 leftColumn->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
104
105 wxGridBagSizer* gbSizer2;
106 gbSizer2 = new wxGridBagSizer( 5, 0 );
107 gbSizer2->SetFlexibleDirection( wxBOTH );
108 gbSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
109
110 m_pinPitchLabel = new wxStaticText( this, wxID_ANY, _("&Pitch of repeated pins:"), wxDefaultPosition, wxDefaultSize, 0 );
111 m_pinPitchLabel->Wrap( -1 );
112 gbSizer2->Add( m_pinPitchLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
113
114 m_pinPitchCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
115 gbSizer2->Add( m_pinPitchCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT, 5 );
116
117 m_pinPitchUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
118 m_pinPitchUnits->Wrap( -1 );
119 gbSizer2->Add( m_pinPitchUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
120
121 m_labelIncrementLabel1 = new wxStaticText( this, wxID_ANY, _("Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
122 m_labelIncrementLabel1->Wrap( -1 );
123 gbSizer2->Add( m_labelIncrementLabel1, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
124
125 m_spinRepeatLabel = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -10, 10, 1 );
126 gbSizer2->Add( m_spinRepeatLabel, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT, 5 );
127
128
129 leftColumn->Add( gbSizer2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
130
131
132 p1mainSizer->Add( leftColumn, 1, wxEXPAND|wxRIGHT, 5 );
133
134
135 p1mainSizer->Add( 25, 0, 0, 0, 5 );
136
137 wxBoxSizer* rightColumn;
138 rightColumn = new wxBoxSizer( wxVERTICAL );
139
140 m_generalOption1 = new wxStaticText( this, wxID_ANY, _("General Editing"), wxDefaultPosition, wxDefaultSize, 0 );
141 m_generalOption1->Wrap( -1 );
142 rightColumn->Add( m_generalOption1, 0, wxLEFT|wxRIGHT|wxTOP, 13 );
143
144 m_staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
145 rightColumn->Add( m_staticline4, 0, wxEXPAND|wxBOTTOM, 5 );
146
147 m_dragPinsWithEdges = new wxCheckBox( this, wxID_ANY, _("Keep pins attached when dragging edges"), wxDefaultPosition, wxDefaultSize, 0 );
148 rightColumn->Add( m_dragPinsWithEdges, 0, wxALL, 5 );
149
150
151 rightColumn->Add( 0, 15, 1, wxEXPAND, 5 );
152
153
154 p1mainSizer->Add( rightColumn, 1, wxEXPAND|wxRIGHT, 5 );
155
156
157 this->SetSizer( p1mainSizer );
158 this->Layout();
159 p1mainSizer->Fit( this );
160
161 // Connect Events
162 m_pinPitchCtrl->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( PANEL_SYM_EDITING_OPTIONS_BASE::onKillFocusPinPitch ), NULL, this );
163}
164
166{
167 // Disconnect Events
168 m_pinPitchCtrl->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( PANEL_SYM_EDITING_OPTIONS_BASE::onKillFocusPinPitch ), NULL, this );
169
170}
const char * name
Definition: DXF_plotter.cpp:59
virtual void onKillFocusPinPitch(wxFocusEvent &event)
PANEL_SYM_EDITING_OPTIONS_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)
A wxPanel that is designed to be reset in a standard manner.
#define _(s)