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 );
27 m_staticline11 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 bMargins =
new wxBoxSizer( wxVERTICAL );
36 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
39 m_grid->CreateGrid( 6, 6 );
40 m_grid->EnableEditing(
true );
41 m_grid->EnableGridLines(
true );
42 m_grid->EnableDragGridSize(
false );
43 m_grid->SetMargins( 0, 0 );
46 m_grid->SetColSize( 0, 140 );
47 m_grid->SetColSize( 1, 140 );
48 m_grid->SetColSize( 2, 140 );
49 m_grid->SetColSize( 3, 140 );
50 m_grid->SetColSize( 4, 80 );
51 m_grid->SetColSize( 5, 120 );
52 m_grid->EnableDragColMove(
false );
53 m_grid->EnableDragColSize(
true );
54 m_grid->SetColLabelValue( 0,
_(
"Line Thickness") );
55 m_grid->SetColLabelValue( 1,
_(
"Text Width") );
56 m_grid->SetColLabelValue( 2,
_(
"Text Height") );
57 m_grid->SetColLabelValue( 3,
_(
"Text Thickness") );
58 m_grid->SetColLabelValue( 4,
_(
"Italic") );
59 m_grid->SetColLabelValue( 5,
_(
"Keep Upright") );
61 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
64 m_grid->EnableDragRowSize(
false );
65 m_grid->SetRowLabelValue( 0,
_(
"Silk Layers") );
66 m_grid->SetRowLabelValue( 1,
_(
"Copper Layers") );
67 m_grid->SetRowLabelValue( 2,
_(
"Edge Cuts") );
68 m_grid->SetRowLabelValue( 3,
_(
"Courtyards") );
69 m_grid->SetRowLabelValue( 4,
_(
"Fab Layers") );
70 m_grid->SetRowLabelValue( 5,
_(
"Other Layers") );
71 m_grid->SetRowLabelSize( 132 );
72 m_grid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
77 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
78 bMargins->Add(
m_grid, 0, wxBOTTOM, 15 );
81 m_gridSizer->Add( bMargins, 1, wxEXPAND|wxLEFT, 5 );
84 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...