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

Method updateContentBasedUi

src/dialogs/MainWindow.cpp:1753–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1751}
1752
1753void MainWindow::updateContentBasedUi(ScintillaNext *editor)
1754{
1755 bool hasAnySelections = !editor->selectionEmpty();
1756
1757 ui->actionPaste->setEnabled(editor->canPaste());
1758
1759 ui->actionLowerCase->setEnabled(hasAnySelections);
1760 ui->actionUpperCase->setEnabled(hasAnySelections);
1761
1762 ui->actionBase64Encode->setEnabled(hasAnySelections);
1763 ui->actionURLEncode->setEnabled(hasAnySelections);
1764 ui->actionBase64Decode->setEnabled(hasAnySelections);
1765 ui->actionURLDecode->setEnabled(hasAnySelections);
1766}
1767
1768void MainWindow::detectLanguage(ScintillaNext *editor)
1769{

Callers

nothing calls this directly

Calls 1

setEnabledMethod · 0.45

Tested by

no test coverage detected