44 default:
return wxT(
"unknown column" );
72 return wxT(
"bad wxWidgets!" );
89 wxFAIL_MSG( wxString::Format( wxT(
"column %d doesn't hold a bool value" ), aCol ) );
108 rowData.
label = aValue;
112 wxFAIL_MSG( wxString::Format( wxT(
"column %d doesn't hold a string value" ), aCol ) );
115 GetView()->Refresh();
131 wxFAIL_MSG( wxString::Format( wxT(
"column %d doesn't hold a bool value" ), aCol ) );
137 bool aShow,
bool aGroupBy )
141 if( wxGrid*
grid = GetView() )
143 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, 1 );
144 grid->ProcessTableMessage( msg );
155 if( wxGrid*
grid = GetView() )
157 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_DELETED, aRow, 1 );
158 grid->ProcessTableMessage( msg );
165 wxCHECK( aRow >= 0 && aRow <
GetNumberRows(), wxEmptyString );
179 rowData.
name = aName;
188 bool aAddedByUser,
const std::set<wxString>& aVariantNames )
194 m_cols.push_back( { aFieldName, aLabel, aAddedByUser,
false,
false } );
202 const wxString& aFieldName,
203 const std::set<wxString>& aVariantNames )
216 if( field->IsPrivate() )
224 for(
const wxString& variantName : aVariantNames )
228 if( !variant || !variant->m_Fields.contains( aFieldName ) )
231 if( value.IsEmpty() )
233 value = variant->m_Fields[aFieldName];
237 if( value != variant->m_Fields[aFieldName] )
277 node.key() = newName;
282 m_cols[aCol].m_fieldName = newName;
283 m_cols[aCol].m_label = newName;
289 for(
size_t i = 0; i <
m_cols.size(); i++ )
291 if(
m_cols[i].m_fieldName == aFieldName )
292 return static_cast<int>( i );
301 std::vector<BOM_FIELD> fields;
304 fields.push_back( { col.m_fieldName, col.m_label, col.m_show, col.m_group } );
312 size_t foundCount = 0;
314 for(
const wxString& newField : aNewOrder )
316 if( foundCount >=
m_cols.size() )
321 if( col.m_fieldName == newField )
323 std::swap(
m_cols[foundCount], col );
335 for(
int col = 0; col < aCol; ++col )
369 const wxString& refDelimiter,
370 const wxString& refRangeDelimiter,
372 bool listMixedValues )
374 std::vector<SCH_REFERENCE> references;
375 std::set<wxString> mixedValues;
382 references.push_back( ref );
401 else if( refFieldValue.Contains( wxT(
"${" ) ) )
405 std::function<bool( wxString* )> symbolResolver =
406 [&]( wxString* token ) ->
bool
411 refFieldValue =
ExpandTextVars( refFieldValue, & symbolResolver );
415 if( listMixedValues )
416 mixedValues.insert( refFieldValue );
417 else if( &ref == &
group.m_Refs.front() )
418 fieldValue = refFieldValue;
419 else if( fieldValue != refFieldValue )
424 if( listMixedValues )
426 fieldValue = wxEmptyString;
428 for(
const wxString& value : mixedValues )
430 if( value.IsEmpty() )
432 else if( fieldValue.IsEmpty() )
435 fieldValue +=
"," + value;
442 std::sort( references.begin(), references.end(),
445 wxString l_ref( l.GetRef() << l.GetRefNumber() );
446 wxString r_ref( r.GetRef() << r.GetRefNumber() );
447 return StrNumCmp( l_ref, r_ref, true ) < 0;
450 auto logicalEnd = std::unique( references.begin(), references.end(),
455 if( l.GetRefNumber() == wxT(
"?" ) )
458 wxString l_ref( l.GetRef() << l.GetRefNumber() );
459 wxString r_ref( r.GetRef() << r.GetRefNumber() );
460 return l_ref == r_ref;
463 references.erase( logicalEnd, references.end() );
469 fieldValue = wxString::Format( wxT(
"%d" ), (
int) references.size() );
471 fieldValue = wxString::Format( wxT(
"%d" ),
group.m_ItemNumber );
479 wxCHECK_RET( aCol >= 0 && aCol <
static_cast<int>(
m_cols.size() ), wxS(
"Invalid column number" ) );
499 wxCHECK( aCol >= 0 && aCol <
static_cast<int>(
m_cols.size() ),
false );
506 wxCHECK( aCol >= 0 && aCol <
static_cast<int>(
m_cols.size() ),
false );
513 wxCHECK( aCol >= 0 && aCol <
static_cast<int>(
m_cols.size() ),
false );
520 wxCHECK( aCol >= 0 && aCol <
static_cast<int>(
m_cols.size() ),
false );
527 wxCHECK( aCol >= 0 && aCol <
static_cast<int>(
m_cols.size() ),
false );
538 if( lhGroup.
m_Refs.size() == 0 )
540 else if( rhGroup.
m_Refs.size() == 0 )
546 [ ascending ](
const auto a,
const auto b )
558 wxString lhs = dataModel->
GetValue( lhGroup, sortCol ).Trim(
true ).Trim(
false );
559 wxString rhs = dataModel->
GetValue( rhGroup, sortCol ).Trim(
true ).Trim(
false );
563 wxString lhRef = lhGroup.
m_Refs[0].GetRef() + lhGroup.
m_Refs[0].GetRefNumber();
564 wxString rhRef = rhGroup.
m_Refs[0].GetRef() + rhGroup.
m_Refs[0].GetRefNumber();
565 return local_cmp(
StrNumCmp( lhRef, rhRef,
true ), 0 );
582 std::sort( row.m_Refs.begin(), row.m_Refs.end(),
585 wxString lhs_ref( lhs.GetRef() << lhs.GetRefNumber() );
586 wxString rhs_ref( rhs.GetRef() << rhs.GetRefNumber() );
587 return StrNumCmp( lhs_ref, rhs_ref, true ) < 0;
594 return cmp( lhs, rhs, this, m_sortColumn, m_sortAscending );
601 row.m_ItemNumber = itemNumber++;
621 bool matchFound =
false;
628 if(
m_cols[refCol].m_group )
641 for(
size_t i = 0; i <
m_cols.size(); ++i )
644 if(
static_cast<int>( i ) == refCol )
675 wxString fieldName =
m_cols[i].m_fieldName;
688 const wxString& aFieldName )
695 return wxEmptyString;
707 std::function<bool( wxString* )> symbolResolver =
708 [&]( wxString* token ) ->
bool
716 return wxEmptyString;
722 return aFieldName == wxS(
"${DNP}" )
723 || aFieldName == wxS(
"${EXCLUDE_FROM_BOARD}" )
724 || aFieldName == wxS(
"${EXCLUDE_FROM_BOM}" )
725 || aFieldName == wxS(
"${EXCLUDE_FROM_SIM}" );
730 const std::set<wxString>& aVariantNames )
734 auto getAttrString = [&](
const wxString aVariantName = wxEmptyString )->wxString
736 if( aAttributeName == wxS(
"${DNP}" ) )
737 return aSymbol.
GetDNP(
nullptr, aVariantName ) ? wxS(
"1" ) : wxS(
"0" );
739 if( aAttributeName == wxS(
"${EXCLUDE_FROM_BOARD}" ) )
742 if( aAttributeName == wxS(
"${EXCLUDE_FROM_BOM}" ) )
745 if( aAttributeName == wxS(
"${EXCLUDE_FROM_SIM}" ) )
751 if( aVariantNames.empty() )
753 retv = getAttrString();
757 for(
const wxString& variantName : aVariantNames )
761 retv = getAttrString( variantName );
765 if( retv != getAttrString( variantName ) )
775 const wxString& aAttributeName,
776 const wxString& aValue,
777 const wxString& aVariantName )
782 bool attrChanged =
false;
783 bool newValue = aValue == wxS(
"1" );
785 if( aAttributeName == wxS(
"${DNP}" ) )
787 attrChanged = aSymbol.
GetDNP(
nullptr, aVariantName ) != newValue;
788 aSymbol.
SetDNP( newValue,
nullptr, aVariantName );
790 else if( aAttributeName == wxS(
"${EXCLUDE_FROM_BOARD}" ) )
795 else if( aAttributeName == wxS(
"${EXCLUDE_FROM_BOM}" ) )
800 else if( aAttributeName == wxS(
"${EXCLUDE_FROM_SIM}" ) )
831 static_cast<WX_GRID*
>( GetView() )->CommitPendingChanges(
true );
833 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0,
m_rows.size() );
834 GetView()->ProcessTableMessage( msg );
863 || (
m_scope == SCOPE::SCOPE_SHEET_RECURSIVE
869 bool matchFound =
false;
887 row.m_Refs.push_back( ref );
893 row.m_Refs.push_back( ref );
905 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_APPENDED,
m_rows.size() );
906 GetView()->ProcessTableMessage( msg );
915 std::vector<DATA_MODEL_ROW> children;
919 bool matchFound =
false;
929 child.m_Refs.push_back( ref );
938 if( children.size() < 2 )
941 std::sort( children.begin(), children.end(),
944 return cmp( lhs, rhs, this, m_sortColumn, m_sortAscending );
948 m_rows.insert(
m_rows.begin() + aRow + 1, children.begin(), children.end() );
950 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_INSERTED, aRow, children.size() );
951 GetView()->ProcessTableMessage( msg );
957 auto firstChild =
m_rows.begin() + aRow + 1;
958 auto afterLastChild = firstChild;
961 while( afterLastChild !=
m_rows.end() && afterLastChild->m_Flag ==
CHILD_ITEM )
968 m_rows.erase( firstChild, afterLastChild );
970 wxGridTableMessage msg(
this, wxGRIDTABLE_NOTIFY_ROWS_DELETED, aRow + 1, deleted );
971 GetView()->ProcessTableMessage( msg );
988 for(
size_t i = 0; i <
m_rows.size(); ++i )
1001 for(
size_t i = 0; i <
m_rows.size(); ++i )
1010 std::set<wxString>& aVariantNames )
1012 bool symbolModified =
false;
1013 std::unique_ptr<SCH_SYMBOL> symbolCopy;
1024 symbolCopy = std::make_unique<SCH_SYMBOL>( *symbol );
1028 for(
const auto& [srcName, srcValue] : fieldStore )
1033 if( aVariantNames.empty() )
1039 for(
const wxString&
name : aVariantNames )
1057 if( destField && destField->
IsPrivate() )
1059 if( srcValue.IsEmpty() )
1066 bool userAdded = ( col != -1 &&
m_cols[col].m_userAdded );
1069 bool createField = !destField && ( !srcValue.IsEmpty() || userAdded );
1077 destField->
SetVisible( srcTemplate->m_Visible );
1082 symbolModified =
true;
1092 wxString previousValue = destField->
GetText();
1094 if( aVariantNames.empty() )
1100 for(
const wxString& variantName : aVariantNames )
1109 newVariant.
m_Fields[srcName] = srcValue;
1111 symbolModified |=
true;
1113 else if( !variant->m_Fields.contains( srcName )
1114 || ( variant->m_Fields[srcName] != srcValue ) )
1116 variant->m_Fields[srcName] = srcValue;
1118 symbolModified |=
true;
1123 if( !createField && ( previousValue != srcValue ) )
1124 symbolModified =
true;
1127 for(
int ii =
static_cast<int>( symbol->
GetFields().size() ) - 1; ii >= 0; ii-- )
1132 if( fieldStore.count( symbol->
GetFields()[ii].GetName() ) == 0 )
1135 symbolModified =
true;
1139 if( symbolModified && ( symbol != nextSymbol ) )
1143 if( symbol != nextSymbol )
1146 symbolCopy = std::make_unique<SCH_SYMBOL>( *nextSymbol );
1148 symbolCopy.reset(
nullptr );
1150 symbolModified =
false;
1171 for(
unsigned symbolRef = 0; symbolRef <
m_symbolsList.GetCount(); ++symbolRef )
1185 const std::set<wxString>& aVariantNames )
1188 for(
size_t i = 0; i <
m_cols.size(); i++ )
1194 std::set<wxString> seen;
1195 std::vector<wxString> order;
1201 if( !field.
name || seen.count( field.
name ) )
1204 seen.insert( field.
name );
1205 order.emplace_back( field.
name );
1275 for(
size_t col = 0; col <
m_cols.size(); col++ )
1278 last_col =
static_cast<int>( col );
1282 if( last_col == -1 )
1286 [&]( wxString field,
bool last ) -> wxString
1290 field.Replace( wxS(
"\r" ), wxS(
"" ) );
1291 field.Replace( wxS(
"\n" ), wxS(
"" ) );
1296 field.Replace( wxS(
"\t" ), wxS(
"" ) );
1310 for(
size_t col = 0; col <
m_cols.size(); col++ )
1312 if( !
m_cols[col].m_show )
1315 out.Append( formatField(
m_cols[col].m_label, col ==
static_cast<size_t>( last_col ) ) );
1319 for(
size_t row = 0; row <
m_rows.size(); row++ )
1325 for(
size_t col = 0; col <
m_cols.size(); col++ )
1327 if( !
m_cols[col].m_show )
1331 out.Append( formatField(
GetExportValue(
static_cast<int>( row ),
static_cast<int>( col ),
1333 col ==
static_cast<size_t>( last_col ) ) );
1343 bool refListChanged =
false;
1356 if( !field.IsPrivate() )
1358 wxString
name = field.GetCanonicalName();
1365 refListChanged =
true;
1369 if( refListChanged )
1385 return ref.GetSymbol()->m_Uuid == aSymbol.m_Uuid;
1395 int index =
m_symbolsList.FindRefByFullPath( ref.GetFullPath() );
1402 if( ref.GetSymbol()->GetInstances().empty() )
1410 const std::set<wxString>& aVariantNames )
1412 bool refListChanged =
false;
1425 refListChanged =
true;
1429 if( refListChanged )
COMMIT & Modified(EDA_ITEM *aItem, EDA_ITEM *aCopy, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
bool Find(const wxString &aTerm, int &aMatchersTriggered, int &aPosition)
Look in all existing matchers, return the earliest match of any of the existing.
const EDA_ANGLE & GetTextAngle() const
virtual const wxString & GetText() const
Return the string associated with the text object.
void SetTextPos(const VECTOR2I &aPoint)
virtual void SetVisible(bool aVisible)
virtual void SetTextAngle(const EDA_ANGLE &aAngle)
int GetFieldNameCol(const wxString &aFieldName) const
wxString GetColFieldName(int aCol)
void ApplyBomPreset(const BOM_PRESET &preset, const std::set< wxString > &aVariantNames)
std::vector< DATA_MODEL_ROW > m_rows
wxString getAttributeValue(const SCH_SYMBOL &, const wxString &aAttributeName, const std::set< wxString > &aVariantNames)
void SetFieldsOrder(const std::vector< wxString > &aNewOrder)
void UpdateReferences(const SCH_REFERENCE_LIST &aRefs, const std::set< wxString > &aVariantNames)
SCH_REFERENCE_LIST m_symbolsList
The flattened by hierarchy list of symbols.
void SetGroupingEnabled(bool group)
bool ColIsItemNumber(int aCol)
int GetNumberCols() override
bool ColIsQuantity(int aCol)
bool groupMatch(const SCH_REFERENCE &lhRef, const SCH_REFERENCE &rhRef)
wxGridCellAttr * m_urlEditor
BOM_PRESET GetBomSettings()
void ApplyData(SCH_COMMIT &aCommit, TEMPLATES &aTemplateFieldnames, std::set< wxString > &aVariantNames)
bool unitMatch(const SCH_REFERENCE &lhRef, const SCH_REFERENCE &rhRef)
bool ColIsReference(int aCol)
wxString GetExportValue(int aRow, int aCol, const wxString &refDelimiter, const wxString &refRangeDelimiter)
bool GetGroupingEnabled()
void AddColumn(const wxString &aFieldName, const wxString &aLabel, bool aAddedByUser, const std::set< wxString > &aVariantNames)
int GetNumberRows() override
void CollapseRow(int aRow)
wxString getFieldShownText(const SCH_REFERENCE &aRef, const wxString &aFieldName)
void RenameColumn(int aCol, const wxString &newName)
FIELDS_EDITOR_GRID_DATA_MODEL(const SCH_REFERENCE_LIST &aSymbolsList, wxGridCellAttr *aURLEditor)
bool IsExpanderColumn(int aCol) const override
wxString Export(const BOM_FMT_PRESET &settings)
std::vector< DATA_MODEL_COL > m_cols
void SetSorting(int aCol, bool ascending)
void ExpandCollapseRow(int aRow)
wxGridCellAttr * GetAttr(int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
void SetFilter(const wxString &aFilter)
bool setAttributeValue(SCH_SYMBOL &aSymbol, const wxString &aAttributeName, const wxString &aValue, const wxString &aVariantName=wxEmptyString)
Set the attribute value.
static bool cmp(const DATA_MODEL_ROW &lhGroup, const DATA_MODEL_ROW &rhGroup, FIELDS_EDITOR_GRID_DATA_MODEL *dataModel, int sortCol, bool ascending)
static const wxString ITEM_NUMBER_VARIABLE
void SetIncludeExcludedFromBOM(bool include)
bool isAttribute(const wxString &aFieldName)
wxString GetValue(int aRow, int aCol) override
int GetDataWidth(int aCol)
void updateDataStoreSymbolField(const SCH_REFERENCE &aSymbolRef, const wxString &aFieldName, const std::set< wxString > &aVariantNames)
void RemoveColumn(int aCol)
GROUP_TYPE GetRowFlags(int aRow)
const wxString & GetFilter()
std::map< KIID, std::map< wxString, wxString > > m_dataStore
static const wxString QUANTITY_VARIABLE
bool ColIsValue(int aCol)
void SetGroupColumn(int aCol, bool group)
void SetExcludeDNP(bool exclude)
void RemoveSymbol(const SCH_SYMBOL &aSymbol)
std::vector< BOM_FIELD > GetFieldsOrdered()
void SetValue(int aRow, int aCol, const wxString &aValue) override
bool ColIsAttribute(int aCol)
void SetColLabelValue(int aCol, const wxString &aLabel) override
void RemoveReferences(const SCH_REFERENCE_LIST &aRefs)
bool GetIncludeExcludedFromBOM()
void SetShowColumn(int aCol, bool show)
void AddReferences(const SCH_REFERENCE_LIST &aRefs)
wxString ConvertKIIDsToRefs(const wxString &aSource) const
wxString ConvertRefsToKIIDs(const wxString &aSource) const
wxString GetShownText(const SCH_SHEET_PATH *aPath, bool aAllowExtraText, int aDepth=0) const
void SetText(const wxString &aText) override
void SetPrivate(bool aPrivate)
SCHEMATIC * Schematic() const
Search the item hierarchy to find a SCHEMATIC.
Container to create a flattened list of symbols because in a complex hierarchy, a symbol can be used ...
static wxString Shorthand(std::vector< SCH_REFERENCE > aList, const wxString &refDelimiter, const wxString &refRangeDelimiter)
Return a shorthand string representing all the references in the list.
A helper to define a symbol's reference designator in a schematic.
const SCH_SHEET_PATH & GetSheetPath() const
SCH_SYMBOL * GetSymbol() const
wxString GetFullRef(bool aIncludeUnit=true) const
Return reference name with unit altogether.
wxString GetRefNumber() const
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
bool GetExcludedFromBOM() const
bool IsContainedWithin(const SCH_SHEET_PATH &aSheetPathToTest) const
Check if this path is contained inside aSheetPathToTest.
Variant information for a schematic symbol.
bool GetExcludedFromSim(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
virtual void SetDNP(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
void SetExcludedFromSim(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
Set or clear the exclude from simulation flag.
std::optional< SCH_SYMBOL_VARIANT > GetVariant(const SCH_SHEET_PATH &aInstance, const wxString &aVariantName) const
bool GetExcludedFromBOM(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
void GetFields(std::vector< SCH_FIELD * > &aVector, bool aVisibleOnly) const override
Populate a std::vector with SCH_FIELDs, sorted in ordinal order.
VECTOR2I GetPosition() const override
bool ResolveTextVar(const SCH_SHEET_PATH *aPath, wxString *token, int aDepth=0) const
Resolve any references to system tokens supported by the symbol.
void AddVariant(const SCH_SHEET_PATH &aInstance, const SCH_SYMBOL_VARIANT &aVariant)
SCH_FIELD * AddField(const SCH_FIELD &aField)
Add a field to the symbol.
void SetExcludedFromBOM(bool aEnable, const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) override
Set or clear the exclude from schematic bill of materials flag.
virtual bool GetDNP(const SCH_SHEET_PATH *aInstance=nullptr, const wxString &aVariantName=wxEmptyString) const override
Set or clear the 'Do Not Populate' flag.
SCH_FIELD * GetField(FIELD_T aFieldType)
Return a mandatory field in this symbol.
void SetExcludedFromBoard(bool aExcludeFromBoard) override
Set or clear exclude from board netlist flag.
bool GetExcludedFromBoard() const override
const TEMPLATE_FIELDNAME * GetFieldName(const wxString &aName)
Search for aName in the template field name list.
std::map< wxString, wxString > m_Fields
void SetValueAsBool(int aRow, int aCol, bool aValue) override
wxString GetCanonicalFieldName(int aRow)
wxString GetColLabelValue(int aCol) override
std::vector< BOM_FIELD > m_fields
void SetValue(int aRow, int aCol, const wxString &aValue) override
int GetNumberRows() override
void AppendRow(const wxString &aFieldName, const wxString &aBOMName, bool aShow, bool aGroupBy)
bool GetValueAsBool(int aRow, int aCol) override
void SetCanonicalFieldName(int aRow, const wxString &aName)
wxString GetValue(int aRow, int aCol) override
wxGridCellAttr * enhanceAttr(wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind)
wxGridCellAttr * GetAttr(int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
wxString ExpandTextVars(const wxString &aSource, const PROJECT *aProject, int aFlags)
bool IsGeneratedField(const wxString &aSource)
Returns true if the string is generated, e.g contains a single text var reference.
static wxString multipleValues
#define DISPLAY_NAME_COLUMN
#define SHOW_FIELD_COLUMN
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.
int ValueStringCompare(const wxString &strFWord, const wxString &strSWord)
Compare strings like the strcmp function but handle numbers and modifiers within the string text corr...
bool IsURL(wxString aStr)
Performs a URL sniff-test on a string.
wxString refRangeDelimiter
std::vector< BOM_FIELD > fieldsOrdered
bool includeExcludedFromBOM
std::vector< SCH_REFERENCE > m_Refs
Hold a name of a symbol's field, field value, and default visibility.
wxString GetDefaultFieldName(FIELD_T aFieldId, bool aTranslateForHI)
Return a default symbol field name for a mandatory field type.
FIELD_T
The set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hol...
@ USER
The field ID hasn't been set yet; field is invalid.
@ DATASHEET
name of datasheet
@ REFERENCE
Field Reference of part, i.e. "IC21".
@ VALUE
Field Value of part, i.e. "3.3K".
wxString GetCanonicalFieldName(FIELD_T aFieldType)
#define INDETERMINATE_STATE
Used for holding indeterminate values, such as with multiple selections holding different values or c...
@ GROUP_COLLAPSED_DURING_SORT