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

Method updateEditorPositionBasedUi

src/dialogs/MainWindow.cpp:1686–1694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1684}
1685
1686void MainWindow::updateEditorPositionBasedUi()
1687{
1688 const int index = dockedEditor->currentDockArea()->currentIndex();
1689 const int total = dockedEditor->currentDockArea()->dockWidgetsCount();
1690
1691 ui->actionCloseAllToLeft->setEnabled(index > 0);
1692 ui->actionCloseAllToRight->setEnabled(index < (total - 1));
1693 ui->actionCloseAllExceptActive->setEnabled(editorCount() > 1);
1694}
1695
1696void MainWindow::updateLanguageBasedUi(ScintillaNext *editor)
1697{

Callers

nothing calls this directly

Calls 2

currentDockAreaMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected