15PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
RESETTABLE_PANEL( parent, id, pos, size, style,
name )
17 wxBoxSizer* bSizerMain;
18 bSizerMain =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* bSizerMargins;
21 bSizerMargins =
new wxBoxSizer( wxVERTICAL );
23 defaultTextItemsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default text items for new footprints:"), wxDefaultPosition, wxDefaultSize, 0 );
28 bSizerMargins->Add( 0, 3, 0, wxEXPAND, 5 );
30 wxBoxSizer* defaultTextItemsSizer;
31 defaultTextItemsSizer =
new wxBoxSizer( wxVERTICAL );
52 m_textItemsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
64 m_textItemsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
69 wxBoxSizer* bButtonSize;
70 bButtonSize =
new wxBoxSizer( wxHORIZONTAL );
73 m_bpAdd->SetMinSize( wxSize( 30,29 ) );
75 bButtonSize->Add(
m_bpAdd, 0, wxBOTTOM|wxLEFT, 5 );
78 bButtonSize->Add( 20, 0, 0, wxEXPAND, 5 );
83 bButtonSize->Add(
m_bpDelete, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
86 bButtonSize->Add( 0, 0, 1, wxEXPAND, 5 );
88 m_staticTextInfo =
new wxStaticText(
this, wxID_ANY,
_(
"Note: a blank reference designator or value will use the footprint name."), wxDefaultPosition, wxDefaultSize, 0 );
93 defaultTextItemsSizer->Add( bButtonSize, 0, wxEXPAND, 5 );
96 bSizerMargins->Add( defaultTextItemsSizer, 1, wxEXPAND, 20 );
99 bSizerMargins->Add( 0, 15, 0, wxEXPAND, 5 );
101 wxBoxSizer* defaultPropertiesSizer;
102 defaultPropertiesSizer =
new wxBoxSizer( wxVERTICAL );
104 wxStaticText* defaultPropertiesLabel;
105 defaultPropertiesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default properties for new graphic items:"), wxDefaultPosition, wxDefaultSize, 0 );
106 defaultPropertiesLabel->Wrap( -1 );
107 defaultPropertiesSizer->Add( defaultPropertiesLabel, 0, wxEXPAND|wxRIGHT|wxLEFT, 8 );
110 defaultPropertiesSizer->Add( 0, 3, 0, wxEXPAND, 5 );
135 m_graphicsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
146 m_graphicsGrid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
151 m_graphicsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
152 defaultPropertiesSizer->Add(
m_graphicsGrid, 1, wxEXPAND|wxBOTTOM, 1 );
155 bSizerMargins->Add( defaultPropertiesSizer, 0, wxEXPAND|wxTOP, 5 );
158 bSizerMain->Add( bSizerMargins, 1, wxEXPAND, 5 );
161 this->SetSizer( bSizerMain );
163 bSizerMain->Fit(
this );
wxStaticText * defaultTextItemsLabel
WX_GRID * m_textItemsGrid
PANEL_FP_EDITOR_DEFAULTS_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)
STD_BITMAP_BUTTON * m_bpAdd
~PANEL_FP_EDITOR_DEFAULTS_BASE()
virtual void OnGridSize(wxSizeEvent &event)
virtual void OnAddTextItem(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_bpDelete
wxStaticText * m_staticTextInfo
virtual void OnDeleteTextItem(wxCommandEvent &event)
A wxPanel that is designed to be reset in a standard manner.
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...