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, 8 );
23
24 m_staticline11 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
25 m_gridSizer->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
26
27
28 m_gridSizer->Add( 0, 3, 0, wxEXPAND, 5 );
29
30 m_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
31
32 // Grid
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 );
38
39 // Columns
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") );
54 m_grid->SetColLabelSize( wxGRID_AUTOSIZE );
55 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
56
57 // Rows
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 );
67
68 // Label Appearance
69
70 // Cell Defaults
71 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
72 m_gridSizer->Add( m_grid, 0, wxBOTTOM, 15 );
73
74
75 m_gridSizer->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
76
77
78 m_mainSizer->Add( m_gridSizer, 0, wxEXPAND|wxLEFT, 5 );
79
80
81 this->SetSizer( m_mainSizer );
82 this->Layout();
83 m_mainSizer->Fit( this );
84}
85
87{
88}
const char * name
Definition: DXF_plotter.cpp:59
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:256
#define _(s)