12PANEL_SETUP_ANNOTATION_BASE::PANEL_SETUP_ANNOTATION_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_checkReuseRefdes =
new wxCheckBox(
this, wxID_ANY,
_(
"Allow reference reuse"), wxDefaultPosition, wxDefaultSize, 0 );
27 bLeftColumn->Add( 0, 5, 0, wxEXPAND, 5 );
29 m_unitsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Units"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 bLeftColumn->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
37 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
39 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"Symbol unit notation:"), wxDefaultPosition, wxDefaultSize, 0 );
41 bSizer5->Add(
m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
43 wxString m_choiceSeparatorRefIdChoices[] = {
_(
"A"),
_(
".A"),
_(
"-A"),
_(
"_A"),
_(
".1"),
_(
"-1"),
_(
"_1") };
44 int m_choiceSeparatorRefIdNChoices =
sizeof( m_choiceSeparatorRefIdChoices ) /
sizeof( wxString );
45 m_choiceSeparatorRefId =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSeparatorRefIdNChoices, m_choiceSeparatorRefIdChoices, 0 );
50 bLeftColumn->Add( bSizer5, 0, wxEXPAND|wxTOP, 5 );
53 bLeftColumn->Add( 0, 0, 1, wxEXPAND, 5 );
56 bPanelSizer->Add( bLeftColumn, 0, wxEXPAND, 5 );
59 this->SetSizer( bPanelSizer );
61 bPanelSizer->Fit(
this );
wxStaticText * m_unitsLabel
wxStaticText * m_staticText3
wxStaticLine * m_staticline2
wxCheckBox * m_checkReuseRefdes
wxChoice * m_choiceSeparatorRefId
~PANEL_SETUP_ANNOTATION_BASE()
PANEL_SETUP_ANNOTATION_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.