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

Method debugBasicInit

gui/qt/basicdebugger.cpp:14–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <QtWidgets/QScrollBar>
13
14void MainWindow::debugBasicInit() {
15 debugBasicClearCache();
16 debugBasic(false);
17
18 ui->btnDebugBasicHighlight->setChecked(m_basicShowHighlighted);
19 ui->btnDebugBasicShowFetches->setChecked(m_basicShowFetches);
20 ui->btnDebugBasicShowTempParser->setChecked(m_basicShowTempParser);
21 ui->btnDebugBasicLiveExecution->setChecked(m_basicShowLiveExecution);
22
23 connect(ui->btnDebugBasicHighlight, &QToolButton::toggled, this, &MainWindow::debugBasicToggleHighlight);
24 connect(ui->btnDebugBasicShowFetches, &QToolButton::toggled, this, &MainWindow::debugBasicToggleShowFetch);
25 connect(ui->btnDebugBasicShowTempParser, &QToolButton::toggled, this, &MainWindow::debugBasicToggleShowTempParse);
26 connect(ui->btnDebugBasicLiveExecution, &QToolButton::toggled, this, &MainWindow::debugBasicToggleLiveExecution);
27 connect(ui->btnDebugBasicEnable, &QToolButton::toggled, this, &MainWindow::debugBasic);
28
29 connect(ui->btnDebugBasicStep, &QPushButton::clicked, this, &MainWindow::debugBasicStep);
30 connect(ui->btnDebugBasicStepNext, &QPushButton::clicked, this, &MainWindow::debugBasicStepNext);
31 connect(ui->btnDebugBasicRun, &QPushButton::clicked, this, &MainWindow::debugToggle);
32
33 ui->basicEdit->setFont(QFont(QStringLiteral("TICELarge"), 11));
34 ui->basicTempEdit->setFont(QFont(QStringLiteral("TICELarge"), 11));
35
36 connect(ui->basicEdit, &BasicEditor::customContextMenuRequested, this, &MainWindow::debugBasicContextMenu);
37 connect(ui->basicTempEdit, &BasicEditor::customContextMenuRequested, this, &MainWindow::debugBasicContextMenu);
38
39 m_basicCurrLine.format.setProperty(QTextFormat::FullWidthSelection, true);
40 debugBasicUpdateDarkMode();
41}
42
43void MainWindow::debugBasic(bool enable) {
44 guiDebugBasic = enable;

Callers

nothing calls this directly

Calls 1

setFontMethod · 0.45

Tested by

no test coverage detected