| 255 | } |
| 256 | |
| 257 | void CMainFrame::UpdateUI() |
| 258 | { |
| 259 | UpdateStatusBar(); |
| 260 | |
| 261 | UISetCheck(ID_VIEW_TIME, GetView().GetClockTime()); |
| 262 | UISetCheck(ID_VIEW_PROCESSCOLORS, GetView().GetViewProcessColors()); |
| 263 | UISetCheck(ID_VIEW_SCROLL, GetView().GetAutoScroll()); |
| 264 | UISetCheck(ID_VIEW_SCROLL_STOP, GetView().GetAutoScrollStop()); |
| 265 | UISetCheck(ID_VIEW_BOOKMARK, GetView().GetBookmark()); |
| 266 | |
| 267 | for (int id = ID_VIEW_COLUMN_FIRST; id <= ID_VIEW_COLUMN_LAST; ++id) |
| 268 | UISetCheck(id, GetView().IsColumnViewed(id)); |
| 269 | |
| 270 | UISetCheck(ID_OPTIONS_LINKVIEWS, m_linkViews); |
| 271 | UIEnable(ID_OPTIONS_LINKVIEWS, GetTabCtrl().GetItemCount() > 1); |
| 272 | UISetCheck(ID_OPTIONS_AUTONEWLINE, m_logSources.GetAutoNewLine()); |
| 273 | UISetCheck(ID_OPTIONS_ALWAYSONTOP, GetAlwaysOnTop()); |
| 274 | UISetCheck(ID_OPTIONS_HIDE, m_hide); |
| 275 | UISetCheck(ID_LOG_PAUSE, !m_pLocalReader); |
| 276 | UIEnable(ID_LOG_GLOBAL, !!m_pLocalReader); |
| 277 | UISetCheck(ID_LOG_GLOBAL, m_tryGlobal); |
| 278 | } |
| 279 | |
| 280 | std::wstring FormatUnits(int n, const std::wstring& unit) |
| 281 | { |
nothing calls this directly
no test coverage detected