Refactor all element name pairs into clearer struct names - renames

This commit is contained in:
bgbsww
2024-07-19 16:23:27 -04:00
parent d4d40efbc5
commit 19e450a667
27 changed files with 268 additions and 267 deletions

View File

@@ -159,12 +159,12 @@ void SelectionView::onSelectionChanged(const SelectionChanges& Reason)
str << subName;
*/
/* Remove the history from the displayed subelement name */
std::pair<std::string, std::string> elementName;
App::ElementNamePair elementName;
App::GeoFeature::resolveElement(obj, subName, elementName);
str << elementName.second.c_str(); // Use the shortened element name not the full one.
str << elementName.oldName.c_str(); // Use the shortened element name not the full one.
/* Mark it visually if there was a history as a "tell" for if a given selection has TNP
* fixes in it. */
if (elementName.first.size() > 0) {
if (elementName.newName.size() > 0) {
str << " []";
}
auto subObj = obj->getSubObject(subName);