MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / varLaunch

Method varLaunch

gui/qt/mainwindow.cpp:2510–2525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2508}
2509
2510void MainWindow::varLaunch(const calc_var_t *prgm) {
2511 keypadBridge->releaseAll();
2512 ui->lcd->setFocus();
2513 guiDelay(50);
2514
2515 sendEmuKey(CE_KEY_CLEAR);
2516 if (calc_var_is_asmprog(prgm)) {
2517 sendEmuKey(CE_KEY_ASM);
2518 }
2519 sendEmuKey(CE_KEY_PRGM);
2520 for (const uint8_t *c = prgm->name; *c; c++) {
2521 sendEmuLetterKey(static_cast<char>(*c)); // type program name
2522 }
2523 sendEmuKey(CE_KEY_ENTER);
2524 ui->lcd->setFocus();
2525}
2526
2527void MainWindow::contextVars(const QPoint& posa) {
2528 QModelIndex nameIndex = ui->emuVarView->indexAt(posa);

Callers

nothing calls this directly

Calls 3

guiDelayFunction · 0.85
calc_var_is_asmprogFunction · 0.85
releaseAllMethod · 0.80

Tested by

no test coverage detected