KiCad PCB EDA Suite
dialog_gendrill_base.cpp
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 #include "dialog_gendrill_base.h"
9 
11 
12 DIALOG_GENDRILL_BASE::DIALOG_GENDRILL_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* bMainSizer;
17  bMainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bupperSizer;
20  bupperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  staticTextOutputDir = new wxStaticText( this, wxID_ANY, _("Output folder:"), wxDefaultPosition, wxDefaultSize, 0 );
23  staticTextOutputDir->Wrap( -1 );
24  bupperSizer->Add( staticTextOutputDir, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 10 );
25 
26  m_outputDirectoryName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
27  m_outputDirectoryName->SetMinSize( wxSize( -1,22 ) );
28 
29  bupperSizer->Add( m_outputDirectoryName, 1, wxALIGN_CENTER_VERTICAL|wxLEFT, 0 );
30 
31  m_browseButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
32  m_browseButton->SetMinSize( wxSize( 30,28 ) );
33 
34  bupperSizer->Add( m_browseButton, 0, wxLEFT|wxRIGHT, 7 );
35 
36 
37  bMainSizer->Add( bupperSizer, 0, wxEXPAND|wxTOP, 10 );
38 
39  wxBoxSizer* bmiddlerSizer;
40  bmiddlerSizer = new wxBoxSizer( wxHORIZONTAL );
41 
42  wxBoxSizer* bMiddleSizer;
43  bMiddleSizer = new wxBoxSizer( wxVERTICAL );
44 
45  wxStaticBoxSizer* sbSizer6;
46  sbSizer6 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Drill File Format") ), wxVERTICAL );
47 
48  m_rbExcellon = new wxRadioButton( sbSizer6->GetStaticBox(), wxID_ANY, _("Excellon"), wxDefaultPosition, wxDefaultSize, 0 );
49  sbSizer6->Add( m_rbExcellon, 0, wxBOTTOM|wxRIGHT, 5 );
50 
51  wxBoxSizer* bSizerExcellonOptions;
52  bSizerExcellonOptions = new wxBoxSizer( wxVERTICAL );
53 
54  m_Check_Mirror = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Mirror Y axis"), wxDefaultPosition, wxDefaultSize, 0 );
55  m_Check_Mirror->SetToolTip( _("Not recommended.\nUsed mostly by users who make the boards themselves.") );
56 
57  bSizerExcellonOptions->Add( m_Check_Mirror, 0, wxLEFT, 5 );
58 
59  m_Check_Minimal = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Minimal header"), wxDefaultPosition, wxDefaultSize, 0 );
60  m_Check_Minimal->SetToolTip( _("Not recommended.\nOnly use it for board houses which do not accept fully featured headers.") );
61 
62  bSizerExcellonOptions->Add( m_Check_Minimal, 0, wxRIGHT|wxLEFT, 5 );
63 
64  m_Check_Merge_PTH_NPTH = new wxCheckBox( sbSizer6->GetStaticBox(), wxID_ANY, _("PTH and NPTH in single file"), wxDefaultPosition, wxDefaultSize, 0 );
65  m_Check_Merge_PTH_NPTH->SetToolTip( _("Not recommended.\nOnly use for board houses which ask for merged PTH and NPTH into a single file.") );
66 
67  bSizerExcellonOptions->Add( m_Check_Merge_PTH_NPTH, 0, wxLEFT, 5 );
68 
69  wxString m_radioBoxOvalHoleModeChoices[] = { _("Use route command (recommended)"), _("Use alternate drill mode") };
70  int m_radioBoxOvalHoleModeNChoices = sizeof( m_radioBoxOvalHoleModeChoices ) / sizeof( wxString );
71  m_radioBoxOvalHoleMode = new wxRadioBox( sbSizer6->GetStaticBox(), wxID_ANY, _("Oval Holes Drill Mode"), wxDefaultPosition, wxDefaultSize, m_radioBoxOvalHoleModeNChoices, m_radioBoxOvalHoleModeChoices, 1, wxRA_SPECIFY_COLS );
72  m_radioBoxOvalHoleMode->SetSelection( 0 );
73  m_radioBoxOvalHoleMode->SetToolTip( _("Oval holes frequently create problems for board houses.\n\"Use route command\" uses the usual G00 route command (recommended)\n \"Use alternate mode\" uses another drill/ route command (G85)\n(Use it only if the recommended command does not work)") );
74 
75  bSizerExcellonOptions->Add( m_radioBoxOvalHoleMode, 0, wxALL|wxEXPAND, 5 );
76 
77 
78  sbSizer6->Add( bSizerExcellonOptions, 1, wxEXPAND|wxLEFT, 12 );
79 
80  m_rbGerberX2 = new wxRadioButton( sbSizer6->GetStaticBox(), wxID_ANY, _("Gerber X2"), wxDefaultPosition, wxDefaultSize, 0 );
81  sbSizer6->Add( m_rbGerberX2, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
82 
83 
84  bMiddleSizer->Add( sbSizer6, 1, wxEXPAND|wxALL, 5 );
85 
86  wxString m_Choice_Drill_MapChoices[] = { _("HPGL"), _("PostScript"), _("Gerber"), _("DXF"), _("SVG"), _("PDF") };
87  int m_Choice_Drill_MapNChoices = sizeof( m_Choice_Drill_MapChoices ) / sizeof( wxString );
88  m_Choice_Drill_Map = new wxRadioBox( this, wxID_ANY, _("Map File Format"), wxDefaultPosition, wxDefaultSize, m_Choice_Drill_MapNChoices, m_Choice_Drill_MapChoices, 1, wxRA_SPECIFY_COLS );
89  m_Choice_Drill_Map->SetSelection( 1 );
90  m_Choice_Drill_Map->SetToolTip( _("Creates a drill map in PS, HPGL or other formats") );
91 
92  bMiddleSizer->Add( m_Choice_Drill_Map, 0, wxALL|wxEXPAND, 5 );
93 
94 
95  bmiddlerSizer->Add( bMiddleSizer, 1, wxEXPAND, 5 );
96 
97  wxBoxSizer* bLeftSizer;
98  bLeftSizer = new wxBoxSizer( wxVERTICAL );
99 
100  wxString m_Choice_Drill_OffsetChoices[] = { _("Absolute"), _("Auxiliary axis") };
101  int m_Choice_Drill_OffsetNChoices = sizeof( m_Choice_Drill_OffsetChoices ) / sizeof( wxString );
102  m_Choice_Drill_Offset = new wxRadioBox( this, wxID_ANY, _("Drill Origin"), wxDefaultPosition, wxDefaultSize, m_Choice_Drill_OffsetNChoices, m_Choice_Drill_OffsetChoices, 1, wxRA_SPECIFY_COLS );
103  m_Choice_Drill_Offset->SetSelection( 0 );
104  m_Choice_Drill_Offset->SetToolTip( _("Choose the coordinate origin: absolute or relative to the auxiliray axis") );
105 
106  bLeftSizer->Add( m_Choice_Drill_Offset, 0, wxALL|wxEXPAND, 5 );
107 
108  wxString m_Choice_UnitChoices[] = { _("Millimeters"), _("Inches") };
109  int m_Choice_UnitNChoices = sizeof( m_Choice_UnitChoices ) / sizeof( wxString );
110  m_Choice_Unit = new wxRadioBox( this, wxID_ANY, _("Drill Units"), wxDefaultPosition, wxDefaultSize, m_Choice_UnitNChoices, m_Choice_UnitChoices, 1, wxRA_SPECIFY_COLS );
111  m_Choice_Unit->SetSelection( 0 );
112  bLeftSizer->Add( m_Choice_Unit, 0, wxALL|wxEXPAND, 5 );
113 
114  wxString m_Choice_Zeros_FormatChoices[] = { _("Decimal format (recommanded)"), _("Suppress leading zeros"), _("Suppress trailing zeros"), _("Keep zeros") };
115  int m_Choice_Zeros_FormatNChoices = sizeof( m_Choice_Zeros_FormatChoices ) / sizeof( wxString );
116  m_Choice_Zeros_Format = new wxRadioBox( this, wxID_ANY, _("Zeros Format"), wxDefaultPosition, wxDefaultSize, m_Choice_Zeros_FormatNChoices, m_Choice_Zeros_FormatChoices, 1, wxRA_SPECIFY_COLS );
117  m_Choice_Zeros_Format->SetSelection( 0 );
118  m_Choice_Zeros_Format->SetToolTip( _("Choose EXCELLON numbers notation") );
119 
120  bLeftSizer->Add( m_Choice_Zeros_Format, 0, wxALL|wxEXPAND, 5 );
121 
122  wxFlexGridSizer* fgSizer1;
123  fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
124  fgSizer1->AddGrowableCol( 1 );
125  fgSizer1->SetFlexibleDirection( wxBOTH );
126  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
127 
128  m_staticTextTitle = new wxStaticText( this, wxID_ANY, _("Precision:"), wxDefaultPosition, wxDefaultSize, 0 );
129  m_staticTextTitle->Wrap( -1 );
130  fgSizer1->Add( m_staticTextTitle, 0, wxALL, 10 );
131 
132  m_staticTextPrecision = new wxStaticText( this, wxID_ANY, _("Precision"), wxDefaultPosition, wxDefaultSize, 0 );
133  m_staticTextPrecision->Wrap( -1 );
134  fgSizer1->Add( m_staticTextPrecision, 0, wxALL, 10 );
135 
136 
137  bLeftSizer->Add( fgSizer1, 0, wxEXPAND, 5 );
138 
139 
140  bmiddlerSizer->Add( bLeftSizer, 1, wxEXPAND, 5 );
141 
142  wxBoxSizer* bRightBoxSizer;
143  bRightBoxSizer = new wxBoxSizer( wxVERTICAL );
144 
145  wxStaticBoxSizer* sbSizerHoles;
146  sbSizerHoles = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Hole Counts") ), wxVERTICAL );
147 
148  wxFlexGridSizer* fgSizer2;
149  fgSizer2 = new wxFlexGridSizer( 0, 2, 0, 0 );
150  fgSizer2->SetFlexibleDirection( wxBOTH );
151  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
152 
153  staticTextPlatedPads = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("Plated pads:"), wxDefaultPosition, wxDefaultSize, 0 );
154  staticTextPlatedPads->Wrap( -1 );
155  fgSizer2->Add( staticTextPlatedPads, 0, wxLEFT|wxRIGHT, 5 );
156 
157  m_PlatedPadsCountInfoMsg = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
158  m_PlatedPadsCountInfoMsg->Wrap( -1 );
159  fgSizer2->Add( m_PlatedPadsCountInfoMsg, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT, 5 );
160 
161  staticTextNonPlatedPads = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("Non-plated pads:"), wxDefaultPosition, wxDefaultSize, 0 );
162  staticTextNonPlatedPads->Wrap( -1 );
163  fgSizer2->Add( staticTextNonPlatedPads, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
164 
165  m_NotPlatedPadsCountInfoMsg = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
166  m_NotPlatedPadsCountInfoMsg->Wrap( -1 );
167  fgSizer2->Add( m_NotPlatedPadsCountInfoMsg, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxTOP, 5 );
168 
169  staticTextThroughVias = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("Through vias:"), wxDefaultPosition, wxDefaultSize, 0 );
170  staticTextThroughVias->Wrap( -1 );
171  fgSizer2->Add( staticTextThroughVias, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
172 
173  m_ThroughViasInfoMsg = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
174  m_ThroughViasInfoMsg->Wrap( -1 );
175  fgSizer2->Add( m_ThroughViasInfoMsg, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxTOP, 5 );
176 
177  staticTextMicroVias = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("Micro vias:"), wxDefaultPosition, wxDefaultSize, 0 );
178  staticTextMicroVias->Wrap( -1 );
179  fgSizer2->Add( staticTextMicroVias, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
180 
181  m_MicroViasInfoMsg = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
182  m_MicroViasInfoMsg->Wrap( -1 );
183  fgSizer2->Add( m_MicroViasInfoMsg, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT|wxTOP, 5 );
184 
185  staticTextBuriedVias = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("Buried vias:"), wxDefaultPosition, wxDefaultSize, 0 );
186  staticTextBuriedVias->Wrap( -1 );
187  fgSizer2->Add( staticTextBuriedVias, 0, wxALL, 5 );
188 
189  m_BuriedViasInfoMsg = new wxStaticText( sbSizerHoles->GetStaticBox(), wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
190  m_BuriedViasInfoMsg->Wrap( -1 );
191  fgSizer2->Add( m_BuriedViasInfoMsg, 0, wxALIGN_RIGHT|wxALL, 5 );
192 
193 
194  sbSizerHoles->Add( fgSizer2, 1, wxEXPAND, 5 );
195 
196 
197  bRightBoxSizer->Add( sbSizerHoles, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
198 
199 
200  bmiddlerSizer->Add( bRightBoxSizer, 1, wxEXPAND|wxTOP, 5 );
201 
202 
203  bMainSizer->Add( bmiddlerSizer, 0, wxEXPAND|wxTOP, 2 );
204 
205  wxStaticBoxSizer* bMsgSizer;
206  bMsgSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Messages") ), wxVERTICAL );
207 
208  m_messagesBox = new wxTextCtrl( bMsgSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
209  m_messagesBox->SetMinSize( wxSize( -1,90 ) );
210 
211  bMsgSizer->Add( m_messagesBox, 1, wxALL|wxEXPAND, 5 );
212 
213 
214  bMainSizer->Add( bMsgSizer, 1, wxALL|wxEXPAND, 5 );
215 
216  m_buttonsSizer = new wxBoxSizer( wxHORIZONTAL );
217 
218  m_buttonReport = new wxButton( this, wxID_ANY, _("Generate Report File..."), wxDefaultPosition, wxDefaultSize, 0 );
219  m_buttonsSizer->Add( m_buttonReport, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
220 
221  m_sdbSizer = new wxStdDialogButtonSizer();
222  m_sdbSizerOK = new wxButton( this, wxID_OK );
223  m_sdbSizer->AddButton( m_sdbSizerOK );
224  m_sdbSizerApply = new wxButton( this, wxID_APPLY );
225  m_sdbSizer->AddButton( m_sdbSizerApply );
226  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
227  m_sdbSizer->AddButton( m_sdbSizerCancel );
228  m_sdbSizer->Realize();
229 
230  m_buttonsSizer->Add( m_sdbSizer, 1, wxEXPAND, 5 );
231 
232 
233  bMainSizer->Add( m_buttonsSizer, 0, wxALL|wxEXPAND, 5 );
234 
235 
236  this->SetSizer( bMainSizer );
237  this->Layout();
238  bMainSizer->Fit( this );
239 
240  this->Centre( wxBOTH );
241 
242  // Connect Events
243  this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GENDRILL_BASE::onCloseDlg ) );
244  m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
245  m_rbExcellon->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::onFileFormatSelection ), NULL, this );
246  m_rbGerberX2->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::onFileFormatSelection ), NULL, this );
247  m_Choice_Unit->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnSelDrillUnitsSelected ), NULL, this );
248  m_Choice_Zeros_Format->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnSelZerosFmtSelected ), NULL, this );
249  m_buttonReport->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnGenReportFile ), NULL, this );
250  m_sdbSizerApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnGenMapFile ), NULL, this );
251  m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::onQuitDlg ), NULL, this );
252  m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnGenDrillFile ), NULL, this );
253 }
254 
256 {
257  // Disconnect Events
258  this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GENDRILL_BASE::onCloseDlg ) );
259  m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
260  m_rbExcellon->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::onFileFormatSelection ), NULL, this );
261  m_rbGerberX2->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::onFileFormatSelection ), NULL, this );
262  m_Choice_Unit->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnSelDrillUnitsSelected ), NULL, this );
263  m_Choice_Zeros_Format->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnSelZerosFmtSelected ), NULL, this );
264  m_buttonReport->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnGenReportFile ), NULL, this );
265  m_sdbSizerApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnGenMapFile ), NULL, this );
266  m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::onQuitDlg ), NULL, this );
267  m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GENDRILL_BASE::OnGenDrillFile ), NULL, this );
268 
269 }
wxStaticText * m_PlatedPadsCountInfoMsg
virtual void OnGenDrillFile(wxCommandEvent &event)
wxRadioBox * m_Choice_Drill_Offset
wxCheckBox * m_Check_Merge_PTH_NPTH
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
virtual void onCloseDlg(wxCloseEvent &event)
wxStaticText * m_NotPlatedPadsCountInfoMsg
wxStaticText * staticTextBuriedVias
wxRadioBox * m_radioBoxOvalHoleMode
wxStaticText * m_MicroViasInfoMsg
wxRadioButton * m_rbExcellon
#define NULL
wxStaticText * m_BuriedViasInfoMsg
wxStaticText * m_ThroughViasInfoMsg
wxStaticText * staticTextNonPlatedPads
wxTextCtrl * m_outputDirectoryName
virtual void onQuitDlg(wxCommandEvent &event)
wxRadioBox * m_Choice_Zeros_Format
virtual void OnOutputDirectoryBrowseClicked(wxCommandEvent &event)
wxStaticText * staticTextThroughVias
wxStaticText * m_staticTextTitle
virtual void OnGenMapFile(wxCommandEvent &event)
wxBitmapButton * m_browseButton
wxStaticText * staticTextPlatedPads
virtual void OnGenReportFile(wxCommandEvent &event)
virtual void OnSelZerosFmtSelected(wxCommandEvent &event)
#define _(s)
Definition: 3d_actions.cpp:31
wxStdDialogButtonSizer * m_sdbSizer
wxStaticText * staticTextOutputDir
wxStaticText * staticTextMicroVias
wxStaticText * m_staticTextPrecision
DIALOG_GENDRILL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Generate Drill Files"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxRadioButton * m_rbGerberX2
virtual void onFileFormatSelection(wxCommandEvent &event)
virtual void OnSelDrillUnitsSelected(wxCommandEvent &event)