MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetDisplayName

Method GetDisplayName

Src/DirViewColItems.cpp:1518–1541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1516};
1517
1518String DirColInfo::GetDisplayName() const
1519{
1520 if (idName)
1521 return I18n::tr(idNameContext, idName);
1522 PropertySystem ps({ regName + 1 });
1523 std::vector<String> names;
1524 ps.GetDisplayNames(names);
1525 String name = names[0];
1526 if (regName[0] != 'A')
1527 {
1528 name += _T(" (");
1529 name +=
1530 (regName[0] == 'L') ? _("Left") :
1531 (regName[0] == 'R') ? _("Right") :
1532 (regName[0] == 'M') ? _("Middle") :
1533 (regName[0] == 'D') ? _("Diff") :
1534 (regName[0] == 'l') ? _("Left Duplicate Count") :
1535 (regName[0] == 'r') ? _("Right Duplicate Count") :
1536 (regName[0] == 'm') ? _("Middle Duplicate Count") :
1537 (regName[0] == 'N') ? _("Move") : _("");
1538 name += ')';
1539 }
1540 return name;
1541}
1542
1543String DirColInfo::GetDescription() const
1544{

Callers 5

GetColDisplayNameMethod · 0.80
GetDisplayNamesMethod · 0.80
NameColumnMethod · 0.80
GetPathsMethod · 0.80

Calls 2

GetDisplayNamesMethod · 0.80
trFunction · 0.70

Tested by

no test coverage detected