KiCad PCB EDA Suite
dialog_board_reannotate_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14DIALOG_BOARD_REANNOTATE_BASE::DIALOG_BOARD_REANNOTATE_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bmainSizer;
19 bmainSizer = new wxBoxSizer( wxVERTICAL );
20
21 wxBoxSizer* bupperSizer;
22 bupperSizer = new wxBoxSizer( wxVERTICAL );
23
24 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
25 m_StandardOptions = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
26 wxBoxSizer* bSizerOpts;
27 bSizerOpts = new wxBoxSizer( wxVERTICAL );
28
29 wxStaticBoxSizer* sbSizerFpOrder;
30 sbSizerFpOrder = new wxStaticBoxSizer( new wxStaticBox( m_StandardOptions, wxID_ANY, _("Footprint Order") ), wxVERTICAL );
31
32 wxFlexGridSizer* fgSizerButtons;
33 fgSizerButtons = new wxFlexGridSizer( 2, 11, 0, 0 );
34 fgSizerButtons->AddGrowableCol( 2 );
35 fgSizerButtons->AddGrowableCol( 5 );
36 fgSizerButtons->AddGrowableCol( 8 );
37 fgSizerButtons->SetFlexibleDirection( wxBOTH );
38 fgSizerButtons->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
39
40 m_Down_Right = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41 m_Down_Right->SetValue( true );
42 fgSizerButtons->Add( m_Down_Right, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
43
44 reannotate_down_right_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
45 reannotate_down_right_bitmap->SetToolTip( _("Horizontally: top left to bottom right") );
46
47 fgSizerButtons->Add( reannotate_down_right_bitmap, 0, wxALL, 5 );
48
49
50 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
51
52 m_Right_Down = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
53 fgSizerButtons->Add( m_Right_Down, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
54
55 reannotate_right_down_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
56 reannotate_right_down_bitmap->SetToolTip( _("Horizontally: top right to bottom left") );
57
58 fgSizerButtons->Add( reannotate_right_down_bitmap, 0, wxALL, 5 );
59
60
61 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
62
63 m_Down_Left = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64 fgSizerButtons->Add( m_Down_Left, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
65
66 reannotate_down_left_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
67 reannotate_down_left_bitmap->SetToolTip( _("Horizontally: bottom left to top right") );
68
69 fgSizerButtons->Add( reannotate_down_left_bitmap, 0, wxALL, 5 );
70
71
72 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
73
74 m_Left_Down = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
75 fgSizerButtons->Add( m_Left_Down, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
76
77 reannotate_left_down_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
78 reannotate_left_down_bitmap->SetToolTip( _("Horizontally:: bottom right to top left") );
79
80 fgSizerButtons->Add( reannotate_left_down_bitmap, 0, wxALL, 5 );
81
82 m_Up_Right = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
83 fgSizerButtons->Add( m_Up_Right, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
84
85 reannotate_up_right_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
86 reannotate_up_right_bitmap->SetToolTip( _("Vertically: top left to bottom right") );
87
88 fgSizerButtons->Add( reannotate_up_right_bitmap, 0, wxALL, 5 );
89
90
91 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
92
93 m_Right_Up = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
94 fgSizerButtons->Add( m_Right_Up, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
95
96 reannotate_right_up_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
97 reannotate_right_up_bitmap->SetToolTip( _("Vertically: top right to bottom left") );
98
99 fgSizerButtons->Add( reannotate_right_up_bitmap, 0, wxALL, 5 );
100
101
102 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
103
104 m_Up_Left = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
105 fgSizerButtons->Add( m_Up_Left, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
106
107 reannotate_up_left_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
108 reannotate_up_left_bitmap->SetToolTip( _("Vertically: bottom left to top right") );
109
110 fgSizerButtons->Add( reannotate_up_left_bitmap, 0, wxALL, 5 );
111
112
113 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
114
115 m_Left_Up = new wxRadioButton( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
116 fgSizerButtons->Add( m_Left_Up, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
117
118 reannotate_left_up_bitmap = new wxStaticBitmap( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 48,48 ), 0 );
119 reannotate_left_up_bitmap->SetToolTip( _("Vertically: bottom right to top left") );
120
121 fgSizerButtons->Add( reannotate_left_up_bitmap, 0, wxALL, 5 );
122
123
124 sbSizerFpOrder->Add( fgSizerButtons, 1, wxEXPAND, 5 );
125
126 wxFlexGridSizer* fgSizerLocations;
127 fgSizerLocations = new wxFlexGridSizer( 0, 2, 0, 0 );
128 fgSizerLocations->AddGrowableCol( 1 );
129 fgSizerLocations->SetFlexibleDirection( wxBOTH );
130 fgSizerLocations->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
131
132 m_staticText9 = new wxStaticText( sbSizerFpOrder->GetStaticBox(), wxID_ANY, _("Based on location of:"), wxDefaultPosition, wxDefaultSize, 0 );
133 m_staticText9->Wrap( -1 );
134 fgSizerLocations->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
135
136 wxString m_locationChoiceChoices[] = { _("Footprint"), _("Reference Designator") };
137 int m_locationChoiceNChoices = sizeof( m_locationChoiceChoices ) / sizeof( wxString );
138 m_locationChoice = new wxChoice( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_locationChoiceNChoices, m_locationChoiceChoices, 0 );
139 m_locationChoice->SetSelection( 0 );
140 fgSizerLocations->Add( m_locationChoice, 0, wxALL|wxEXPAND, 5 );
141
142 m_SortGridText = new wxStaticText( sbSizerFpOrder->GetStaticBox(), wxID_ANY, _("Round locations to:"), wxDefaultPosition, wxDefaultSize, 0 );
143 m_SortGridText->Wrap( -1 );
144 m_SortGridText->SetToolTip( _("Component position will be rounded\nto this grid before sorting.\nThis helps with misaligned parts.") );
145
146 fgSizerLocations->Add( m_SortGridText, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
147
148 wxArrayString m_GridChoiceChoices;
149 m_GridChoice = new wxChoice( sbSizerFpOrder->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_GridChoiceChoices, 0 );
150 m_GridChoice->SetSelection( 0 );
151 m_GridChoice->SetToolTip( _("Component position will be rounded\nto this grid before sorting.\nThis helps with misaligned parts.") );
152 m_GridChoice->SetMinSize( wxSize( 150,-1 ) );
153
154 fgSizerLocations->Add( m_GridChoice, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
155
156
157 sbSizerFpOrder->Add( fgSizerLocations, 0, wxEXPAND|wxTOP, 5 );
158
159
160 bSizerOpts->Add( sbSizerFpOrder, 0, wxALL|wxEXPAND, 5 );
161
162 wxStaticBoxSizer* sbSizeScope;
163 sbSizeScope = new wxStaticBoxSizer( new wxStaticBox( m_StandardOptions, wxID_ANY, _("Reannotation Scope") ), wxVERTICAL );
164
165 wxFlexGridSizer* fgSizer6111;
166 fgSizer6111 = new wxFlexGridSizer( 0, 5, 0, 0 );
167 fgSizer6111->SetFlexibleDirection( wxVERTICAL );
168 fgSizer6111->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
169
170 AnnotateLabel = new wxStaticText( sbSizeScope->GetStaticBox(), wxID_ANY, _("Reannotate:"), wxDefaultPosition, wxDefaultSize, 0 );
171 AnnotateLabel->Wrap( -1 );
172 fgSizer6111->Add( AnnotateLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
173
174 m_AnnotateAll = new wxRadioButton( sbSizeScope->GetStaticBox(), wxID_ANY, _("All"), wxDefaultPosition, wxDefaultSize, 0 );
175 m_AnnotateAll->SetValue( true );
176 fgSizer6111->Add( m_AnnotateAll, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
177
178 m_AnnotateFront = new wxRadioButton( sbSizeScope->GetStaticBox(), wxID_ANY, _("Front"), wxDefaultPosition, wxDefaultSize, 0 );
179 fgSizer6111->Add( m_AnnotateFront, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
180
181 m_AnnotateBack = new wxRadioButton( sbSizeScope->GetStaticBox(), wxID_ANY, _("Back"), wxDefaultPosition, wxDefaultSize, 0 );
182 fgSizer6111->Add( m_AnnotateBack, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
183
184 m_AnnotateSelection = new wxRadioButton( sbSizeScope->GetStaticBox(), wxID_ANY, _("Selection"), wxDefaultPosition, wxDefaultSize, 0 );
185 fgSizer6111->Add( m_AnnotateSelection, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
186
187
188 sbSizeScope->Add( fgSizer6111, 0, wxBOTTOM|wxTOP, 5 );
189
190
191 bSizerOpts->Add( sbSizeScope, 0, wxALL|wxEXPAND, 5 );
192
193
194 m_StandardOptions->SetSizer( bSizerOpts );
195 m_StandardOptions->Layout();
196 bSizerOpts->Fit( m_StandardOptions );
197 m_notebook->AddPage( m_StandardOptions, _("Options"), true );
198 m_Advanced = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
199 wxBoxSizer* bSizerDesignatorOpts;
200 bSizerDesignatorOpts = new wxBoxSizer( wxHORIZONTAL );
201
202 wxGridBagSizer* gbSizer1;
203 gbSizer1 = new wxGridBagSizer( 0, 0 );
204 gbSizer1->SetFlexibleDirection( wxBOTH );
205 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
206 gbSizer1->SetEmptyCellSize( wxSize( 20,-1 ) );
207
208 m_FrontRefDesStartText = new wxStaticText( m_Advanced, wxID_ANY, _("Front reference start:"), wxDefaultPosition, wxDefaultSize, 0 );
209 m_FrontRefDesStartText->Wrap( -1 );
210 m_FrontRefDesStartText->SetToolTip( _("Starting reference designation for front.") );
211
212 gbSizer1->Add( m_FrontRefDesStartText, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
213
214 m_FrontRefDesStart = new wxTextCtrl( m_Advanced, wxID_ANY, _("1"), wxDefaultPosition, wxDefaultSize, 0 );
215 m_FrontRefDesStart->SetToolTip( _("Default is 1") );
216 m_FrontRefDesStart->SetMinSize( wxSize( 100,-1 ) );
217
218 gbSizer1->Add( m_FrontRefDesStart, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
219
220 m_BottomRefDesStartText = new wxStaticText( m_Advanced, wxID_ANY, _("Back reference start:"), wxDefaultPosition, wxDefaultSize, 0 );
221 m_BottomRefDesStartText->Wrap( -1 );
222 m_BottomRefDesStartText->SetToolTip( _("Blank continues from front or enter a number greater than the highest reference designation on the front.") );
223
224 gbSizer1->Add( m_BottomRefDesStartText, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
225
226 m_BackRefDesStart = new wxTextCtrl( m_Advanced, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
227 m_BackRefDesStart->SetToolTip( _("Leave blank or zero, or enter a number greater than the highest reference designation on the front.") );
228 m_BackRefDesStart->SetMinSize( wxSize( 100,-1 ) );
229
230 gbSizer1->Add( m_BackRefDesStart, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
231
232 m_RemoveFrontPrefix = new wxCheckBox( m_Advanced, wxID_ANY, _("Remove front prefix"), wxDefaultPosition, wxDefaultSize, 0 );
233 m_RemoveFrontPrefix->SetToolTip( _("If checked will remove the front side prefix\nin the front prefix box if present") );
234
235 gbSizer1->Add( m_RemoveFrontPrefix, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
236
237 m_RemoveBackPrefix = new wxCheckBox( m_Advanced, wxID_ANY, _("Remove back prefix"), wxDefaultPosition, wxDefaultSize, 0 );
238 m_RemoveBackPrefix->SetToolTip( _("If checked will remove the Back side prefix\nin the back prefix box if present") );
239
240 gbSizer1->Add( m_RemoveBackPrefix, wxGBPosition( 2, 3 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
241
242 m_FrontPrefixText = new wxStaticText( m_Advanced, wxID_ANY, _("Front prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
243 m_FrontPrefixText->Wrap( -1 );
244 m_FrontPrefixText->SetToolTip( _("Optional prefix for component side reference designations (e.g. F_)") );
245
246 gbSizer1->Add( m_FrontPrefixText, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
247
248 m_FrontPrefix = new wxTextCtrl( m_Advanced, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
249 m_FrontPrefix->SetToolTip( _("Optional prefix for component side reference designations (e.g. F_)") );
250
251 gbSizer1->Add( m_FrontPrefix, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
252
253 m_BackPrefixText = new wxStaticText( m_Advanced, wxID_ANY, _("Back prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
254 m_BackPrefixText->Wrap( -1 );
255 m_BackPrefixText->SetToolTip( _("Optional prefix for solder side reference designations (e.g. B_)") );
256
257 gbSizer1->Add( m_BackPrefixText, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
258
259 m_BackPrefix = new wxTextCtrl( m_Advanced, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
260 m_BackPrefix->SetToolTip( _("Optional prefix for solder side reference designations (e.g. B_)") );
261
262 gbSizer1->Add( m_BackPrefix, wxGBPosition( 1, 4 ), wxGBSpan( 1, 1 ), wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
263
264 m_ExcludeLocked = new wxCheckBox( m_Advanced, wxID_ANY, _("Exclude locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
265 m_ExcludeLocked->SetToolTip( _("Locked footprints will not be reannotated") );
266
267 gbSizer1->Add( m_ExcludeLocked, wxGBPosition( 4, 0 ), wxGBSpan( 1, 5 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
268
269 m_ExcludeListText = new wxStaticText( m_Advanced, wxID_ANY, _("Exclude references:"), wxDefaultPosition, wxDefaultSize, 0 );
270 m_ExcludeListText->Wrap( -1 );
271 m_ExcludeListText->SetToolTip( _("Do not re-annotate this type \nof reference (R means R*)") );
272
273 gbSizer1->Add( m_ExcludeListText, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
274
275 m_ExcludeList = new wxTextCtrl( m_Advanced, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
276 gbSizer1->Add( m_ExcludeList, wxGBPosition( 5, 1 ), wxGBSpan( 1, 4 ), wxEXPAND|wxLEFT|wxRIGHT, 5 );
277
278
279 gbSizer1->AddGrowableCol( 1 );
280 gbSizer1->AddGrowableCol( 2 );
281 gbSizer1->AddGrowableCol( 3 );
282 gbSizer1->AddGrowableCol( 4 );
283
284 bSizerDesignatorOpts->Add( gbSizer1, 1, wxALL|wxEXPAND, 5 );
285
286
287 m_Advanced->SetSizer( bSizerDesignatorOpts );
288 m_Advanced->Layout();
289 bSizerDesignatorOpts->Fit( m_Advanced );
290 m_notebook->AddPage( m_Advanced, _("Reference Designators"), false );
291
292 bupperSizer->Add( m_notebook, 0, wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
293
294 wxBoxSizer* bSizerMessages;
295 bSizerMessages = new wxBoxSizer( wxVERTICAL );
296
297 m_MessageWindow = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
298 m_MessageWindow->SetMinSize( wxSize( -1,150 ) );
299
300 bSizerMessages->Add( m_MessageWindow, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
301
302
303 bupperSizer->Add( bSizerMessages, 1, wxALL|wxEXPAND, 5 );
304
305
306 bmainSizer->Add( bupperSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 6 );
307
308 wxBoxSizer* m_buttonsSizer;
309 m_buttonsSizer = new wxBoxSizer( wxHORIZONTAL );
310
311 m_sdbSizer = new wxStdDialogButtonSizer();
312 m_sdbSizerOK = new wxButton( this, wxID_OK );
313 m_sdbSizer->AddButton( m_sdbSizerOK );
314 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
315 m_sdbSizer->AddButton( m_sdbSizerCancel );
316 m_sdbSizer->Realize();
317
318 m_buttonsSizer->Add( m_sdbSizer, 1, wxALL|wxEXPAND, 5 );
319
320
321 bmainSizer->Add( m_buttonsSizer, 0, wxEXPAND|wxLEFT, 5 );
322
323
324 this->SetSizer( bmainSizer );
325 this->Layout();
326 bmainSizer->Fit( this );
327
328 // Connect Events
329 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnClose ) );
330 m_FrontPrefix->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::FilterFrontPrefix ), NULL, this );
331 m_BackPrefix->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::FilterBackPrefix ), NULL, this );
332 m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnCloseClick ), NULL, this );
333 m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnApplyClick ), NULL, this );
334}
335
337{
338 // Disconnect Events
339 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnClose ) );
340 m_FrontPrefix->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::FilterFrontPrefix ), NULL, this );
341 m_BackPrefix->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::FilterBackPrefix ), NULL, this );
342 m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnCloseClick ), NULL, this );
343 m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_BOARD_REANNOTATE_BASE::OnApplyClick ), NULL, this );
344
345}
DIALOG_BOARD_REANNOTATE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Geographical Reannotation"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnApplyClick(wxCommandEvent &event)
virtual void OnCloseClick(wxCommandEvent &event)
virtual void FilterBackPrefix(wxCommandEvent &event)
virtual void FilterFrontPrefix(wxCommandEvent &event)
virtual void OnClose(wxCloseEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
A widget for browsing a rich text error/status report.
#define _(s)