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 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 bSizerMargins->Add( 0, 20, 0, wxEXPAND, 5 );
145 wxBoxSizer* defaultPropertiesSizer;
146 defaultPropertiesSizer =
new wxBoxSizer( wxVERTICAL );
148 wxStaticText* defaultPropertiesLabel;
149 defaultPropertiesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default properties for new graphic items:"), wxDefaultPosition, wxDefaultSize, 0 );
150 defaultPropertiesLabel->Wrap( -1 );
151 defaultPropertiesSizer->Add( defaultPropertiesLabel, 0, wxEXPAND|wxRIGHT|wxLEFT, 8 );
154 defaultPropertiesSizer->Add( 0, 4, 0, wxEXPAND, 5 );
179 m_graphicsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
190 m_graphicsGrid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
195 m_graphicsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
196 defaultPropertiesSizer->Add(
m_graphicsGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 1 );
199 bSizerMargins->Add( defaultPropertiesSizer, 0, wxEXPAND|wxTOP, 5 );
202 bSizerMain->Add( bSizerMargins, 1, wxEXPAND, 5 );
205 this->SetSizer( bSizerMain );
207 bSizerMain->Fit(
this );
wxStaticText * defaultTextItemsLabel
WX_GRID * m_textItemsGrid
wxStaticText * defaultFieldPropertiesLabel
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()
WX_GRID * m_fieldPropsGrid
virtual void OnGridSize(wxSizeEvent &event)
virtual void OnAddTextItem(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_bpDelete
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...