KiCad PCB EDA Suite
dialog_pad_properties_base.h
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jul 10 2019)
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 DIALOG_SHIM;
14 class TEXT_CTRL_EVAL;
15 class WX_GRID;
16 class wxListView;
17 
18 #include "dialog_shim.h"
19 #include <wx/string.h>
20 #include <wx/stattext.h>
21 #include <wx/gdicmn.h>
22 #include <wx/font.h>
23 #include <wx/colour.h>
24 #include <wx/settings.h>
25 #include <wx/choice.h>
26 #include <wx/textctrl.h>
27 #include <widgets/net_selector.h>
28 #include <wx/gbsizer.h>
29 #include <wx/statline.h>
30 #include <wx/sizer.h>
31 #include <wx/panel.h>
32 #include <wx/checkbox.h>
33 #include <wx/simplebook.h>
34 #include <wx/combobox.h>
35 #include <wx/bitmap.h>
36 #include <wx/image.h>
37 #include <wx/icon.h>
38 #include <wx/statbmp.h>
39 #include <wx/statbox.h>
40 #include <wx/listctrl.h>
41 #include <wx/button.h>
42 #include <wx/notebook.h>
43 #include <wx/dialog.h>
44 #include <wx/spinctrl.h>
45 #include <wx/grid.h>
46 #include <wx/bmpbuttn.h>
47 
49 
54 {
55  private:
56 
57  protected:
58  enum
59  {
62  };
63 
64  wxBoxSizer* m_MainSizer;
65  wxNotebook* m_notebook;
66  wxPanel* m_panelGeneral;
67  wxBoxSizer* m_LeftBoxSizer;
68  wxStaticText* m_padTypeLabel;
69  wxChoice* m_PadType;
70  wxStaticText* m_PadNumText;
71  wxTextCtrl* m_PadNumCtrl;
72  wxStaticText* m_PadNameText;
74  wxStaticText* m_posXLabel;
75  wxTextCtrl* m_posXCtrl;
76  wxStaticText* m_posXUnits;
77  wxStaticText* m_posYLabel;
78  wxTextCtrl* m_posYCtrl;
79  wxStaticText* m_posYUnits;
80  wxStaticLine* m_staticline5;
81  wxStaticText* m_shapeLabel;
82  wxChoice* m_PadShape;
83  wxSimplebook* m_shapePropsBook;
84  wxPanel* m_emptyProps;
85  wxPanel* m_trapProps;
86  wxFlexGridSizer* fgSizerTrapProps;
87  wxStaticText* m_trapDeltaLabel;
88  wxTextCtrl* m_trapDeltaCtrl;
89  wxStaticText* m_trapDeltaUnits;
90  wxStaticText* m_trapAxisLabel;
91  wxChoice* m_trapAxisCtrl;
92  wxPanel* m_roudingProps;
93  wxFlexGridSizer* fgSizerRoundingProps;
97  wxStaticText* m_cornerRadiusLabel;
98  wxTextCtrl* m_tcCornerRadius;
99  wxStaticText* m_cornerRadiusUnits;
100  wxPanel* m_chamferProps;
105  wxCheckBox* m_cbTopLeft;
106  wxCheckBox* m_cbTopRight;
107  wxCheckBox* m_cbBottomLeft;
108  wxCheckBox* m_cbBottomRight;
109  wxPanel* m_mixedProps;
114  wxCheckBox* m_cbTopLeft1;
115  wxCheckBox* m_cbTopRight1;
116  wxCheckBox* m_cbBottomLeft1;
117  wxCheckBox* m_cbBottomRight1;
121  wxStaticText* m_sizeXLabel;
122  wxTextCtrl* m_sizeXCtrl;
123  wxStaticText* m_sizeXUnits;
124  wxStaticText* m_sizeYLabel;
125  wxTextCtrl* m_sizeYCtrl;
126  wxStaticText* m_sizeYUnits;
127  wxStaticText* m_PadOrientText;
128  wxComboBox* m_orientation;
129  wxStaticText* m_orientationUnits;
130  wxStaticLine* m_staticline6;
131  wxStaticText* m_holeShapeLabel;
132  wxChoice* m_holeShapeCtrl;
133  wxStaticText* m_holeXLabel;
134  wxTextCtrl* m_holeXCtrl;
135  wxStaticText* m_holeXUnits;
136  wxStaticText* m_holeYLabel;
137  wxTextCtrl* m_holeYCtrl;
138  wxStaticText* m_holeYUnits;
139  wxStaticLine* m_staticline7;
140  wxCheckBox* m_offsetShapeOpt;
141  wxStaticText* m_offsetShapeOptLabel;
142  wxFlexGridSizer* m_offsetCtrls;
143  wxStaticText* m_offsetXLabel;
144  wxTextCtrl* m_offsetXCtrl;
145  wxStaticText* m_offsetXUnits;
146  wxStaticText* m_offsetYLabel;
147  wxTextCtrl* m_offsetYCtrl;
148  wxStaticText* m_offsetYUnits;
149  wxCheckBox* m_padToDieOpt;
150  wxStaticText* m_padToDieLabel;
151  wxTextCtrl* m_padToDieCtrl;
152  wxStaticText* m_padToDieUnits;
153  wxBoxSizer* m_middleBoxSizer;
155  wxStaticBitmap* m_FlippedWarningIcon;
156  wxStaticText* m_staticText86;
157  wxStaticText* m_staticText511;
159  wxStaticText* m_techLayersLabel;
160  wxCheckBox* m_PadLayerAdhCmp;
161  wxCheckBox* m_PadLayerAdhCu;
162  wxCheckBox* m_PadLayerPateCmp;
163  wxCheckBox* m_PadLayerPateCu;
164  wxCheckBox* m_PadLayerSilkCmp;
165  wxCheckBox* m_PadLayerSilkCu;
166  wxCheckBox* m_PadLayerMaskCmp;
167  wxCheckBox* m_PadLayerMaskCu;
168  wxCheckBox* m_PadLayerDraft;
169  wxCheckBox* m_PadLayerECO1;
170  wxCheckBox* m_PadLayerECO2;
171  wxStaticText* m_staticTextFabProperty;
175  wxStaticText* m_staticTextInfoNegVal;
176  wxStaticText* m_clearanceLabel;
177  wxTextCtrl* m_clearanceCtrl;
178  wxStaticText* m_clearanceUnits;
179  wxStaticText* m_maskClearanceLabel;
180  wxTextCtrl* m_maskClearanceCtrl;
181  wxStaticText* m_maskClearanceUnits;
182  wxStaticText* m_pasteClearanceLabel;
183  wxTextCtrl* m_pasteClearanceCtrl;
184  wxStaticText* m_pasteClearanceUnits;
185  wxStaticText* m_staticTextRatio;
188  wxSimplebook* m_nonCopperWarningBook;
189  wxStaticText* m_nonCopperNote;
190  wxStaticText* m_staticTextInfoPaste;
191  wxStaticBitmap* m_nonCopperWarningIcon;
192  wxStaticText* m_nonCopperWarningText;
193  wxStaticBoxSizer* m_sbSizerZonesSettings;
194  wxStaticText* m_staticText40;
196  wxStaticText* m_spokeWidthLabel;
197  wxTextCtrl* m_spokeWidthCtrl;
198  wxStaticText* m_spokeWidthUnits;
199  wxStaticText* m_thermalGapLabel;
200  wxTextCtrl* m_thermalGapCtrl;
201  wxStaticText* m_thermalGapUnits;
202  wxStaticText* m_staticTextcps;
208  wxListView* m_listCtrlPrimitives;
209  wxButton* m_buttonAddShape;
210  wxButton* m_buttonEditShape;
211  wxButton* m_buttonDup;
212  wxButton* m_buttonGeometry;
213  wxButton* m_buttonDel;
214  wxStaticText* m_parentInfoLine1;
215  wxStaticText* m_parentInfoLine2;
216  wxBoxSizer* m_padPreviewSizer;
217  wxCheckBox* m_cbShowPadOutline;
218  wxStaticLine* m_staticline13;
219  wxStdDialogButtonSizer* m_sdbSizer;
220  wxButton* m_sdbSizerOK;
221  wxButton* m_sdbSizerCancel;
222 
223  // Virtual event handlers, overide them in your derived class
224  virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
225  virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
226  virtual void PadTypeSelected( wxCommandEvent& event ) { event.Skip(); }
227  virtual void OnValuesChanged( wxCommandEvent& event ) { event.Skip(); }
228  virtual void OnPadShapeSelection( wxCommandEvent& event ) { event.Skip(); }
229  virtual void OnSetLayers( wxCommandEvent& event ) { event.Skip(); }
230  virtual void onCornerSizePercentChange( wxCommandEvent& event ) { event.Skip(); }
231  virtual void onCornerRadiusChange( wxCommandEvent& event ) { event.Skip(); }
232  virtual void PadOrientEvent( wxCommandEvent& event ) { event.Skip(); }
233  virtual void OnDrillShapeSelected( wxCommandEvent& event ) { event.Skip(); }
234  virtual void OnOffsetCheckbox( wxCommandEvent& event ) { event.Skip(); }
235  virtual void OnPadToDieCheckbox( wxCommandEvent& event ) { event.Skip(); }
236  virtual void OnUpdateUINonCopperWarning( wxUpdateUIEvent& event ) { event.Skip(); }
237  virtual void onPrimitiveDClick( wxMouseEvent& event ) { event.Skip(); }
238  virtual void OnPrimitiveSelection( wxListEvent& event ) { event.Skip(); }
239  virtual void onAddPrimitive( wxCommandEvent& event ) { event.Skip(); }
240  virtual void onEditPrimitive( wxCommandEvent& event ) { event.Skip(); }
241  virtual void onDuplicatePrimitive( wxCommandEvent& event ) { event.Skip(); }
242  virtual void onGeometryTransform( wxCommandEvent& event ) { event.Skip(); }
243  virtual void onDeletePrimitive( wxCommandEvent& event ) { event.Skip(); }
244  virtual void onChangePadMode( wxCommandEvent& event ) { event.Skip(); }
245  virtual void OnCancel( wxCommandEvent& event ) { event.Skip(); }
246 
247 
248  public:
249 
250  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 );
252 
253 };
254 
259 {
260  private:
261 
262  protected:
263  wxStaticText* m_staticTextPosStart;
264  wxStaticText* m_startXLabel;
266  wxStaticText* m_startXUnits;
267  wxStaticText* m_startYLabel;
269  wxStaticText* m_startYUnits;
270  wxStaticText* m_staticTextPosCtrl1;
271  wxStaticText* m_ctrl1XLabel;
273  wxStaticText* m_ctrl1XUnits;
274  wxStaticText* m_ctrl1YLabel;
276  wxStaticText* m_ctrl1YUnits;
277  wxStaticText* m_staticTextPosCtrl2;
278  wxStaticText* m_ctrl2XLabel;
280  wxStaticText* m_ctrl2XUnits;
281  wxStaticText* m_ctrl2YLabel;
283  wxStaticText* m_ctrl2YUnits;
284  wxStaticText* m_staticTextPosEnd;
285  wxStaticText* m_endXLabel;
287  wxStaticText* m_endXUnits;
288  wxStaticText* m_endYLabel;
290  wxStaticText* m_endYUnits;
291  wxStaticText* m_radiusLabel;
293  wxStaticText* m_radiusUnits;
294  wxStaticText* m_thicknessLabel;
295  wxTextCtrl* m_thicknessCtrl;
296  wxStaticText* m_thicknessUnits;
297  wxStaticText* m_staticTextInfo;
298  wxStaticLine* m_staticline1;
299  wxStdDialogButtonSizer* m_sdbSizer;
300  wxButton* m_sdbSizerOK;
301  wxButton* m_sdbSizerCancel;
302 
303  public:
304 
305  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 );
307 
308 };
309 
314 {
315  private:
316 
317  protected:
318  wxStaticText* m_staticTextMove;
319  wxStaticText* m_xLabel;
321  wxStaticText* m_xUnits;
322  wxStaticText* m_yLabel;
324  wxStaticText* m_yUnits;
325  wxStaticText* m_rotationLabel;
327  wxStaticText* m_rotationUnits;
328  wxStaticText* m_scaleLabel;
330  wxStaticText* m_staticTextDupCnt;
332  wxStaticLine* m_staticline1;
333  wxStdDialogButtonSizer* m_sdbSizer;
334  wxButton* m_sdbSizerOK;
335  wxButton* m_sdbSizerCancel;
336 
337  public:
338 
339  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 );
341 
342 };
343 
348 {
349  private:
350 
351  protected:
353  wxBitmapButton* m_addButton;
354  wxBitmapButton* m_deleteButton;
355  wxStaticText* m_thicknessLabel;
357  wxStaticText* m_thicknessUnits;
358  wxPanel* m_panelPoly;
359  wxStaticBitmap* m_warningIcon;
360  wxStaticText* m_warningText;
361  wxStaticLine* m_staticline3;
362  wxStaticText* m_statusLine1;
363  wxStaticText* m_statusLine2;
364  wxStdDialogButtonSizer* m_sdbSizer;
365  wxButton* m_sdbSizerOK;
366  wxButton* m_sdbSizerCancel;
367 
368  // Virtual event handlers, overide them in your derived class
369  virtual void onGridSelect( wxGridRangeSelectEvent& event ) { event.Skip(); }
370  virtual void onCellSelect( wxGridEvent& event ) { event.Skip(); }
371  virtual void OnButtonAdd( wxCommandEvent& event ) { event.Skip(); }
372  virtual void OnButtonDelete( wxCommandEvent& event ) { event.Skip(); }
373  virtual void onPaintPolyPanel( wxPaintEvent& event ) { event.Skip(); }
374  virtual void onPolyPanelResize( wxSizeEvent& event ) { event.Skip(); }
375 
376 
377  public:
378 
379  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 );
381 
382 };
383 
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:83
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)
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)
#define _(s)
Definition: 3d_actions.cpp:33
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 onChangePadMode(wxCommandEvent &event)
virtual void OnButtonAdd(wxCommandEvent &event)
virtual void OnCancel(wxCommandEvent &event)
Class DIALOG_PAD_PRIMITIVES_PROPERTIES_BASE.