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 Feb 6 2017)
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  wxStaticBoxSizer* sMiddleSizer;
28  sMiddleSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Routing Help:") ), wxVERTICAL );
29 
30  wxString m_ShowNetNamesOptionChoices[] = { _("Do not show"), _("On pads"), _("On tracks"), _("On pads and tracks") };
31  int m_ShowNetNamesOptionNChoices = sizeof( m_ShowNetNamesOptionChoices ) / sizeof( wxString );
32  m_ShowNetNamesOption = new wxRadioBox( sMiddleSizer->GetStaticBox(), wxID_ANY, _("Show Net Names:"), wxDefaultPosition, wxDefaultSize, m_ShowNetNamesOptionNChoices, m_ShowNetNamesOptionChoices, 1, wxRA_SPECIFY_COLS );
33  m_ShowNetNamesOption->SetSelection( 0 );
34  m_ShowNetNamesOption->SetToolTip( _("Show or hide net names on pads and/or tracks.") );
35 
36  sMiddleSizer->Add( m_ShowNetNamesOption, 0, wxALL|wxEXPAND, 5 );
37 
38  wxString m_OptDisplayTracksClearanceChoices[] = { _("Never"), _("New track"), _("New track with via area"), _("New and edited tracks with via area"), _("Always") };
39  int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
40  m_OptDisplayTracksClearance = new wxRadioBox( sMiddleSizer->GetStaticBox(), ID_SHOW_CLEARANCE, _("Show Track Clearance:"), wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksClearanceNChoices, m_OptDisplayTracksClearanceChoices, 1, wxRA_SPECIFY_COLS );
41  m_OptDisplayTracksClearance->SetSelection( 0 );
42  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.") );
43 
44  sMiddleSizer->Add( m_OptDisplayTracksClearance, 1, wxALL|wxEXPAND, 5 );
45 
46 
47  bupperSizer->Add( sMiddleSizer, 0, wxALL|wxEXPAND, 5 );
48 
49  wxBoxSizer* sRightSizer;
50  sRightSizer = new wxBoxSizer( wxVERTICAL );
51 
52  wxStaticBoxSizer* sSketchModeSizer;
53  sSketchModeSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Tracks and Vias:") ), wxVERTICAL );
54 
55  m_OptDisplayTracks = new wxCheckBox( sSketchModeSizer->GetStaticBox(), wxID_ANY, _("Show tracks in sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
56  sSketchModeSizer->Add( m_OptDisplayTracks, 0, wxALL, 5 );
57 
58  m_OptDisplayVias = new wxCheckBox( sSketchModeSizer->GetStaticBox(), wxID_ANY, _("Show vias in sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
59  sSketchModeSizer->Add( m_OptDisplayVias, 0, wxALL, 5 );
60 
61 
62  sRightSizer->Add( sSketchModeSizer, 0, wxALL|wxEXPAND, 5 );
63 
64  wxStaticBoxSizer* sfootprintSizer;
65  sfootprintSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Footprints:") ), wxVERTICAL );
66 
67  m_OptDisplayModOutlines = new wxCheckBox( sfootprintSizer->GetStaticBox(), wxID_ANY, _("Show outlines in sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
68  sfootprintSizer->Add( m_OptDisplayModOutlines, 0, wxALL, 5 );
69 
71  = new wxCheckBox( sfootprintSizer->GetStaticBox(), wxID_ANY, _("Show text in sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
72  sfootprintSizer->Add( m_OptDisplayModTexts
73  , 0, wxALL, 5 );
74 
75  m_OptDisplayPads = new wxCheckBox( sfootprintSizer->GetStaticBox(), wxID_ANY, _("Show pads in sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
76  sfootprintSizer->Add( m_OptDisplayPads, 0, wxALL, 5 );
77 
78  m_OptDisplayPadClearence = new wxCheckBox( sfootprintSizer->GetStaticBox(), wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
79  sfootprintSizer->Add( m_OptDisplayPadClearence, 0, wxALL, 5 );
80 
81  m_OptDisplayPadNumber = new wxCheckBox( sfootprintSizer->GetStaticBox(), wxID_ANY, _("Show pad number"), wxDefaultPosition, wxDefaultSize, 0 );
82  m_OptDisplayPadNumber->SetValue(true);
83  sfootprintSizer->Add( m_OptDisplayPadNumber, 0, wxALL, 5 );
84 
85  m_OptDisplayPadNoConn = new wxCheckBox( sfootprintSizer->GetStaticBox(), wxID_ANY, _("Show pad no net connection indicator"), wxDefaultPosition, wxDefaultSize, 0 );
86  m_OptDisplayPadNoConn->SetValue(true);
87  sfootprintSizer->Add( m_OptDisplayPadNoConn, 0, wxALL, 5 );
88 
89 
90  sRightSizer->Add( sfootprintSizer, 0, wxEXPAND|wxALL, 5 );
91 
92  wxStaticBoxSizer* s_otherSizer;
93  s_otherSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Other:") ), wxVERTICAL );
94 
95  m_OptDisplayDrawings = new wxCheckBox( s_otherSizer->GetStaticBox(), wxID_ANY, _("Show graphic items in sketch mode"), wxDefaultPosition, wxDefaultSize, 0 );
96  m_OptDisplayDrawings->SetValue(true);
97  s_otherSizer->Add( m_OptDisplayDrawings, 0, wxALL, 5 );
98 
99  m_Show_Page_Limits = new wxCheckBox( s_otherSizer->GetStaticBox(), wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
100  m_Show_Page_Limits->SetValue(true);
101  s_otherSizer->Add( m_Show_Page_Limits, 0, wxALL, 5 );
102 
103 
104  sRightSizer->Add( s_otherSizer, 1, wxEXPAND|wxALL, 5 );
105 
106 
107  bupperSizer->Add( sRightSizer, 0, wxEXPAND, 5 );
108 
109 
110  bMainSizer->Add( bupperSizer, 1, wxEXPAND, 5 );
111 
112  m_sdbSizer = new wxStdDialogButtonSizer();
113  m_sdbSizerOK = new wxButton( this, wxID_OK );
114  m_sdbSizer->AddButton( m_sdbSizerOK );
115  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
116  m_sdbSizer->AddButton( m_sdbSizerCancel );
117  m_sdbSizer->Realize();
118 
119  bMainSizer->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
120 
121 
122  this->SetSizer( bMainSizer );
123  this->Layout();
124  bMainSizer->Fit( this );
125 }
126 
128 {
129 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
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)