12PANEL_EESCHEMA_ANNOTATION_OPTIONS_BASE::PANEL_EESCHEMA_ANNOTATION_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* bPanelSizer;
15 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
17 wxBoxSizer* bLeftColumn;
18 bLeftColumn =
new wxBoxSizer( wxVERTICAL );
20 m_orderLabel1 =
new wxStaticText(
this, wxID_ANY,
_(
"Units"), wxDefaultPosition, wxDefaultSize, 0 );
22 bLeftColumn->Add(
m_orderLabel1, 0, wxLEFT|wxRIGHT|wxTOP, 13 );
24 m_staticline21 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
30 m_staticText6 =
new wxStaticText(
this, wxID_ANY,
_(
"Symbol unit notation:"), wxDefaultPosition, wxDefaultSize, 0 );
32 bSizer5->Add(
m_staticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
35 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
37 wxString m_choiceSeparatorRefIdChoices[] = {
_(
"A"),
_(
".A"),
_(
"-A"),
_(
"_A"),
_(
".1"),
_(
"-1"),
_(
"_1") };
38 int m_choiceSeparatorRefIdNChoices =
sizeof( m_choiceSeparatorRefIdChoices ) /
sizeof( wxString );
39 m_choiceSeparatorRefId =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSeparatorRefIdNChoices, m_choiceSeparatorRefIdChoices, 0 );
44 bLeftColumn->Add( bSizer5, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
47 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
49 m_orderLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Order"), wxDefaultPosition, wxDefaultSize, 0 );
51 bLeftColumn->Add(
m_orderLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
53 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
57 bLeftColumn->Add( 0, 5, 0, wxEXPAND, 5 );
59 wxBoxSizer* bSizerXpos;
60 bSizerXpos =
new wxBoxSizer( wxHORIZONTAL );
69 bLeftColumn->Add( bSizerXpos, 0, wxEXPAND|wxLEFT, 10 );
71 wxBoxSizer* bSizerYpos;
72 bSizerYpos =
new wxBoxSizer( wxHORIZONTAL );
81 bLeftColumn->Add( bSizerYpos, 0, wxEXPAND|wxLEFT, 10 );
84 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
86 m_numberingLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Numbering"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
94 bLeftColumn->Add( 0, 5, 0, wxEXPAND, 5 );
96 wxGridBagSizer* gbSizerNumbering;
97 gbSizerNumbering =
new wxGridBagSizer( 0, 0 );
98 gbSizerNumbering->SetFlexibleDirection( wxBOTH );
99 gbSizerNumbering->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
102 gbSizerNumbering->Add(
m_rbFirstFree, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 2 );
104 m_textNumberAfter =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 60,-1 ), 0 );
105 gbSizerNumbering->Add(
m_textNumberAfter, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 2 );
108 gbSizerNumbering->Add(
m_rbSheetX100, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxBOTTOM|wxLEFT, 2 );
111 gbSizerNumbering->Add(
m_rbSheetX1000, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxBOTTOM|wxLEFT, 2 );
113 m_checkReuseRefdes =
new wxCheckBox(
this, wxID_ANY,
_(
"Allow reference reuse"), wxDefaultPosition, wxDefaultSize, 0 );
114 gbSizerNumbering->Add(
m_checkReuseRefdes, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALL, 2 );
117 bLeftColumn->Add( gbSizerNumbering, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
120 bPanelSizer->Add( bLeftColumn, 0, wxEXPAND, 5 );
123 this->SetSizer( bPanelSizer );
125 bPanelSizer->Fit(
this );