multichannel tool: remove some unused variables

This commit is contained in:
Mike Williams 2025-08-19 13:57:07 -04:00
parent 2347b290cb
commit c6df815935
4 changed files with 2 additions and 32 deletions

View File

@ -107,7 +107,6 @@ DIALOG_MULTICHANNEL_REPEAT_LAYOUT::DIALOG_MULTICHANNEL_REPEAT_LAYOUT (
m_cbGroupItems->SetValue( data->m_options.m_groupItems );
m_cbCopyOtherItems->SetValue( data->m_options.m_copyOtherItems );
m_cbIncludeLockedComponents->SetValue( data->m_options.m_includeLockedItems );
m_cbIncludeOffRAComponents->SetValue( data->m_options.m_moveOffRAComponents );
Layout();
SetupStandardButtons();
@ -137,7 +136,6 @@ bool DIALOG_MULTICHANNEL_REPEAT_LAYOUT::TransferDataFromWindow()
data->m_options.m_copyOtherItems = m_cbCopyOtherItems->GetValue();
data->m_options.m_groupItems = m_cbGroupItems->GetValue();
data->m_options.m_includeLockedItems = m_cbIncludeLockedComponents->GetValue();
data->m_options.m_moveOffRAComponents = m_cbIncludeOffRAComponents->GetValue();
if( m_refAnchorFp->GetString( m_refAnchorFp->GetSelection() ) == "" )
{

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
@ -113,11 +113,6 @@ DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE(
bSizer13->Add( m_cbCopyOtherItems, 0, wxALL, 5 );
m_cbIncludeOffRAComponents = new wxCheckBox( this, wxID_ANY, _("Include footprints outside the reference rule area"), wxDefaultPosition, wxDefaultSize, 0 );
m_cbIncludeOffRAComponents->Hide();
bSizer13->Add( m_cbIncludeOffRAComponents, 0, wxALL, 5 );
m_cbGroupItems = new wxCheckBox( this, wxID_ANY, _("Group items with their target rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer13->Add( m_cbGroupItems, 0, wxALL, 5 );

View File

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
@ -44,7 +44,6 @@ class DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE : public DIALOG_SHIM
wxCheckBox* m_cbCopyRouting;
wxCheckBox* m_cbCopyOnlyConnectedRouting;
wxCheckBox* m_cbCopyOtherItems;
wxCheckBox* m_cbIncludeOffRAComponents;
wxCheckBox* m_cbGroupItems;
wxCheckBox* m_cbIncludeLockedComponents;
wxStdDialogButtonSizer* m_sdbSizerStdButtons;

View File

@ -38,13 +38,6 @@
#include <reporter.h>
#include <zone_settings.h>
enum class REPEAT_LAYOUT_EDGE_MODE
{
INSIDE = 0,
TOUCHING,
CLIP
};
struct REPEAT_LAYOUT_OPTIONS
{
bool m_copyRouting = true;
@ -52,20 +45,14 @@ struct REPEAT_LAYOUT_OPTIONS
bool m_copyPlacement = true;
bool m_copyOtherItems = true;
bool m_groupItems = false;
bool m_moveOffRAComponents = true;
bool m_includeLockedItems = true;
bool m_keepOldRouting = false;
bool m_copyOnlyMatchingRAShapes = false;
FOOTPRINT* m_anchorFp = nullptr;
REPEAT_LAYOUT_EDGE_MODE m_edgeMode = REPEAT_LAYOUT_EDGE_MODE::INSIDE;
};
struct RULE_AREA;
struct RULE_AREA_COMPAT_DATA
{
RULE_AREA* m_refArea = nullptr;
bool m_isOk = false;
bool m_doCopy = false;
wxString m_errorMsg;
@ -87,20 +74,11 @@ struct RULE_AREA
wxString m_sheetName;
wxString m_ruleName;
wxString m_componentClass;
KIID m_group;
wxString m_groupName;
VECTOR2I m_center;
};
struct RA_SHEET
{
bool m_generateEnabled = false;
wxString m_sheetPath;
wxString m_sheetName;
};
struct RULE_AREAS_DATA
{
bool m_replaceExisting = false;