2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2015-09-10 20:00:18 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_global_deletion_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_GLOBAL_DELETION_BASE::DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxStaticBoxSizer* sbSizerLeft;
|
|
|
|
sbSizerLeft = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Items to Delete") ), wxVERTICAL );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelZones = new wxCheckBox( this, wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelZones, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelTexts = new wxCheckBox( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelTexts, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelBoardEdges = new wxCheckBox( this, wxID_ANY, _("Board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelBoardEdges, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelDrawings = new wxCheckBox( this, wxID_ANY, _("Drawings"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelDrawings, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelModules = new wxCheckBox( this, wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelModules, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelTracks = new wxCheckBox( this, wxID_ANY, _("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelTracks, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelMarkers = new wxCheckBox( this, wxID_ANY, _("Markers"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelMarkers, 0, wxALL, 5 );
|
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_DelAlls = new wxCheckBox( this, wxID_ANY, _("Clear board"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelAlls, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerUpper->Add( sbSizerLeft, 2, wxEXPAND|wxALL, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2014-03-01 17:20:22 +00:00
|
|
|
sbFilter = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Filter Settings") ), wxVERTICAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_TrackFilterAR = new wxCheckBox( this, wxID_ANY, _("Automatically routed tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_TrackFilterAR->SetValue(true);
|
2014-03-01 17:20:22 +00:00
|
|
|
sbFilter->Add( m_TrackFilterAR, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_TrackFilterLocked = new wxCheckBox( this, wxID_ANY, _("Locked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
2014-03-01 17:20:22 +00:00
|
|
|
sbFilter->Add( m_TrackFilterLocked, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_TrackFilterNormal = new wxCheckBox( this, wxID_ANY, _("Unlocked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_TrackFilterNormal->SetValue(true);
|
2014-03-01 17:20:22 +00:00
|
|
|
sbFilter->Add( m_TrackFilterNormal, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_TrackFilterVias = new wxCheckBox( this, wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_TrackFilterVias->SetValue(true);
|
2014-03-01 17:20:22 +00:00
|
|
|
sbFilter->Add( m_TrackFilterVias, 0, wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_ModuleFilterLocked = new wxCheckBox( this, wxID_ANY, _("Locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbFilter->Add( m_ModuleFilterLocked, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2015-09-10 20:00:18 +00:00
|
|
|
m_ModuleFilterNormal = new wxCheckBox( this, wxID_ANY, _("Unlocked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
2014-03-01 17:20:22 +00:00
|
|
|
m_ModuleFilterNormal->SetValue(true);
|
2015-09-10 20:00:18 +00:00
|
|
|
sbFilter->Add( m_ModuleFilterNormal, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2014-03-01 17:20:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerRight->Add( sbFilter, 0, wxALL|wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
wxString m_rbLayersOptionChoices[] = { _("All layers"), _("Current layer only") };
|
|
|
|
int m_rbLayersOptionNChoices = sizeof( m_rbLayersOptionChoices ) / sizeof( wxString );
|
|
|
|
m_rbLayersOption = new wxRadioBox( this, wxID_ANY, _("Layer Filter"), wxDefaultPosition, wxDefaultSize, m_rbLayersOptionNChoices, m_rbLayersOptionChoices, 1, wxRA_SPECIFY_COLS );
|
|
|
|
m_rbLayersOption->SetSelection( 0 );
|
|
|
|
bSizerRight->Add( m_rbLayersOption, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2015-09-01 09:13:22 +00:00
|
|
|
|
|
|
|
bSizerUpper->Add( bSizerRight, 3, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxFlexGridSizer* fgSizer1;
|
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
|
|
fgSizer1->AddGrowableCol( 1 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Current layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText1->Wrap( -1 );
|
2015-09-01 09:13:22 +00:00
|
|
|
fgSizer1->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_textCtrlCurrLayer = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
|
|
|
m_textCtrlCurrLayer->SetMaxLength( 0 );
|
2015-09-01 09:13:22 +00:00
|
|
|
fgSizer1->Add( m_textCtrlCurrLayer, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2015-09-01 09:13:22 +00:00
|
|
|
bSizerMain->Add( fgSizer1, 0, wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
2015-09-01 09:13:22 +00:00
|
|
|
bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1OK );
|
|
|
|
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
|
|
|
m_sdbSizer1->Realize();
|
|
|
|
|
|
|
|
bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2015-09-10 20:00:18 +00:00
|
|
|
bSizerMain->Fit( this );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
2014-03-01 17:20:22 +00:00
|
|
|
m_DelModules->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteModules ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_DelTracks->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteTracks ), NULL, this );
|
|
|
|
m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCancelClick ), NULL, this );
|
|
|
|
m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnOkClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_GLOBAL_DELETION_BASE::~DIALOG_GLOBAL_DELETION_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2014-03-01 17:20:22 +00:00
|
|
|
m_DelModules->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteModules ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_DelTracks->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteTracks ), NULL, this );
|
|
|
|
m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCancelClick ), NULL, this );
|
|
|
|
m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnOkClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|