KiCad PCB EDA Suite
PANEL_SETUP_FORMATTING_BASE Class Reference

Class PANEL_SETUP_FORMATTING_BASE. More...

#include <panel_setup_formatting_base.h>

Inheritance diagram for PANEL_SETUP_FORMATTING_BASE:
PANEL_SETUP_FORMATTING

Public Member Functions

 PANEL_SETUP_FORMATTING_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_SETUP_FORMATTING_BASE ()
 

Protected Member Functions

virtual void onCheckBoxIref (wxCommandEvent &event)
 

Protected Attributes

wxStaticText * m_staticText26
 
wxChoice * m_choiceSeparatorRefId
 
wxStaticText * m_textSizeLabel
 
wxTextCtrl * m_textSizeCtrl
 
wxStaticText * m_textSizeUnits
 
wxStaticText * m_textOffsetRatioLabel
 
wxTextCtrl * m_textOffsetRatioCtrl
 
wxStaticText * m_offsetRatioUnits
 
wxStaticText * m_labelSizeRatioLabel
 
wxTextCtrl * m_labelSizeRatioCtrl
 
wxStaticText * m_labelSizeRatioUnits
 
wxStaticText * m_lineWidthLabel
 
wxTextCtrl * m_lineWidthCtrl
 
wxStaticText * m_lineWidthUnits
 
wxStaticText * m_pinSymbolSizeLabel
 
wxTextCtrl * m_pinSymbolSizeCtrl
 
wxStaticText * m_pinSymbolSizeUnits
 
wxStaticText * m_staticText261
 
wxChoice * m_choiceJunctionDotSize
 
wxCheckBox * m_showIntersheetsReferences
 
wxCheckBox * m_listOwnPage
 
wxRadioButton * m_radioFormatStandard
 
wxRadioButton * m_radioFormatAbbreviated
 
wxStaticText * m_prefixLabel
 
wxTextCtrl * m_prefixCtrl
 
wxStaticText * m_suffixLabel
 
wxTextCtrl * m_suffixCtrl
 

Private Member Functions

void _wxFB_onCheckBoxIref (wxCommandEvent &event)
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_SETUP_FORMATTING_BASE()

PANEL_SETUP_FORMATTING_BASE::PANEL_SETUP_FORMATTING_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 16 of file panel_setup_formatting_base.cpp.

