KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_zone_hatch_offsets_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_ZONE_HATCH_OFFSETS_BASE::PANEL_SETUP_ZONE_HATCH_OFFSETS_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 wxBoxSizer* mainSizer;
17 mainSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_staticTextLabel = new wxStaticText( this, wxID_ANY, _("Default Zone Hatching Offsets"), wxDefaultPosition, wxDefaultSize, 0 );
20 m_staticTextLabel->Wrap( -1 );
21 mainSizer->Add( m_staticTextLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
22
23
24 mainSizer->Add( 0, 2, 0, 0, 5 );
25
26 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
27 mainSizer->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
28
29 m_layerOffsetsGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
30
31 // Grid
32 m_layerOffsetsGrid->CreateGrid( 0, 3 );
33 m_layerOffsetsGrid->EnableEditing( true );
34 m_layerOffsetsGrid->EnableGridLines( true );
35 m_layerOffsetsGrid->EnableDragGridSize( false );
36 m_layerOffsetsGrid->SetMargins( 0, 0 );
37
38 // Columns
39 m_layerOffsetsGrid->SetColSize( 0, 160 );
40 m_layerOffsetsGrid->SetColSize( 1, 120 );
41 m_layerOffsetsGrid->SetColSize( 2, 120 );
42 m_layerOffsetsGrid->EnableDragColMove( false );
43 m_layerOffsetsGrid->EnableDragColSize( true );
44 m_layerOffsetsGrid->SetColLabelValue( 0, _("Layer") );
45 m_layerOffsetsGrid->SetColLabelValue( 1, _("X Offset") );
46 m_layerOffsetsGrid->SetColLabelValue( 2, _("Y Offset") );
47 m_layerOffsetsGrid->SetColLabelSize( 22 );
48 m_layerOffsetsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
49
50 // Rows
51 m_layerOffsetsGrid->EnableDragRowSize( true );
52 m_layerOffsetsGrid->SetRowLabelSize( 0 );
53 m_layerOffsetsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
54
55 // Label Appearance
56
57 // Cell Defaults
58 m_layerOffsetsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
59 mainSizer->Add( m_layerOffsetsGrid, 0, wxALL, 5 );
60
61
62 this->SetSizer( mainSizer );
63 this->Layout();
64 mainSizer->Fit( this );
65}
66
const char * name
PANEL_SETUP_ZONE_HATCH_OFFSETS_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)
#define _(s)