KiCad PCB EDA Suite
dialog_pad_properties_base.h
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #pragma once
9 
10 #include <wx/artprov.h>
11 #include <wx/xrc/xmlres.h>
12 #include <wx/intl.h>
13 class TEXT_CTRL_EVAL;
14 class WX_GRID;
15 
16 #include "dialog_shim.h"
17 #include <wx/string.h>
18 #include <wx/stattext.h>
19 #include <wx/gdicmn.h>
20 #include <wx/font.h>
21 #include <wx/colour.h>
22 #include <wx/settings.h>
23 #include <wx/choice.h>
24 #include <wx/textctrl.h>
25 #include <widgets/net_selector.h>
26 #include <wx/checkbox.h>
27 #include <wx/gbsizer.h>
28 #include <wx/statline.h>
29 #include <wx/sizer.h>
30 #include <wx/panel.h>
31 #include <wx/simplebook.h>
32 #include <wx/combobox.h>
33 #include <wx/bitmap.h>
34 #include <wx/image.h>
35 #include <wx/icon.h>
36 #include <wx/statbmp.h>
37 #include <wx/statbox.h>
38 #include <wx/listctrl.h>
39 #include <wx/button.h>
40 #include <wx/notebook.h>
41 #include <wx/dialog.h>
42 #include <wx/spinctrl.h>
43 #include <wx/grid.h>
44 #include <wx/bmpbuttn.h>
45 
47 
52 {
53  private:
54 
55  protected:
56  enum
57  {
60  };
61 
62  wxBoxSizer* m_MainSizer;
63  wxNotebook* m_notebook;
64  wxPanel* m_panelGeneral;
65  wxBoxSizer* m_LeftBoxSizer;
66  wxStaticText* m_padTypeLabel;
67  wxChoice* m_padType;
68  wxStaticText* m_padNumLabel;
69  wxTextCtrl* m_padNumCtrl;
70  wxStaticText* m_padNetLabel;
72  wxStaticText* m_posXLabel;
73  wxTextCtrl* m_posXCtrl;
74  wxStaticText* m_posXUnits;
75  wxStaticText* m_posYLabel;
76  wxTextCtrl* m_posYCtrl;
77  wxStaticText* m_posYUnits;
78  wxCheckBox* m_locked;
79  wxStaticLine* m_staticline5;
80  wxStaticText* m_shapeLabel;
81  wxChoice* m_PadShapeSelector;
82  wxSimplebook* m_shapePropsBook;
83  wxPanel* m_emptyProps;
84  wxPanel* m_trapProps;
85  wxFlexGridSizer* fgSizerTrapProps;
86  wxStaticText* m_trapDeltaLabel;
87  wxTextCtrl* m_trapDeltaCtrl;
88  wxStaticText* m_trapDeltaUnits;
89  wxStaticText* m_trapAxisLabel;
90  wxChoice* m_trapAxisCtrl;
91  wxPanel* m_roudingProps;
92  wxFlexGridSizer* fgSizerRoundingProps;
93  wxStaticText* m_cornerRatioLabel;
95  wxStaticText* m_cornerRatioUnits;
96  wxStaticText* m_cornerRadiusLabel;
97  wxTextCtrl* m_cornerRadiusCtrl;
98  wxStaticText* m_cornerRadiusUnits;
99  wxPanel* m_chamferProps;
100  wxStaticText* m_chamferRatioLabel;
102  wxStaticText* m_chamferRatioUnits;
104  wxCheckBox* m_cbTopLeft;
105  wxCheckBox* m_cbTopRight;
106  wxCheckBox* m_cbBottomLeft;
107  wxCheckBox* m_cbBottomRight;
108  wxPanel* m_mixedProps;
113  wxCheckBox* m_cbTopLeft1;
114  wxCheckBox* m_cbTopRight1;
115  wxCheckBox* m_cbBottomLeft1;
116  wxCheckBox* m_cbBottomRight1;
117  wxStaticText* m_mixedCornerRatioLabel;
119  wxStaticText* m_mixedCornerRatioUnits;
120  wxStaticText* m_sizeXLabel;
121  wxTextCtrl* m_sizeXCtrl;
122  wxStaticText* m_sizeXUnits;
123  wxStaticText* m_sizeYLabel;
124  wxTextCtrl* m_sizeYCtrl;
125  wxStaticText* m_sizeYUnits;
126  wxStaticText* m_PadOrientText;
127  wxComboBox* m_cb_padrotation;
128  wxStaticText* m_orientationUnits;
129  wxStaticLine* m_staticline6;
130  wxStaticText* m_holeShapeLabel;
131  wxChoice* m_holeShapeCtrl;
132  wxStaticText* m_holeXLabel;
133  wxTextCtrl* m_holeXCtrl;
134  wxStaticText* m_holeXUnits;
135  wxStaticText* m_holeYLabel;
136  wxTextCtrl* m_holeYCtrl;
137  wxStaticText* m_holeYUnits;
138  wxStaticLine* m_staticline7;
139  wxCheckBox* m_offsetShapeOpt;
140  wxStaticText* m_offsetShapeOptLabel;
141  wxFlexGridSizer* m_offsetCtrls;
142  wxStaticText* m_offsetXLabel;
143  wxTextCtrl* m_offsetXCtrl;
144  wxStaticText* m_offsetXUnits;
145  wxStaticText* m_offsetYLabel;
146  wxTextCtrl* m_offsetYCtrl;
147  wxStaticText* m_offsetYUnits;
148  wxCheckBox* m_padToDieOpt;
149  wxStaticText* m_padToDieLabel;
150  wxTextCtrl* m_padToDieCtrl;
151  wxStaticText* m_padToDieUnits;
152  wxBoxSizer* m_middleBoxSizer;
154  wxStaticBitmap* m_FlippedWarningIcon;
155  wxStaticText* m_staticText86;
156  wxStaticText* m_copperLayersLabel;
158  wxStaticText* m_techLayersLabel;
159  wxCheckBox* m_PadLayerAdhCmp;
160  wxCheckBox* m_PadLayerAdhCu;
161  wxCheckBox* m_PadLayerPateCmp;
162  wxCheckBox* m_PadLayerPateCu;
163  wxCheckBox* m_PadLayerSilkCmp;
164  wxCheckBox* m_PadLayerSilkCu;
165  wxCheckBox* m_PadLayerMaskCmp;
166  wxCheckBox* m_PadLayerMaskCu;
167  wxCheckBox* m_PadLayerDraft;
168  wxCheckBox* m_PadLayerECO1;
169  wxCheckBox* m_PadLayerECO2;
170  wxStaticText* m_staticTextFabProperty;
174  wxStaticText* m_staticTextInfoNegVal;
175  wxStaticText* m_clearanceLabel;
176  wxTextCtrl* m_clearanceCtrl;
177  wxStaticText* m_clearanceUnits;
178  wxStaticText* m_maskMarginLabel;
179  wxTextCtrl* m_maskMarginCtrl;
180  wxStaticText* m_maskMarginUnits;
181  wxStaticText* m_pasteMarginLabel;
182  wxTextCtrl* m_pasteMarginCtrl;
183  wxStaticText* m_pasteMarginUnits;
184  wxStaticText* m_pasteMarginRatioLabel;
186  wxStaticText* m_pasteMarginRatioUnits;
187  wxSimplebook* m_nonCopperWarningBook;
188  wxStaticText* m_nonCopperNote;
189  wxStaticText* m_staticTextInfoPaste;
190  wxStaticBitmap* m_nonCopperWarningIcon;
191  wxStaticText* m_nonCopperWarningText;
192  wxStaticBoxSizer* m_sbSizerZonesSettings;
193  wxStaticText* m_staticText40;
195  wxStaticText* m_spokeWidthLabel;
196  wxTextCtrl* m_spokeWidthCtrl;
197  wxStaticText* m_spokeWidthUnits;
198  wxStaticText* m_thermalGapLabel;
199  wxTextCtrl* m_thermalGapCtrl;
200  wxStaticText* m_thermalGapUnits;
201  wxStaticText* m_staticTextcps;
207  wxListView* m_listCtrlPrimitives;
208  wxButton* m_buttonAddShape;
209  wxButton* m_buttonEditShape;
210  wxButton* m_buttonDup;
211  wxButton* m_buttonGeometry;
212  wxButton* m_buttonDel;
213  wxSimplebook* m_stackupImagesBook;
214  wxPanel* page0;
215  wxStaticBitmap* m_stackupImage0;
216  wxPanel* page1;
217  wxStaticBitmap* m_stackupImage1;
218  wxPanel* page2;
219  wxStaticBitmap* m_stackupImage2;
220  wxPanel* page3;
221  wxPanel* page4;
222  wxStaticBitmap* m_stackupImage4;
223  wxPanel* page5;
224  wxStaticBitmap* m_stackupImage5;
225  wxPanel* page6;
226  wxStaticBitmap* m_stackupImage6;
227  wxPanel* page7;
228  wxStaticBitmap* m_stackupImage7;
230  wxBoxSizer* m_padPreviewSizer;
231  wxStaticText* m_parentInfo;
232  wxCheckBox* m_cbShowPadOutline;
233  wxStdDialogButtonSizer* m_sdbSizer;
234  wxButton* m_sdbSizerOK;
235  wxButton* m_sdbSizerCancel;
236 
237  // Virtual event handlers, overide them in your derived class
238  virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
239  virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
240  virtual void PadTypeSelected( wxCommandEvent& event ) { event.Skip(); }
241  virtual void OnValuesChanged( wxCommandEvent& event ) { event.Skip(); }
242  virtual void OnPadShapeSelection( wxCommandEvent& event ) { event.Skip(); }
243  virtual void OnSetLayers( wxCommandEvent& event ) { event.Skip(); }
244  virtual void onCornerSizePercentChange( wxCommandEvent& event ) { event.Skip(); }
245  virtual void onCornerRadiusChange( wxCommandEvent& event ) { event.Skip(); }
246  virtual void PadOrientEvent( wxCommandEvent& event ) { event.Skip(); }
247  virtual void OnDrillShapeSelected( wxCommandEvent& event ) { event.Skip(); }
248  virtual void OnOffsetCheckbox( wxCommandEvent& event ) { event.Skip(); }
249  virtual void OnPadToDieCheckbox( wxCommandEvent& event ) { event.Skip(); }
250  virtual void OnSetCopperLayers( wxCommandEvent& event ) { event.Skip(); }
251  virtual void OnUpdateUINonCopperWarning( wxUpdateUIEvent& event ) { event.Skip(); }
252  virtual void onPrimitiveDClick( wxMouseEvent& event ) { event.Skip(); }
253  virtual void OnPrimitiveSelection( wxListEvent& event ) { event.Skip(); }
254  virtual void onAddPrimitive( wxCommandEvent& event ) { event.Skip(); }
255  virtual void onEditPrimitive( wxCommandEvent& event ) { event.Skip(); }
256  virtual void onDuplicatePrimitive( wxCommandEvent& event ) { event.Skip(); }
257  virtual void onGeometryTransform( wxCommandEvent& event ) { event.Skip(); }
258  virtual void onDeletePrimitive( wxCommandEvent& event ) { event.Skip(); }
259  virtual void onChangePadMode( wxCommandEvent& event ) { event.Skip(); }
260  virtual void OnCancel( wxCommandEvent& event ) { event.Skip(); }
261 
262 
263  public:
264 
265  DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWindowID id = wxID_DIALOG_EDIT_PAD, const wxString& title = _("Pad Properties"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
267 
268 };
269 
274 {
275  private:
276 
277  protected:
278  wxStaticText* m_staticTextPosStart;
279  wxStaticText* m_startXLabel;
281  wxStaticText* m_startXUnits;
282  wxStaticText* m_startYLabel;
284  wxStaticText* m_startYUnits;
285  wxStaticText* m_staticTextPosCtrl1;
286  wxStaticText* m_ctrl1XLabel;
288  wxStaticText* m_ctrl1XUnits;
289  wxStaticText* m_ctrl1YLabel;
291  wxStaticText* m_ctrl1YUnits;
292  wxStaticText* m_staticTextPosCtrl2;
293  wxStaticText* m_ctrl2XLabel;
295  wxStaticText* m_ctrl2XUnits;
296  wxStaticText* m_ctrl2YLabel;
298  wxStaticText* m_ctrl2YUnits;
299  wxStaticText* m_staticTextPosEnd;
300  wxStaticText* m_endXLabel;
302  wxStaticText* m_endXUnits;
303  wxStaticText* m_endYLabel;
305  wxStaticText* m_endYUnits;
306  wxStaticText* m_radiusLabel;
308  wxStaticText* m_radiusUnits;
309  wxStaticText* m_thicknessLabel;
310  wxTextCtrl* m_thicknessCtrl;
311  wxStaticText* m_thicknessUnits;
312  wxCheckBox* m_filledCtrl;
313  wxStaticLine* m_staticline1;
314  wxStdDialogButtonSizer* m_sdbSizer;
315  wxButton* m_sdbSizerOK;
316  wxButton* m_sdbSizerCancel;
317 
318  public:
319 
320  DIALOG_PAD_PRIMITIVES_PROPERTIES_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
322 
323 };
324 
329 {
330  private:
331 
332  protected:
333  wxStaticText* m_staticTextMove;
334  wxStaticText* m_xLabel;
336  wxStaticText* m_xUnits;
337  wxStaticText* m_yLabel;
339  wxStaticText* m_yUnits;
340  wxStaticText* m_rotationLabel;
342  wxStaticText* m_rotationUnits;
343  wxStaticText* m_scaleLabel;
345  wxStaticText* m_staticTextDupCnt;
347  wxStaticLine* m_staticline1;
348  wxStdDialogButtonSizer* m_sdbSizer;
349  wxButton* m_sdbSizerOK;
350  wxButton* m_sdbSizerCancel;
351 
352  public:
353 
354  DIALOG_PAD_PRIMITIVES_TRANSFORM_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Pad Custom Shape Geometry Transform"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
356 
357 };
358 
363 {
364  private:
365 
366  protected:
368  wxBitmapButton* m_addButton;
369  wxBitmapButton* m_deleteButton;
370  wxStaticText* m_thicknessLabel;
372  wxStaticText* m_thicknessUnits;
373  wxCheckBox* m_filledCtrl;
374  wxPanel* m_panelPoly;
375  wxStaticBitmap* m_warningIcon;
376  wxStaticText* m_warningText;
377  wxStaticLine* m_staticline3;
378  wxStaticText* m_statusLine1;
379  wxStdDialogButtonSizer* m_sdbSizer;
380  wxButton* m_sdbSizerOK;
381  wxButton* m_sdbSizerCancel;
382 
383  // Virtual event handlers, overide them in your derived class
384  virtual void onGridSelect( wxGridRangeSelectEvent& event ) { event.Skip(); }
385  virtual void onCellSelect( wxGridEvent& event ) { event.Skip(); }
386  virtual void OnButtonAdd( wxCommandEvent& event ) { event.Skip(); }
387  virtual void OnButtonDelete( wxCommandEvent& event ) { event.Skip(); }
388  virtual void onPaintPolyPanel( wxPaintEvent& event ) { event.Skip(); }
389  virtual void onPolyPanelResize( wxSizeEvent& event ) { event.Skip(); }
390 
391 
392  public:
393 
394  DIALOG_PAD_PRIMITIVE_POLY_PROPS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Basic Shape Polygon"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
396 
397 };
398 
virtual void onPrimitiveDClick(wxMouseEvent &event)
virtual void onAddPrimitive(wxCommandEvent &event)
Class DIALOG_PAD_PRIMITIVE_POLY_PROPS_BASE.
DIALOG_PAD_PRIMITIVES_TRANSFORM_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Pad Custom Shape Geometry Transform"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
virtual void OnButtonDelete(wxCommandEvent &event)
virtual void onPolyPanelResize(wxSizeEvent &event)
virtual void onGridSelect(wxGridRangeSelectEvent &event)
virtual void onCellSelect(wxGridEvent &event)
virtual void OnOffsetCheckbox(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
virtual void OnValuesChanged(wxCommandEvent &event)
virtual void OnPrimitiveSelection(wxListEvent &event)
virtual void OnInitDialog(wxInitDialogEvent &event)
Class DIALOG_PAD_PRIMITIVES_TRANSFORM_BASE.
virtual void OnDrillShapeSelected(wxCommandEvent &event)
virtual void PadTypeSelected(wxCommandEvent &event)
virtual void onCornerRadiusChange(wxCommandEvent &event)
virtual void onDeletePrimitive(wxCommandEvent &event)
virtual void onCornerSizePercentChange(wxCommandEvent &event)
virtual void OnPadShapeSelection(wxCommandEvent &event)
virtual void onPaintPolyPanel(wxPaintEvent &event)
virtual void PadOrientEvent(wxCommandEvent &event)
Class DIALOG_PAD_PROPERTIES_BASE.
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void onDuplicatePrimitive(wxCommandEvent &event)
#define _(s)
DIALOG_PAD_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_DIALOG_EDIT_PAD, const wxString &title=_("Pad Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnPadToDieCheckbox(wxCommandEvent &event)
DIALOG_PAD_PRIMITIVES_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxTextCtrl wrapper to handle math expression evaluation.
virtual void OnUpdateUINonCopperWarning(wxUpdateUIEvent &event)
virtual void OnSetLayers(wxCommandEvent &event)
virtual void onEditPrimitive(wxCommandEvent &event)
virtual void onGeometryTransform(wxCommandEvent &event)
DIALOG_PAD_PRIMITIVE_POLY_PROPS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Basic Shape Polygon"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnSetCopperLayers(wxCommandEvent &event)
virtual void onChangePadMode(wxCommandEvent &event)
virtual void OnButtonAdd(wxCommandEvent &event)
virtual void OnCancel(wxCommandEvent &event)
Class DIALOG_PAD_PRIMITIVES_PROPERTIES_BASE.