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 )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bmainSizer;
19 bmainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bupperSizer;
22 bupperSizer =
new wxBoxSizer( wxVERTICAL );
24 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
26 wxBoxSizer* bSizerOpts;
27 bSizerOpts =
new wxBoxSizer( wxVERTICAL );
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 );
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 );
47 fgSizerButtons->Add(
m_Down_Right, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
55 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
58 fgSizerButtons->Add(
m_Right_Down, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
66 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
69 fgSizerButtons->Add(
m_Down_Left, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
77 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
80 fgSizerButtons->Add(
m_Left_Down, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
88 fgSizerButtons->Add(
m_Up_Right, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
96 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
99 fgSizerButtons->Add(
m_Right_Up, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
107 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
110 fgSizerButtons->Add(
m_Up_Left, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
118 fgSizerButtons->Add( 20, 0, 1, wxEXPAND, 5 );
121 fgSizerButtons->Add(
m_Left_Up, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
129 bSizerOpts->Add( fgSizerButtons, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
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 );
139 fgSizerLocations->Add(
m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
141 wxString m_locationChoiceChoices[] = {
_(
"Footprint"),
_(
"Reference Designator") };
142 int m_locationChoiceNChoices =
sizeof( m_locationChoiceChoices ) /
sizeof( wxString );
145 fgSizerLocations->Add(
m_locationChoice, 0, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
149 m_SortGridText->SetToolTip(
_(
"Component position will be rounded\nto this grid before sorting.\nThis helps with misaligned parts.") );
151 fgSizerLocations->Add(
m_SortGridText, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
153 wxArrayString m_GridChoiceChoices;
156 m_GridChoice->SetToolTip(
_(
"Component position will be rounded\nto this grid before sorting.\nThis helps with misaligned parts.") );
159 fgSizerLocations->Add(
m_GridChoice, 0, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
162 bSizerOpts->Add( fgSizerLocations, 0, wxEXPAND|wxALL, 10 );
165 bSizerOpts->Add( 0, 15, 0, wxEXPAND, 5 );
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 );
175 wxFlexGridSizer* fgSizer6111;
176 fgSizer6111 =
new wxFlexGridSizer( 0, 5, 0, 0 );
177 fgSizer6111->SetFlexibleDirection( wxVERTICAL );
178 fgSizer6111->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
182 fgSizer6111->Add(
m_AnnotateAll, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
185 fgSizer6111->Add(
m_AnnotateFront, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
188 fgSizer6111->Add(
m_AnnotateBack, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
191 fgSizer6111->Add(
m_AnnotateSelection, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
194 bSizerOpts->Add( fgSizer6111, 0, wxBOTTOM|wxLEFT|wxEXPAND, 10 );
201 m_Advanced =
new wxPanel(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
202 wxBoxSizer* bSizerDesignatorOpts;
203 bSizerDesignatorOpts =
new wxBoxSizer( wxHORIZONTAL );
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 ) );
215 gbSizer1->Add(
m_FrontRefDesStartText, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
221 gbSizer1->Add(
m_FrontRefDesStart, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
225 m_BottomRefDesStartText->SetToolTip(
_(
"Blank continues from front or enter a number greater than the highest reference designation on the front.") );
227 gbSizer1->Add(
m_BottomRefDesStartText, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
230 m_BackRefDesStart->SetToolTip(
_(
"Leave blank or zero, or enter a number greater than the highest reference designation on the front.") );
233 gbSizer1->Add(
m_BackRefDesStart, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
236 m_RemoveFrontPrefix->SetToolTip(
_(
"If checked will remove the front side prefix\nin the front prefix box if present") );
238 gbSizer1->Add(
m_RemoveFrontPrefix, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
241 m_RemoveBackPrefix->SetToolTip(
_(
"If checked will remove the Back side prefix\nin the back prefix box if present") );
243 gbSizer1->Add(
m_RemoveBackPrefix, wxGBPosition( 2, 3 ), wxGBSpan( 1, 2 ), wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
247 m_FrontPrefixText->SetToolTip(
_(
"Optional prefix for component side reference designations (e.g. F_)") );
249 gbSizer1->Add(
m_FrontPrefixText, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
252 m_FrontPrefix->SetToolTip(
_(
"Optional prefix for component side reference designations (e.g. F_)") );
254 gbSizer1->Add(
m_FrontPrefix, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
258 m_BackPrefixText->SetToolTip(
_(
"Optional prefix for solder side reference designations (e.g. B_)") );
260 gbSizer1->Add(
m_BackPrefixText, wxGBPosition( 1, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
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_)") );
265 gbSizer1->Add(
m_BackPrefix, wxGBPosition( 1, 4 ), wxGBSpan( 1, 1 ), wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
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") );
270 gbSizer1->Add(
m_ExcludeLocked, wxGBPosition( 5, 0 ), wxGBSpan( 1, 5 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5 );
274 m_ExcludeListText->SetToolTip(
_(
"Do not re-annotate this type \nof reference (R means R*)") );
276 gbSizer1->Add(
m_ExcludeListText, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
279 gbSizer1->Add(
m_ExcludeList, wxGBPosition( 6, 1 ), wxGBSpan( 1, 4 ), wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
282 gbSizer1->AddGrowableCol( 1 );
283 gbSizer1->AddGrowableCol( 2 );
284 gbSizer1->AddGrowableCol( 3 );
285 gbSizer1->AddGrowableCol( 4 );
287 bSizerDesignatorOpts->Add( gbSizer1, 1, wxALL|wxEXPAND, 5 );
295 bupperSizer->Add(
m_notebook, 0, wxALL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
297 wxBoxSizer* bSizerMessages;
298 bSizerMessages =
new wxBoxSizer( wxVERTICAL );
306 bupperSizer->Add( bSizerMessages, 1, wxEXPAND|wxTOP, 15 );
309 bmainSizer->Add( bupperSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 6 );
311 wxBoxSizer* m_buttonsSizer;
312 m_buttonsSizer =
new wxBoxSizer( wxHORIZONTAL );
321 m_buttonsSizer->Add(
m_sdbSizer, 1, wxALL|wxEXPAND, 5 );
324 bmainSizer->Add( m_buttonsSizer, 0, wxEXPAND|wxLEFT, 5 );
327 this->SetSizer( bmainSizer );
329 bmainSizer->Fit(
this );
wxTextCtrl * m_FrontRefDesStart
wxRadioButton * m_Right_Down
wxStaticBitmap * reannotate_left_up_bitmap
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)
wxRadioButton * m_Left_Up
wxStaticBitmap * reannotate_down_right_bitmap
wxTextCtrl * m_ExcludeList
wxTextCtrl * m_FrontPrefix
WX_HTML_REPORT_PANEL * m_MessageWindow
wxTextCtrl * m_BackRefDesStart
virtual void OnApplyClick(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
wxRadioButton * m_Down_Left
wxStaticText * m_BottomRefDesStartText
wxRadioButton * m_Up_Right
virtual void OnCloseClick(wxCommandEvent &event)
wxPanel * m_StandardOptions
wxStaticText * m_SortGridText
wxButton * m_sdbSizerCancel
wxRadioButton * m_Up_Left
virtual void FilterBackPrefix(wxCommandEvent &event)
wxStaticText * m_BackPrefixText
wxStaticText * m_FrontRefDesStartText
wxStaticBitmap * reannotate_right_up_bitmap
wxStaticText * m_FrontPrefixText
virtual void FilterFrontPrefix(wxCommandEvent &event)
wxCheckBox * m_ExcludeLocked
wxRadioButton * m_Left_Down
~DIALOG_BOARD_REANNOTATE_BASE()
wxRadioButton * m_AnnotateBack
wxStaticBitmap * reannotate_up_right_bitmap
wxRadioButton * m_AnnotateFront
wxRadioButton * m_Down_Right
wxStaticText * m_staticText9
wxStaticLine * m_staticline2
wxRadioButton * m_AnnotateSelection
wxCheckBox * m_RemoveFrontPrefix
wxStaticBitmap * reannotate_right_down_bitmap
wxRadioButton * m_Right_Up
wxTextCtrl * m_BackPrefix
wxRadioButton * m_AnnotateAll
wxStaticLine * m_staticline1
wxCheckBox * m_RemoveBackPrefix
wxChoice * m_locationChoice
wxStaticText * m_ExcludeListText
wxStaticBitmap * reannotate_up_left_bitmap
wxStaticBitmap * reannotate_down_left_bitmap
wxStaticBitmap * reannotate_left_down_bitmap
virtual void OnClose(wxCloseEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A widget for browsing a rich text error/status report.