| 1684 | } |
| 1685 | |
| 1686 | void 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 | |
| 1696 | void MainWindow::updateLanguageBasedUi(ScintillaNext *editor) |
| 1697 | { |
nothing calls this directly
no test coverage detected