KiCad PCB EDA Suite
panel_pcbnew_display_options_base.cpp
Go to the documentation of this file.
1 // 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 
12 PANEL_PCBNEW_DISPLAY_OPTIONS_BASE::PANEL_PCBNEW_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13 {
14  wxBoxSizer* bMainSizer;
15  bMainSizer = new wxBoxSizer( wxVERTICAL );
16 
17  wxBoxSizer* bupperSizer;
18  bupperSizer = new wxBoxSizer( wxHORIZONTAL );
19 
20  m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
21 
22 
23  bupperSizer->Add( m_galOptionsSizer, 1, wxEXPAND, 5 );
24 
25  wxBoxSizer* bRightSizer;
26  bRightSizer = new wxBoxSizer( wxVERTICAL );
27 
28  wxStaticBoxSizer* sbAnnotations;
29  sbAnnotations = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Annotations") ), wxVERTICAL );
30 
31  wxString m_ShowNetNamesOptionChoices[] = { _("Do not show"), _("Show on pads"), _("Show on tracks"), _("Show on pads and tracks") };
32  int m_ShowNetNamesOptionNChoices = sizeof( m_ShowNetNamesOptionChoices ) / sizeof( wxString );
33  m_ShowNetNamesOption = new wxRadioBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Net Names"), wxDefaultPosition, wxDefaultSize, m_ShowNetNamesOptionNChoices, m_ShowNetNamesOptionChoices, 1, wxRA_SPECIFY_COLS );
34  m_ShowNetNamesOption->SetSelection( 0 );
35  m_ShowNetNamesOption->SetToolTip( _("Show or hide net names on pads and/or tracks.") );
36 
37  sbAnnotations->Add( m_ShowNetNamesOption, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
38 
39  m_OptDisplayPadNumber = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show pad numbers"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_OptDisplayPadNumber->SetValue(true);
41  sbAnnotations->Add( m_OptDisplayPadNumber, 0, wxALL, 10 );
42 
43  m_OptDisplayPadNoConn = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show pad <no net> indicator"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_OptDisplayPadNoConn->SetValue(true);
45  sbAnnotations->Add( m_OptDisplayPadNoConn, 0, wxBOTTOM|wxLEFT|wxRIGHT, 10 );
46 
47 
48  bRightSizer->Add( sbAnnotations, 0, wxEXPAND|wxBOTTOM, 5 );
49 
50  wxStaticBoxSizer* sbClearance;
51  sbClearance = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Clearance Outlines") ), wxVERTICAL );
52 
53  wxString m_OptDisplayTracksClearanceChoices[] = { _("Do not show"), _("Show when creating tracks"), _("Show with via clearance at end"), _("Show when creating and editing tracks"), _("Show always") };
54  int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
55  m_OptDisplayTracksClearance = new wxRadioBox( sbClearance->GetStaticBox(), ID_SHOW_CLEARANCE, _("Track Clearance"), wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksClearanceNChoices, m_OptDisplayTracksClearanceChoices, 1, wxRA_SPECIFY_COLS );
56  m_OptDisplayTracksClearance->SetSelection( 2 );
57  m_OptDisplayTracksClearance->SetToolTip( _("Show or hide the track and via clearance area. If \"New track\" is selected, track clearance area is shown only when creating the track.") );
58 
59  sbClearance->Add( m_OptDisplayTracksClearance, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
60 
61  m_OptDisplayPadClearence = new wxCheckBox( sbClearance->GetStaticBox(), wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
62  sbClearance->Add( m_OptDisplayPadClearence, 0, wxALL, 10 );
63 
64 
65  bRightSizer->Add( sbClearance, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
66 
67  wxStaticBoxSizer* sbGeneral;
68  sbGeneral = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("General") ), wxVERTICAL );
69 
70  m_OptDisplayCurvedRatsnestLines = new wxCheckBox( sbGeneral->GetStaticBox(), wxID_ANY, _("Show ratsnest with curved lines"), wxDefaultPosition, wxDefaultSize, 0 );
71  sbGeneral->Add( m_OptDisplayCurvedRatsnestLines, 0, wxALL, 10 );
72 
73 
74  bRightSizer->Add( sbGeneral, 0, wxEXPAND|wxTOP, 5 );
75 
76 
77  bupperSizer->Add( bRightSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
78 
79 
80  bMainSizer->Add( bupperSizer, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
81 
82 
83  this->SetSizer( bMainSizer );
84  this->Layout();
85  bMainSizer->Fit( this );
86 }
87 
89 {
90 }
PANEL_PCBNEW_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)
const char * name
Definition: DXF_plotter.cpp:61