2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2017-12-27 17:09:27 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Nov 22 2017)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-27 17:09:27 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#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 );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelZones = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
2013-05-26 04:36:44 +00:00
|
|
|
sbSizerLeft->Add( m_DelZones, 0, wxALL, 5 );
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelTexts = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelTexts, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelBoardEdges = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelBoardEdges, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelDrawings = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Drawings"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelDrawings, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelModules = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelModules, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelTracks = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelTracks, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelMarkers = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Markers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelMarkers, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_DelAlls = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Clear board"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_DelAlls, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerUpper->Add( sbSizerLeft, 0, wxEXPAND|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_TrackFilterAR = new wxCheckBox( sbFilter->GetStaticBox(), 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
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_TrackFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), 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
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_TrackFilterNormal = new wxCheckBox( sbFilter->GetStaticBox(), 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
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_TrackFilterVias = new wxCheckBox( sbFilter->GetStaticBox(), 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
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_ModuleFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
2015-09-10 20:00:18 +00:00
|
|
|
sbFilter->Add( m_ModuleFilterLocked, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
m_ModuleFilterNormal = new wxCheckBox( sbFilter->GetStaticBox(), 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
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerUpper->Add( bSizerRight, 0, wxEXPAND, 5 );
|
2015-09-01 09:13:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
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 );
|
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 );
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxLEFT|wxRIGHT, 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 );
|
|
|
|
|
|
|
|
}
|