KiCad PCB EDA Suite
PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE Class Reference

Class PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE. More...

#include <panel_eeschema_display_options_base.h>

Inheritance diagram for PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE:
PANEL_EESCHEMA_DISPLAY_OPTIONS

Public Member Functions

 PANEL_EESCHEMA_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_EESCHEMA_DISPLAY_OPTIONS_BASE ()
 

Protected Attributes

wxBoxSizer * m_galOptionsSizer
 
wxCheckBox * m_checkShowHiddenPins
 
wxCheckBox * m_checkShowHiddenFields
 
wxCheckBox * m_checkPageLimits
 
wxCheckBox * m_checkSelTextBox
 
wxCheckBox * m_checkSelDrawChildItems
 
wxCheckBox * m_checkSelFillShapes
 
wxStaticText * m_selWidthLabel
 
wxSpinCtrlDouble * m_selWidthCtrl
 
wxStaticText * m_highlightColorNote
 
wxCheckBox * m_checkCrossProbeCenter
 
wxCheckBox * m_checkCrossProbeZoom
 
wxCheckBox * m_checkCrossProbeAutoHighlight
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE()

PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::PANEL_EESCHEMA_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_eeschema_display_options_base.cpp.

12  : wxPanel( parent, id, pos, size, style, name )
13 {
14  wxBoxSizer* bPanelSizer;
15  bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
16 
17  m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
18 
19 
20  bPanelSizer->Add( m_galOptionsSizer, 1, wxEXPAND|wxLEFT, 5 );
21 
22  wxBoxSizer* bRightColumn;
23  bRightColumn = new wxBoxSizer( wxVERTICAL );
24 
25  wxStaticBoxSizer* sbSizer1;
26  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Appearance") ), wxVERTICAL );
27 
28  m_checkShowHiddenPins = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("S&how hidden pins"), wxDefaultPosition, wxDefaultSize, 0 );
29  sbSizer1->Add( m_checkShowHiddenPins, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
30 
31  m_checkShowHiddenFields = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Show hidden fields"), wxDefaultPosition, wxDefaultSize, 0 );
32  sbSizer1->Add( m_checkShowHiddenFields, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
33 
34  m_checkPageLimits = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Show page limi&ts"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_checkPageLimits->SetValue(true);
36  sbSizer1->Add( m_checkPageLimits, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
37 
38 
39  bRightColumn->Add( sbSizer1, 0, wxEXPAND|wxTOP, 5 );
40 
41  wxStaticBoxSizer* sbSizer3;
42  sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Selection") ), wxVERTICAL );
43 
44  m_checkSelTextBox = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Draw selected text items as box"), wxDefaultPosition, wxDefaultSize, 0 );
45  sbSizer3->Add( m_checkSelTextBox, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
46 
47  m_checkSelDrawChildItems = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Draw selected child items"), wxDefaultPosition, wxDefaultSize, 0 );
48  sbSizer3->Add( m_checkSelDrawChildItems, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
49 
50  m_checkSelFillShapes = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Fill selected shapes"), wxDefaultPosition, wxDefaultSize, 0 );
51  sbSizer3->Add( m_checkSelFillShapes, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
52 
53  wxFlexGridSizer* fgSizer321;
54  fgSizer321 = new wxFlexGridSizer( 0, 2, 3, 0 );
55  fgSizer321->AddGrowableCol( 1 );
56  fgSizer321->SetFlexibleDirection( wxBOTH );
57  fgSizer321->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
58 
59  m_selWidthLabel = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("&Highlight thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
60  m_selWidthLabel->Wrap( -1 );
61  fgSizer321->Add( m_selWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
62 
63  m_selWidthCtrl = new wxSpinCtrlDouble( sbSizer3->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0, 1 );
64  m_selWidthCtrl->SetDigits( 0 );
65  fgSizer321->Add( m_selWidthCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT, 5 );
66 
67 
68  sbSizer3->Add( fgSizer321, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
69 
70  m_highlightColorNote = new wxStaticText( sbSizer3->GetStaticBox(), wxID_ANY, _("(highlight color can be edited in the \"Colors\" page)"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_highlightColorNote->Wrap( -1 );
72  sbSizer3->Add( m_highlightColorNote, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
73 
74 
75  bRightColumn->Add( sbSizer3, 1, wxEXPAND|wxTOP, 5 );
76 
77  wxStaticBoxSizer* sbSizer31;
78  sbSizer31 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Cross-probing") ), wxVERTICAL );
79 
80  m_checkCrossProbeCenter = new wxCheckBox( sbSizer31->GetStaticBox(), wxID_ANY, _("Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
81  m_checkCrossProbeCenter->SetValue(true);
82  sbSizer31->Add( m_checkCrossProbeCenter, 0, wxALL, 5 );
83 
84  m_checkCrossProbeZoom = new wxCheckBox( sbSizer31->GetStaticBox(), wxID_ANY, _("Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
85  m_checkCrossProbeZoom->SetValue(true);
86  sbSizer31->Add( m_checkCrossProbeZoom, 0, wxALL, 5 );
87 
88  m_checkCrossProbeAutoHighlight = new wxCheckBox( sbSizer31->GetStaticBox(), wxID_ANY, _("Highlight cross-probed nets"), wxDefaultPosition, wxDefaultSize, 0 );
89  m_checkCrossProbeAutoHighlight->SetValue(true);
90  m_checkCrossProbeAutoHighlight->SetToolTip( _("Highlight nets when they are highlighted in the PCB editor") );
91 
92  sbSizer31->Add( m_checkCrossProbeAutoHighlight, 0, wxALL, 5 );
93 
94 
95  bRightColumn->Add( sbSizer31, 1, wxEXPAND|wxTOP, 5 );
96 
97 
98  bPanelSizer->Add( bRightColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
99 
100 
101  this->SetSizer( bPanelSizer );
102  this->Layout();
103  bPanelSizer->Fit( this );
104 }
const char * name
Definition: DXF_plotter.cpp:60
#define _(s)
Definition: 3d_actions.cpp:33

References _, m_checkCrossProbeAutoHighlight, m_checkCrossProbeCenter, m_checkCrossProbeZoom, m_checkPageLimits, m_checkSelDrawChildItems, m_checkSelFillShapes, m_checkSelTextBox, m_checkShowHiddenFields, m_checkShowHiddenPins, m_galOptionsSizer, m_highlightColorNote, m_selWidthCtrl, and m_selWidthLabel.

◆ ~PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE()

PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::~PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE ( )

Definition at line 106 of file panel_eeschema_display_options_base.cpp.

107 {
108 }

Member Data Documentation

◆ m_checkCrossProbeAutoHighlight

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight
protected

◆ m_checkCrossProbeCenter

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter
protected

◆ m_checkCrossProbeZoom

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom
protected

◆ m_checkPageLimits

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkPageLimits
protected

◆ m_checkSelDrawChildItems

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelDrawChildItems
protected

◆ m_checkSelFillShapes

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelFillShapes
protected

◆ m_checkSelTextBox

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelTextBox
protected

◆ m_checkShowHiddenFields

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenFields
protected

◆ m_checkShowHiddenPins

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenPins
protected

◆ m_galOptionsSizer

wxBoxSizer* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protected

◆ m_highlightColorNote

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightColorNote
protected

◆ m_selWidthCtrl

wxSpinCtrlDouble* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthCtrl
protected

◆ m_selWidthLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthLabel
protected

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