15PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_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 defaultFieldPropertiesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default field properties for new footprints:"), wxDefaultPosition, wxDefaultSize, 0 );
28 bSizerMargins->Add( 0, 4, 0, wxEXPAND, 5 );
30 wxBoxSizer* defaultFieldPropertiesSizer;
31 defaultFieldPropertiesSizer =
new wxBoxSizer( wxVERTICAL );
68 bSizerMargins->Add( defaultFieldPropertiesSizer, 0, wxEXPAND, 5 );
71 bSizerMargins->Add( 5, 25, 0, wxEXPAND, 5 );
73 defaultTextItemsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default text items for new footprints:"), wxDefaultPosition, wxDefaultSize, 0 );
78 bSizerMargins->Add( 0, 4, 0, wxEXPAND, 5 );
80 wxBoxSizer* defaultTextItemsSizer;
81 defaultTextItemsSizer =
new wxBoxSizer( wxVERTICAL );
102 m_textItemsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
112 m_textItemsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
117 wxBoxSizer* bButtonSize;
118 bButtonSize =
new wxBoxSizer( wxHORIZONTAL );
121 m_bpAdd->SetMinSize( wxSize( 30,29 ) );
123 bButtonSize->Add(
m_bpAdd, 0, wxBOTTOM|wxLEFT|wxTOP, 5 );
126 bButtonSize->Add( 20, 0, 0, wxEXPAND, 5 );
131 bButtonSize->Add(
m_bpDelete, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
134 bButtonSize->Add( 0, 0, 1, wxEXPAND, 5 );
137 defaultTextItemsSizer->Add( bButtonSize, 0, wxEXPAND, 5 );
140 bSizerMargins->Add( defaultTextItemsSizer, 1, wxEXPAND, 20 );
143 bSizerMain->Add( bSizerMargins, 1, wxEXPAND, 5 );
146 this->SetSizer( bSizerMain );
148 bSizerMain->Fit(
this );
virtual void OnGridSize(wxSizeEvent &event)
wxStaticText * defaultTextItemsLabel
STD_BITMAP_BUTTON * m_bpAdd
WX_GRID * m_textItemsGrid
~PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE()
PANEL_FP_EDITOR_FIELD_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)
virtual void OnAddTextItem(wxCommandEvent &event)
WX_GRID * m_fieldPropsGrid
virtual void OnDeleteTextItem(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_bpDelete
wxStaticText * defaultFieldPropertiesLabel
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...