KiCad PCB EDA Suite
PANEL_DISPLAY_OPTIONS_BASE Class Reference

Class PANEL_DISPLAY_OPTIONS_BASE. More...

#include <panel_display_options_base.h>

Inheritance diagram for PANEL_DISPLAY_OPTIONS_BASE:
PANEL_DISPLAY_OPTIONS

Public Member Functions

 PANEL_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)
 
 ~PANEL_DISPLAY_OPTIONS_BASE ()
 

Protected Types

enum  { ID_SHOW_CLEARANCE = 1000 }
 

Protected Attributes

wxBoxSizer * m_galOptionsSizer
 
wxSimplebook * m_optionsBook
 
wxRadioBox * m_ShowNetNamesOption
 
wxCheckBox * m_OptDisplayPadNumber
 
wxCheckBox * m_OptDisplayPadNoConn
 
wxRadioBox * m_OptDisplayTracksClearance
 
wxCheckBox * m_OptDisplayPadClearence
 
wxCheckBox * m_checkCrossProbeCenter
 
wxCheckBox * m_checkCrossProbeZoom
 
wxCheckBox * m_checkCrossProbeAutoHighlight
 

Detailed Description

Class PANEL_DISPLAY_OPTIONS_BASE.

Definition at line 30 of file panel_display_options_base.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
ID_SHOW_CLEARANCE 

Definition at line 35 of file panel_display_options_base.h.

Constructor & Destructor Documentation

◆ PANEL_DISPLAY_OPTIONS_BASE()

PANEL_DISPLAY_OPTIONS_BASE::PANEL_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 
)

Definition at line 12 of file panel_display_options_base.cpp.

12  : 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  m_optionsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
26  wxPanel* emptyPage;
27  emptyPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
28  m_optionsBook->AddPage( emptyPage, _("a page"), false );
29  wxPanel* pcbPage;
30  pcbPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
31  wxBoxSizer* pcbOptionsSizer;
32  pcbOptionsSizer = new wxBoxSizer( wxVERTICAL );
33 
34  wxStaticBoxSizer* sbAnnotations;
35  sbAnnotations = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Annotations") ), wxVERTICAL );
36 
37  wxString m_ShowNetNamesOptionChoices[] = { _("Do not show"), _("Show on pads"), _("Show on tracks"), _("Show on pads and tracks") };
38  int m_ShowNetNamesOptionNChoices = sizeof( m_ShowNetNamesOptionChoices ) / sizeof( wxString );
39  m_ShowNetNamesOption = new wxRadioBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Net Names"), wxDefaultPosition, wxDefaultSize, m_ShowNetNamesOptionNChoices, m_ShowNetNamesOptionChoices, 1, wxRA_SPECIFY_COLS );
40  m_ShowNetNamesOption->SetSelection( 0 );
41  m_ShowNetNamesOption->SetToolTip( _("Show or hide net names on pads and/or tracks.") );
42 
43  sbAnnotations->Add( m_ShowNetNamesOption, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
44 
45  m_OptDisplayPadNumber = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show pad numbers"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_OptDisplayPadNumber->SetValue(true);
47  sbAnnotations->Add( m_OptDisplayPadNumber, 0, wxALL, 6 );
48 
49  m_OptDisplayPadNoConn = new wxCheckBox( sbAnnotations->GetStaticBox(), wxID_ANY, _("Show pad <no net> indicator"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_OptDisplayPadNoConn->SetValue(true);
51  sbAnnotations->Add( m_OptDisplayPadNoConn, 0, wxBOTTOM|wxLEFT|wxRIGHT, 6 );
52 
53 
54  pcbOptionsSizer->Add( sbAnnotations, 0, wxEXPAND|wxBOTTOM, 5 );
55 
56  wxStaticBoxSizer* sbClearance;
57  sbClearance = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Clearance Outlines") ), wxVERTICAL );
58 
59  wxString m_OptDisplayTracksClearanceChoices[] = { _("Do not show"), _("Show when creating tracks"), _("Show with via clearance at end"), _("Show when creating and editing tracks"), _("Show always") };
60  int m_OptDisplayTracksClearanceNChoices = sizeof( m_OptDisplayTracksClearanceChoices ) / sizeof( wxString );
61  m_OptDisplayTracksClearance = new wxRadioBox( sbClearance->GetStaticBox(), ID_SHOW_CLEARANCE, _("Track Clearance"), wxDefaultPosition, wxDefaultSize, m_OptDisplayTracksClearanceNChoices, m_OptDisplayTracksClearanceChoices, 1, wxRA_SPECIFY_COLS );
62  m_OptDisplayTracksClearance->SetSelection( 2 );
63  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.") );
64 
65  sbClearance->Add( m_OptDisplayTracksClearance, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
66 
67  m_OptDisplayPadClearence = new wxCheckBox( sbClearance->GetStaticBox(), wxID_ANY, _("Show pad clearance"), wxDefaultPosition, wxDefaultSize, 0 );
68  sbClearance->Add( m_OptDisplayPadClearence, 0, wxALL, 6 );
69 
70 
71  pcbOptionsSizer->Add( sbClearance, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
72 
73  wxStaticBoxSizer* sbSizer3;
74  sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Cross-probing") ), wxVERTICAL );
75 
76  m_checkCrossProbeCenter = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
77  m_checkCrossProbeCenter->SetValue(true);
78  sbSizer3->Add( m_checkCrossProbeCenter, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
79 
80  m_checkCrossProbeZoom = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
81  m_checkCrossProbeZoom->SetValue(true);
82  sbSizer3->Add( m_checkCrossProbeZoom, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
83 
84  m_checkCrossProbeAutoHighlight = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Highlight cross-probed nets"), wxDefaultPosition, wxDefaultSize, 0 );
85  m_checkCrossProbeAutoHighlight->SetValue(true);
86  m_checkCrossProbeAutoHighlight->SetToolTip( _("Highlight nets when they are highlighted in the schematic editor") );
87 
88  sbSizer3->Add( m_checkCrossProbeAutoHighlight, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
89 
90 
91  pcbOptionsSizer->Add( sbSizer3, 1, wxEXPAND|wxTOP, 5 );
92 
93 
94  pcbPage->SetSizer( pcbOptionsSizer );
95  pcbPage->Layout();
96  pcbOptionsSizer->Fit( pcbPage );
97  m_optionsBook->AddPage( pcbPage, _("a page"), false );
98 
99  bupperSizer->Add( m_optionsBook, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
100 
101 
102  bMainSizer->Add( bupperSizer, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
103 
104 
105  this->SetSizer( bMainSizer );
106  this->Layout();
107  bMainSizer->Fit( this );
108 }
const char * name
Definition: DXF_plotter.cpp:60
#define _(s)
Definition: 3d_actions.cpp:33

References _, ID_SHOW_CLEARANCE, m_checkCrossProbeAutoHighlight, m_checkCrossProbeCenter, m_checkCrossProbeZoom, m_galOptionsSizer, m_OptDisplayPadClearence, m_OptDisplayPadNoConn, m_OptDisplayPadNumber, m_OptDisplayTracksClearance, m_optionsBook, and m_ShowNetNamesOption.

◆ ~PANEL_DISPLAY_OPTIONS_BASE()

PANEL_DISPLAY_OPTIONS_BASE::~PANEL_DISPLAY_OPTIONS_BASE ( )

Definition at line 110 of file panel_display_options_base.cpp.

111 {
112 }

Member Data Documentation

◆ m_checkCrossProbeAutoHighlight

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight
protected

◆ m_checkCrossProbeCenter

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter
protected

◆ m_checkCrossProbeZoom

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom
protected

◆ m_galOptionsSizer

wxBoxSizer* PANEL_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protected

◆ m_OptDisplayPadClearence

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadClearence
protected

◆ m_OptDisplayPadNoConn

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadNoConn
protected

◆ m_OptDisplayPadNumber

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadNumber
protected

◆ m_OptDisplayTracksClearance

wxRadioBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayTracksClearance
protected

◆ m_optionsBook

wxSimplebook* PANEL_DISPLAY_OPTIONS_BASE::m_optionsBook
protected

◆ m_ShowNetNamesOption

wxRadioBox* PANEL_DISPLAY_OPTIONS_BASE::m_ShowNetNamesOption
protected

The documentation for this class was generated from the following files: