MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / updateDocumentBasedUi

Method updateDocumentBasedUi

src/dialogs/MainWindow.cpp:1732–1745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1730}
1731
1732void MainWindow::updateDocumentBasedUi(Scintilla::Update updated)
1733{
1734 ScintillaNext *editor = qobject_cast<ScintillaNext *>(sender());
1735
1736 // TODO: what if this is triggered by an editor that is not the active editor?
1737
1738 if (Scintilla::FlagSet(updated, Scintilla::Update::Content)) {
1739 updateSelectionBasedUi(editor);
1740 }
1741
1742 if (Scintilla::FlagSet(updated, Scintilla::Update::Content) || Scintilla::FlagSet(updated, Scintilla::Update::Selection)) {
1743 updateContentBasedUi(editor);
1744 }
1745}
1746
1747void MainWindow::updateSelectionBasedUi(ScintillaNext *editor)
1748{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected