KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_fp_editor_graphics_defaults_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_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizerMargins;
20 bSizerMargins = new wxBoxSizer( wxVERTICAL );
21
22 wxBoxSizer* defaultPropertiesSizer;
23 defaultPropertiesSizer = new wxBoxSizer( wxVERTICAL );
24
25 wxStaticText* defaultPropertiesLabel;
26 defaultPropertiesLabel = new wxStaticText( this, wxID_ANY, _("Default properties for new graphic items:"), wxDefaultPosition, wxDefaultSize, 0 );
27 defaultPropertiesLabel->Wrap( -1 );
28 defaultPropertiesSizer->Add( defaultPropertiesLabel, 0, wxEXPAND|wxRIGHT|wxLEFT, 8 );
29
30 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
31 defaultPropertiesSizer->Add( m_staticline1, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
32
33
34 defaultPropertiesSizer->Add( 0, 4, 0, wxEXPAND, 5 );
35
36 m_graphicsGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
37
38 // Grid
39 m_graphicsGrid->CreateGrid( 6, 5 );
40 m_graphicsGrid->EnableEditing( true );
41 m_graphicsGrid->EnableGridLines( true );
42 m_graphicsGrid->EnableDragGridSize( false );
43 m_graphicsGrid->SetMargins( 0, 0 );
44
45 // Columns
46 m_graphicsGrid->SetColSize( 0, 110 );
47 m_graphicsGrid->SetColSize( 1, 100 );
48 m_graphicsGrid->SetColSize( 2, 100 );
49 m_graphicsGrid->SetColSize( 3, 100 );
50 m_graphicsGrid->SetColSize( 4, 60 );
51 m_graphicsGrid->EnableDragColMove( false );
52 m_graphicsGrid->EnableDragColSize( true );
53 m_graphicsGrid->SetColLabelValue( 0, _("Line Thickness") );
54 m_graphicsGrid->SetColLabelValue( 1, _("Text Width") );
55 m_graphicsGrid->SetColLabelValue( 2, _("Text Height") );
56 m_graphicsGrid->SetColLabelValue( 3, _("Text Thickness") );
57 m_graphicsGrid->SetColLabelValue( 4, _("Italic") );
58 m_graphicsGrid->SetColLabelSize( wxGRID_AUTOSIZE );
59 m_graphicsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
60
61 // Rows
62 m_graphicsGrid->EnableDragRowSize( false );
63 m_graphicsGrid->SetRowLabelValue( 0, _("Silk Layers") );
64 m_graphicsGrid->SetRowLabelValue( 1, _("Copper Layers") );
65 m_graphicsGrid->SetRowLabelValue( 2, _("Edge Cuts") );
66 m_graphicsGrid->SetRowLabelValue( 3, _("Courtyards") );
67 m_graphicsGrid->SetRowLabelValue( 4, _("Fab Layers") );
68 m_graphicsGrid->SetRowLabelValue( 5, _("Other Layers") );
69 m_graphicsGrid->SetRowLabelSize( 125 );
70 m_graphicsGrid->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
71
72 // Label Appearance
73
74 // Cell Defaults
75 m_graphicsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
76 defaultPropertiesSizer->Add( m_graphicsGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 1 );
77
78
79 bSizerMargins->Add( defaultPropertiesSizer, 0, wxEXPAND|wxTOP, 5 );
80
81
82 bSizerMargins->Add( 0, 20, 0, wxEXPAND, 5 );
83
84
85 bSizerMain->Add( bSizerMargins, 1, wxEXPAND, 5 );
86
87
88 this->SetSizer( bSizerMain );
89 this->Layout();
90 bSizerMain->Fit( this );
91}
92
94{
95}
const char * name
Definition: DXF_plotter.cpp:57
PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_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)
A wxPanel that is designed to be reset in a standard manner.
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:249
#define _(s)