KiCad PCB EDA Suite
PANEL_SYM_EDITING_OPTIONS_BASE Class Referenceabstract

Class PANEL_SYM_EDITING_OPTIONS_BASE. More...

#include <panel_sym_editing_options_base.h>

Inheritance diagram for PANEL_SYM_EDITING_OPTIONS_BASE:
RESETTABLE_PANEL PANEL_SYM_EDITING_OPTIONS

Public Member Functions

 PANEL_SYM_EDITING_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_SYM_EDITING_OPTIONS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Attributes

wxStaticText * m_lineWidthLabel
 
wxTextCtrl * m_lineWidthCtrl
 
wxStaticText * m_lineWidthUnits
 
wxStaticText * m_widthHelpText
 
wxStaticText * m_textSizeLabel
 
wxTextCtrl * m_textSizeCtrl
 
wxStaticText * m_textSizeUnits
 
wxStaticText * m_pinLengthLabel
 
wxTextCtrl * m_pinLengthCtrl
 
wxStaticText * m_pinLengthUnits
 
wxStaticText * m_pinNumSizeLabel
 
wxTextCtrl * m_pinNumSizeCtrl
 
wxStaticText * m_pinNumSizeUnits
 
wxStaticText * m_pinNameSizeLabel
 
wxTextCtrl * m_pinNameSizeCtrl
 
wxStaticText * m_pinNameSizeUnits
 
wxCheckBox * m_cbShowPinElectricalType
 
wxStaticText * m_pinPitchLabel
 
wxChoice * m_choicePinDisplacement
 
wxStaticText * m_pinPitchUnits
 
wxStaticText * m_labelIncrementLabel1
 
wxSpinCtrl * m_spinRepeatLabel
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_SYM_EDITING_OPTIONS_BASE()

PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_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_sym_editing_options_base.cpp.