16  : wxPanel( parent, id, pos, size, style, name )
17 {
18  wxBoxSizer* bPanelSizer;
19  bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
20 
21  wxBoxSizer* bLeftColumn;
22  bLeftColumn = new wxBoxSizer( wxVERTICAL );
23 
24  wxStaticBoxSizer* sbSizer1;
25  sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Annotations") ), wxVERTICAL );
26 
27  wxBoxSizer* bSizer6;
28  bSizer6 = new wxBoxSizer( wxHORIZONTAL );
29 
30  m_staticText26 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Symbol unit notation:"), wxDefaultPosition, wxDefaultSize, 0 );
31  m_staticText26->Wrap( -1 );
32  bSizer6->Add( m_staticText26, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
33 
34  wxString m_choiceSeparatorRefIdChoices[] = { _("A"), _(".A"), _("-A"), _("_A"), _(".1"), _("-1"), _("_1") };
35  int m_choiceSeparatorRefIdNChoices = sizeof( m_choiceSeparatorRefIdChoices ) / sizeof( wxString );
36  m_choiceSeparatorRefId = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceSeparatorRefIdNChoices, m_choiceSeparatorRefIdChoices, 0 );
37  m_choiceSeparatorRefId->SetSelection( 0 );
38  bSizer6->Add( m_choiceSeparatorRefId, 1, wxEXPAND|wxRIGHT, 5 );
39 
40 
41  sbSizer1->Add( bSizer6, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
42 
43 
44  bLeftColumn->Add( sbSizer1, 0, wxEXPAND|wxALL, 5 );
45 
46  wxStaticBoxSizer* sbSizer4;
47  sbSizer4 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Text") ), wxVERTICAL );
48 
49  wxFlexGridSizer* fgSizer2;
50  fgSizer2 = new wxFlexGridSizer( 0, 3, 5, 5 );
51  fgSizer2->AddGrowableCol( 1 );
52  fgSizer2->SetFlexibleDirection( wxBOTH );
53  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
54 
55  m_textSizeLabel = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("Default text size:"), wxDefaultPosition, wxDefaultSize, 0 );
56  m_textSizeLabel->Wrap( -1 );
57  fgSizer2->Add( m_textSizeLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
58 
59  m_textSizeCtrl = new wxTextCtrl( sbSizer4->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
60  fgSizer2->Add( m_textSizeCtrl, 0, wxEXPAND, 5 );
61 
62  m_textSizeUnits = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
63  m_textSizeUnits->Wrap( -1 );
64  fgSizer2->Add( m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
65 
66  m_textOffsetRatioLabel = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("Text offset ratio:"), wxDefaultPosition, wxDefaultSize, 0 );
67  m_textOffsetRatioLabel->Wrap( -1 );
68  m_textOffsetRatioLabel->SetToolTip( _("Percentage of the text size to offset text above or below wire or bus") );
69 
70  fgSizer2->Add( m_textOffsetRatioLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
71 
72  m_textOffsetRatioCtrl = new wxTextCtrl( sbSizer4->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
73  fgSizer2->Add( m_textOffsetRatioCtrl, 0, wxEXPAND, 5 );
74 
75  m_offsetRatioUnits = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
76  m_offsetRatioUnits->Wrap( -1 );
77  fgSizer2->Add( m_offsetRatioUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
78 
79  m_labelSizeRatioLabel = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("Global label size:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_labelSizeRatioLabel->Wrap( -1 );
81  m_labelSizeRatioLabel->SetToolTip( _("Percentage of the text size to use as space around a global label") );
82 
83  fgSizer2->Add( m_labelSizeRatioLabel, 0, wxALIGN_CENTER_VERTICAL, 5 );
84 
85  m_labelSizeRatioCtrl = new wxTextCtrl( sbSizer4->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
86  fgSizer2->Add( m_labelSizeRatioCtrl, 0, wxEXPAND, 5 );
87 
88  m_labelSizeRatioUnits = new wxStaticText( sbSizer4->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
89  m_labelSizeRatioUnits->Wrap( -1 );
90  fgSizer2->Add( m_labelSizeRatioUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE, 5 );
91 
92 
93  sbSizer4->Add( fgSizer2, 1, wxALL|wxEXPAND, 5 );
94 
95 
96  bLeftColumn->Add( sbSizer4, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
97 
98  wxStaticBoxSizer* sbSizer41;
99  sbSizer41 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Symbols") ), wxVERTICAL );
100 
101  wxFlexGridSizer* fgSizer321;
102  fgSizer321 = new wxFlexGridSizer( 0, 3, 5, 0 );
103  fgSizer321->AddGrowableCol( 1 );
104  fgSizer321->SetFlexibleDirection( wxBOTH );
105  fgSizer321->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
106 
107  m_lineWidthLabel = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Default line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
108  m_lineWidthLabel->Wrap( -1 );
109  fgSizer321->Add( m_lineWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
110 
111  m_lineWidthCtrl = new wxTextCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP );
112  fgSizer321->Add( m_lineWidthCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
113 
114  m_lineWidthUnits = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
115  m_lineWidthUnits->Wrap( -1 );
116  fgSizer321->Add( m_lineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE|wxLEFT|wxRIGHT, 5 );
117 
118  m_pinSymbolSizeLabel = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Pin symbol size:"), wxDefaultPosition, wxDefaultSize, 0 );
119  m_pinSymbolSizeLabel->Wrap( -1 );
120  fgSizer321->Add( m_pinSymbolSizeLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
121 
122  m_pinSymbolSizeCtrl = new wxTextCtrl( sbSizer41->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
123  fgSizer321->Add( m_pinSymbolSizeCtrl, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
124 
125  m_pinSymbolSizeUnits = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
126  m_pinSymbolSizeUnits->Wrap( -1 );
127  fgSizer321->Add( m_pinSymbolSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxFIXED_MINSIZE|wxLEFT|wxRIGHT, 5 );
128 
129 
130  sbSizer41->Add( fgSizer321, 1, wxEXPAND|wxBOTTOM, 5 );
131 
132 
133  bLeftColumn->Add( sbSizer41, 0, wxEXPAND|wxALL, 5 );
134 
135  wxStaticBoxSizer* sbSizer2;
136  sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Connections") ), wxVERTICAL );
137 
138  wxBoxSizer* bSizer61;
139  bSizer61 = new wxBoxSizer( wxHORIZONTAL );
140 
141  m_staticText261 = new wxStaticText( sbSizer2->GetStaticBox(), wxID_ANY, _("Junction dot size:"), wxDefaultPosition, wxDefaultSize, 0 );
142  m_staticText261->Wrap( -1 );
143  bSizer61->Add( m_staticText261, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
144 
145  wxString m_choiceJunctionDotSizeChoices[] = { _("None"), _("Smallest"), _("Small"), _("Default"), _("Large"), _("Largest") };
146  int m_choiceJunctionDotSizeNChoices = sizeof( m_choiceJunctionDotSizeChoices ) / sizeof( wxString );
147  m_choiceJunctionDotSize = new wxChoice( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceJunctionDotSizeNChoices, m_choiceJunctionDotSizeChoices, 0 );
148  m_choiceJunctionDotSize->SetSelection( 3 );
149  bSizer61->Add( m_choiceJunctionDotSize, 1, wxEXPAND|wxRIGHT, 5 );
150 
151 
152  sbSizer2->Add( bSizer61, 1, wxBOTTOM|wxEXPAND, 5 );
153 
154 
155  bLeftColumn->Add( sbSizer2, 0, wxEXPAND|wxALL, 5 );
156 
157 
158  bPanelSizer->Add( bLeftColumn, 1, 0, 10 );
159 
160  wxBoxSizer* bRightColumn;
161  bRightColumn = new wxBoxSizer( wxVERTICAL );
162 
163  wxStaticBoxSizer* sbSizerIREf;
164  sbSizerIREf = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Inter-sheet References") ), wxVERTICAL );
165 
166  m_showIntersheetsReferences = new wxCheckBox( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Show inter-sheet references"), wxDefaultPosition, wxDefaultSize, 0 );
167  sbSizerIREf->Add( m_showIntersheetsReferences, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
168 
169  wxBoxSizer* bSizerMargins;
170  bSizerMargins = new wxBoxSizer( wxVERTICAL );
171 
172  m_listOwnPage = new wxCheckBox( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Show own page reference"), wxDefaultPosition, wxDefaultSize, 0 );
173  m_listOwnPage->SetValue(true);
174  bSizerMargins->Add( m_listOwnPage, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
175 
176  m_radioFormatStandard = new wxRadioButton( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Standard (1,2,3)"), wxDefaultPosition, wxDefaultSize, 0 );
177  m_radioFormatStandard->SetValue( true );
178  bSizerMargins->Add( m_radioFormatStandard, 0, wxALL, 5 );
179 
180  m_radioFormatAbbreviated = new wxRadioButton( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Abbreviated (1..3)"), wxDefaultPosition, wxDefaultSize, 0 );
181  bSizerMargins->Add( m_radioFormatAbbreviated, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
182 
183  wxFlexGridSizer* fgSizer4;
184  fgSizer4 = new wxFlexGridSizer( 0, 2, 0, 0 );
185  fgSizer4->AddGrowableCol( 1 );
186  fgSizer4->SetFlexibleDirection( wxBOTH );
187  fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
188 
189  m_prefixLabel = new wxStaticText( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
190  m_prefixLabel->Wrap( -1 );
191  fgSizer4->Add( m_prefixLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
192 
193  m_prefixCtrl = new wxTextCtrl( sbSizerIREf->GetStaticBox(), wxID_ANY, _("["), wxDefaultPosition, wxDefaultSize, 0 );
194  fgSizer4->Add( m_prefixCtrl, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
195 
196  m_suffixLabel = new wxStaticText( sbSizerIREf->GetStaticBox(), wxID_ANY, _("Suffix:"), wxDefaultPosition, wxDefaultSize, 0 );
197  m_suffixLabel->Wrap( -1 );
198  fgSizer4->Add( m_suffixLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
199 
200  m_suffixCtrl = new wxTextCtrl( sbSizerIREf->GetStaticBox(), wxID_ANY, _("]"), wxDefaultPosition, wxDefaultSize, 0 );
201  fgSizer4->Add( m_suffixCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
202 
203 
204  bSizerMargins->Add( fgSizer4, 1, wxEXPAND, 5 );
205 
206 
207  sbSizerIREf->Add( bSizerMargins, 1, wxEXPAND|wxLEFT, 15 );
208 
209 
210  bRightColumn->Add( sbSizerIREf, 0, wxALL|wxEXPAND, 5 );
211 
212 
213  bRightColumn->Add( 0, 0, 0, wxEXPAND, 5 );
214 
215 
216  bPanelSizer->Add( bRightColumn, 1, wxRIGHT|wxLEFT, 10 );
217 
218 
219  this->SetSizer( bPanelSizer );
220  this->Layout();
221  bPanelSizer->Fit( this );
222 }
#define _(s)
const char * name
Definition: DXF_plotter.cpp:56

References _.

◆ ~PANEL_SETUP_FORMATTING_BASE()

PANEL_SETUP_FORMATTING_BASE::~PANEL_SETUP_FORMATTING_BASE ( )

Definition at line 224 of file panel_setup_formatting_base.cpp.

225 {
226 }

Member Function Documentation

◆ _wxFB_onCheckBoxIref()

void PANEL_SETUP_FORMATTING_BASE::_wxFB_onCheckBoxIref ( wxCommandEvent &  event)
inlineprivate

Definition at line 38 of file panel_setup_formatting_base.h.

38 { onCheckBoxIref( event ); }
virtual void onCheckBoxIref(wxCommandEvent &event)

References onCheckBoxIref().

◆ onCheckBoxIref()

virtual void PANEL_SETUP_FORMATTING_BASE::onCheckBoxIref ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_SETUP_FORMATTING.

Definition at line 71 of file panel_setup_formatting_base.h.

71 { event.Skip(); }

Referenced by _wxFB_onCheckBoxIref().

Member Data Documentation

◆ m_choiceJunctionDotSize

wxChoice* PANEL_SETUP_FORMATTING_BASE::m_choiceJunctionDotSize
protected

◆ m_choiceSeparatorRefId

wxChoice* PANEL_SETUP_FORMATTING_BASE::m_choiceSeparatorRefId
protected

◆ m_labelSizeRatioCtrl

wxTextCtrl* PANEL_SETUP_FORMATTING_BASE::m_labelSizeRatioCtrl
protected

◆ m_labelSizeRatioLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_labelSizeRatioLabel
protected

Definition at line 50 of file panel_setup_formatting_base.h.

◆ m_labelSizeRatioUnits

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_labelSizeRatioUnits
protected

Definition at line 52 of file panel_setup_formatting_base.h.

◆ m_lineWidthCtrl

wxTextCtrl* PANEL_SETUP_FORMATTING_BASE::m_lineWidthCtrl
protected

Definition at line 54 of file panel_setup_formatting_base.h.

◆ m_lineWidthLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_lineWidthLabel
protected

Definition at line 53 of file panel_setup_formatting_base.h.

◆ m_lineWidthUnits

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_lineWidthUnits
protected

Definition at line 55 of file panel_setup_formatting_base.h.

◆ m_listOwnPage

◆ m_offsetRatioUnits

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_offsetRatioUnits
protected

Definition at line 49 of file panel_setup_formatting_base.h.

◆ m_pinSymbolSizeCtrl

wxTextCtrl* PANEL_SETUP_FORMATTING_BASE::m_pinSymbolSizeCtrl
protected

Definition at line 57 of file panel_setup_formatting_base.h.

◆ m_pinSymbolSizeLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_pinSymbolSizeLabel
protected

Definition at line 56 of file panel_setup_formatting_base.h.

◆ m_pinSymbolSizeUnits

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_pinSymbolSizeUnits
protected

Definition at line 58 of file panel_setup_formatting_base.h.

◆ m_prefixCtrl

◆ m_prefixLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_prefixLabel
protected

Definition at line 65 of file panel_setup_formatting_base.h.

◆ m_radioFormatAbbreviated

wxRadioButton* PANEL_SETUP_FORMATTING_BASE::m_radioFormatAbbreviated
protected

◆ m_radioFormatStandard

◆ m_showIntersheetsReferences

◆ m_staticText26

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_staticText26
protected

Definition at line 42 of file panel_setup_formatting_base.h.

◆ m_staticText261

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_staticText261
protected

Definition at line 59 of file panel_setup_formatting_base.h.

◆ m_suffixCtrl

◆ m_suffixLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_suffixLabel
protected

Definition at line 67 of file panel_setup_formatting_base.h.

◆ m_textOffsetRatioCtrl

wxTextCtrl* PANEL_SETUP_FORMATTING_BASE::m_textOffsetRatioCtrl
protected

◆ m_textOffsetRatioLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_textOffsetRatioLabel
protected

Definition at line 47 of file panel_setup_formatting_base.h.

◆ m_textSizeCtrl

wxTextCtrl* PANEL_SETUP_FORMATTING_BASE::m_textSizeCtrl
protected

Definition at line 45 of file panel_setup_formatting_base.h.

◆ m_textSizeLabel

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_textSizeLabel
protected

Definition at line 44 of file panel_setup_formatting_base.h.

◆ m_textSizeUnits

wxStaticText* PANEL_SETUP_FORMATTING_BASE::m_textSizeUnits
protected

Definition at line 46 of file panel_setup_formatting_base.h.


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