KiCad PCB EDA Suite
dialog_pad_properties_base.h
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version v3.8.0)
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/textctrl.h>
24 #include <widgets/net_selector.h>
25 #include <wx/choice.h>
26 #include <wx/combobox.h>
27 #include <wx/checkbox.h>
28 #include <wx/sizer.h>
29 #include <wx/bitmap.h>
30 #include <wx/image.h>
31 #include <wx/icon.h>
32 #include <wx/statbmp.h>
33 #include <wx/statbox.h>
34 #include <wx/panel.h>
35 #include <wx/simplebook.h>
36 #include <wx/listctrl.h>
37 #include <wx/button.h>
38 #include <wx/notebook.h>
39 #include <pcb_base_frame.h>
40 #include <pcb_draw_panel_gal.h>
41 #include <wx/statline.h>
42 #include <wx/dialog.h>
43 #include <wx/spinctrl.h>
44 #include <wx/grid.h>
45 #include <wx/bmpbuttn.h>
46 
48 
53 {
54  private:
55 
56  protected:
57  enum
58  {
61  };
62 
63  wxNotebook* m_notebook;
64  wxPanel* m_panelGeneral;
65  wxStaticText* m_PadNumText;
66  wxTextCtrl* m_PadNumCtrl;
67  wxStaticText* m_PadNameText;
69  wxStaticText* m_staticText44;
70  wxChoice* m_PadType;
71  wxStaticText* m_staticText45;
72  wxChoice* m_PadShape;
73  wxStaticText* m_posXLabel;
74  wxTextCtrl* m_posXCtrl;
75  wxStaticText* m_posXUnits;
76  wxStaticText* m_posYLabel;
77  wxTextCtrl* m_posYCtrl;
78  wxStaticText* m_posYUnits;
79  wxStaticText* m_sizeXLabel;
80  wxTextCtrl* m_sizeXCtrl;
81  wxStaticText* m_sizeXUnits;
82  wxStaticText* m_sizeYLabel;
83  wxTextCtrl* m_sizeYCtrl;
84  wxStaticText* m_sizeYUnits;
85  wxStaticText* m_PadOrientText;
86  wxComboBox* m_orientation;
87  wxStaticText* m_staticText491;
88  wxStaticText* m_offsetXLabel;
89  wxTextCtrl* m_offsetXCtrl;
90  wxStaticText* m_offsetXUnits;
91  wxStaticText* m_offsetYLabel;
92  wxTextCtrl* m_offsetYCtrl;
93  wxStaticText* m_offsetYUnits;
94  wxStaticText* m_trapDeltaLabel;
95  wxTextCtrl* m_trapDeltaCtrl;
96  wxStaticText* m_trapDeltaUnits;
97  wxStaticText* m_trapAxisLabel;
98  wxChoice* m_trapAxisCtrl;
102  wxStaticText* m_cornerRadiusLabel;
103  wxTextCtrl* m_tcCornerRadius;
104  wxStaticText* m_cornerRadiusUnits;
109  wxCheckBox* m_cbTopLeft;
110  wxCheckBox* m_cbTopRight;
111  wxCheckBox* m_cbBottomLeft;
112  wxCheckBox* m_cbBottomRight;
113  wxBoxSizer* m_middleBoxSizer;
114  wxStaticText* m_holeShapeLabel;
115  wxChoice* m_holeShapeCtrl;
116  wxStaticText* m_staticText51;
117  wxStaticText* m_holeXLabel;
118  wxTextCtrl* m_holeXCtrl;
119  wxStaticText* m_holeXUnits;
120  wxStaticText* m_holeYLabel;
121  wxTextCtrl* m_holeYCtrl;
122  wxStaticText* m_holeYUnits;
123  wxStaticText* m_padToDieLabel;
124  wxTextCtrl* m_padToDieCtrl;
125  wxStaticText* m_padToDieUnits;
127  wxStaticBitmap* m_FlippedWarningIcon;
128  wxStaticText* m_staticText86;
129  wxStaticText* m_staticText511;
131  wxStaticText* m_techLayersLabel;
132  wxCheckBox* m_PadLayerAdhCmp;
133  wxCheckBox* m_PadLayerAdhCu;
134  wxCheckBox* m_PadLayerPateCmp;
135  wxCheckBox* m_PadLayerPateCu;
136  wxCheckBox* m_PadLayerSilkCmp;
137  wxCheckBox* m_PadLayerSilkCu;
138  wxCheckBox* m_PadLayerMaskCmp;
139  wxCheckBox* m_PadLayerMaskCu;
140  wxCheckBox* m_PadLayerDraft;
141  wxCheckBox* m_PadLayerECO1;
142  wxCheckBox* m_PadLayerECO2;
143  wxStaticText* m_staticTextFabProperty;
147  wxStaticText* m_staticTextInfoNegVal;
148  wxStaticText* m_clearanceLabel;
149  wxTextCtrl* m_clearanceCtrl;
150  wxStaticText* m_clearanceUnits;
151  wxStaticText* m_maskClearanceLabel;
152  wxTextCtrl* m_maskClearanceCtrl;
153  wxStaticText* m_maskClearanceUnits;
154  wxStaticText* m_pasteClearanceLabel;
155  wxTextCtrl* m_pasteClearanceCtrl;
156  wxStaticText* m_pasteClearanceUnits;
157  wxStaticText* m_staticTextRatio;
160  wxSimplebook* m_nonCopperWarningBook;
161  wxStaticText* m_nonCopperNote;
162  wxStaticText* m_staticTextInfoPaste;
163  wxStaticBitmap* m_nonCopperWarningIcon;
164  wxStaticText* m_nonCopperWarningText;
165  wxStaticBoxSizer* m_sbSizerZonesSettings;
166  wxStaticText* m_staticText40;
168  wxStaticText* m_spokeWidthLabel;
169  wxTextCtrl* m_spokeWidthCtrl;
170  wxStaticText* m_spokeWidthUnits;
171  wxStaticText* m_thermalGapLabel;
172  wxTextCtrl* m_thermalGapCtrl;
173  wxStaticText* m_thermalGapUnits;
174  wxStaticText* m_staticTextcps;
180  wxListView* m_listCtrlPrimitives;
181  wxButton* m_buttonDel;
182  wxButton* m_buttonEditShape;
183  wxButton* m_buttonAddShape;
184  wxButton* m_buttonDup;
185  wxButton* m_buttonGeometry;
186  wxStaticText* m_parentInfoLine1;
187  wxStaticText* m_parentInfoLine2;
188  wxPanel* m_panelShowPad;
191  wxCheckBox* m_cbShowPadOutline;
192  wxStaticLine* m_staticline13;
193  wxStdDialogButtonSizer* m_sdbSizer;
194  wxButton* m_sdbSizerOK;
195  wxButton* m_sdbSizerCancel;
196 
197  // Virtual event handlers, overide them in your derived class
198  virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
199  virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
200  virtual void OnValuesChanged( wxCommandEvent& event ) { event.Skip(); }
201  virtual void PadTypeSelected( wxCommandEvent& event ) { event.Skip(); }
202  virtual void OnPadShapeSelection( wxCommandEvent& event ) { event.Skip(); }
203  virtual void PadOrientEvent( wxCommandEvent& event ) { event.Skip(); }
204  virtual void OnSetLayers( wxCommandEvent& event ) { event.Skip(); }
205  virtual void onCornerSizePercentChange( wxCommandEvent& event ) { event.Skip(); }
206  virtual void onCornerRadiusChange( wxCommandEvent& event ) { event.Skip(); }
207  virtual void OnDrillShapeSelected( wxCommandEvent& event ) { event.Skip(); }
208  virtual void OnUpdateUINonCopperWarning( wxUpdateUIEvent& event ) { event.Skip(); }
209  virtual void onPrimitiveDClick( wxMouseEvent& event ) { event.Skip(); }
210  virtual void OnPrimitiveSelection( wxListEvent& event ) { event.Skip(); }
211  virtual void onDeletePrimitive( wxCommandEvent& event ) { event.Skip(); }
212  virtual void onEditPrimitive( wxCommandEvent& event ) { event.Skip(); }
213  virtual void onAddPrimitive( wxCommandEvent& event ) { event.Skip(); }
214  virtual void onDuplicatePrimitive( wxCommandEvent& event ) { event.Skip(); }
215  virtual void onGeometryTransform( wxCommandEvent& event ) { event.Skip(); }
216  virtual void OnPaintShowPanel( wxPaintEvent& event ) { event.Skip(); }
217  virtual void onChangePadMode( wxCommandEvent& event ) { event.Skip(); }
218  virtual void OnCancel( wxCommandEvent& event ) { event.Skip(); }
219 
220 
221  public:
222 
223  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( 764,581 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
225 
226 };
227 
232 {
233  private:
234 
235  protected:
236  wxStaticText* m_staticTextPosStart;
237  wxStaticText* m_startXLabel;
239  wxStaticText* m_startXUnits;
240  wxStaticText* m_startYLabel;
242  wxStaticText* m_startYUnits;
243  wxStaticText* m_staticTextPosCtrl1;
244  wxStaticText* m_ctrl1XLabel;
246  wxStaticText* m_ctrl1XUnits;
247  wxStaticText* m_ctrl1YLabel;
249  wxStaticText* m_ctrl1YUnits;
250  wxStaticText* m_staticTextPosCtrl2;
251  wxStaticText* m_ctrl2XLabel;
253  wxStaticText* m_ctrl2XUnits;
254  wxStaticText* m_ctrl2YLabel;
256  wxStaticText* m_ctrl2YUnits;
257  wxStaticText* m_staticTextPosEnd;
258  wxStaticText* m_endXLabel;
260  wxStaticText* m_endXUnits;
261  wxStaticText* m_endYLabel;
263  wxStaticText* m_endYUnits;
264  wxStaticText* m_radiusLabel;
266  wxStaticText* m_radiusUnits;
267  wxStaticText* m_thicknessLabel;
268  wxTextCtrl* m_thicknessCtrl;
269  wxStaticText* m_thicknessUnits;
270  wxStaticText* m_staticTextInfo;
271  wxStaticLine* m_staticline1;
272  wxStdDialogButtonSizer* m_sdbSizer;
273  wxButton* m_sdbSizerOK;
274  wxButton* m_sdbSizerCancel;
275 
276  public:
277 
278  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 );
280 
281 };
282 
287 {
288  private:
289 
290  protected:
291  wxStaticText* m_staticTextMove;
292  wxStaticText* m_xLabel;
294  wxStaticText* m_xUnits;
295  wxStaticText* m_yLabel;
297  wxStaticText* m_yUnits;
298  wxStaticText* m_rotationLabel;
300  wxStaticText* m_rotationUnits;
301  wxStaticText* m_scaleLabel;
303  wxStaticText* m_staticTextDupCnt;
305  wxStaticLine* m_staticline1;
306  wxStdDialogButtonSizer* m_sdbSizer;
307  wxButton* m_sdbSizerOK;
308  wxButton* m_sdbSizerCancel;
309 
310  public:
311 
312  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 );
314 
315 };
316 
321 {
322  private:
323 
324  protected:
326  wxBitmapButton* m_addButton;
327  wxBitmapButton* m_deleteButton;
328  wxStaticText* m_thicknessLabel;
330  wxStaticText* m_thicknessUnits;
331  wxPanel* m_panelPoly;
332  wxStaticBitmap* m_warningIcon;
333  wxStaticText* m_warningText;
334  wxStaticLine* m_staticline3;
335  wxStaticText* m_statusLine1;
336  wxStaticText* m_statusLine2;
337  wxStdDialogButtonSizer* m_sdbSizer;
338  wxButton* m_sdbSizerOK;
339  wxButton* m_sdbSizerCancel;
340 
341  // Virtual event handlers, overide them in your derived class
342  virtual void onGridSelect( wxGridRangeSelectEvent& event ) { event.Skip(); }
343  virtual void onCellSelect( wxGridEvent& event ) { event.Skip(); }
344  virtual void OnButtonAdd( wxCommandEvent& event ) { event.Skip(); }
345  virtual void OnButtonDelete( wxCommandEvent& event ) { event.Skip(); }
346  virtual void onPaintPolyPanel( wxPaintEvent& event ) { event.Skip(); }
347  virtual void onPolyPanelResize( wxSizeEvent& event ) { event.Skip(); }
348 
349 
350  public:
351 
352  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 );
354 
355 };
356 
virtual void onPrimitiveDClick(wxMouseEvent &event)
KIGFX::GAL_DISPLAY_OPTIONS m_galOptions
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 OnPaintShowPanel(wxPaintEvent &event)
virtual void onGridSelect(wxGridRangeSelectEvent &event)
virtual void onCellSelect(wxGridEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
virtual void OnValuesChanged(wxCommandEvent &event)
virtual void OnPrimitiveSelection(wxListEvent &event)
virtual void OnInitDialog(wxInitDialogEvent &event)
Classes used in Pcbnew, CvPcb and GerbView.
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_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)
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(764, 581), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnButtonAdd(wxCommandEvent &event)
virtual void OnCancel(wxCommandEvent &event)
Class DIALOG_PAD_PRIMITIVES_PROPERTIES_BASE.