KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ISSUE25112_FIXTURE Struct Reference

Public Member Functions

 ISSUE25112_FIXTURE ()
 
std::unique_ptr< SYMBOL_FIELDS_EDITOR_GRID_DATA_MODELMakeScopedModel (const wxString &aVariantName, const wxString &aFieldName, bool aAddedByUser=false)
 Build a model scoped to the first sheet path of a symbol that a later path also reaches.
 
void Apply (SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL &aModel, const wxString &aVariantName)
 

Public Attributes

LOCALE_IO m_locale
 
std::unique_ptr< SCHEMATICm_schematic
 
SCH_REFERENCE_LIST m_refs
 
SCH_SYMBOLm_symbol = nullptr
 
SCH_SHEET_PATH m_scopePath
 
SCH_SHEET_PATH m_siblingPath
 
int m_col = -1
 
int m_row = -1
 

Detailed Description

Definition at line 46 of file test_issue25112_shared_sheet_field_scope.cpp.

Constructor & Destructor Documentation

◆ ISSUE25112_FIXTURE()

Member Function Documentation

◆ Apply()

void ISSUE25112_FIXTURE::Apply ( SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL & aModel,
const wxString & aVariantName )
inline

◆ MakeScopedModel()

std::unique_ptr< SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL > ISSUE25112_FIXTURE::MakeScopedModel ( const wxString & aVariantName,
const wxString & aFieldName,
bool aAddedByUser = false )
inline

Build a model scoped to the first sheet path of a symbol that a later path also reaches.

ApplyData follows the model's reference list, so scoping to that first path guarantees a stale entry follows the edited one.

Definition at line 65 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_REQUIRE(), SCH_REFERENCE_LIST::GetCount(), GetDefaultFieldName(), m_col, m_refs, m_row, m_scopePath, m_siblingPath, m_symbol, model, REFERENCE, and UNTRANSLATED.

Member Data Documentation

◆ m_col

int ISSUE25112_FIXTURE::m_col = -1

Definition at line 145 of file test_issue25112_shared_sheet_field_scope.cpp.

Referenced by MakeScopedModel().

◆ m_locale

LOCALE_IO ISSUE25112_FIXTURE::m_locale

◆ m_refs

SCH_REFERENCE_LIST ISSUE25112_FIXTURE::m_refs

◆ m_row

int ISSUE25112_FIXTURE::m_row = -1

Definition at line 146 of file test_issue25112_shared_sheet_field_scope.cpp.

Referenced by MakeScopedModel().

◆ m_schematic

std::unique_ptr<SCHEMATIC> ISSUE25112_FIXTURE::m_schematic

Definition at line 140 of file test_issue25112_shared_sheet_field_scope.cpp.

Referenced by ISSUE25112_FIXTURE().

◆ m_scopePath

SCH_SHEET_PATH ISSUE25112_FIXTURE::m_scopePath

Definition at line 143 of file test_issue25112_shared_sheet_field_scope.cpp.

Referenced by MakeScopedModel().

◆ m_siblingPath

SCH_SHEET_PATH ISSUE25112_FIXTURE::m_siblingPath

Definition at line 144 of file test_issue25112_shared_sheet_field_scope.cpp.

Referenced by MakeScopedModel().

◆ m_symbol

SCH_SYMBOL* ISSUE25112_FIXTURE::m_symbol = nullptr

Definition at line 142 of file test_issue25112_shared_sheet_field_scope.cpp.

Referenced by MakeScopedModel().


The documentation for this struct was generated from the following file: