17 DIALOG_PADS_MASK_CLEARANCE_BASE::
DIALOG_PADS_MASK_CLEARANCE_BASE( wxWindow* parent, wxWindowID
id, const wxString& title, const
wxPoint& pos, const wxSize& size,
long style ) :
DIALOG_SHIM( parent,
id, title, pos, size, style )
19 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
21 wxBoxSizer* bMainSizer;
22 bMainSizer =
new wxBoxSizer( wxVERTICAL );
24 wxBoxSizer* bMainUpperSizer;
25 bMainUpperSizer =
new wxBoxSizer( wxVERTICAL );
27 m_staticTextInfo =
new wxStaticText(
this, wxID_ANY, _(
"Note: for clearance values:\n- a positive value means a mask bigger than a pad\n- a negative value means a mask smaller than a pad\n"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticTextInfo->Wrap( -1 );
29 bMainUpperSizer->Add( m_staticTextInfo, 0, wxALIGN_CENTER_HORIZONTAL|wxTOP|wxRIGHT|wxLEFT, 5 );
31 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
32 bMainUpperSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
34 wxFlexGridSizer* fgGridSolderMaskSizer;
35 fgGridSolderMaskSizer =
new wxFlexGridSizer( 0, 3, 0, 0 );
36 fgGridSolderMaskSizer->AddGrowableCol( 1 );
37 fgGridSolderMaskSizer->SetFlexibleDirection( wxBOTH );
38 fgGridSolderMaskSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
40 m_MaskClearanceTitle =
new wxStaticText(
this, wxID_ANY, _(
"Solder mask clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_MaskClearanceTitle->Wrap( -1 );
42 m_MaskClearanceTitle->SetToolTip( _(
"This is the global clearance between pads and the solder mask\nThis value can be superseded by local values for a footprint or a pad.") );
44 fgGridSolderMaskSizer->Add( m_MaskClearanceTitle, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
46 m_SolderMaskMarginCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 fgGridSolderMaskSizer->Add( m_SolderMaskMarginCtrl, 0, wxEXPAND|wxALL, 5 );
49 m_SolderMaskMarginUnits =
new wxStaticText(
this, wxID_ANY, _(
"Inch"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_SolderMaskMarginUnits->Wrap( -1 );
51 fgGridSolderMaskSizer->Add( m_SolderMaskMarginUnits, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
53 m_staticTextMinWidth =
new wxStaticText(
this, wxID_ANY, _(
"Solder mask min width:"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_staticTextMinWidth->Wrap( -1 );
55 m_staticTextMinWidth->SetToolTip( _(
"Min dist between 2 pad areas.\nTwo pad areas nearer than this value will be merged during plotting.\nThis parameter is used only to plot solder mask layers.") );
57 fgGridSolderMaskSizer->Add( m_staticTextMinWidth, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
59 m_SolderMaskMinWidthCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
60 fgGridSolderMaskSizer->Add( m_SolderMaskMinWidthCtrl, 0, wxALL|wxEXPAND, 5 );
62 m_solderMaskMinWidthUnit =
new wxStaticText(
this, wxID_ANY, _(
"Inch"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_solderMaskMinWidthUnit->Wrap( -1 );
64 fgGridSolderMaskSizer->Add( m_solderMaskMinWidthUnit, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
66 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
67 fgGridSolderMaskSizer->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
69 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
70 fgGridSolderMaskSizer->Add( m_staticline4, 0, wxEXPAND | wxALL, 5 );
72 m_staticline5 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
73 fgGridSolderMaskSizer->Add( m_staticline5, 0, wxEXPAND | wxALL, 5 );
75 m_staticTextSolderPaste =
new wxStaticText(
this, wxID_ANY, _(
"Solder paste clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_staticTextSolderPaste->Wrap( -1 );
77 m_staticTextSolderPaste->SetToolTip( _(
"This is the global clearance between pads and the solder paste\nThis value can be superseded by local values for a footprint or a pad.\nThe final clearance value is the sum of this value and the clearance value ratio") );
79 fgGridSolderMaskSizer->Add( m_staticTextSolderPaste, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
81 m_SolderPasteMarginCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
82 fgGridSolderMaskSizer->Add( m_SolderPasteMarginCtrl, 0, wxALL|wxEXPAND, 5 );
84 m_SolderPasteMarginUnits =
new wxStaticText(
this, wxID_ANY, _(
"Inch"), wxDefaultPosition, wxDefaultSize, 0 );
85 m_SolderPasteMarginUnits->Wrap( -1 );
86 fgGridSolderMaskSizer->Add( m_SolderPasteMarginUnits, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
88 m_staticTextRatio =
new wxStaticText(
this, wxID_ANY, _(
"Solder paste ratio clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_staticTextRatio->Wrap( -1 );
90 m_staticTextRatio->SetToolTip( _(
"This is the global clearance ratio in per cent between pads and the solder paste\nA value of 10 means the clearance value is 10 per cent of the pad size\nThis value can be superseded by local values for a footprint or a pad.\nThe final clearance value is the sum of this value and the clearance value") );
92 fgGridSolderMaskSizer->Add( m_staticTextRatio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
94 m_SolderPasteMarginRatioCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
95 fgGridSolderMaskSizer->Add( m_SolderPasteMarginRatioCtrl, 0, wxALL|wxEXPAND, 5 );
97 m_SolderPasteRatioMarginUnits =
new wxStaticText(
this, wxID_ANY, _(
"%"), wxDefaultPosition, wxDefaultSize, 0 );
98 m_SolderPasteRatioMarginUnits->Wrap( -1 );
99 fgGridSolderMaskSizer->Add( m_SolderPasteRatioMarginUnits, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
102 bMainUpperSizer->Add( fgGridSolderMaskSizer, 1, wxEXPAND, 5 );
104 m_staticline11 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
105 bMainUpperSizer->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
108 bMainSizer->Add( bMainUpperSizer, 1, wxEXPAND, 5 );
110 m_sdbButtonsSizer =
new wxStdDialogButtonSizer();
111 m_sdbButtonsSizerOK =
new wxButton(
this, wxID_OK );
112 m_sdbButtonsSizer->AddButton( m_sdbButtonsSizerOK );
113 m_sdbButtonsSizerCancel =
new wxButton(
this, wxID_CANCEL );
114 m_sdbButtonsSizer->AddButton( m_sdbButtonsSizerCancel );
115 m_sdbButtonsSizer->Realize();
117 bMainSizer->Add( m_sdbButtonsSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
120 this->SetSizer( bMainSizer );
122 bMainSizer->Fit(
this );
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Class DIALOG_PADS_MASK_CLEARANCE_BASE.
~DIALOG_PADS_MASK_CLEARANCE_BASE()