KiCad PCB EDA Suite
dialog_modedit_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Aug 4 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
13 
14 DIALOG_MODEDIT_OPTIONS_BASE::DIALOG_MODEDIT_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 )
15 {
16  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17 
18  wxBoxSizer* bSizerMain;
19  bSizerMain = new wxBoxSizer( wxVERTICAL );
20 
21  wxBoxSizer* bSizerUpper;
22  bSizerUpper = new wxBoxSizer( wxVERTICAL );
23 
24  m_staticText281 = new wxStaticText( this, wxID_ANY, _("On new graphic item creation:"), wxDefaultPosition, wxDefaultSize, 0 );
25  m_staticText281->Wrap( -1 );
26  m_staticText281->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
27 
28  bSizerUpper->Add( m_staticText281, 0, wxALL, 5 );
29 
30  wxFlexGridSizer* fgSizer1;
31  fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
32  fgSizer1->AddGrowableCol( 1 );
33  fgSizer1->SetFlexibleDirection( wxBOTH );
34  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
35 
36  m_EdgeModEWidthTitle = new wxStaticText( this, wxID_ANY, _("&Graphic line width"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_EdgeModEWidthTitle->Wrap( -1 );
38  fgSizer1->Add( m_EdgeModEWidthTitle, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
39 
40  m_OptModuleGrLineWidth = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41  fgSizer1->Add( m_OptModuleGrLineWidth, 0, wxEXPAND|wxALL, 5 );
42 
43  m_staticTextGrLineUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_staticTextGrLineUnit->Wrap( -1 );
45  fgSizer1->Add( m_staticTextGrLineUnit, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
46 
47  m_TextModWidthTitle = new wxStaticText( this, wxID_ANY, _("&Text line width"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_TextModWidthTitle->Wrap( -1 );
49  fgSizer1->Add( m_TextModWidthTitle, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
50 
51  m_OptModuleTextWidth = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52  fgSizer1->Add( m_OptModuleTextWidth, 0, wxEXPAND|wxALL, 5 );
53 
54  m_staticTextTextWidthUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
55  m_staticTextTextWidthUnit->Wrap( -1 );
56  fgSizer1->Add( m_staticTextTextWidthUnit, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
57 
58  m_TextModSizeVTitle = new wxStaticText( this, wxID_ANY, _("Text &height"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_TextModSizeVTitle->Wrap( -1 );
60  fgSizer1->Add( m_TextModSizeVTitle, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
61 
62  m_OptModuleTextVSize = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
63  fgSizer1->Add( m_OptModuleTextVSize, 0, wxEXPAND|wxALL, 5 );
64 
65  m_staticTextTextVSizeUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
66  m_staticTextTextVSizeUnit->Wrap( -1 );
67  fgSizer1->Add( m_staticTextTextVSizeUnit, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
68 
69  m_TextModSizeHTitle = new wxStaticText( this, wxID_ANY, _("Text &width"), wxDefaultPosition, wxDefaultSize, 0 );
70  m_TextModSizeHTitle->Wrap( -1 );
71  fgSizer1->Add( m_TextModSizeHTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
72 
73  m_OptModuleTextHSize = new TEXT_CTRL_EVAL( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
74  fgSizer1->Add( m_OptModuleTextHSize, 0, wxEXPAND|wxALL, 5 );
75 
76  m_staticTextTextHSizeUnit = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
77  m_staticTextTextHSizeUnit->Wrap( -1 );
78  fgSizer1->Add( m_staticTextTextHSizeUnit, 0, wxALL, 5 );
79 
80 
81  bSizerUpper->Add( fgSizer1, 0, wxEXPAND|wxLEFT, 20 );
82 
83  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
84  bSizerUpper->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
85 
86  m_staticText28 = new wxStaticText( this, wxID_ANY, _("Default values on new footprint creation:"), wxDefaultPosition, wxDefaultSize, 0 );
87  m_staticText28->Wrap( -1 );
88  m_staticText28->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
89 
90  bSizerUpper->Add( m_staticText28, 0, wxALL, 5 );
91 
92  m_staticTextInfo = new wxStaticText( this, wxID_ANY, _("Leave reference or value blank to use the footprint name as default text"), wxDefaultPosition, wxDefaultSize, 0 );
93  m_staticTextInfo->Wrap( -1 );
94  bSizerUpper->Add( m_staticTextInfo, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
95 
96  wxFlexGridSizer* fgSizer2;
97  fgSizer2 = new wxFlexGridSizer( 0, 6, 0, 0 );
98  fgSizer2->AddGrowableCol( 1 );
99  fgSizer2->AddGrowableCol( 3 );
100  fgSizer2->AddGrowableCol( 5 );
101  fgSizer2->SetFlexibleDirection( wxBOTH );
102  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
103 
104  m_staticTextRef = new wxStaticText( this, wxID_ANY, _("&Reference"), wxDefaultPosition, wxDefaultSize, 0 );
105  m_staticTextRef->Wrap( -1 );
106  fgSizer2->Add( m_staticTextRef, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
107 
108  m_textCtrlRefText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
109  m_textCtrlRefText->SetToolTip( _("Default text for reference\nLeave blank to use the footprint name") );
110 
111  fgSizer2->Add( m_textCtrlRefText, 0, wxALL|wxEXPAND, 5 );
112 
113  m_staticTextRefLayer = new wxStaticText( this, wxID_ANY, _("Layer"), wxDefaultPosition, wxDefaultSize, 0 );
114  m_staticTextRefLayer->Wrap( -1 );
115  fgSizer2->Add( m_staticTextRefLayer, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
116 
117  wxString m_choiceLayerReferenceChoices[] = { _("SilkScreen"), _("Fab. Layer") };
118  int m_choiceLayerReferenceNChoices = sizeof( m_choiceLayerReferenceChoices ) / sizeof( wxString );
119  m_choiceLayerReference = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceLayerReferenceNChoices, m_choiceLayerReferenceChoices, 0 );
120  m_choiceLayerReference->SetSelection( 0 );
121  fgSizer2->Add( m_choiceLayerReference, 0, wxALL|wxEXPAND, 5 );
122 
123  m_staticText32 = new wxStaticText( this, wxID_ANY, _("Visibility"), wxDefaultPosition, wxDefaultSize, 0 );
124  m_staticText32->Wrap( -1 );
125  fgSizer2->Add( m_staticText32, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
126 
127  wxString m_choiceVisibleReferenceChoices[] = { _("Visible"), _("Invisible") };
128  int m_choiceVisibleReferenceNChoices = sizeof( m_choiceVisibleReferenceChoices ) / sizeof( wxString );
129  m_choiceVisibleReference = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVisibleReferenceNChoices, m_choiceVisibleReferenceChoices, 0 );
130  m_choiceVisibleReference->SetSelection( 0 );
131  fgSizer2->Add( m_choiceVisibleReference, 0, wxALL|wxEXPAND, 5 );
132 
133  m_staticTextValue = new wxStaticText( this, wxID_ANY, _("V&alue"), wxDefaultPosition, wxDefaultSize, 0 );
134  m_staticTextValue->Wrap( -1 );
135  fgSizer2->Add( m_staticTextValue, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
136 
137  m_textCtrlValueText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
138  m_textCtrlValueText->SetToolTip( _("Default text for value\nLeave blank to use the footprint name") );
139 
140  fgSizer2->Add( m_textCtrlValueText, 0, wxALL|wxEXPAND, 5 );
141 
142  m_staticTextValLayer = new wxStaticText( this, wxID_ANY, _("Layer"), wxDefaultPosition, wxDefaultSize, 0 );
143  m_staticTextValLayer->Wrap( -1 );
144  fgSizer2->Add( m_staticTextValLayer, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
145 
146  wxString m_choiceLayerValueChoices[] = { _("SilkScreen"), _("Fab. Layer") };
147  int m_choiceLayerValueNChoices = sizeof( m_choiceLayerValueChoices ) / sizeof( wxString );
148  m_choiceLayerValue = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceLayerValueNChoices, m_choiceLayerValueChoices, 0 );
149  m_choiceLayerValue->SetSelection( 1 );
150  fgSizer2->Add( m_choiceLayerValue, 0, wxALL|wxEXPAND, 5 );
151 
152  m_staticTextValVisibility = new wxStaticText( this, wxID_ANY, _("Visibility"), wxDefaultPosition, wxDefaultSize, 0 );
153  m_staticTextValVisibility->Wrap( -1 );
154  fgSizer2->Add( m_staticTextValVisibility, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
155 
156  wxString m_choiceVisibleValueChoices[] = { _("Visible"), _("Invisible") };
157  int m_choiceVisibleValueNChoices = sizeof( m_choiceVisibleValueChoices ) / sizeof( wxString );
158  m_choiceVisibleValue = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVisibleValueNChoices, m_choiceVisibleValueChoices, 0 );
159  m_choiceVisibleValue->SetSelection( 0 );
160  fgSizer2->Add( m_choiceVisibleValue, 0, wxALL|wxEXPAND, 5 );
161 
162 
163  bSizerUpper->Add( fgSizer2, 0, wxEXPAND|wxLEFT, 20 );
164 
165 
166  bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
167 
168  m_sdbSizer1 = new wxStdDialogButtonSizer();
169  m_sdbSizer1OK = new wxButton( this, wxID_OK );
170  m_sdbSizer1->AddButton( m_sdbSizer1OK );
171  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
172  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
173  m_sdbSizer1->Realize();
174 
175  bSizerMain->Add( m_sdbSizer1, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
176 
177 
178  this->SetSizer( bSizerMain );
179  this->Layout();
180  bSizerMain->Fit( this );
181 
182  // Connect Events
183  m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MODEDIT_OPTIONS_BASE::OnCancelClick ), NULL, this );
184  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MODEDIT_OPTIONS_BASE::OnOkClick ), NULL, this );
185 }
186 
188 {
189  // Disconnect Events
190  m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MODEDIT_OPTIONS_BASE::OnCancelClick ), NULL, this );
191  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_MODEDIT_OPTIONS_BASE::OnOkClick ), NULL, this );
192 
193 }
DIALOG_MODEDIT_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Editor Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:70
virtual void OnCancelClick(wxCommandEvent &event)
virtual void OnOkClick(wxCommandEvent &event)
wxTextCtrl wrapper to handle math expression evaluation.
wxStdDialogButtonSizer * m_sdbSizer1