12 : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* p1mainSizer;
15 p1mainSizer = new wxBoxSizer( wxHORIZONTAL );
16
17 wxBoxSizer* leftColumn;
18 leftColumn = new wxBoxSizer( wxVERTICAL );
19
20 wxStaticBoxSizer* defaults;
21 defaults = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Defaults for New Objects") ), wxVERTICAL );
22
23 wxGridBagSizer* gbSizer1;
24 gbSizer1 = new wxGridBagSizer( 2, 0 );
25 gbSizer1->SetFlexibleDirection( wxBOTH );
26 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 gbSizer1->SetEmptyCellSize( wxSize( -1,8 ) );
28
29 m_lineWidthLabel = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("&Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
30 m_lineWidthLabel->Wrap( -1 );
31 gbSizer1->Add( m_lineWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
32
33 m_lineWidthCtrl = new wxTextCtrl( defaults->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
34 gbSizer1->Add( m_lineWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
35
36 m_lineWidthUnits = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_lineWidthUnits->Wrap( -1 );
38 gbSizer1->Add( m_lineWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
39
40 m_widthHelpText = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("Set to 0 to allow symbols to inherit their line widths from\ntheir parent Schematic"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_widthHelpText->Wrap( -1 );
42 gbSizer1->Add( m_widthHelpText, wxGBPosition( 1, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxLEFT, 5 );
43
44 m_textSizeLabel = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("Default text size:"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_textSizeLabel->Wrap( -1 );
46 gbSizer1->Add( m_textSizeLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
47
48 m_textSizeCtrl = new wxTextCtrl( defaults->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
49 gbSizer1->Add( m_textSizeCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
50
51 m_textSizeUnits = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_textSizeUnits->Wrap( -1 );
53 gbSizer1->Add( m_textSizeUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
54
55 m_pinLengthLabel = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("D&efault pin length:"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_pinLengthLabel->Wrap( -1 );
57 gbSizer1->Add( m_pinLengthLabel, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
58
59 m_pinLengthCtrl = new wxTextCtrl( defaults->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
60 gbSizer1->Add( m_pinLengthCtrl, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
61
62 m_pinLengthUnits = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_pinLengthUnits->Wrap( -1 );
64 gbSizer1->Add( m_pinLengthUnits, wxGBPosition( 4, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
65
66 m_pinNumSizeLabel = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("De&fault pin number size:"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_pinNumSizeLabel->Wrap( -1 );
68 gbSizer1->Add( m_pinNumSizeLabel, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
69
70 m_pinNumSizeCtrl = new wxTextCtrl( defaults->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
71 gbSizer1->Add( m_pinNumSizeCtrl, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
72
73 m_pinNumSizeUnits = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_pinNumSizeUnits->Wrap( -1 );
75 gbSizer1->Add( m_pinNumSizeUnits, wxGBPosition( 5, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
76
77 m_pinNameSizeLabel = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("Def&ault pin name size:"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_pinNameSizeLabel->Wrap( -1 );
79 gbSizer1->Add( m_pinNameSizeLabel, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
80
81 m_pinNameSizeCtrl = new wxTextCtrl( defaults->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
82 gbSizer1->Add( m_pinNameSizeCtrl, wxGBPosition( 6, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
83
84 m_pinNameSizeUnits = new wxStaticText( defaults->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
85 m_pinNameSizeUnits->Wrap( -1 );
86 gbSizer1->Add( m_pinNameSizeUnits, wxGBPosition( 6, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
87
88
89 defaults->Add( gbSizer1, 1, wxEXPAND, 5 );
90
91 m_cbShowPinElectricalType = new wxCheckBox( defaults->GetStaticBox(), wxID_ANY, _("Show pin &electrical type"), wxDefaultPosition, wxDefaultSize, 0 );
92 defaults->Add( m_cbShowPinElectricalType, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
93
94
95 leftColumn->Add( defaults, 0, wxEXPAND|wxALL, 5 );
96
97 wxStaticBoxSizer* repeats;
98 repeats = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Repeated Items") ), wxVERTICAL );
99
100 wxFlexGridSizer* fgSizer1;
101 fgSizer1 = new wxFlexGridSizer( 0, 3, 3, 0 );
102 fgSizer1->AddGrowableCol( 1 );
103 fgSizer1->SetFlexibleDirection( wxBOTH );
104 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
105
106 m_pinPitchLabel = new wxStaticText( repeats->GetStaticBox(), wxID_ANY, _("&Pitch of repeated pins:"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_pinPitchLabel->Wrap( -1 );
108 fgSizer1->Add( m_pinPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
109
110 wxString m_choicePinDisplacementChoices[] = { _("100"), _("50") };
111 int m_choicePinDisplacementNChoices = sizeof( m_choicePinDisplacementChoices ) / sizeof( wxString );
112 m_choicePinDisplacement = new wxChoice( repeats->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePinDisplacementNChoices, m_choicePinDisplacementChoices, 0 );
113 m_choicePinDisplacement->SetSelection( 0 );
114 fgSizer1->Add( m_choicePinDisplacement, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
115
116 m_pinPitchUnits = new wxStaticText( repeats->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_pinPitchUnits->Wrap( -1 );
118 fgSizer1->Add( m_pinPitchUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
119
120 m_labelIncrementLabel1 = new wxStaticText( repeats->GetStaticBox(), wxID_ANY, _("Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_labelIncrementLabel1->Wrap( -1 );
122 fgSizer1->Add( m_labelIncrementLabel1, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
123
124 m_spinRepeatLabel = new wxSpinCtrl( repeats->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -10, 10, 1 );
125 fgSizer1->Add( m_spinRepeatLabel, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
126
127
128 fgSizer1->Add( 0, 0, 0, 0, 5 );
129
130
131 repeats->Add( fgSizer1, 1, wxEXPAND, 5 );
132
133
134 leftColumn->Add( repeats, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
135
136
137 p1mainSizer->Add( leftColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
138
139
140 p1mainSizer->Add( 0, 0, 1, wxEXPAND, 5 );
141
142
143 this->SetSizer( p1mainSizer );
144 this->Layout();
145 p1mainSizer->Fit( this );
146}
const char * name
Definition: DXF_plotter.cpp:56
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)

References _, m_cbShowPinElectricalType, m_choicePinDisplacement, m_labelIncrementLabel1, m_lineWidthCtrl, m_lineWidthLabel, m_lineWidthUnits, m_pinLengthCtrl, m_pinLengthLabel, m_pinLengthUnits, m_pinNameSizeCtrl, m_pinNameSizeLabel, m_pinNameSizeUnits, m_pinNumSizeCtrl, m_pinNumSizeLabel, m_pinNumSizeUnits, m_pinPitchLabel, m_pinPitchUnits, m_spinRepeatLabel, m_textSizeCtrl, m_textSizeLabel, m_textSizeUnits, and m_widthHelpText.

◆ ~PANEL_SYM_EDITING_OPTIONS_BASE()

PANEL_SYM_EDITING_OPTIONS_BASE::~PANEL_SYM_EDITING_OPTIONS_BASE ( )

Definition at line 148 of file panel_sym_editing_options_base.cpp.

149{
150}

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

73 {
74 if( aPt == wxPoint( -INT_MAX, INT_MAX ) )
75 return GetResetTooltip();
76 else
77 return wxPanel::GetHelpTextAtPoint( aPt, aOrigin );
78 }
virtual wxString GetResetTooltip() const
Get the tooltip the reset button should display when showing this panel.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

65 {
66 return _( "Reset all settings on this page to their default" );
67 }

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ ResetPanel()

Member Data Documentation

◆ m_cbShowPinElectricalType

wxCheckBox* PANEL_SYM_EDITING_OPTIONS_BASE::m_cbShowPinElectricalType
protected

◆ m_choicePinDisplacement

wxChoice* PANEL_SYM_EDITING_OPTIONS_BASE::m_choicePinDisplacement
protected

◆ m_labelIncrementLabel1

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_labelIncrementLabel1
protected

Definition at line 60 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_lineWidthCtrl

wxTextCtrl* PANEL_SYM_EDITING_OPTIONS_BASE::m_lineWidthCtrl
protected

Definition at line 41 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_lineWidthLabel

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_lineWidthLabel
protected

Definition at line 40 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_lineWidthUnits

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_lineWidthUnits
protected

Definition at line 42 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinLengthCtrl

wxTextCtrl* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinLengthCtrl
protected

Definition at line 48 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinLengthLabel

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinLengthLabel
protected

Definition at line 47 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinLengthUnits

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinLengthUnits
protected

Definition at line 49 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinNameSizeCtrl

wxTextCtrl* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinNameSizeCtrl
protected

Definition at line 54 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinNameSizeLabel

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinNameSizeLabel
protected

Definition at line 53 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinNameSizeUnits

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinNameSizeUnits
protected

Definition at line 55 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinNumSizeCtrl

wxTextCtrl* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinNumSizeCtrl
protected

Definition at line 51 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinNumSizeLabel

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinNumSizeLabel
protected

Definition at line 50 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinNumSizeUnits

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinNumSizeUnits
protected

Definition at line 52 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinPitchLabel

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinPitchLabel
protected

Definition at line 57 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_pinPitchUnits

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_pinPitchUnits
protected

Definition at line 59 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_spinRepeatLabel

wxSpinCtrl* PANEL_SYM_EDITING_OPTIONS_BASE::m_spinRepeatLabel
protected

◆ m_textSizeCtrl

wxTextCtrl* PANEL_SYM_EDITING_OPTIONS_BASE::m_textSizeCtrl
protected

Definition at line 45 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_textSizeLabel

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_textSizeLabel
protected

Definition at line 44 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_textSizeUnits

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_textSizeUnits
protected

Definition at line 46 of file panel_sym_editing_options_base.h.

Referenced by PANEL_SYM_EDITING_OPTIONS_BASE().

◆ m_widthHelpText

wxStaticText* PANEL_SYM_EDITING_OPTIONS_BASE::m_widthHelpText
protected

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