| 586 | } |
| 587 | |
| 588 | auto JsonViewDlg::GetTitleFileName() const -> std::wstring |
| 589 | { |
| 590 | auto currFile = m_pEditor->GetCurrentFileName(); |
| 591 | if (currFile.length() >= FILENAME_LEN_IN_TITLE) |
| 592 | { |
| 593 | // If the filename is too long, truncate it and add "..." |
| 594 | currFile = currFile.substr(0, FILENAME_LEN_IN_TITLE - 4) + L"..."; |
| 595 | } |
| 596 | |
| 597 | return currFile; |
| 598 | } |
| 599 | |
| 600 | void JsonViewDlg::PrepareButtons() |
| 601 | { |
nothing calls this directly
no test coverage detected