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

Method OnViewLineNumbers

Src/MergeEditView.cpp:3754–3761  ·  view source on GitHub ↗

* @brief Enables/disables line number */

Source from the content-addressed store, hash-verified

3752 * @brief Enables/disables line number
3753 */
3754void CMergeEditView::OnViewLineNumbers()
3755{
3756 GetOptionsMgr()->SaveOption(OPT_VIEW_LINENUMBERS, !GetViewLineNumbers());
3757
3758 // Call CMergeDoc RefreshOptions() to refresh *both* views
3759 CMergeDoc *pDoc = GetDocument();
3760 pDoc->RefreshOptions();
3761}
3762
3763void CMergeEditView::OnUpdateViewLineNumbers(CCmdUI* pCmdUI)
3764{

Callers

nothing calls this directly

Calls 4

GetViewLineNumbersFunction · 0.85
GetOptionsMgrFunction · 0.70
SaveOptionMethod · 0.45
RefreshOptionsMethod · 0.45

Tested by

no test coverage detected