Pcbnew, DIALOG_UPDATE_PCB: store "Re-link footprints" option in config
This commit is contained in:
parent
3bba96baa2
commit
62852e18e1
|
@ -52,6 +52,7 @@ DIALOG_UPDATE_PCB::DIALOG_UPDATE_PCB( PCB_EDIT_FRAME* aParent, NETLIST* aNetlist
|
|||
{
|
||||
auto cfg = m_frame->GetSettings();
|
||||
|
||||
m_cbRelinkFootprints->SetValue( cfg->m_NetlistDialog.associate_by_ref_sch );
|
||||
m_cbUpdateFootprints->SetValue( cfg->m_NetlistDialog.update_footprints );
|
||||
m_cbDeleteExtraFootprints->SetValue( cfg->m_NetlistDialog.delete_extra_footprints );
|
||||
m_cbDeleteSinglePadNets->SetValue( cfg->m_NetlistDialog.delete_single_pad_nets );
|
||||
|
@ -86,6 +87,7 @@ DIALOG_UPDATE_PCB::~DIALOG_UPDATE_PCB()
|
|||
|
||||
auto cfg = m_frame->GetSettings();
|
||||
|
||||
cfg->m_NetlistDialog.associate_by_ref_sch = m_cbRelinkFootprints->GetValue();
|
||||
cfg->m_NetlistDialog.update_footprints = m_cbUpdateFootprints->GetValue();
|
||||
cfg->m_NetlistDialog.delete_extra_footprints = m_cbDeleteExtraFootprints->GetValue();
|
||||
cfg->m_NetlistDialog.delete_single_pad_nets = m_cbDeleteSinglePadNets->GetValue();
|
||||
|
|
|
@ -318,6 +318,9 @@ PCBNEW_SETTINGS::PCBNEW_SETTINGS() : APP_SETTINGS_BASE( "pcbnew", pcbnewSchemaVe
|
|||
m_params.emplace_back( new PARAM<bool>(
|
||||
"netlist.delete_single_pad_nets", &m_NetlistDialog.delete_single_pad_nets, false ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<bool>(
|
||||
"netlist.associate_by_ref_sch", &m_NetlistDialog.associate_by_ref_sch, false ) );
|
||||
|
||||
m_params.emplace_back(new PARAM<int>( "place_file.units", &m_PlaceFile.units, 1 ) );
|
||||
|
||||
m_params.emplace_back(
|
||||
|
|
|
@ -144,6 +144,7 @@ public:
|
|||
bool delete_shorting_tracks;
|
||||
bool delete_extra_footprints;
|
||||
bool delete_single_pad_nets;
|
||||
bool associate_by_ref_sch;
|
||||
};
|
||||
|
||||
struct DIALOG_PLACE_FILE
|
||||
|
|
Loading…
Reference in New Issue