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