Initialize pre-defined sizes even when using netclass values.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16351
This commit is contained in:
parent
b9daa073d4
commit
1fa6b7b5d6
|
@ -376,42 +376,39 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
|
||||||
m_netSelector->Disable();
|
m_netSelector->Disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_DesignRuleViasUnit->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
|
||||||
|
|
||||||
if( viasMatchNetclassValues )
|
if( viasMatchNetclassValues )
|
||||||
{
|
{
|
||||||
m_viaDesignRules->SetValue( true );
|
m_viaDesignRules->SetValue( true );
|
||||||
|
|
||||||
m_DesignRuleVias->Enable( false );
|
m_predefinedViaSizesLabel->Enable( false );
|
||||||
m_DesignRuleViasCtrl->Enable( false );
|
m_predefinedViaSizesCtrl->Enable( false );
|
||||||
m_DesignRuleViasUnit->Enable( false );
|
m_predefinedViaSizesUnits->Enable( false );
|
||||||
m_viaDiameter.Enable( false );
|
m_viaDiameter.Enable( false );
|
||||||
m_viaDrill.Enable( false );
|
m_viaDrill.Enable( false );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
int viaSelection = wxNOT_FOUND;
|
||||||
|
|
||||||
|
// 0 is the netclass place-holder
|
||||||
|
for( unsigned ii = 1; ii < aParent->GetDesignSettings().m_ViasDimensionsList.size(); ii++ )
|
||||||
{
|
{
|
||||||
int viaSelection = wxNOT_FOUND;
|
VIA_DIMENSION* viaDimension = &aParent->GetDesignSettings().m_ViasDimensionsList[ii];
|
||||||
|
wxString msg = m_frame->StringFromValue( viaDimension->m_Diameter )
|
||||||
|
+ wxT( " / " )
|
||||||
|
+ m_frame->StringFromValue( viaDimension->m_Drill );
|
||||||
|
m_predefinedViaSizesCtrl->Append( msg, viaDimension );
|
||||||
|
|
||||||
// 0 is the netclass place-holder
|
if( viaSelection == wxNOT_FOUND
|
||||||
for( unsigned ii = 1; ii < aParent->GetDesignSettings().m_ViasDimensionsList.size(); ii++ )
|
&& m_viaDiameter.GetValue() == viaDimension->m_Diameter
|
||||||
|
&& m_viaDrill.GetValue() == viaDimension->m_Drill )
|
||||||
{
|
{
|
||||||
VIA_DIMENSION* viaDimension = &aParent->GetDesignSettings().m_ViasDimensionsList[ii];
|
viaSelection = ii - 1;
|
||||||
wxString msg = m_frame->StringFromValue( viaDimension->m_Diameter )
|
|
||||||
+ wxT( " / " )
|
|
||||||
+ m_frame->StringFromValue( viaDimension->m_Drill );
|
|
||||||
m_DesignRuleViasCtrl->Append( msg, viaDimension );
|
|
||||||
|
|
||||||
if( viaSelection == wxNOT_FOUND
|
|
||||||
&& m_viaDiameter.GetValue() == viaDimension->m_Diameter
|
|
||||||
&& m_viaDrill.GetValue() == viaDimension->m_Drill )
|
|
||||||
{
|
|
||||||
viaSelection = ii - 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_DesignRuleViasCtrl->SetSelection( viaSelection );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_predefinedViaSizesCtrl->SetSelection( viaSelection );
|
||||||
|
m_predefinedViaSizesUnits->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
||||||
|
|
||||||
m_ViaTypeChoice->Enable();
|
m_ViaTypeChoice->Enable();
|
||||||
|
|
||||||
switch( viaType )
|
switch( viaType )
|
||||||
|
@ -436,34 +433,31 @@ DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES( PCB_BASE_FRAME* aParen
|
||||||
|
|
||||||
if( m_tracks )
|
if( m_tracks )
|
||||||
{
|
{
|
||||||
m_DesignRuleWidthsUnits->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
|
||||||
|
|
||||||
if( tracksMatchNetclassValues )
|
if( tracksMatchNetclassValues )
|
||||||
{
|
{
|
||||||
m_trackDesignRules->SetValue( true );
|
m_trackDesignRules->SetValue( true );
|
||||||
|
|
||||||
m_DesignRuleWidths->Enable( false );
|
m_predefinedTrackWidthsLabel->Enable( false );
|
||||||
m_DesignRuleWidthsCtrl->Enable( false );
|
m_predefinedTrackWidthsCtrl->Enable( false );
|
||||||
m_DesignRuleWidthsUnits->Enable( false );
|
m_predefinedTrackWidthsUnits->Enable( false );
|
||||||
m_trackWidth.Enable( false );
|
m_trackWidth.Enable( false );
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
int widthSelection = wxNOT_FOUND;
|
||||||
|
|
||||||
|
// 0 is the netclass place-holder
|
||||||
|
for( unsigned ii = 1; ii < aParent->GetDesignSettings().m_TrackWidthList.size(); ii++ )
|
||||||
{
|
{
|
||||||
int widthSelection = wxNOT_FOUND;
|
int width = aParent->GetDesignSettings().m_TrackWidthList[ii];
|
||||||
|
wxString msg = m_frame->StringFromValue( width );
|
||||||
|
m_predefinedTrackWidthsCtrl->Append( msg );
|
||||||
|
|
||||||
// 0 is the netclass place-holder
|
if( widthSelection == wxNOT_FOUND && m_trackWidth.GetValue() == width )
|
||||||
for( unsigned ii = 1; ii < aParent->GetDesignSettings().m_TrackWidthList.size(); ii++ )
|
widthSelection = ii - 1;
|
||||||
{
|
|
||||||
int width = aParent->GetDesignSettings().m_TrackWidthList[ii];
|
|
||||||
wxString msg = m_frame->StringFromValue( width );
|
|
||||||
m_DesignRuleWidthsCtrl->Append( msg );
|
|
||||||
|
|
||||||
if( widthSelection == wxNOT_FOUND && m_trackWidth.GetValue() == width )
|
|
||||||
widthSelection = ii - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_DesignRuleWidthsCtrl->SetSelection( widthSelection );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_predefinedTrackWidthsCtrl->SetSelection( widthSelection );
|
||||||
|
m_predefinedTrackWidthsUnits->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -504,9 +498,9 @@ void DIALOG_TRACK_VIA_PROPERTIES::onUnitsChanged( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
if( m_vias )
|
if( m_vias )
|
||||||
{
|
{
|
||||||
int viaSel = m_DesignRuleViasCtrl->GetSelection();
|
int viaSel = m_predefinedViaSizesCtrl->GetSelection();
|
||||||
|
|
||||||
m_DesignRuleViasCtrl->Clear();
|
m_predefinedViaSizesCtrl->Clear();
|
||||||
|
|
||||||
// 0 is the netclass place-holder
|
// 0 is the netclass place-holder
|
||||||
for( unsigned ii = 1; ii < m_frame->GetDesignSettings().m_ViasDimensionsList.size(); ii++ )
|
for( unsigned ii = 1; ii < m_frame->GetDesignSettings().m_ViasDimensionsList.size(); ii++ )
|
||||||
|
@ -515,29 +509,29 @@ void DIALOG_TRACK_VIA_PROPERTIES::onUnitsChanged( wxCommandEvent& aEvent )
|
||||||
wxString msg = m_frame->StringFromValue( viaDimension->m_Diameter )
|
wxString msg = m_frame->StringFromValue( viaDimension->m_Diameter )
|
||||||
+ wxT( " / " )
|
+ wxT( " / " )
|
||||||
+ m_frame->StringFromValue( viaDimension->m_Drill );
|
+ m_frame->StringFromValue( viaDimension->m_Drill );
|
||||||
m_DesignRuleViasCtrl->Append( msg, viaDimension );
|
m_predefinedViaSizesCtrl->Append( msg, viaDimension );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_DesignRuleViasCtrl->SetSelection( viaSel );
|
m_predefinedViaSizesCtrl->SetSelection( viaSel );
|
||||||
m_DesignRuleViasUnit->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
m_predefinedViaSizesUnits->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_tracks )
|
if( m_tracks )
|
||||||
{
|
{
|
||||||
int trackSel = m_DesignRuleWidthsCtrl->GetSelection();
|
int trackSel = m_predefinedTrackWidthsCtrl->GetSelection();
|
||||||
|
|
||||||
m_DesignRuleWidthsCtrl->Clear();
|
m_predefinedTrackWidthsCtrl->Clear();
|
||||||
|
|
||||||
// 0 is the netclass place-holder
|
// 0 is the netclass place-holder
|
||||||
for( unsigned ii = 1; ii < m_frame->GetDesignSettings().m_TrackWidthList.size(); ii++ )
|
for( unsigned ii = 1; ii < m_frame->GetDesignSettings().m_TrackWidthList.size(); ii++ )
|
||||||
{
|
{
|
||||||
int width = m_frame->GetDesignSettings().m_TrackWidthList[ii];
|
int width = m_frame->GetDesignSettings().m_TrackWidthList[ii];
|
||||||
wxString msg = m_frame->StringFromValue( width );
|
wxString msg = m_frame->StringFromValue( width );
|
||||||
m_DesignRuleWidthsCtrl->Append( msg );
|
m_predefinedTrackWidthsCtrl->Append( msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_DesignRuleWidthsCtrl->SetSelection( trackSel );
|
m_predefinedTrackWidthsCtrl->SetSelection( trackSel );
|
||||||
m_DesignRuleWidthsUnits->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
m_predefinedTrackWidthsUnits->SetLabel( EDA_UNIT_UTILS::GetLabel( m_frame->GetUserUnits() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
aEvent.Skip();
|
aEvent.Skip();
|
||||||
|
@ -894,9 +888,9 @@ void DIALOG_TRACK_VIA_PROPERTIES::onTrackNetclassCheck( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
bool enableNC = aEvent.IsChecked();
|
bool enableNC = aEvent.IsChecked();
|
||||||
|
|
||||||
m_DesignRuleWidths->Enable( !enableNC );
|
m_predefinedTrackWidthsLabel->Enable( !enableNC );
|
||||||
m_DesignRuleWidthsCtrl->Enable( !enableNC );
|
m_predefinedTrackWidthsCtrl->Enable( !enableNC );
|
||||||
m_DesignRuleWidthsUnits->Enable( !enableNC );
|
m_predefinedTrackWidthsUnits->Enable( !enableNC );
|
||||||
|
|
||||||
m_trackWidth.Enable( !enableNC );
|
m_trackWidth.Enable( !enableNC );
|
||||||
}
|
}
|
||||||
|
@ -904,14 +898,14 @@ void DIALOG_TRACK_VIA_PROPERTIES::onTrackNetclassCheck( wxCommandEvent& aEvent )
|
||||||
|
|
||||||
void DIALOG_TRACK_VIA_PROPERTIES::onWidthSelect( wxCommandEvent& aEvent )
|
void DIALOG_TRACK_VIA_PROPERTIES::onWidthSelect( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
m_TrackWidthCtrl->ChangeValue( m_DesignRuleWidthsCtrl->GetStringSelection() );
|
m_TrackWidthCtrl->ChangeValue( m_predefinedTrackWidthsCtrl->GetStringSelection() );
|
||||||
m_TrackWidthCtrl->SelectAll();
|
m_TrackWidthCtrl->SelectAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DIALOG_TRACK_VIA_PROPERTIES::onWidthEdit( wxCommandEvent& aEvent )
|
void DIALOG_TRACK_VIA_PROPERTIES::onWidthEdit( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
m_DesignRuleWidthsCtrl->SetStringSelection( m_TrackWidthCtrl->GetValue() );
|
m_predefinedTrackWidthsCtrl->SetStringSelection( m_TrackWidthCtrl->GetValue() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -919,9 +913,9 @@ void DIALOG_TRACK_VIA_PROPERTIES::onViaNetclassCheck( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
bool enableNC = aEvent.IsChecked();
|
bool enableNC = aEvent.IsChecked();
|
||||||
|
|
||||||
m_DesignRuleVias->Enable( !enableNC );
|
m_predefinedViaSizesLabel->Enable( !enableNC );
|
||||||
m_DesignRuleViasCtrl->Enable( !enableNC );
|
m_predefinedViaSizesCtrl->Enable( !enableNC );
|
||||||
m_DesignRuleViasUnit->Enable( !enableNC );
|
m_predefinedViaSizesUnits->Enable( !enableNC );
|
||||||
|
|
||||||
m_viaDiameter.Enable( !enableNC );
|
m_viaDiameter.Enable( !enableNC );
|
||||||
m_viaDrill.Enable( !enableNC );
|
m_viaDrill.Enable( !enableNC );
|
||||||
|
@ -956,7 +950,7 @@ int DIALOG_TRACK_VIA_PROPERTIES::getLayerDepth()
|
||||||
|
|
||||||
void DIALOG_TRACK_VIA_PROPERTIES::onViaEdit( wxCommandEvent& aEvent )
|
void DIALOG_TRACK_VIA_PROPERTIES::onViaEdit( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
m_DesignRuleViasCtrl->SetSelection( wxNOT_FOUND );
|
m_predefinedViaSizesCtrl->SetSelection( wxNOT_FOUND );
|
||||||
|
|
||||||
if( m_vias )
|
if( m_vias )
|
||||||
{
|
{
|
||||||
|
|
|
@ -121,18 +121,18 @@ DIALOG_TRACK_VIA_PROPERTIES_BASE::DIALOG_TRACK_VIA_PROPERTIES_BASE( wxWindow* pa
|
||||||
m_trackDesignRules->SetValue(true);
|
m_trackDesignRules->SetValue(true);
|
||||||
gbSizer1->Add( m_trackDesignRules, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP, 1 );
|
gbSizer1->Add( m_trackDesignRules, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP, 1 );
|
||||||
|
|
||||||
m_DesignRuleWidths = new wxStaticText( m_sbTrackSizer->GetStaticBox(), wxID_ANY, _("Pre-defined sizes:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_predefinedTrackWidthsLabel = new wxStaticText( m_sbTrackSizer->GetStaticBox(), wxID_ANY, _("Pre-defined sizes:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_DesignRuleWidths->Wrap( -1 );
|
m_predefinedTrackWidthsLabel->Wrap( -1 );
|
||||||
gbSizer1->Add( m_DesignRuleWidths, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 1 );
|
gbSizer1->Add( m_predefinedTrackWidthsLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 1 );
|
||||||
|
|
||||||
wxArrayString m_DesignRuleWidthsCtrlChoices;
|
wxArrayString m_predefinedTrackWidthsCtrlChoices;
|
||||||
m_DesignRuleWidthsCtrl = new wxChoice( m_sbTrackSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_DesignRuleWidthsCtrlChoices, 0 );
|
m_predefinedTrackWidthsCtrl = new wxChoice( m_sbTrackSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_predefinedTrackWidthsCtrlChoices, 0 );
|
||||||
m_DesignRuleWidthsCtrl->SetSelection( 0 );
|
m_predefinedTrackWidthsCtrl->SetSelection( 0 );
|
||||||
gbSizer1->Add( m_DesignRuleWidthsCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 3 );
|
gbSizer1->Add( m_predefinedTrackWidthsCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 3 );
|
||||||
|
|
||||||
m_DesignRuleWidthsUnits = new wxStaticText( m_sbTrackSizer->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_predefinedTrackWidthsUnits = new wxStaticText( m_sbTrackSizer->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_DesignRuleWidthsUnits->Wrap( -1 );
|
m_predefinedTrackWidthsUnits->Wrap( -1 );
|
||||||
gbSizer1->Add( m_DesignRuleWidthsUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
gbSizer1->Add( m_predefinedTrackWidthsUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
m_TrackWidthLabel = new wxStaticText( m_sbTrackSizer->GetStaticBox(), wxID_ANY, _("Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_TrackWidthLabel = new wxStaticText( m_sbTrackSizer->GetStaticBox(), wxID_ANY, _("Track width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_TrackWidthLabel->Wrap( -1 );
|
m_TrackWidthLabel->Wrap( -1 );
|
||||||
|
@ -222,18 +222,18 @@ DIALOG_TRACK_VIA_PROPERTIES_BASE::DIALOG_TRACK_VIA_PROPERTIES_BASE( wxWindow* pa
|
||||||
m_viaDesignRules = new wxCheckBox( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("Use net class / custom rule sizes"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_viaDesignRules = new wxCheckBox( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("Use net class / custom rule sizes"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
gbSizer3->Add( m_viaDesignRules, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP, 1 );
|
gbSizer3->Add( m_viaDesignRules, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP, 1 );
|
||||||
|
|
||||||
m_DesignRuleVias = new wxStaticText( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("Pre-defined sizes:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_predefinedViaSizesLabel = new wxStaticText( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("Pre-defined sizes:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_DesignRuleVias->Wrap( -1 );
|
m_predefinedViaSizesLabel->Wrap( -1 );
|
||||||
gbSizer3->Add( m_DesignRuleVias, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 1 );
|
gbSizer3->Add( m_predefinedViaSizesLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 1 );
|
||||||
|
|
||||||
wxArrayString m_DesignRuleViasCtrlChoices;
|
wxArrayString m_predefinedViaSizesCtrlChoices;
|
||||||
m_DesignRuleViasCtrl = new wxChoice( m_sbViaSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_DesignRuleViasCtrlChoices, 0 );
|
m_predefinedViaSizesCtrl = new wxChoice( m_sbViaSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_predefinedViaSizesCtrlChoices, 0 );
|
||||||
m_DesignRuleViasCtrl->SetSelection( 0 );
|
m_predefinedViaSizesCtrl->SetSelection( 0 );
|
||||||
gbSizer3->Add( m_DesignRuleViasCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 3 );
|
gbSizer3->Add( m_predefinedViaSizesCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM, 3 );
|
||||||
|
|
||||||
m_DesignRuleViasUnit = new wxStaticText( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_predefinedViaSizesUnits = new wxStaticText( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_DesignRuleViasUnit->Wrap( -1 );
|
m_predefinedViaSizesUnits->Wrap( -1 );
|
||||||
gbSizer3->Add( m_DesignRuleViasUnit, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
gbSizer3->Add( m_predefinedViaSizesUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
m_ViaDiameterLabel = new wxStaticText( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("Via diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_ViaDiameterLabel = new wxStaticText( m_sbViaSizer->GetStaticBox(), wxID_ANY, _("Via diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_ViaDiameterLabel->Wrap( -1 );
|
m_ViaDiameterLabel->Wrap( -1 );
|
||||||
|
@ -561,10 +561,10 @@ DIALOG_TRACK_VIA_PROPERTIES_BASE::DIALOG_TRACK_VIA_PROPERTIES_BASE( wxWindow* pa
|
||||||
// Connect Events
|
// Connect Events
|
||||||
m_viaNotFree->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNotFreeClicked ), NULL, this );
|
m_viaNotFree->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNotFreeClicked ), NULL, this );
|
||||||
m_trackDesignRules->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onTrackNetclassCheck ), NULL, this );
|
m_trackDesignRules->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onTrackNetclassCheck ), NULL, this );
|
||||||
m_DesignRuleWidthsCtrl->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthSelect ), NULL, this );
|
m_predefinedTrackWidthsCtrl->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthSelect ), NULL, this );
|
||||||
m_TrackWidthCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthEdit ), NULL, this );
|
m_TrackWidthCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthEdit ), NULL, this );
|
||||||
m_viaDesignRules->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNetclassCheck ), NULL, this );
|
m_viaDesignRules->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNetclassCheck ), NULL, this );
|
||||||
m_DesignRuleViasCtrl->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaSelect ), NULL, this );
|
m_predefinedViaSizesCtrl->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaSelect ), NULL, this );
|
||||||
m_ViaDiameterCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
m_ViaDiameterCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
||||||
m_ViaDrillCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
m_ViaDrillCtrl->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
||||||
m_ViaTypeChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
m_ViaTypeChoice->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
||||||
|
@ -598,10 +598,10 @@ DIALOG_TRACK_VIA_PROPERTIES_BASE::~DIALOG_TRACK_VIA_PROPERTIES_BASE()
|
||||||
// Disconnect Events
|
// Disconnect Events
|
||||||
m_viaNotFree->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNotFreeClicked ), NULL, this );
|
m_viaNotFree->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNotFreeClicked ), NULL, this );
|
||||||
m_trackDesignRules->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onTrackNetclassCheck ), NULL, this );
|
m_trackDesignRules->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onTrackNetclassCheck ), NULL, this );
|
||||||
m_DesignRuleWidthsCtrl->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthSelect ), NULL, this );
|
m_predefinedTrackWidthsCtrl->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthSelect ), NULL, this );
|
||||||
m_TrackWidthCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthEdit ), NULL, this );
|
m_TrackWidthCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onWidthEdit ), NULL, this );
|
||||||
m_viaDesignRules->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNetclassCheck ), NULL, this );
|
m_viaDesignRules->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaNetclassCheck ), NULL, this );
|
||||||
m_DesignRuleViasCtrl->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaSelect ), NULL, this );
|
m_predefinedViaSizesCtrl->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaSelect ), NULL, this );
|
||||||
m_ViaDiameterCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
m_ViaDiameterCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
||||||
m_ViaDrillCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
m_ViaDrillCtrl->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
||||||
m_ViaTypeChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
m_ViaTypeChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_TRACK_VIA_PROPERTIES_BASE::onViaEdit ), NULL, this );
|
||||||
|
|
|
@ -1216,7 +1216,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_DesignRuleWidths</property>
|
<property name="name">m_predefinedTrackWidthsLabel</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -1279,7 +1279,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_DesignRuleWidthsCtrl</property>
|
<property name="name">m_predefinedTrackWidthsCtrl</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -1348,7 +1348,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_DesignRuleWidthsUnits</property>
|
<property name="name">m_predefinedTrackWidthsUnits</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -2220,7 +2220,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_DesignRuleVias</property>
|
<property name="name">m_predefinedViaSizesLabel</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -2283,7 +2283,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_DesignRuleViasCtrl</property>
|
<property name="name">m_predefinedViaSizesCtrl</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
@ -2352,7 +2352,7 @@
|
||||||
<property name="minimize_button">0</property>
|
<property name="minimize_button">0</property>
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="moveable">1</property>
|
<property name="moveable">1</property>
|
||||||
<property name="name">m_DesignRuleViasUnit</property>
|
<property name="name">m_predefinedViaSizesUnits</property>
|
||||||
<property name="pane_border">1</property>
|
<property name="pane_border">1</property>
|
||||||
<property name="pane_position"></property>
|
<property name="pane_position"></property>
|
||||||
<property name="pane_size"></property>
|
<property name="pane_size"></property>
|
||||||
|
|
|
@ -66,9 +66,9 @@ class DIALOG_TRACK_VIA_PROPERTIES_BASE : public DIALOG_SHIM
|
||||||
wxTextCtrl* m_TrackEndYCtrl;
|
wxTextCtrl* m_TrackEndYCtrl;
|
||||||
wxStaticText* m_TrackEndYUnit;
|
wxStaticText* m_TrackEndYUnit;
|
||||||
wxCheckBox* m_trackDesignRules;
|
wxCheckBox* m_trackDesignRules;
|
||||||
wxStaticText* m_DesignRuleWidths;
|
wxStaticText* m_predefinedTrackWidthsLabel;
|
||||||
wxChoice* m_DesignRuleWidthsCtrl;
|
wxChoice* m_predefinedTrackWidthsCtrl;
|
||||||
wxStaticText* m_DesignRuleWidthsUnits;
|
wxStaticText* m_predefinedTrackWidthsUnits;
|
||||||
wxStaticText* m_TrackWidthLabel;
|
wxStaticText* m_TrackWidthLabel;
|
||||||
wxTextCtrl* m_TrackWidthCtrl;
|
wxTextCtrl* m_TrackWidthCtrl;
|
||||||
wxStaticText* m_TrackWidthUnit;
|
wxStaticText* m_TrackWidthUnit;
|
||||||
|
@ -81,9 +81,9 @@ class DIALOG_TRACK_VIA_PROPERTIES_BASE : public DIALOG_SHIM
|
||||||
wxTextCtrl* m_ViaYCtrl;
|
wxTextCtrl* m_ViaYCtrl;
|
||||||
wxStaticText* m_ViaYUnit;
|
wxStaticText* m_ViaYUnit;
|
||||||
wxCheckBox* m_viaDesignRules;
|
wxCheckBox* m_viaDesignRules;
|
||||||
wxStaticText* m_DesignRuleVias;
|
wxStaticText* m_predefinedViaSizesLabel;
|
||||||
wxChoice* m_DesignRuleViasCtrl;
|
wxChoice* m_predefinedViaSizesCtrl;
|
||||||
wxStaticText* m_DesignRuleViasUnit;
|
wxStaticText* m_predefinedViaSizesUnits;
|
||||||
wxStaticText* m_ViaDiameterLabel;
|
wxStaticText* m_ViaDiameterLabel;
|
||||||
wxTextCtrl* m_ViaDiameterCtrl;
|
wxTextCtrl* m_ViaDiameterCtrl;
|
||||||
wxStaticText* m_ViaDiameterUnit;
|
wxStaticText* m_ViaDiameterUnit;
|
||||||
|
|
Loading…
Reference in New Issue