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

Method OnUpdateStatusNum

Src/MergeDoc.cpp:1479–1483  ·  view source on GitHub ↗

* @brief Update diff-number pane text in file compare. * The diff number pane shows selected difference/amount of differences when * there is difference selected. If there is no difference selected, then * the panel shows amount of differences. If there are ignored differences, * those are not count into numbers. * @param [in] pCmdUI UI component to update. */

Source from the content-addressed store, hash-verified

1477 * @param [in] pCmdUI UI component to update.
1478 */
1479void CMergeDoc::OnUpdateStatusNum(CCmdUI* pCmdUI)
1480{
1481 const String s = CMergeFrameCommon::GetDiffStatusString(GetCurrentDiff(), m_diffList.GetSignificantDiffs());
1482 pCmdUI->SetText(s.c_str());
1483}
1484
1485/**
1486 * @brief Change number of diff context lines

Callers

nothing calls this directly

Calls 2

GetSignificantDiffsMethod · 0.80
SetTextMethod · 0.80

Tested by

no test coverage detected