KiCad PCB EDA Suite
pcbnew/dialogs/dialog_display_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Apr 19 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_DISPLAY_OPTIONS_BASE::DIALOG_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bupperSizer;
20  bupperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  sLeftSizer = new wxBoxSizer( wxVERTICAL );
23 
24 
25  bupperSizer->Add( sLeftSizer, 1, wxEXPAND, 5 );
26 
27  wxBoxSizer* bRightSizer;
28  bRightSizer = new wxBoxSizer( wxVERTICAL );
29 
30  wxStaticBoxSizer* sbAnnotations;
31  sbAnnotations = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Annotations:") ), wxVERTICAL );
32 
33  wxString m_ShowNetNamesOptionChoices[] = { _("Do not show"), _("On pads"), _("On tracks"), _("On pads and tracks") };
34  int m_ShowNetNamesOptionNChoices = sizeof( m_ShowNetNamesOptionChoices ) / sizeof( wxString );
35  m_ShowNetNamesOption = new wxRadioBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show net names:"), wxDefaultPosition, wxDefaultSize, m_ShowNetNamesOptionNChoices, m_ShowNetNamesOptionChoices, 1, wxRA_SPECIFY_COLS );
36  m_ShowNetNamesOption->SetSelection( 0 );
37  m_ShowNetNamesOption->SetToolTip( _("Show or hide net names on pads and/or tracks.") );
38 
39  sbAnnotations->Add( m_ShowNetNamesOption, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
40 
41  m_OptDisplayPadNumber = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show pad numbers"), wxDefaultPosition, wxDefaultSize, 0 );
42  m_OptDisplayPadNumber->SetValue(true);
43  sbAnnotations->Add( m_OptDisplayPadNumber, 0, wxALL, 10 );
44 
45  m_OptDisplayPadNoConn = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show pad no net connection indicator"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_OptDisplayPadNoConn->SetValue(true);
47  sbAnnotations->Add( m_OptDisplayPadNoConn, 0, wxBOTTOM|wxLEFT|wxRIGHT, 10 );
48 
49 
50  bRightSizer->Add( sbAnnotations, 0, wxALL|wxEXPAND, 5 );
51 
52  wxStaticBoxSizer* sbClearance;
53  sbClearance = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Clearance Outlines:") ), wxVERTICAL );
54 
55  wxString m_OptDisplayTracksClearanceChoices[] = { _("Never"), _("New track"), _("New track with via area"), _("New and edited tracks with via area"), _("Always") };
56  int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
57  m_OptDisplayTracksClearance = new wxRadioBox( sbClearance->GetStaticBox(), ID_SHOW_CLEARANCE, _("Show track clearance:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksClearanceNChoices, m_OptDisplayTracksClearanceChoices, 1, wxRA_SPECIFY_COLS );
58  m_OptDisplayTracksClearance->SetSelection( 1 );
59  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.") );
60 
61  sbClearance->Add( m_OptDisplayTracksClearance, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
62 
63  m_OptDisplayPadClearence = new wxCheckBox( sbClearance->GetStaticBox(), wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
64  sbClearance->Add( m_OptDisplayPadClearence, 0, wxALL, 10 );
65 
66 
67  bRightSizer->Add( sbClearance, 1, wxALL|wxEXPAND, 5 );
68 
69 
70  bupperSizer->Add( bRightSizer, 1, wxEXPAND, 5 );
71 
72 
73  bMainSizer->Add( bupperSizer, 1, wxEXPAND, 5 );
74 
75  m_sdbSizer = new wxStdDialogButtonSizer();
76  m_sdbSizerOK = new wxButton( this, wxID_OK );
77  m_sdbSizer->AddButton( m_sdbSizerOK );
78  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
79  m_sdbSizer->AddButton( m_sdbSizerCancel );
80  m_sdbSizer->Realize();
81 
82  bMainSizer->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
83 
84 
85  this->SetSizer( bMainSizer );
86  this->Layout();
87  bMainSizer->Fit( this );
88 }
89 
91 {
92 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
DIALOG_DISPLAY_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Display Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)