mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-28 16:43:35 +00:00
Adding all DMA channels in the register viewer
This commit is contained in:
+2
-1
@@ -1,2 +1,3 @@
|
||||
.idea/*
|
||||
cmake-build-debug/*
|
||||
cmake-build-debug/*
|
||||
ui/*.h
|
||||
@@ -24,36 +24,47 @@ namespace ComSquare::Debugger
|
||||
|
||||
void RegisterViewer::_setupUi()
|
||||
{
|
||||
int i = 0;
|
||||
// for (int i = 0; i < 8; i++) {
|
||||
this->_models.clear();
|
||||
|
||||
std::array<QTableView *, 8> channels = {
|
||||
this->_ui.dmaChannel1,
|
||||
this->_ui.dmaChannel2,
|
||||
this->_ui.dmaChannel3,
|
||||
this->_ui.dmaChannel4,
|
||||
this->_ui.dmaChannel5,
|
||||
this->_ui.dmaChannel6,
|
||||
this->_ui.dmaChannel7,
|
||||
this->_ui.dmaChannel8
|
||||
};
|
||||
for (int i = 0; i < 8; i++) {
|
||||
RegistersViewerModel *model = new RegistersViewerModel(this->_snes);
|
||||
model->addRegister(Register(0x420B, ":0", "Enabled", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x420B, std::string(":") + std::to_string(i), "Enabled", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i].enabled;
|
||||
}, nullptr, Boolean));
|
||||
model->addRegister(Register(0x4302, "-4", "A address", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4302 + (i << 4u), "-4", "A address", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i]._aAddress.raw;
|
||||
}, nullptr, TwentyFourBits));
|
||||
model->addRegister(Register(0x4301, "", "B address", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4301 + (i << 4u), "", "B address", [i](SNES &snes) {
|
||||
return 0x2100 | snes.cpu->_dmaChannels[i]._port;
|
||||
}, nullptr, SixteenBits));
|
||||
model->addRegister(Register(0x4305, "-6", "Count", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4305 + (i << 4u), "-6", "Count", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i]._count.raw;
|
||||
}, nullptr, SixteenBits));
|
||||
model->addRegister(Register(0x4300, ":7", "B To A", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4300 + (i << 4u), ":7", "B To A", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i]._controlRegister.direction;
|
||||
}, nullptr, Boolean));
|
||||
model->addRegister(Register(0x4300, ":3", "Fixed", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4300 + (i << 4u), ":3", "Fixed", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i]._controlRegister.fixed;
|
||||
}, nullptr, Boolean));
|
||||
model->addRegister(Register(0x4300, ":4", "Decrement", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4300 + (i << 4u), ":4", "Decrement", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i]._controlRegister.increment;
|
||||
}, nullptr, Boolean));
|
||||
model->addRegister(Register(0x4300, ":0-2", "Mode", [i](SNES &snes) {
|
||||
model->addRegister(Register(0x4300 + (i << 4u), ":0-2", "Mode", [i](SNES &snes) {
|
||||
return snes.cpu->_dmaChannels[i]._controlRegister.increment;
|
||||
}, nullptr, EightBits));
|
||||
this->_ui.dmaChannel1->setModel(model);
|
||||
channels[i]->setModel(model);
|
||||
this->_models.push_back(model);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
void RegisterViewer::focus()
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace ComSquare
|
||||
//! @brief The list of models used by different panels.
|
||||
std::vector<RegistersViewerModel *> _models;
|
||||
|
||||
//! @brief The snes instance to read/write to DMA channels.
|
||||
//! @brief The snes instance to read/write to.
|
||||
SNES &_snes;
|
||||
|
||||
//! @brief Set models to the different tables and initialize them.
|
||||
|
||||
+10
-10
@@ -43,16 +43,6 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="ppu">
|
||||
<attribute name="title">
|
||||
<string>PPU</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<layout class="QFormLayout" name="formLayout_2"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="dma">
|
||||
<attribute name="title">
|
||||
<string>DMA</string>
|
||||
@@ -147,6 +137,16 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="ppu">
|
||||
<attribute name="title">
|
||||
<string>PPU</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<layout class="QFormLayout" name="formLayout_2"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
-457
@@ -1,457 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'cpuView.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.15.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_CPUVIEW_H
|
||||
#define UI_CPUVIEW_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtWidgets/QAction>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QCheckBox>
|
||||
#include <QtWidgets/QFormLayout>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QTableView>
|
||||
#include <QtWidgets/QToolBar>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_CPUView
|
||||
{
|
||||
public:
|
||||
QAction *actionPause;
|
||||
QAction *actionStep;
|
||||
QAction *actionNext;
|
||||
QWidget *centralwidget;
|
||||
QGridLayout *gridLayout_3;
|
||||
QTableView *disassembly;
|
||||
QGridLayout *gridLayout_2;
|
||||
QTableView *stackView;
|
||||
QLabel *label;
|
||||
QFormLayout *formLayout;
|
||||
QLabel *accumulatorLabel;
|
||||
QLineEdit *accumulatorLineEdit;
|
||||
QLabel *programBankRegisterLabel;
|
||||
QLineEdit *programBankRegisterLineEdit;
|
||||
QLabel *programCounterLabel;
|
||||
QLineEdit *programCounterLineEdit;
|
||||
QLabel *directBankLabel;
|
||||
QLineEdit *directBankLineEdit;
|
||||
QLabel *directPageLabel;
|
||||
QLineEdit *directPageLineEdit;
|
||||
QLabel *stackPointerLabel;
|
||||
QLineEdit *stackPointerLineEdit;
|
||||
QLabel *xIndexLabel;
|
||||
QLineEdit *xIndexLineEdit;
|
||||
QLabel *yIndexLabel;
|
||||
QLineEdit *yIndexLineEdit;
|
||||
QLabel *emulationModeLabel;
|
||||
QCheckBox *emulationModeCheckBox;
|
||||
QGridLayout *gridLayout;
|
||||
QLabel *loggerLabel;
|
||||
QPushButton *clear;
|
||||
QTableView *history;
|
||||
QGroupBox *formGroupBox;
|
||||
QFormLayout *formLayout_2;
|
||||
QLabel *negativeLabel;
|
||||
QCheckBox *mCheckbox;
|
||||
QLabel *zeroLabel;
|
||||
QCheckBox *xCheckbox;
|
||||
QLabel *carryLabel;
|
||||
QCheckBox *iCheckbox;
|
||||
QLabel *Overflow;
|
||||
QCheckBox *vCheckbox;
|
||||
QLabel *decimalLabel;
|
||||
QCheckBox *dCheckbox;
|
||||
QLabel *memoryAccumulatorSelectLabel;
|
||||
QCheckBox *cCheckbox;
|
||||
QLabel *indeXSelectLabel;
|
||||
QLabel *irqDisableLabel;
|
||||
QCheckBox *nCheckbox;
|
||||
QCheckBox *zCheckbox;
|
||||
QLabel *breakBLabel;
|
||||
QCheckBox *bCheckbox;
|
||||
QToolBar *toolBar;
|
||||
|
||||
void setupUi(QMainWindow *CPUView)
|
||||
{
|
||||
if (CPUView->objectName().isEmpty())
|
||||
CPUView->setObjectName(QString::fromUtf8("CPUView"));
|
||||
CPUView->resize(1058, 673);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/resources/Logo.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
CPUView->setWindowIcon(icon);
|
||||
CPUView->setAutoFillBackground(false);
|
||||
actionPause = new QAction(CPUView);
|
||||
actionPause->setObjectName(QString::fromUtf8("actionPause"));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/resources/icons/play.svg"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionPause->setIcon(icon1);
|
||||
actionStep = new QAction(CPUView);
|
||||
actionStep->setObjectName(QString::fromUtf8("actionStep"));
|
||||
QIcon icon2;
|
||||
icon2.addFile(QString::fromUtf8(":/resources/icons/step.svg"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionStep->setIcon(icon2);
|
||||
actionNext = new QAction(CPUView);
|
||||
actionNext->setObjectName(QString::fromUtf8("actionNext"));
|
||||
QIcon icon3;
|
||||
icon3.addFile(QString::fromUtf8(":/resources/icons/continue.svg"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
actionNext->setIcon(icon3);
|
||||
centralwidget = new QWidget(CPUView);
|
||||
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||
gridLayout_3 = new QGridLayout(centralwidget);
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
disassembly = new QTableView(centralwidget);
|
||||
disassembly->setObjectName(QString::fromUtf8("disassembly"));
|
||||
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy.setHorizontalStretch(1);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(disassembly->sizePolicy().hasHeightForWidth());
|
||||
disassembly->setSizePolicy(sizePolicy);
|
||||
disassembly->setStyleSheet(QString::fromUtf8(""));
|
||||
disassembly->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
disassembly->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
disassembly->setShowGrid(false);
|
||||
disassembly->setGridStyle(Qt::NoPen);
|
||||
disassembly->horizontalHeader()->setVisible(false);
|
||||
disassembly->horizontalHeader()->setHighlightSections(false);
|
||||
|
||||
gridLayout_3->addWidget(disassembly, 0, 0, 3, 1);
|
||||
|
||||
gridLayout_2 = new QGridLayout();
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
stackView = new QTableView(centralwidget);
|
||||
stackView->setObjectName(QString::fromUtf8("stackView"));
|
||||
stackView->horizontalHeader()->setVisible(false);
|
||||
|
||||
gridLayout_2->addWidget(stackView, 1, 0, 1, 1);
|
||||
|
||||
label = new QLabel(centralwidget);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
label->setAlignment(Qt::AlignCenter);
|
||||
|
||||
gridLayout_2->addWidget(label, 0, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(gridLayout_2, 0, 1, 1, 1);
|
||||
|
||||
formLayout = new QFormLayout();
|
||||
formLayout->setObjectName(QString::fromUtf8("formLayout"));
|
||||
accumulatorLabel = new QLabel(centralwidget);
|
||||
accumulatorLabel->setObjectName(QString::fromUtf8("accumulatorLabel"));
|
||||
|
||||
formLayout->setWidget(0, QFormLayout::LabelRole, accumulatorLabel);
|
||||
|
||||
accumulatorLineEdit = new QLineEdit(centralwidget);
|
||||
accumulatorLineEdit->setObjectName(QString::fromUtf8("accumulatorLineEdit"));
|
||||
|
||||
formLayout->setWidget(0, QFormLayout::FieldRole, accumulatorLineEdit);
|
||||
|
||||
programBankRegisterLabel = new QLabel(centralwidget);
|
||||
programBankRegisterLabel->setObjectName(QString::fromUtf8("programBankRegisterLabel"));
|
||||
|
||||
formLayout->setWidget(1, QFormLayout::LabelRole, programBankRegisterLabel);
|
||||
|
||||
programBankRegisterLineEdit = new QLineEdit(centralwidget);
|
||||
programBankRegisterLineEdit->setObjectName(QString::fromUtf8("programBankRegisterLineEdit"));
|
||||
|
||||
formLayout->setWidget(1, QFormLayout::FieldRole, programBankRegisterLineEdit);
|
||||
|
||||
programCounterLabel = new QLabel(centralwidget);
|
||||
programCounterLabel->setObjectName(QString::fromUtf8("programCounterLabel"));
|
||||
|
||||
formLayout->setWidget(2, QFormLayout::LabelRole, programCounterLabel);
|
||||
|
||||
programCounterLineEdit = new QLineEdit(centralwidget);
|
||||
programCounterLineEdit->setObjectName(QString::fromUtf8("programCounterLineEdit"));
|
||||
|
||||
formLayout->setWidget(2, QFormLayout::FieldRole, programCounterLineEdit);
|
||||
|
||||
directBankLabel = new QLabel(centralwidget);
|
||||
directBankLabel->setObjectName(QString::fromUtf8("directBankLabel"));
|
||||
|
||||
formLayout->setWidget(3, QFormLayout::LabelRole, directBankLabel);
|
||||
|
||||
directBankLineEdit = new QLineEdit(centralwidget);
|
||||
directBankLineEdit->setObjectName(QString::fromUtf8("directBankLineEdit"));
|
||||
|
||||
formLayout->setWidget(3, QFormLayout::FieldRole, directBankLineEdit);
|
||||
|
||||
directPageLabel = new QLabel(centralwidget);
|
||||
directPageLabel->setObjectName(QString::fromUtf8("directPageLabel"));
|
||||
|
||||
formLayout->setWidget(4, QFormLayout::LabelRole, directPageLabel);
|
||||
|
||||
directPageLineEdit = new QLineEdit(centralwidget);
|
||||
directPageLineEdit->setObjectName(QString::fromUtf8("directPageLineEdit"));
|
||||
|
||||
formLayout->setWidget(4, QFormLayout::FieldRole, directPageLineEdit);
|
||||
|
||||
stackPointerLabel = new QLabel(centralwidget);
|
||||
stackPointerLabel->setObjectName(QString::fromUtf8("stackPointerLabel"));
|
||||
|
||||
formLayout->setWidget(5, QFormLayout::LabelRole, stackPointerLabel);
|
||||
|
||||
stackPointerLineEdit = new QLineEdit(centralwidget);
|
||||
stackPointerLineEdit->setObjectName(QString::fromUtf8("stackPointerLineEdit"));
|
||||
|
||||
formLayout->setWidget(5, QFormLayout::FieldRole, stackPointerLineEdit);
|
||||
|
||||
xIndexLabel = new QLabel(centralwidget);
|
||||
xIndexLabel->setObjectName(QString::fromUtf8("xIndexLabel"));
|
||||
|
||||
formLayout->setWidget(6, QFormLayout::LabelRole, xIndexLabel);
|
||||
|
||||
xIndexLineEdit = new QLineEdit(centralwidget);
|
||||
xIndexLineEdit->setObjectName(QString::fromUtf8("xIndexLineEdit"));
|
||||
|
||||
formLayout->setWidget(6, QFormLayout::FieldRole, xIndexLineEdit);
|
||||
|
||||
yIndexLabel = new QLabel(centralwidget);
|
||||
yIndexLabel->setObjectName(QString::fromUtf8("yIndexLabel"));
|
||||
|
||||
formLayout->setWidget(7, QFormLayout::LabelRole, yIndexLabel);
|
||||
|
||||
yIndexLineEdit = new QLineEdit(centralwidget);
|
||||
yIndexLineEdit->setObjectName(QString::fromUtf8("yIndexLineEdit"));
|
||||
|
||||
formLayout->setWidget(7, QFormLayout::FieldRole, yIndexLineEdit);
|
||||
|
||||
emulationModeLabel = new QLabel(centralwidget);
|
||||
emulationModeLabel->setObjectName(QString::fromUtf8("emulationModeLabel"));
|
||||
|
||||
formLayout->setWidget(8, QFormLayout::LabelRole, emulationModeLabel);
|
||||
|
||||
emulationModeCheckBox = new QCheckBox(centralwidget);
|
||||
emulationModeCheckBox->setObjectName(QString::fromUtf8("emulationModeCheckBox"));
|
||||
emulationModeCheckBox->setLayoutDirection(Qt::RightToLeft);
|
||||
emulationModeCheckBox->setCheckable(true);
|
||||
|
||||
formLayout->setWidget(8, QFormLayout::FieldRole, emulationModeCheckBox);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(formLayout, 0, 2, 2, 1);
|
||||
|
||||
gridLayout = new QGridLayout();
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
loggerLabel = new QLabel(centralwidget);
|
||||
loggerLabel->setObjectName(QString::fromUtf8("loggerLabel"));
|
||||
loggerLabel->setAlignment(Qt::AlignCenter);
|
||||
|
||||
gridLayout->addWidget(loggerLabel, 0, 0, 1, 1);
|
||||
|
||||
clear = new QPushButton(centralwidget);
|
||||
clear->setObjectName(QString::fromUtf8("clear"));
|
||||
|
||||
gridLayout->addWidget(clear, 2, 0, 1, 1);
|
||||
|
||||
history = new QTableView(centralwidget);
|
||||
history->setObjectName(QString::fromUtf8("history"));
|
||||
|
||||
gridLayout->addWidget(history, 1, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(gridLayout, 1, 1, 2, 1);
|
||||
|
||||
formGroupBox = new QGroupBox(centralwidget);
|
||||
formGroupBox->setObjectName(QString::fromUtf8("formGroupBox"));
|
||||
formGroupBox->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
||||
formGroupBox->setFlat(false);
|
||||
formGroupBox->setCheckable(false);
|
||||
formLayout_2 = new QFormLayout(formGroupBox);
|
||||
formLayout_2->setObjectName(QString::fromUtf8("formLayout_2"));
|
||||
formLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
|
||||
formLayout_2->setLabelAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
||||
formLayout_2->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
|
||||
formLayout_2->setContentsMargins(26, 7, 0, -1);
|
||||
negativeLabel = new QLabel(formGroupBox);
|
||||
negativeLabel->setObjectName(QString::fromUtf8("negativeLabel"));
|
||||
|
||||
formLayout_2->setWidget(0, QFormLayout::LabelRole, negativeLabel);
|
||||
|
||||
mCheckbox = new QCheckBox(formGroupBox);
|
||||
mCheckbox->setObjectName(QString::fromUtf8("mCheckbox"));
|
||||
mCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(0, QFormLayout::FieldRole, mCheckbox);
|
||||
|
||||
zeroLabel = new QLabel(formGroupBox);
|
||||
zeroLabel->setObjectName(QString::fromUtf8("zeroLabel"));
|
||||
|
||||
formLayout_2->setWidget(1, QFormLayout::LabelRole, zeroLabel);
|
||||
|
||||
xCheckbox = new QCheckBox(formGroupBox);
|
||||
xCheckbox->setObjectName(QString::fromUtf8("xCheckbox"));
|
||||
xCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(1, QFormLayout::FieldRole, xCheckbox);
|
||||
|
||||
carryLabel = new QLabel(formGroupBox);
|
||||
carryLabel->setObjectName(QString::fromUtf8("carryLabel"));
|
||||
|
||||
formLayout_2->setWidget(3, QFormLayout::LabelRole, carryLabel);
|
||||
|
||||
iCheckbox = new QCheckBox(formGroupBox);
|
||||
iCheckbox->setObjectName(QString::fromUtf8("iCheckbox"));
|
||||
iCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(3, QFormLayout::FieldRole, iCheckbox);
|
||||
|
||||
Overflow = new QLabel(formGroupBox);
|
||||
Overflow->setObjectName(QString::fromUtf8("Overflow"));
|
||||
|
||||
formLayout_2->setWidget(4, QFormLayout::LabelRole, Overflow);
|
||||
|
||||
vCheckbox = new QCheckBox(formGroupBox);
|
||||
vCheckbox->setObjectName(QString::fromUtf8("vCheckbox"));
|
||||
vCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(4, QFormLayout::FieldRole, vCheckbox);
|
||||
|
||||
decimalLabel = new QLabel(formGroupBox);
|
||||
decimalLabel->setObjectName(QString::fromUtf8("decimalLabel"));
|
||||
|
||||
formLayout_2->setWidget(5, QFormLayout::LabelRole, decimalLabel);
|
||||
|
||||
dCheckbox = new QCheckBox(formGroupBox);
|
||||
dCheckbox->setObjectName(QString::fromUtf8("dCheckbox"));
|
||||
dCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(5, QFormLayout::FieldRole, dCheckbox);
|
||||
|
||||
memoryAccumulatorSelectLabel = new QLabel(formGroupBox);
|
||||
memoryAccumulatorSelectLabel->setObjectName(QString::fromUtf8("memoryAccumulatorSelectLabel"));
|
||||
|
||||
formLayout_2->setWidget(6, QFormLayout::LabelRole, memoryAccumulatorSelectLabel);
|
||||
|
||||
cCheckbox = new QCheckBox(formGroupBox);
|
||||
cCheckbox->setObjectName(QString::fromUtf8("cCheckbox"));
|
||||
cCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(6, QFormLayout::FieldRole, cCheckbox);
|
||||
|
||||
indeXSelectLabel = new QLabel(formGroupBox);
|
||||
indeXSelectLabel->setObjectName(QString::fromUtf8("indeXSelectLabel"));
|
||||
|
||||
formLayout_2->setWidget(7, QFormLayout::LabelRole, indeXSelectLabel);
|
||||
|
||||
irqDisableLabel = new QLabel(formGroupBox);
|
||||
irqDisableLabel->setObjectName(QString::fromUtf8("irqDisableLabel"));
|
||||
|
||||
formLayout_2->setWidget(8, QFormLayout::LabelRole, irqDisableLabel);
|
||||
|
||||
nCheckbox = new QCheckBox(formGroupBox);
|
||||
nCheckbox->setObjectName(QString::fromUtf8("nCheckbox"));
|
||||
nCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(8, QFormLayout::FieldRole, nCheckbox);
|
||||
|
||||
zCheckbox = new QCheckBox(formGroupBox);
|
||||
zCheckbox->setObjectName(QString::fromUtf8("zCheckbox"));
|
||||
zCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(7, QFormLayout::FieldRole, zCheckbox);
|
||||
|
||||
breakBLabel = new QLabel(formGroupBox);
|
||||
breakBLabel->setObjectName(QString::fromUtf8("breakBLabel"));
|
||||
|
||||
formLayout_2->setWidget(2, QFormLayout::LabelRole, breakBLabel);
|
||||
|
||||
bCheckbox = new QCheckBox(formGroupBox);
|
||||
bCheckbox->setObjectName(QString::fromUtf8("bCheckbox"));
|
||||
bCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
formLayout_2->setWidget(2, QFormLayout::FieldRole, bCheckbox);
|
||||
|
||||
|
||||
gridLayout_3->addWidget(formGroupBox, 2, 2, 1, 1);
|
||||
|
||||
CPUView->setCentralWidget(centralwidget);
|
||||
toolBar = new QToolBar(CPUView);
|
||||
toolBar->setObjectName(QString::fromUtf8("toolBar"));
|
||||
toolBar->setMinimumSize(QSize(0, 0));
|
||||
toolBar->setMovable(false);
|
||||
toolBar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
toolBar->setFloatable(true);
|
||||
CPUView->addToolBar(Qt::TopToolBarArea, toolBar);
|
||||
|
||||
toolBar->addAction(actionPause);
|
||||
toolBar->addAction(actionNext);
|
||||
toolBar->addAction(actionStep);
|
||||
|
||||
retranslateUi(CPUView);
|
||||
|
||||
QMetaObject::connectSlotsByName(CPUView);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QMainWindow *CPUView)
|
||||
{
|
||||
CPUView->setWindowTitle(QCoreApplication::translate("CPUView", "CPU's Debugger", nullptr));
|
||||
actionPause->setText(QCoreApplication::translate("CPUView", "Continue", nullptr));
|
||||
#if QT_CONFIG(tooltip)
|
||||
actionPause->setToolTip(QCoreApplication::translate("CPUView", "Pause or Resume instruction execution.", nullptr));
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
#if QT_CONFIG(shortcut)
|
||||
actionPause->setShortcut(QCoreApplication::translate("CPUView", "C", nullptr));
|
||||
#endif // QT_CONFIG(shortcut)
|
||||
actionStep->setText(QCoreApplication::translate("CPUView", "Step", nullptr));
|
||||
#if QT_CONFIG(tooltip)
|
||||
actionStep->setToolTip(QCoreApplication::translate("CPUView", "Execute a single instruction", nullptr));
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
#if QT_CONFIG(shortcut)
|
||||
actionStep->setShortcut(QCoreApplication::translate("CPUView", "S", nullptr));
|
||||
#endif // QT_CONFIG(shortcut)
|
||||
actionNext->setText(QCoreApplication::translate("CPUView", "Next", nullptr));
|
||||
#if QT_CONFIG(tooltip)
|
||||
actionNext->setToolTip(QCoreApplication::translate("CPUView", "Continue execution to the next line.", nullptr));
|
||||
#endif // QT_CONFIG(tooltip)
|
||||
#if QT_CONFIG(shortcut)
|
||||
actionNext->setShortcut(QCoreApplication::translate("CPUView", "N", nullptr));
|
||||
#endif // QT_CONFIG(shortcut)
|
||||
label->setText(QCoreApplication::translate("CPUView", "Stack Viewer", nullptr));
|
||||
accumulatorLabel->setText(QCoreApplication::translate("CPUView", "Accumulator", nullptr));
|
||||
accumulatorLineEdit->setText(QString());
|
||||
programBankRegisterLabel->setText(QCoreApplication::translate("CPUView", "Program Bank", nullptr));
|
||||
programCounterLabel->setText(QCoreApplication::translate("CPUView", "Program Counter", nullptr));
|
||||
directBankLabel->setText(QCoreApplication::translate("CPUView", "Direct Bank", nullptr));
|
||||
directPageLabel->setText(QCoreApplication::translate("CPUView", "Direct Page", nullptr));
|
||||
stackPointerLabel->setText(QCoreApplication::translate("CPUView", "Stack Pointer", nullptr));
|
||||
xIndexLabel->setText(QCoreApplication::translate("CPUView", "X Index", nullptr));
|
||||
yIndexLabel->setText(QCoreApplication::translate("CPUView", "Y Index", nullptr));
|
||||
emulationModeLabel->setText(QCoreApplication::translate("CPUView", "Emulation mode", nullptr));
|
||||
loggerLabel->setText(QCoreApplication::translate("CPUView", "Instructions History", nullptr));
|
||||
clear->setText(QCoreApplication::translate("CPUView", "Clear History", nullptr));
|
||||
formGroupBox->setTitle(QCoreApplication::translate("CPUView", "Flags", nullptr));
|
||||
negativeLabel->setText(QCoreApplication::translate("CPUView", "Memory Select (M)", nullptr));
|
||||
zeroLabel->setText(QCoreApplication::translate("CPUView", "Index Select (X)", nullptr));
|
||||
carryLabel->setText(QCoreApplication::translate("CPUView", "Interupt Request Disable (I)", nullptr));
|
||||
Overflow->setText(QCoreApplication::translate("CPUView", "Overflow (V)", nullptr));
|
||||
decimalLabel->setText(QCoreApplication::translate("CPUView", "Decimal (D)", nullptr));
|
||||
memoryAccumulatorSelectLabel->setText(QCoreApplication::translate("CPUView", "Carry (C)", nullptr));
|
||||
indeXSelectLabel->setText(QCoreApplication::translate("CPUView", "Zero (Z)", nullptr));
|
||||
irqDisableLabel->setText(QCoreApplication::translate("CPUView", "Negative (N)", nullptr));
|
||||
breakBLabel->setText(QCoreApplication::translate("CPUView", "Break (B)", nullptr));
|
||||
toolBar->setWindowTitle(QCoreApplication::translate("CPUView", "toolBar", nullptr));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class CPUView: public Ui_CPUView {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_CPUVIEW_H
|
||||
Reference in New Issue
Block a user