2010-11-21 18:28:32 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2012-09-07 19:29:44 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Apr 10 2012)
|
2010-11-21 18:28:32 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_cleaning_options_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2012-10-03 11:25:30 +00:00
|
|
|
DIALOG_CLEANING_OPTIONS_BASE::DIALOG_CLEANING_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2010-11-21 18:28:32 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_cleanViasOpt = new wxCheckBox( this, wxID_ANY, _("Delete redundant vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_cleanViasOpt->SetToolTip( _("remove vias on pads with a through hole") );
|
|
|
|
|
|
|
|
bSizerUpper->Add( m_cleanViasOpt, 0, wxALL, 5 );
|
|
|
|
|
2012-09-07 19:29:44 +00:00
|
|
|
m_mergeSegmOpt = new wxCheckBox( this, wxID_ANY, _("Merge colinear segments"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-11-21 18:28:32 +00:00
|
|
|
m_mergeSegmOpt->SetToolTip( _("merge aligned track segments, and remove null segments") );
|
|
|
|
|
|
|
|
bSizerUpper->Add( m_mergeSegmOpt, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
m_deleteUnconnectedOpt = new wxCheckBox( this, wxID_ANY, _("Delete unconnected tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_deleteUnconnectedOpt->SetToolTip( _("delete track segment having a dangling end") );
|
|
|
|
|
|
|
|
bSizerUpper->Add( m_deleteUnconnectedOpt, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxALL, 5 );
|
|
|
|
|
|
|
|
m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
|
|
|
|
|
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
|
|
m_sdbSizer->Realize();
|
2012-09-07 19:29:44 +00:00
|
|
|
|
2010-11-21 18:28:32 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
|
|
|
|
|
2012-09-07 19:29:44 +00:00
|
|
|
|
2010-11-21 18:28:32 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_CLEANING_OPTIONS_BASE::OnCloseWindow ) );
|
|
|
|
m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CLEANING_OPTIONS_BASE::OnCancelClick ), NULL, this );
|
|
|
|
m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CLEANING_OPTIONS_BASE::OnOKClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_CLEANING_OPTIONS_BASE::~DIALOG_CLEANING_OPTIONS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_CLEANING_OPTIONS_BASE::OnCloseWindow ) );
|
|
|
|
m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CLEANING_OPTIONS_BASE::OnCancelClick ), NULL, this );
|
|
|
|
m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CLEANING_OPTIONS_BASE::OnOKClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|