2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-01-09 13:49:20 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
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 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bSizerUpper;
|
|
|
|
bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxStaticBoxSizer* sbSizerLeft;
|
2020-10-23 01:59:37 +00:00
|
|
|
sbSizerLeft = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Items to Delete") ), wxVERTICAL );
|
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delZones = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delZones, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delTexts = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delTexts, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35: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 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delDrawings = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Graphics"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delDrawings, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delFootprints = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delFootprints, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delTracks = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Tracks && vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delTracks, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delMarkers = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Markers"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delMarkers, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delAll = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Clear board"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbSizerLeft->Add( m_delAll, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerUpper->Add( sbSizerLeft, 0, wxEXPAND|wxALL, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
sbFilter = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Filter Settings") ), wxVERTICAL );
|
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_drawingFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Locked graphics"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbFilter->Add( m_drawingFilterLocked, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_drawingFilterUnlocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Unlocked graphics"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbFilter->Add( m_drawingFilterUnlocked, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_footprintFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbFilter->Add( m_footprintFilterLocked, 0, wxALL, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_footprintFilterUnlocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Unlocked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_footprintFilterUnlocked->SetValue(true);
|
|
|
|
sbFilter->Add( m_footprintFilterUnlocked, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_trackFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Locked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
sbFilter->Add( m_trackFilterLocked, 0, wxALL, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
m_trackFilterUnlocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Unlocked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_trackFilterUnlocked->SetValue(true);
|
|
|
|
sbFilter->Add( m_trackFilterUnlocked, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_trackFilterVias = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_trackFilterVias->SetValue(true);
|
|
|
|
sbFilter->Add( m_trackFilterVias, 0, wxRIGHT|wxLEFT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
|
2014-03-01 17:20:22 +00:00
|
|
|
bSizerRight->Add( sbFilter, 0, wxALL|wxEXPAND, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxString m_rbLayersOptionChoices[] = { _("All layers"), _("Current layer only") };
|
|
|
|
int m_rbLayersOptionNChoices = sizeof( m_rbLayersOptionChoices ) / sizeof( wxString );
|
2020-10-23 01:59:37 +00:00
|
|
|
m_rbLayersOption = new wxRadioBox( this, wxID_ANY, _("Layer Filter"), wxDefaultPosition, wxDefaultSize, m_rbLayersOptionNChoices, m_rbLayersOptionChoices, 1, wxRA_SPECIFY_COLS );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_rbLayersOption->SetSelection( 0 );
|
|
|
|
bSizerRight->Add( m_rbLayersOption, 0, wxALL|wxEXPAND, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
|
2017-12-27 17:09:27 +00:00
|
|
|
bSizerUpper->Add( bSizerRight, 0, wxEXPAND, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
|
2021-01-07 17:35:27 +00:00
|
|
|
bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2015-09-01 09:13:22 +00:00
|
|
|
wxFlexGridSizer* fgSizer1;
|
|
|
|
fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
|
|
|
|
fgSizer1->AddGrowableCol( 1 );
|
|
|
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
|
|
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
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 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
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 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizerMain->Add( fgSizer1, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
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();
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer1, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2015-09-10 20:00:18 +00:00
|
|
|
bSizerMain->Fit( this );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Centre( wxBOTH );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Connect Events
|
2021-10-19 13:35:34 +00:00
|
|
|
m_delBoardEdges->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteBoardOutlines ), NULL, this );
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delDrawings->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteDrawings ), NULL, this );
|
|
|
|
m_delFootprints->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteFootprints ), NULL, this );
|
|
|
|
m_delTracks->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteTracks ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_GLOBAL_DELETION_BASE::~DIALOG_GLOBAL_DELETION_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2021-10-19 13:35:34 +00:00
|
|
|
m_delBoardEdges->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteBoardOutlines ), NULL, this );
|
2021-01-07 17:35:27 +00:00
|
|
|
m_delDrawings->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteDrawings ), NULL, this );
|
|
|
|
m_delFootprints->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteFootprints ), NULL, this );
|
|
|
|
m_delTracks->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::onCheckDeleteTracks ), NULL, this );
|
2020-10-23 01:59:37 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|