MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / DocumentUpdated

Method DocumentUpdated

src/TortoiseMerge/BaseView.cpp:188–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188void CBaseView::DocumentUpdated()
189{
190 ReleaseBitmap();
191 m_nLineHeight = -1;
192 m_nCharWidth = -1;
193 m_nScreenChars = -1;
194 m_nLastScreenChars = -1;
195 m_nMaxLineLength = -1;
196 m_nScreenLines = -1;
197 m_nTopLine = 0;
198 m_bModified = FALSE;
199 m_bOtherDiffChecked = false;
200 m_nDigits = 0;
201 m_nMouseLine = -1;
202 m_nLDownLine = -1;
203 m_nTabSize = std::min(TABSIZE_MAX, std::max(TABSIZE_MIN, static_cast<int>(CRegDWORD(L"Software\\TortoiseGitMerge\\TabSize", 4))));
204 m_nTabMode = static_cast<int>(CRegDWORD(L"Software\\TortoiseGitMerge\\TabMode", TABMODE_NONE));
205 m_bViewLinenumbers = CRegDWORD(L"Software\\TortoiseGitMerge\\ViewLinenumbers", 1);
206 m_bIconLFs = CRegDWORD(L"Software\\TortoiseGitMerge\\IconLFs", 0);
207 m_nInlineDiffMaxLineLength = CRegDWORD(L"Software\\TortoiseGitMerge\\InlineDiffMaxLineLength", 3000);
208 m_Eols[static_cast<int>(EOL::AutoLine)] = m_Eols[static_cast<int>(m_lineendings == EOL::AutoLine ? EOL::CRLF : m_lineendings)];
209 SetEditorConfigEnabled(m_bEditorConfigEnabled);
210 DeleteFonts();
211 ClearCurrentSelection();
212 UpdateStatusBar();
213 SetTheme(CTheme::Instance().IsDarkTheme());
214 Invalidate();
215}
216
217void CBaseView::SetEditorConfigEnabled(bool bEditorConfigEnabled)
218{

Callers 9

UpdateLocatorMethod · 0.45
LoadViewsMethod · 0.45
OnViewWraplonglinesMethod · 0.45
ShowDiffBarMethod · 0.45
OnViewOptionsMethod · 0.45
OnViewInlinediffwordMethod · 0.45
OnViewInlinediffMethod · 0.45
OnViewLinediffbarMethod · 0.45
OnViewLocatorbarMethod · 0.45

Calls 2

SetThemeFunction · 0.85
IsDarkThemeMethod · 0.45

Tested by

no test coverage detected