* @brief Write path and filename to headerbar * @note SetText() does not repaint unchanged text */
| 806 | * @note SetText() does not repaint unchanged text |
| 807 | */ |
| 808 | void 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 |
| 831 | void CWebPageDiffFrame::UpdateHeaderSizes() |
nothing calls this directly
no test coverage detected