Formatting.

This commit is contained in:
Jeff Young 2025-05-31 13:09:44 +01:00
parent 98efdaea5e
commit 9d3646ced1
2 changed files with 24 additions and 8 deletions

View File

@ -2293,10 +2293,14 @@ static PCB_TEXT* getMatchingTextItem( PCB_TEXT* aRefItem, FOOTPRINT* aFootprint
void PCB_EDIT_FRAME::ExchangeFootprint( FOOTPRINT* aExisting, FOOTPRINT* aNew,
BOARD_COMMIT& aCommit, bool deleteExtraTexts,
bool resetTextLayers, bool resetTextEffects,
bool resetTextContent, bool resetFabricationAttrs,
bool resetClearanceOverrides, bool reset3DModels,
BOARD_COMMIT& aCommit,
bool deleteExtraTexts,
bool resetTextLayers,
bool resetTextEffects,
bool resetTextContent,
bool resetFabricationAttrs,
bool resetClearanceOverrides,
bool reset3DModels,
bool* aUpdated )
{
EDA_GROUP* parentGroup = aExisting->GetParentGroup();
@ -2687,8 +2691,10 @@ void PCB_EDIT_FRAME::onSize( wxSizeEvent& aEvent )
DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetInspectDrcErrorDialog()
{
if( !m_inspectDrcErrorDlg )
{
m_inspectDrcErrorDlg = new DIALOG_BOOK_REPORTER( this, INSPECT_DRC_ERROR_DIALOG_NAME,
_( "Violation Report" ) );
}
return m_inspectDrcErrorDlg;
}
@ -2697,8 +2703,10 @@ DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetInspectDrcErrorDialog()
DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetInspectClearanceDialog()
{
if( !m_inspectClearanceDlg )
{
m_inspectClearanceDlg = new DIALOG_BOOK_REPORTER( this, INSPECT_CLEARANCE_DIALOG_NAME,
_( "Clearance Report" ) );
}
return m_inspectClearanceDlg;
}
@ -2707,8 +2715,10 @@ DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetInspectClearanceDialog()
DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetInspectConstraintsDialog()
{
if( !m_inspectConstraintsDlg )
{
m_inspectConstraintsDlg = new DIALOG_BOOK_REPORTER( this, INSPECT_CONSTRAINTS_DIALOG_NAME,
_( "Constraints Report" ) );
}
return m_inspectConstraintsDlg;
}
@ -2717,8 +2727,10 @@ DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetInspectConstraintsDialog()
DIALOG_BOOK_REPORTER* PCB_EDIT_FRAME::GetFootprintDiffDialog()
{
if( !m_footprintDiffDlg )
{
m_footprintDiffDlg = new DIALOG_BOOK_REPORTER( this, FOOTPRINT_DIFF_DIALOG_NAME,
_( "Compare Footprint with Library" ) );
}
return m_footprintDiffDlg;
}

View File

@ -522,10 +522,14 @@ public:
* @param aCommit commit that should store the changes.
*/
void ExchangeFootprint( FOOTPRINT* aExisting, FOOTPRINT* aNew, BOARD_COMMIT& aCommit,
bool deleteExtraTexts = true, bool resetTextLayers = true,
bool resetTextEffects = true, bool resetFabricationAttrs = true,
bool resetTextContent = true, bool resetClearanceOverrides = true,
bool reset3DModels = true, bool* aUpdated = nullptr );
bool deleteExtraTexts = true,
bool resetTextLayers = true,
bool resetTextEffects = true,
bool resetFabricationAttrs = true,
bool resetTextContent = true,
bool resetClearanceOverrides = true,
bool reset3DModels = true,
bool* aUpdated = nullptr );
/**
* Install the corresponding dialog editor for the given item.