|
|
|
@ -133,7 +133,7 @@ void WinEDA_CleaningOptionsFrame::Init() |
|
|
|
void WinEDA_CleaningOptionsFrame::CreateControls() |
|
|
|
{ |
|
|
|
////@begin WinEDA_CleaningOptionsFrame content construction
|
|
|
|
// Generated by DialogBlocks, 21/06/2007 19:58:26 (unregistered)
|
|
|
|
// Generated by DialogBlocks, 21/10/2007 19:42:47 (unregistered)
|
|
|
|
|
|
|
|
WinEDA_CleaningOptionsFrame* itemDialog1 = this; |
|
|
|
|
|
|
|
@ -149,29 +149,34 @@ void WinEDA_CleaningOptionsFrame::CreateControls() |
|
|
|
|
|
|
|
m_CleanViasOpt = new wxCheckBox( itemDialog1, ID_CHECKBOX_CLEAN_VIAS, _("Delete redundant vias"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
m_CleanViasOpt->SetValue(false); |
|
|
|
if (ShowToolTips()) |
|
|
|
m_CleanViasOpt->SetToolTip(_("remove vias on pads with a through hole")); |
|
|
|
itemStaticBoxSizer4->Add(m_CleanViasOpt, 0, wxALIGN_LEFT|wxALL, 5); |
|
|
|
|
|
|
|
m_MergetSegmOpt = new wxCheckBox( itemDialog1, ID_CHECKBOX_MERGE_SEGMENTS, _("Merge segments"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
m_MergetSegmOpt->SetValue(false); |
|
|
|
if (ShowToolTips()) |
|
|
|
m_MergetSegmOpt->SetToolTip(_("merge aligned track segments, and remove null segments")); |
|
|
|
itemStaticBoxSizer4->Add(m_MergetSegmOpt, 0, wxALIGN_LEFT|wxALL, 5); |
|
|
|
|
|
|
|
m_DeleteunconnectedOpt = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Delete unconnected tracks"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
m_DeleteunconnectedOpt->SetValue(false); |
|
|
|
if (ShowToolTips()) |
|
|
|
m_DeleteunconnectedOpt->SetToolTip(_("delete track segment having a dangling end")); |
|
|
|
itemStaticBoxSizer4->Add(m_DeleteunconnectedOpt, 0, wxALIGN_LEFT|wxALL, 5); |
|
|
|
|
|
|
|
m_ConnectToPadsOpt = new wxCheckBox( itemDialog1, ID_CHECKBOX, _("Connect to Pads"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
m_ConnectToPadsOpt->SetToolTip( _("Extend dangling tracks which partially cover a pad or via, all the way to pad or via center") ); |
|
|
|
m_ConnectToPadsOpt->SetValue(false); |
|
|
|
if (ShowToolTips()) |
|
|
|
m_ConnectToPadsOpt->SetToolTip(_("Extend dangling tracks which partially cover a pad or via, all the way to pad or via center")); |
|
|
|
itemStaticBoxSizer4->Add(m_ConnectToPadsOpt, 0, wxALIGN_LEFT|wxALL, 5); |
|
|
|
|
|
|
|
itemStaticBoxSizer4->Add(5, 5, 0, wxGROW|wxALL, 5); |
|
|
|
wxBoxSizer* itemBoxSizer9 = new wxBoxSizer(wxVERTICAL); |
|
|
|
itemBoxSizer3->Add(itemBoxSizer9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); |
|
|
|
|
|
|
|
wxBoxSizer* itemBoxSizer10 = new wxBoxSizer(wxVERTICAL); |
|
|
|
itemBoxSizer3->Add(itemBoxSizer10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); |
|
|
|
|
|
|
|
wxButton* itemButton11 = new wxButton( itemDialog1, ID_BUTTON_EXECUTE, _("Clean pcb"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
itemButton11->SetDefault(); |
|
|
|
itemBoxSizer10->Add(itemButton11, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); |
|
|
|
wxButton* itemButton10 = new wxButton( itemDialog1, ID_BUTTON_EXECUTE, _("Clean pcb"), wxDefaultPosition, wxDefaultSize, 0 ); |
|
|
|
itemButton10->SetDefault(); |
|
|
|
itemBoxSizer9->Add(itemButton10, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5); |
|
|
|
|
|
|
|
// Set validators
|
|
|
|
m_CleanViasOpt->SetValidator( wxGenericValidator(& s_CleanVias) ); |
|
|
|
@ -234,14 +239,6 @@ void WinEDA_CleaningOptionsFrame::OnButtonExecuteClick( wxCommandEvent& event ) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* wxEVT_CLOSE_WINDOW event handler for ID_WIN_EDA_CLEANINGOPTIONSFRAME |
|
|
|
*/ |
|
|
|
|