Hook up zone-connection controls in Edit Footprint dialog.
Fixes: lp:1834629 * https://bugs.launchpad.net/kicad/+bug/1834629
This commit is contained in:
parent
981072598b
commit
3135334c0c
|
@ -261,6 +261,15 @@ bool DIALOG_FOOTPRINT_FP_EDITOR::TransferDataToWindow()
|
||||||
else
|
else
|
||||||
m_SolderPasteMarginRatioCtrl->SetValue( msg );
|
m_SolderPasteMarginRatioCtrl->SetValue( msg );
|
||||||
|
|
||||||
|
switch( m_footprint->GetZoneConnection() )
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
case PAD_ZONE_CONN_INHERITED: m_ZoneConnectionChoice->SetSelection( 0 ); break;
|
||||||
|
case PAD_ZONE_CONN_FULL: m_ZoneConnectionChoice->SetSelection( 1 ); break;
|
||||||
|
case PAD_ZONE_CONN_THERMAL: m_ZoneConnectionChoice->SetSelection( 2 ); break;
|
||||||
|
case PAD_ZONE_CONN_NONE: m_ZoneConnectionChoice->SetSelection( 3 ); break;
|
||||||
|
}
|
||||||
|
|
||||||
// 3D Settings
|
// 3D Settings
|
||||||
|
|
||||||
wxString default_path;
|
wxString default_path;
|
||||||
|
@ -634,6 +643,15 @@ bool DIALOG_FOOTPRINT_FP_EDITOR::TransferDataFromWindow()
|
||||||
|
|
||||||
m_footprint->SetLocalSolderPasteMarginRatio( dtmp / 100 );
|
m_footprint->SetLocalSolderPasteMarginRatio( dtmp / 100 );
|
||||||
|
|
||||||
|
switch( m_ZoneConnectionChoice->GetSelection() )
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
case 0: m_footprint->SetZoneConnection( PAD_ZONE_CONN_INHERITED ); break;
|
||||||
|
case 1: m_footprint->SetZoneConnection( PAD_ZONE_CONN_FULL ); break;
|
||||||
|
case 2: m_footprint->SetZoneConnection( PAD_ZONE_CONN_THERMAL ); break;
|
||||||
|
case 3: m_footprint->SetZoneConnection( PAD_ZONE_CONN_NONE ); break;
|
||||||
|
}
|
||||||
|
|
||||||
std::list<MODULE_3D_SETTINGS>* draw3D = &m_footprint->Models();
|
std::list<MODULE_3D_SETTINGS>* draw3D = &m_footprint->Models();
|
||||||
draw3D->clear();
|
draw3D->clear();
|
||||||
draw3D->insert( draw3D->end(), m_shapes3D_list.begin(), m_shapes3D_list.end() );
|
draw3D->insert( draw3D->end(), m_shapes3D_list.begin(), m_shapes3D_list.end() );
|
||||||
|
|
Loading…
Reference in New Issue