KiCad PCB EDA Suite
panel_setup_text_and_graphics_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #include "widgets/wx_grid.h"
9 
11 
13 
14 PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
15 {
16  wxBoxSizer* mainSizer;
17  mainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  m_gridSizer = new wxBoxSizer( wxVERTICAL );
20 
21  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Default properties for new graphic items:"), wxDefaultPosition, wxDefaultSize, 0 );
22  m_staticText1->Wrap( -1 );
23  m_gridSizer->Add( m_staticText1, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
24 
25  m_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
26 
27  // Grid
28  m_grid->CreateGrid( 5, 6 );
29  m_grid->EnableEditing( true );
30  m_grid->EnableGridLines( true );
31  m_grid->EnableDragGridSize( false );
32  m_grid->SetMargins( 0, 0 );
33 
34  // Columns
35  m_grid->SetColSize( 0, 130 );
36  m_grid->SetColSize( 1, 106 );
37  m_grid->SetColSize( 2, 106 );
38  m_grid->SetColSize( 3, 130 );
39  m_grid->SetColSize( 4, 70 );
40  m_grid->SetColSize( 5, 116 );
41  m_grid->EnableDragColMove( false );
42  m_grid->EnableDragColSize( true );
43  m_grid->SetColLabelSize( 22 );
44  m_grid->SetColLabelValue( 0, _("Line Thickness") );
45  m_grid->SetColLabelValue( 1, _("Text Width") );
46  m_grid->SetColLabelValue( 2, _("Text Height") );
47  m_grid->SetColLabelValue( 3, _("Text Thickness") );
48  m_grid->SetColLabelValue( 4, _("Italic") );
49  m_grid->SetColLabelValue( 5, _("Keep Upright") );
50  m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
51 
52  // Rows
53  m_grid->EnableDragRowSize( false );
54  m_grid->SetRowLabelSize( 132 );
55  m_grid->SetRowLabelValue( 0, _("Silk Layers") );
56  m_grid->SetRowLabelValue( 1, _("Copper Layers") );
57  m_grid->SetRowLabelValue( 2, _("Edge Cuts") );
58  m_grid->SetRowLabelValue( 3, _("Courtyards") );
59  m_grid->SetRowLabelValue( 4, _("Other Layers") );
60  m_grid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE );
61 
62  // Label Appearance
63 
64  // Cell Defaults
65  m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
66  m_grid->SetToolTip( _("Net Class parameters") );
67 
68  m_gridSizer->Add( m_grid, 0, wxBOTTOM|wxLEFT, 20 );
69 
70 
71  mainSizer->Add( m_gridSizer, 0, wxRIGHT|wxLEFT, 5 );
72 
73 
74  this->SetSizer( mainSizer );
75  this->Layout();
76  mainSizer->Fit( this );
77 }
78 
80 {
81 }
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)