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

Method UpdateHeaderPath

Src/WebPageDiffFrm.cpp:808–828  ·  view source on GitHub ↗

* @brief Write path and filename to headerbar * @note SetText() does not repaint unchanged text */

Source from the content-addressed store, hash-verified

806 * @note SetText() does not repaint unchanged text
807 */
808void CWebPageDiffFrame::UpdateHeaderPath(int pane)
809{
810 String sText;
811
812 if (m_nBufferType[pane] == BUFFERTYPE::UNNAMED ||
813 m_nBufferType[pane] == BUFFERTYPE::NORMAL_NAMED)
814 {
815 sText = m_strDesc[pane];
816 }
817 else
818 {
819 sText = m_filePaths.GetPath(pane);
820 if (m_pDirDoc != nullptr)
821 m_pDirDoc->ApplyDisplayRoot(pane, sText);
822 }
823
824 m_wndFilePathBar.SetCaption(pane, sText);
825 m_wndFilePathBar.SetPath(pane, m_filePaths.GetPath(pane));
826
827 SetTitle(nullptr);
828}
829
830/// update splitting position for panels 1/2 and headerbar and statusbar
831void CWebPageDiffFrame::UpdateHeaderSizes()

Callers

nothing calls this directly

Calls 4

ApplyDisplayRootMethod · 0.80
SetCaptionMethod · 0.80
GetPathMethod · 0.45
SetPathMethod · 0.45

Tested by

no test coverage detected