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 )
14 wxBoxSizer* p1mainSizer;
15 p1mainSizer =
new wxBoxSizer( wxHORIZONTAL );
17 wxBoxSizer* leftColumn;
18 leftColumn =
new wxBoxSizer( wxVERTICAL );
20 m_defaultsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Defaults for New Objects"), wxDefaultPosition, wxDefaultSize, 0 );
25 leftColumn->Add( 0, 3, 0, wxEXPAND, 5 );
27 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
30 wxGridBagSizer* gbSizer1;
31 gbSizer1 =
new wxGridBagSizer( 2, 0 );
32 gbSizer1->SetFlexibleDirection( wxBOTH );
33 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
34 gbSizer1->SetEmptyCellSize( wxSize( -1,8 ) );
36 m_lineWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
38 gbSizer1->Add(
m_lineWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
40 m_lineWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41 gbSizer1->Add(
m_lineWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
43 m_lineWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
45 gbSizer1->Add(
m_lineWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
47 m_widthHelpText =
new wxStaticText(
this, wxID_ANY,
_(
"Set to 0 to allow symbols to inherit line width properties\nfrom schematic"), wxDefaultPosition, wxDefaultSize, 0 );
49 gbSizer1->Add(
m_widthHelpText, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxLEFT, 5 );
51 m_textSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default text size:"), wxDefaultPosition, wxDefaultSize, 0 );
53 gbSizer1->Add(
m_textSizeLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
55 m_textSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56 gbSizer1->Add(
m_textSizeCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
58 m_textSizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
60 gbSizer1->Add(
m_textSizeUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
62 m_pinLengthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"D&efault pin length:"), wxDefaultPosition, wxDefaultSize, 0 );
64 gbSizer1->Add(
m_pinLengthLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
66 m_pinLengthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
67 gbSizer1->Add(
m_pinLengthCtrl, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
69 m_pinLengthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
71 gbSizer1->Add(
m_pinLengthUnits, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
73 m_pinNumSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"De&fault pin number size:"), wxDefaultPosition, wxDefaultSize, 0 );
75 gbSizer1->Add(
m_pinNumSizeLabel, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
77 m_pinNumSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
78 gbSizer1->Add(
m_pinNumSizeCtrl, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
80 m_pinNumSizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
82 gbSizer1->Add(
m_pinNumSizeUnits, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
84 m_pinNameSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Def&ault pin name size:"), wxDefaultPosition, wxDefaultSize, 0 );
86 gbSizer1->Add(
m_pinNameSizeLabel, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
88 m_pinNameSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
89 gbSizer1->Add(
m_pinNameSizeCtrl, wxGBPosition( 6, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
91 m_pinNameSizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
93 gbSizer1->Add(
m_pinNameSizeUnits, wxGBPosition( 6, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
96 leftColumn->Add( gbSizer1, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
99 leftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
101 m_repeatLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Repeated Items"), wxDefaultPosition, wxDefaultSize, 0 );
103 leftColumn->Add(
m_repeatLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
106 leftColumn->Add( 0, 3, 0, wxEXPAND, 5 );
108 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
111 wxGridBagSizer* gbSizer2;
112 gbSizer2 =
new wxGridBagSizer( 5, 0 );
113 gbSizer2->SetFlexibleDirection( wxBOTH );
114 gbSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
116 m_pinPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Pitch of repeated pins:"), wxDefaultPosition, wxDefaultSize, 0 );
118 gbSizer2->Add(
m_pinPitchLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
120 m_pinPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
121 gbSizer2->Add(
m_pinPitchCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT, 5 );
123 m_pinPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
125 gbSizer2->Add(
m_pinPitchUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
127 m_labelIncrementLabel1 =
new wxStaticText(
this, wxID_ANY,
_(
"Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
129 gbSizer2->Add(
m_labelIncrementLabel1, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
131 m_spinRepeatLabel =
new wxSpinCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -10, 10, 1 );
132 gbSizer2->Add(
m_spinRepeatLabel, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT, 5 );
135 leftColumn->Add( gbSizer2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
138 p1mainSizer->Add( leftColumn, 0, wxEXPAND, 5 );
140 wxBoxSizer* rightColumn;
141 rightColumn =
new wxBoxSizer( wxVERTICAL );
143 m_generalOption1 =
new wxStaticText(
this, wxID_ANY,
_(
"General editing"), wxDefaultPosition, wxDefaultSize, 0 );
147 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
150 m_dragPinsWithEdges =
new wxCheckBox(
this, wxID_ANY,
_(
"Keep pins attached when dragging edges"), wxDefaultPosition, wxDefaultSize, 0 );
154 rightColumn->Add( 0, 15, 1, wxEXPAND, 5 );
157 p1mainSizer->Add( rightColumn, 1, wxEXPAND|wxLEFT, 5 );
160 this->SetSizer( p1mainSizer );
162 p1mainSizer->Fit(
this );
wxStaticText * m_labelIncrementLabel1
wxStaticLine * m_staticline1
wxTextCtrl * m_pinLengthCtrl
wxStaticText * m_pinNumSizeLabel
wxStaticText * m_pinPitchLabel
wxStaticText * m_lineWidthLabel
wxStaticLine * m_staticline2
wxStaticText * m_lineWidthUnits
wxStaticText * m_textSizeUnits
wxCheckBox * m_dragPinsWithEdges
wxStaticText * m_defaultsLabel
wxStaticText * m_pinPitchUnits
wxStaticText * m_widthHelpText
wxTextCtrl * m_textSizeCtrl
wxStaticText * m_pinLengthUnits
wxStaticText * m_repeatLabel
wxTextCtrl * m_pinNumSizeCtrl
virtual void onKillFocusPinPitch(wxFocusEvent &event)
wxStaticLine * m_staticline4
wxTextCtrl * m_lineWidthCtrl
wxStaticText * m_textSizeLabel
wxStaticText * m_pinNameSizeUnits
wxStaticText * m_generalOption1
wxStaticText * m_pinNumSizeUnits
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)
wxStaticText * m_pinNameSizeLabel
wxSpinCtrl * m_spinRepeatLabel
wxTextCtrl * m_pinPitchCtrl
wxTextCtrl * m_pinNameSizeCtrl
wxStaticText * m_pinLengthLabel
~PANEL_SYM_EDITING_OPTIONS_BASE()
A wxPanel that is designed to be reset in a standard manner.