14PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
20 m_staticTextDefProp =
new wxStaticText(
this, wxID_ANY,
_(
"Default Properties for New Graphics and Text"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_staticline11 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
30 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
33 m_grid->CreateGrid( 6, 6 );
34 m_grid->EnableEditing(
true );
35 m_grid->EnableGridLines(
true );
36 m_grid->EnableDragGridSize(
false );
37 m_grid->SetMargins( 0, 0 );
40 m_grid->SetColSize( 0, 140 );
41 m_grid->SetColSize( 1, 140 );
42 m_grid->SetColSize( 2, 140 );
43 m_grid->SetColSize( 3, 140 );
44 m_grid->SetColSize( 4, 80 );
45 m_grid->SetColSize( 5, 120 );
46 m_grid->EnableDragColMove(
false );
47 m_grid->EnableDragColSize(
true );
48 m_grid->SetColLabelValue( 0,
_(
"Line Thickness") );
49 m_grid->SetColLabelValue( 1,
_(
"Text Width") );
50 m_grid->SetColLabelValue( 2,
_(
"Text Height") );
51 m_grid->SetColLabelValue( 3,
_(
"Text Thickness") );
52 m_grid->SetColLabelValue( 4,
_(
"Italic") );
53 m_grid->SetColLabelValue( 5,
_(
"Keep Upright") );
55 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
58 m_grid->EnableDragRowSize(
false );
59 m_grid->SetRowLabelValue( 0,
_(
"Silk Layers") );
60 m_grid->SetRowLabelValue( 1,
_(
"Copper Layers") );
61 m_grid->SetRowLabelValue( 2,
_(
"Edge Cuts") );
62 m_grid->SetRowLabelValue( 3,
_(
"Courtyards") );
63 m_grid->SetRowLabelValue( 4,
_(
"Fab Layers") );
64 m_grid->SetRowLabelValue( 5,
_(
"Other Layers") );
65 m_grid->SetRowLabelSize( 132 );
66 m_grid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
71 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
75 m_gridSizer->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
PANEL_SETUP_TEXT_AND_GRAPHICS_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)
wxStaticLine * m_staticline11
~PANEL_SETUP_TEXT_AND_GRAPHICS_BASE()
wxStaticText * m_staticTextDefProp
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...