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