KiCad PCB EDA Suite
PANEL_SETUP_TEXT_AND_GRAPHICS_BASE Class Reference

Class PANEL_SETUP_TEXT_AND_GRAPHICS_BASE. More...

#include <panel_setup_text_and_graphics_base.h>

Inheritance diagram for PANEL_SETUP_TEXT_AND_GRAPHICS_BASE:
PANEL_SETUP_TEXT_AND_GRAPHICS

Public Member Functions

 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)
 
 ~PANEL_SETUP_TEXT_AND_GRAPHICS_BASE ()
 

Protected Attributes

wxBoxSizer * m_gridSizer
 
wxStaticText * m_staticText1
 
WX_GRIDm_grid
 

Detailed Description

Constructor & Destructor Documentation

PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::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 
)

Definition at line 14 of file panel_setup_text_and_graphics_base.cpp.

References m_grid, m_gridSizer, and m_staticText1.

14  : 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 }
PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::~PANEL_SETUP_TEXT_AND_GRAPHICS_BASE ( )

Definition at line 79 of file panel_setup_text_and_graphics_base.cpp.

80 {
81 }

Member Data Documentation

wxBoxSizer* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_gridSizer
protected
wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_staticText1
protected

The documentation for this class was generated from the following files: