KiCad PCB EDA Suite
panel_gerbview_display_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE::PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bDialogSizer;
15 bDialogSizer = new wxBoxSizer( wxVERTICAL );
16
17 m_UpperSizer = new wxBoxSizer( wxHORIZONTAL );
18
19 m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
20
21
22 m_UpperSizer->Add( m_galOptionsSizer, 1, wxEXPAND, 5 );
23
24 wxBoxSizer* bRightSizer;
25 bRightSizer = new wxBoxSizer( wxVERTICAL );
26
27 wxStaticBoxSizer* sbAnnotations;
28 sbAnnotations = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Annotations") ), wxVERTICAL );
29
30 m_OptDisplayDCodes = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show D codes"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_OptDisplayDCodes->SetValue(true);
32 sbAnnotations->Add( m_OptDisplayDCodes, 0, wxBOTTOM|wxLEFT, 5 );
33
34 m_ShowPageLimitsOpt = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
35 sbAnnotations->Add( m_ShowPageLimitsOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
36
37
38 bRightSizer->Add( sbAnnotations, 0, wxEXPAND|wxALL, 5 );
39
40 wxStaticBoxSizer* sbDrawingMode;
41 sbDrawingMode = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Drawing Mode") ), wxVERTICAL );
42
43 m_OptDisplayFlashedItems = new wxCheckBox( sbDrawingMode->GetStaticBox(), wxID_ANY, _("Sketch flashed items"), wxDefaultPosition, wxDefaultSize, 0 );
44 sbDrawingMode->Add( m_OptDisplayFlashedItems, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
45
46 m_OptDisplayLines = new wxCheckBox( sbDrawingMode->GetStaticBox(), wxID_ANY, _("Sketch lines"), wxDefaultPosition, wxDefaultSize, 0 );
47 sbDrawingMode->Add( m_OptDisplayLines, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
48
49 m_OptDisplayPolygons = new wxCheckBox( sbDrawingMode->GetStaticBox(), wxID_ANY, _("Sketch polygons"), wxDefaultPosition, wxDefaultSize, 0 );
50 sbDrawingMode->Add( m_OptDisplayPolygons, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51
52
53 bRightSizer->Add( sbDrawingMode, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
54
55 wxBoxSizer* bPageSize;
56 bPageSize = new wxBoxSizer( wxVERTICAL );
57
58 wxString m_PageSizeChoices[] = { _("Full size"), _("Size A4"), _("Size A3"), _("Size A2"), _("Size A"), _("Size B"), _("Size C") };
59 int m_PageSizeNChoices = sizeof( m_PageSizeChoices ) / sizeof( wxString );
60 m_PageSize = new wxRadioBox( this, wxID_ANY, _("Page Size"), wxDefaultPosition, wxDefaultSize, m_PageSizeNChoices, m_PageSizeChoices, 1, wxRA_SPECIFY_COLS );
61 m_PageSize->SetSelection( 0 );
62 bPageSize->Add( m_PageSize, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
63
64
65 bRightSizer->Add( bPageSize, 1, wxEXPAND, 5 );
66
67
68 m_UpperSizer->Add( bRightSizer, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
69
70
71 bDialogSizer->Add( m_UpperSizer, 1, wxEXPAND, 5 );
72
73
74 this->SetSizer( bDialogSizer );
75 this->Layout();
76 bDialogSizer->Fit( this );
77}
78
80{
81}
const char * name
Definition: DXF_plotter.cpp:56
PANEL_GERBVIEW_DISPLAY_OPTIONS_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.
#define _(s)