KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_text_and_graphics_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#include "widgets/wx_grid.h"
9
11
13
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 )
15{
16 m_mainSizer = new wxBoxSizer( wxVERTICAL );
17
18 m_gridSizer = new wxBoxSizer( wxVERTICAL );
19
20 m_staticTextDefProp = new wxStaticText( this, wxID_ANY, _("Default Properties for New Graphics and Text"), wxDefaultPosition, wxDefaultSize, 0 );
21 m_staticTextDefProp->Wrap( -1 );
22 m_gridSizer->Add( m_staticTextDefProp, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 13 );
23
24
25 m_gridSizer->Add( 0, 2, 0, 0, 5 );
26
27 m_staticline11 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 m_gridSizer->Add( m_staticline11, 0, wxEXPAND|wxBOTTOM, 5 );
29
30
31 m_gridSizer->Add( 0, 3, 0, wxEXPAND, 5 );
32
33 wxBoxSizer* bMargins;
34 bMargins = new wxBoxSizer( wxVERTICAL );
35
36 m_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
37
38 // Grid
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 );
44
45 // Columns
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") );
60 m_grid->SetColLabelSize( wxGRID_AUTOSIZE );
61 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
62
63 // Rows
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 );
73
74 // Label Appearance
75
76 // Cell Defaults
77 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
78 bMargins->Add( m_grid, 0, wxBOTTOM, 15 );
79
80
81 m_gridSizer->Add( bMargins, 1, wxEXPAND|wxLEFT, 5 );
82
83
84 m_gridSizer->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
85
86
87 m_mainSizer->Add( m_gridSizer, 0, wxEXPAND, 5 );
88
89
90 this->SetSizer( m_mainSizer );
91 this->Layout();
92 m_mainSizer->Fit( this );
93}
94
96{
97}
const char * name
Definition: DXF_plotter.cpp:62
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)
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
Definition: wx_grid.cpp:252
#define _(s)