2018-07-17 06:52:33 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2022-08-08 10:31:16 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2018-07-17 06:52:33 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
#include "widgets/std_bitmap_button.h"
|
2018-07-17 06:52:33 +00:00
|
|
|
#include "widgets/wx_grid.h"
|
|
|
|
|
|
|
|
#include "panel_setup_tracks_and_vias_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-06-03 17:46:50 +00:00
|
|
|
PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
2018-07-17 06:52:33 +00:00
|
|
|
{
|
|
|
|
wxBoxSizer* bMainSizer;
|
2023-01-11 01:00:47 +00:00
|
|
|
bMainSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
wxBoxSizer* bSizerTracks;
|
|
|
|
bSizerTracks = new wxBoxSizer( wxVERTICAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-21 13:40:39 +00:00
|
|
|
wxStaticText* stTracksLabel;
|
|
|
|
stTracksLabel = new wxStaticText( this, wxID_ANY, _("Tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
stTracksLabel->Wrap( -1 );
|
|
|
|
bSizerTracks->Add( stTracksLabel, 0, wxALL, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_trackWidthsGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Grid
|
|
|
|
m_trackWidthsGrid->CreateGrid( 8, 1 );
|
|
|
|
m_trackWidthsGrid->EnableEditing( true );
|
|
|
|
m_trackWidthsGrid->EnableGridLines( true );
|
|
|
|
m_trackWidthsGrid->EnableDragGridSize( false );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_trackWidthsGrid->SetMargins( 0, 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Columns
|
|
|
|
m_trackWidthsGrid->EnableDragColMove( false );
|
|
|
|
m_trackWidthsGrid->EnableDragColSize( false );
|
|
|
|
m_trackWidthsGrid->SetColLabelValue( 0, _("Width") );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_trackWidthsGrid->SetColLabelSize( wxGRID_AUTOSIZE );
|
2020-06-03 17:46:50 +00:00
|
|
|
m_trackWidthsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Rows
|
|
|
|
m_trackWidthsGrid->EnableDragRowSize( false );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 0, _("1") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 1, _("2") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 2, _("3") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 3, _("4") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 4, _("5") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 5, _("6") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 6, _("7") );
|
|
|
|
m_trackWidthsGrid->SetRowLabelValue( 7, _("8") );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_trackWidthsGrid->SetRowLabelSize( 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
m_trackWidthsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Label Appearance
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_trackWidthsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
2023-02-02 21:54:52 +00:00
|
|
|
bSizerTracks->Add( m_trackWidthsGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-08-27 19:38:39 +00:00
|
|
|
wxBoxSizer* bSizer3;
|
|
|
|
bSizer3 = new wxBoxSizer( wxHORIZONTAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_trackWidthsAddButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizer3->Add( m_trackWidthsAddButton, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_trackWidthsSortButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2022-08-08 10:31:16 +00:00
|
|
|
bSizer3->Add( m_trackWidthsSortButton, 0, wxRIGHT|wxLEFT, 5 );
|
2022-07-15 18:15:06 +00:00
|
|
|
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2020-08-17 22:34:02 +00:00
|
|
|
bSizer3->Add( 20, 0, 0, wxEXPAND, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_trackWidthsRemoveButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2018-08-27 19:38:39 +00:00
|
|
|
bSizer3->Add( m_trackWidthsRemoveButton, 0, wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerTracks->Add( bSizer3, 0, wxEXPAND|wxTOP, 2 );
|
|
|
|
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bMainSizer->Add( bSizerTracks, 1, wxEXPAND|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
wxBoxSizer* bSizerVias;
|
|
|
|
bSizerVias = new wxBoxSizer( wxVERTICAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-21 13:40:39 +00:00
|
|
|
wxStaticText* stViasLabel;
|
|
|
|
stViasLabel = new wxStaticText( this, wxID_ANY, _("Vias:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
stViasLabel->Wrap( -1 );
|
|
|
|
bSizerVias->Add( stViasLabel, 0, wxALL, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_viaSizesGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Grid
|
|
|
|
m_viaSizesGrid->CreateGrid( 8, 2 );
|
|
|
|
m_viaSizesGrid->EnableEditing( true );
|
|
|
|
m_viaSizesGrid->EnableGridLines( true );
|
|
|
|
m_viaSizesGrid->EnableDragGridSize( false );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_viaSizesGrid->SetMargins( 0, 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Columns
|
|
|
|
m_viaSizesGrid->EnableDragColMove( false );
|
|
|
|
m_viaSizesGrid->EnableDragColSize( false );
|
2022-03-03 21:47:05 +00:00
|
|
|
m_viaSizesGrid->SetColLabelValue( 0, _("Diameter") );
|
2021-01-11 13:46:00 +00:00
|
|
|
m_viaSizesGrid->SetColLabelValue( 1, _("Hole") );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_viaSizesGrid->SetColLabelSize( wxGRID_AUTOSIZE );
|
2020-06-03 17:46:50 +00:00
|
|
|
m_viaSizesGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Rows
|
|
|
|
m_viaSizesGrid->EnableDragRowSize( false );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 0, _("1") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 1, _("2") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 2, _("3") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 3, _("4") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 4, _("5") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 5, _("6") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 6, _("7") );
|
|
|
|
m_viaSizesGrid->SetRowLabelValue( 7, _("8") );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_viaSizesGrid->SetRowLabelSize( 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
m_viaSizesGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Label Appearance
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_viaSizesGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
2023-02-02 21:54:52 +00:00
|
|
|
bSizerVias->Add( m_viaSizesGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-08-27 19:38:39 +00:00
|
|
|
wxBoxSizer* bSizer4;
|
|
|
|
bSizer4 = new wxBoxSizer( wxHORIZONTAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_viaSizesAddButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizer4->Add( m_viaSizesAddButton, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_viaSizesSortButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2022-08-08 10:31:16 +00:00
|
|
|
bSizer4->Add( m_viaSizesSortButton, 0, wxRIGHT|wxLEFT, 5 );
|
2022-07-15 18:15:06 +00:00
|
|
|
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2020-08-17 22:34:02 +00:00
|
|
|
bSizer4->Add( 20, 0, 0, wxEXPAND, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_viaSizesRemoveButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2018-08-27 19:38:39 +00:00
|
|
|
bSizer4->Add( m_viaSizesRemoveButton, 0, wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerVias->Add( bSizer4, 0, wxEXPAND|wxTOP, 2 );
|
|
|
|
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bMainSizer->Add( bSizerVias, 1, wxEXPAND|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
wxBoxSizer* bSizerDiffPairs;
|
|
|
|
bSizerDiffPairs = new wxBoxSizer( wxVERTICAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-21 13:40:39 +00:00
|
|
|
wxStaticText* stDiffPairsLabel;
|
|
|
|
stDiffPairsLabel = new wxStaticText( this, wxID_ANY, _("Differential pairs:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
stDiffPairsLabel->Wrap( -1 );
|
|
|
|
bSizerDiffPairs->Add( stDiffPairsLabel, 0, wxALL, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_diffPairsGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Grid
|
|
|
|
m_diffPairsGrid->CreateGrid( 8, 3 );
|
|
|
|
m_diffPairsGrid->EnableEditing( true );
|
|
|
|
m_diffPairsGrid->EnableGridLines( true );
|
|
|
|
m_diffPairsGrid->EnableDragGridSize( false );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_diffPairsGrid->SetMargins( 0, 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Columns
|
|
|
|
m_diffPairsGrid->EnableDragColMove( false );
|
2021-04-23 08:58:59 +00:00
|
|
|
m_diffPairsGrid->EnableDragColSize( false );
|
2018-07-17 06:52:33 +00:00
|
|
|
m_diffPairsGrid->SetColLabelValue( 0, _("Width") );
|
|
|
|
m_diffPairsGrid->SetColLabelValue( 1, _("Gap") );
|
|
|
|
m_diffPairsGrid->SetColLabelValue( 2, _("Via Gap") );
|
2023-01-11 01:00:47 +00:00
|
|
|
m_diffPairsGrid->SetColLabelSize( wxGRID_AUTOSIZE );
|
2020-06-03 17:46:50 +00:00
|
|
|
m_diffPairsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Rows
|
2021-04-23 08:58:59 +00:00
|
|
|
m_diffPairsGrid->EnableDragRowSize( false );
|
2018-07-17 06:52:33 +00:00
|
|
|
m_diffPairsGrid->SetRowLabelValue( 0, _("1") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 1, _("2") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 2, _("3") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 3, _("4") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 4, _("5") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 5, _("6") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 6, _("7") );
|
|
|
|
m_diffPairsGrid->SetRowLabelValue( 7, _("8") );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_diffPairsGrid->SetRowLabelSize( 0 );
|
2020-06-03 17:46:50 +00:00
|
|
|
m_diffPairsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Label Appearance
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
// Cell Defaults
|
|
|
|
m_diffPairsGrid->SetDefaultCellBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
|
|
|
|
m_diffPairsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
2023-02-02 21:54:52 +00:00
|
|
|
bSizerDiffPairs->Add( m_diffPairsGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-08-27 19:38:39 +00:00
|
|
|
wxBoxSizer* bSizer5;
|
|
|
|
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_diffPairsAddButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizer5->Add( m_diffPairsAddButton, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_diffPairsSortButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2022-08-08 10:31:16 +00:00
|
|
|
bSizer5->Add( m_diffPairsSortButton, 0, wxRIGHT|wxLEFT, 5 );
|
2022-07-15 18:15:06 +00:00
|
|
|
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2020-08-17 22:34:02 +00:00
|
|
|
bSizer5->Add( 20, 0, 0, wxEXPAND, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
m_diffPairsRemoveButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2018-08-27 19:38:39 +00:00
|
|
|
bSizer5->Add( m_diffPairsRemoveButton, 0, wxLEFT|wxRIGHT, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bSizerDiffPairs->Add( bSizer5, 0, wxEXPAND|wxTOP, 2 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
|
|
|
|
2023-01-11 01:00:47 +00:00
|
|
|
bMainSizer->Add( bSizerDiffPairs, 1, wxEXPAND, 5 );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2023-01-09 13:49:20 +00:00
|
|
|
bMainSizer->Fit( this );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-08-27 19:38:39 +00:00
|
|
|
// Connect Events
|
|
|
|
m_trackWidthsAddButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnAddTrackWidthsClick ), NULL, this );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_trackWidthsSortButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnSortTrackWidthsClick ), NULL, this );
|
2018-08-27 19:38:39 +00:00
|
|
|
m_trackWidthsRemoveButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnRemoveTrackWidthsClick ), NULL, this );
|
|
|
|
m_viaSizesAddButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnAddViaSizesClick ), NULL, this );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_viaSizesSortButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnSortViaSizesClick ), NULL, this );
|
2018-08-27 19:38:39 +00:00
|
|
|
m_viaSizesRemoveButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnRemoveViaSizesClick ), NULL, this );
|
|
|
|
m_diffPairsAddButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnAddDiffPairsClick ), NULL, this );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_diffPairsSortButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnSortDiffPairsClick ), NULL, this );
|
2018-08-27 19:38:39 +00:00
|
|
|
m_diffPairsRemoveButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnRemoveDiffPairsClick ), NULL, this );
|
2018-07-17 06:52:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PANEL_SETUP_TRACKS_AND_VIAS_BASE::~PANEL_SETUP_TRACKS_AND_VIAS_BASE()
|
|
|
|
{
|
2018-08-27 19:38:39 +00:00
|
|
|
// Disconnect Events
|
|
|
|
m_trackWidthsAddButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnAddTrackWidthsClick ), NULL, this );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_trackWidthsSortButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnSortTrackWidthsClick ), NULL, this );
|
2018-08-27 19:38:39 +00:00
|
|
|
m_trackWidthsRemoveButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnRemoveTrackWidthsClick ), NULL, this );
|
|
|
|
m_viaSizesAddButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnAddViaSizesClick ), NULL, this );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_viaSizesSortButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnSortViaSizesClick ), NULL, this );
|
2018-08-27 19:38:39 +00:00
|
|
|
m_viaSizesRemoveButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnRemoveViaSizesClick ), NULL, this );
|
|
|
|
m_diffPairsAddButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnAddDiffPairsClick ), NULL, this );
|
2022-07-15 18:15:06 +00:00
|
|
|
m_diffPairsSortButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnSortDiffPairsClick ), NULL, this );
|
2018-08-27 19:38:39 +00:00
|
|
|
m_diffPairsRemoveButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_TRACKS_AND_VIAS_BASE::OnRemoveDiffPairsClick ), NULL, this );
|
2020-06-03 17:46:50 +00:00
|
|
|
|
2018-07-17 06:52:33 +00:00
|
|
|
}
|