mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
Cleaning up
This commit is contained in:
@@ -33,6 +33,7 @@ namespace ComSquare::Debugger
|
|||||||
this->_updateDisassembly(this->_cartridgeHeader.emulationInterrupts.reset, 0xFFFF - this->_cartridgeHeader.emulationInterrupts.reset); //Parse the first page of the ROM (the code can't reach the second page without a jump).
|
this->_updateDisassembly(this->_cartridgeHeader.emulationInterrupts.reset, 0xFFFF - this->_cartridgeHeader.emulationInterrupts.reset); //Parse the first page of the ROM (the code can't reach the second page without a jump).
|
||||||
this->_ui.disassembly->setModel(&this->_model);
|
this->_ui.disassembly->setModel(&this->_model);
|
||||||
this->_ui.disassembly->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
|
this->_ui.disassembly->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
|
||||||
|
this->_ui.disassembly->horizontalHeader()->setStretchLastSection(true);
|
||||||
this->_ui.disassembly->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
this->_ui.disassembly->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
||||||
this->_ui.disassembly->verticalHeader()->setHighlightSections(false);
|
this->_ui.disassembly->verticalHeader()->setHighlightSections(false);
|
||||||
this->_ui.disassembly->setItemDelegate(&this->_painter);
|
this->_ui.disassembly->setItemDelegate(&this->_painter);
|
||||||
@@ -45,6 +46,7 @@ namespace ComSquare::Debugger
|
|||||||
|
|
||||||
this->_ui.history->setModel(&this->_historyModel);
|
this->_ui.history->setModel(&this->_historyModel);
|
||||||
this->_ui.history->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
this->_ui.history->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
|
||||||
|
this->_ui.history->horizontalHeader()->setStretchLastSection(true);
|
||||||
this->_ui.history->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
this->_ui.history->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
||||||
this->_ui.history->verticalHeader()->hide();
|
this->_ui.history->verticalHeader()->hide();
|
||||||
|
|
||||||
@@ -183,6 +185,7 @@ namespace ComSquare::Debugger
|
|||||||
|
|
||||||
this->_ui.mCheckbox->setCheckState(this->_registers.p.m ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
this->_ui.mCheckbox->setCheckState(this->_registers.p.m ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
this->_ui.xCheckbox->setCheckState(this->_registers.p.x_b ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
this->_ui.xCheckbox->setCheckState(this->_registers.p.x_b ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
|
this->_ui.bCheckbox->setCheckState(this->_registers.p.x_b ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
this->_ui.iCheckbox->setCheckState(this->_registers.p.i ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
this->_ui.iCheckbox->setCheckState(this->_registers.p.i ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
this->_ui.vCheckbox->setCheckState(this->_registers.p.v ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
this->_ui.vCheckbox->setCheckState(this->_registers.p.v ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
this->_ui.dCheckbox->setCheckState(this->_registers.p.d ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
this->_ui.dCheckbox->setCheckState(this->_registers.p.d ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
@@ -327,8 +330,20 @@ QVariant DisassemblyModel::data(const QModelIndex &index, int role) const
|
|||||||
|
|
||||||
QVariant DisassemblyModel::headerData(int section, Qt::Orientation orientation, int role) const
|
QVariant DisassemblyModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||||
{
|
{
|
||||||
if (orientation == Qt::Horizontal)
|
if (orientation == Qt::Horizontal) {
|
||||||
return QVariant();
|
switch (section) {
|
||||||
|
case 0:
|
||||||
|
return QString("INST");
|
||||||
|
case 1:
|
||||||
|
return QString("Parameter");
|
||||||
|
case 2:
|
||||||
|
return QString("Thrust");
|
||||||
|
case 3:
|
||||||
|
return QString("Data Address");
|
||||||
|
default:
|
||||||
|
return QVariant();
|
||||||
|
}
|
||||||
|
}
|
||||||
if (role != Qt::DisplayRole)
|
if (role != Qt::DisplayRole)
|
||||||
return QVariant();
|
return QVariant();
|
||||||
ComSquare::Debugger::DisassembledInstruction instruction = this->_cpu.disassembledInstructions[section];
|
ComSquare::Debugger::DisassembledInstruction instruction = this->_cpu.disassembledInstructions[section];
|
||||||
@@ -447,13 +462,13 @@ QVariant HistoryModel::headerData(int section, Qt::Orientation orientation, int
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
switch (section) {
|
switch (section) {
|
||||||
case 0:
|
case 0:
|
||||||
return QString("OP");
|
return QString("op");
|
||||||
case 1:
|
case 1:
|
||||||
return QString("INST");
|
return QString("ins");
|
||||||
case 2:
|
case 2:
|
||||||
return QString("Parameter");
|
return QString("Parameter");
|
||||||
case 3:
|
case 3:
|
||||||
return QString("Data Addr");
|
return QString("Pointer");
|
||||||
default:
|
default:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|||||||
55
ui/cpu.ui
55
ui/cpu.ui
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>971</width>
|
<width>1058</width>
|
||||||
<height>673</height>
|
<height>673</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="0" column="0" rowspan="2">
|
<item row="0" column="0" rowspan="3">
|
||||||
<widget class="QTableView" name="disassembly">
|
<widget class="QTableView" name="disassembly">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="0" column="2" rowspan="2">
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="accumulatorLabel">
|
<widget class="QLabel" name="accumulatorLabel">
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1" rowspan="2">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="loggerLabel">
|
<widget class="QLabel" name="loggerLabel">
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<item row="2" column="2">
|
||||||
<widget class="QGroupBox" name="formGroupBox">
|
<widget class="QGroupBox" name="formGroupBox">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Flags</string>
|
<string>Flags</string>
|
||||||
@@ -233,10 +233,13 @@
|
|||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>7</number>
|
<number>7</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="negativeLabel">
|
<widget class="QLabel" name="negativeLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Memory/Accumulator Select (M)</string>
|
<string>Memory Select (M)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -250,7 +253,7 @@
|
|||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="zeroLabel">
|
<widget class="QLabel" name="zeroLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Index Select (X) / Break (B)</string>
|
<string>Index Select (X)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -261,90 +264,104 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="carryLabel">
|
<widget class="QLabel" name="carryLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Interupt Request Disable (I)</string>
|
<string>Interupt Request Disable (I)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QCheckBox" name="iCheckbox">
|
<widget class="QCheckBox" name="iCheckbox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="4" column="0">
|
||||||
<widget class="QLabel" name="Overflow">
|
<widget class="QLabel" name="Overflow">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Overflow (V)</string>
|
<string>Overflow (V)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QCheckBox" name="vCheckbox">
|
<widget class="QCheckBox" name="vCheckbox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QLabel" name="decimalLabel">
|
<widget class="QLabel" name="decimalLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Decimal (D)</string>
|
<string>Decimal (D)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="5" column="1">
|
||||||
<widget class="QCheckBox" name="dCheckbox">
|
<widget class="QCheckBox" name="dCheckbox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="6" column="0">
|
||||||
<widget class="QLabel" name="memoryAccumulatorSelectLabel">
|
<widget class="QLabel" name="memoryAccumulatorSelectLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Carry (C)</string>
|
<string>Carry (C)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="6" column="1">
|
||||||
<widget class="QCheckBox" name="cCheckbox">
|
<widget class="QCheckBox" name="cCheckbox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
<item row="7" column="0">
|
||||||
<widget class="QLabel" name="indeXSelectLabel">
|
<widget class="QLabel" name="indeXSelectLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Zero (Z)</string>
|
<string>Zero (Z)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0">
|
<item row="8" column="0">
|
||||||
<widget class="QLabel" name="irqDisableLabel">
|
<widget class="QLabel" name="irqDisableLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Negative (N)</string>
|
<string>Negative (N)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1">
|
<item row="8" column="1">
|
||||||
<widget class="QCheckBox" name="nCheckbox">
|
<widget class="QCheckBox" name="nCheckbox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1">
|
<item row="7" column="1">
|
||||||
<widget class="QCheckBox" name="zCheckbox">
|
<widget class="QCheckBox" name="zCheckbox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="breakBLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Break (B)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QCheckBox" name="bCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
54
ui/ui_cpu.h
54
ui/ui_cpu.h
@@ -81,13 +81,15 @@ public:
|
|||||||
QLabel *irqDisableLabel;
|
QLabel *irqDisableLabel;
|
||||||
QCheckBox *nCheckbox;
|
QCheckBox *nCheckbox;
|
||||||
QCheckBox *zCheckbox;
|
QCheckBox *zCheckbox;
|
||||||
|
QLabel *breakBLabel;
|
||||||
|
QCheckBox *bCheckbox;
|
||||||
QToolBar *toolBar;
|
QToolBar *toolBar;
|
||||||
|
|
||||||
void setupUi(QMainWindow *CPUView)
|
void setupUi(QMainWindow *CPUView)
|
||||||
{
|
{
|
||||||
if (CPUView->objectName().isEmpty())
|
if (CPUView->objectName().isEmpty())
|
||||||
CPUView->setObjectName(QString::fromUtf8("CPUView"));
|
CPUView->setObjectName(QString::fromUtf8("CPUView"));
|
||||||
CPUView->resize(971, 673);
|
CPUView->resize(1058, 673);
|
||||||
QIcon icon;
|
QIcon icon;
|
||||||
icon.addFile(QString::fromUtf8(":/resources/Logo.png"), QSize(), QIcon::Normal, QIcon::Off);
|
icon.addFile(QString::fromUtf8(":/resources/Logo.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||||
CPUView->setWindowIcon(icon);
|
CPUView->setWindowIcon(icon);
|
||||||
@@ -126,7 +128,7 @@ public:
|
|||||||
disassembly->horizontalHeader()->setVisible(false);
|
disassembly->horizontalHeader()->setVisible(false);
|
||||||
disassembly->horizontalHeader()->setHighlightSections(false);
|
disassembly->horizontalHeader()->setHighlightSections(false);
|
||||||
|
|
||||||
gridLayout_3->addWidget(disassembly, 0, 0, 2, 1);
|
gridLayout_3->addWidget(disassembly, 0, 0, 3, 1);
|
||||||
|
|
||||||
gridLayout_2 = new QGridLayout();
|
gridLayout_2 = new QGridLayout();
|
||||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||||
@@ -240,7 +242,7 @@ public:
|
|||||||
formLayout->setWidget(8, QFormLayout::FieldRole, emulationModeCheckBox);
|
formLayout->setWidget(8, QFormLayout::FieldRole, emulationModeCheckBox);
|
||||||
|
|
||||||
|
|
||||||
gridLayout_3->addLayout(formLayout, 0, 2, 1, 1);
|
gridLayout_3->addLayout(formLayout, 0, 2, 2, 1);
|
||||||
|
|
||||||
gridLayout = new QGridLayout();
|
gridLayout = new QGridLayout();
|
||||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||||
@@ -261,7 +263,7 @@ public:
|
|||||||
gridLayout->addWidget(history, 1, 0, 1, 1);
|
gridLayout->addWidget(history, 1, 0, 1, 1);
|
||||||
|
|
||||||
|
|
||||||
gridLayout_3->addLayout(gridLayout, 1, 1, 1, 1);
|
gridLayout_3->addLayout(gridLayout, 1, 1, 2, 1);
|
||||||
|
|
||||||
formGroupBox = new QGroupBox(centralwidget);
|
formGroupBox = new QGroupBox(centralwidget);
|
||||||
formGroupBox->setObjectName(QString::fromUtf8("formGroupBox"));
|
formGroupBox->setObjectName(QString::fromUtf8("formGroupBox"));
|
||||||
@@ -273,7 +275,7 @@ public:
|
|||||||
formLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
|
formLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint);
|
||||||
formLayout_2->setLabelAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
formLayout_2->setLabelAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
||||||
formLayout_2->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
|
formLayout_2->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
|
||||||
formLayout_2->setContentsMargins(26, 7, -1, -1);
|
formLayout_2->setContentsMargins(26, 7, 0, -1);
|
||||||
negativeLabel = new QLabel(formGroupBox);
|
negativeLabel = new QLabel(formGroupBox);
|
||||||
negativeLabel->setObjectName(QString::fromUtf8("negativeLabel"));
|
negativeLabel->setObjectName(QString::fromUtf8("negativeLabel"));
|
||||||
|
|
||||||
@@ -299,71 +301,82 @@ public:
|
|||||||
carryLabel = new QLabel(formGroupBox);
|
carryLabel = new QLabel(formGroupBox);
|
||||||
carryLabel->setObjectName(QString::fromUtf8("carryLabel"));
|
carryLabel->setObjectName(QString::fromUtf8("carryLabel"));
|
||||||
|
|
||||||
formLayout_2->setWidget(2, QFormLayout::LabelRole, carryLabel);
|
formLayout_2->setWidget(3, QFormLayout::LabelRole, carryLabel);
|
||||||
|
|
||||||
iCheckbox = new QCheckBox(formGroupBox);
|
iCheckbox = new QCheckBox(formGroupBox);
|
||||||
iCheckbox->setObjectName(QString::fromUtf8("iCheckbox"));
|
iCheckbox->setObjectName(QString::fromUtf8("iCheckbox"));
|
||||||
iCheckbox->setLayoutDirection(Qt::RightToLeft);
|
iCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
formLayout_2->setWidget(2, QFormLayout::FieldRole, iCheckbox);
|
formLayout_2->setWidget(3, QFormLayout::FieldRole, iCheckbox);
|
||||||
|
|
||||||
Overflow = new QLabel(formGroupBox);
|
Overflow = new QLabel(formGroupBox);
|
||||||
Overflow->setObjectName(QString::fromUtf8("Overflow"));
|
Overflow->setObjectName(QString::fromUtf8("Overflow"));
|
||||||
|
|
||||||
formLayout_2->setWidget(3, QFormLayout::LabelRole, Overflow);
|
formLayout_2->setWidget(4, QFormLayout::LabelRole, Overflow);
|
||||||
|
|
||||||
vCheckbox = new QCheckBox(formGroupBox);
|
vCheckbox = new QCheckBox(formGroupBox);
|
||||||
vCheckbox->setObjectName(QString::fromUtf8("vCheckbox"));
|
vCheckbox->setObjectName(QString::fromUtf8("vCheckbox"));
|
||||||
vCheckbox->setLayoutDirection(Qt::RightToLeft);
|
vCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
formLayout_2->setWidget(3, QFormLayout::FieldRole, vCheckbox);
|
formLayout_2->setWidget(4, QFormLayout::FieldRole, vCheckbox);
|
||||||
|
|
||||||
decimalLabel = new QLabel(formGroupBox);
|
decimalLabel = new QLabel(formGroupBox);
|
||||||
decimalLabel->setObjectName(QString::fromUtf8("decimalLabel"));
|
decimalLabel->setObjectName(QString::fromUtf8("decimalLabel"));
|
||||||
|
|
||||||
formLayout_2->setWidget(4, QFormLayout::LabelRole, decimalLabel);
|
formLayout_2->setWidget(5, QFormLayout::LabelRole, decimalLabel);
|
||||||
|
|
||||||
dCheckbox = new QCheckBox(formGroupBox);
|
dCheckbox = new QCheckBox(formGroupBox);
|
||||||
dCheckbox->setObjectName(QString::fromUtf8("dCheckbox"));
|
dCheckbox->setObjectName(QString::fromUtf8("dCheckbox"));
|
||||||
dCheckbox->setLayoutDirection(Qt::RightToLeft);
|
dCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
formLayout_2->setWidget(4, QFormLayout::FieldRole, dCheckbox);
|
formLayout_2->setWidget(5, QFormLayout::FieldRole, dCheckbox);
|
||||||
|
|
||||||
memoryAccumulatorSelectLabel = new QLabel(formGroupBox);
|
memoryAccumulatorSelectLabel = new QLabel(formGroupBox);
|
||||||
memoryAccumulatorSelectLabel->setObjectName(QString::fromUtf8("memoryAccumulatorSelectLabel"));
|
memoryAccumulatorSelectLabel->setObjectName(QString::fromUtf8("memoryAccumulatorSelectLabel"));
|
||||||
|
|
||||||
formLayout_2->setWidget(5, QFormLayout::LabelRole, memoryAccumulatorSelectLabel);
|
formLayout_2->setWidget(6, QFormLayout::LabelRole, memoryAccumulatorSelectLabel);
|
||||||
|
|
||||||
cCheckbox = new QCheckBox(formGroupBox);
|
cCheckbox = new QCheckBox(formGroupBox);
|
||||||
cCheckbox->setObjectName(QString::fromUtf8("cCheckbox"));
|
cCheckbox->setObjectName(QString::fromUtf8("cCheckbox"));
|
||||||
cCheckbox->setLayoutDirection(Qt::RightToLeft);
|
cCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
formLayout_2->setWidget(5, QFormLayout::FieldRole, cCheckbox);
|
formLayout_2->setWidget(6, QFormLayout::FieldRole, cCheckbox);
|
||||||
|
|
||||||
indeXSelectLabel = new QLabel(formGroupBox);
|
indeXSelectLabel = new QLabel(formGroupBox);
|
||||||
indeXSelectLabel->setObjectName(QString::fromUtf8("indeXSelectLabel"));
|
indeXSelectLabel->setObjectName(QString::fromUtf8("indeXSelectLabel"));
|
||||||
|
|
||||||
formLayout_2->setWidget(6, QFormLayout::LabelRole, indeXSelectLabel);
|
formLayout_2->setWidget(7, QFormLayout::LabelRole, indeXSelectLabel);
|
||||||
|
|
||||||
irqDisableLabel = new QLabel(formGroupBox);
|
irqDisableLabel = new QLabel(formGroupBox);
|
||||||
irqDisableLabel->setObjectName(QString::fromUtf8("irqDisableLabel"));
|
irqDisableLabel->setObjectName(QString::fromUtf8("irqDisableLabel"));
|
||||||
|
|
||||||
formLayout_2->setWidget(7, QFormLayout::LabelRole, irqDisableLabel);
|
formLayout_2->setWidget(8, QFormLayout::LabelRole, irqDisableLabel);
|
||||||
|
|
||||||
nCheckbox = new QCheckBox(formGroupBox);
|
nCheckbox = new QCheckBox(formGroupBox);
|
||||||
nCheckbox->setObjectName(QString::fromUtf8("nCheckbox"));
|
nCheckbox->setObjectName(QString::fromUtf8("nCheckbox"));
|
||||||
nCheckbox->setLayoutDirection(Qt::RightToLeft);
|
nCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
formLayout_2->setWidget(7, QFormLayout::FieldRole, nCheckbox);
|
formLayout_2->setWidget(8, QFormLayout::FieldRole, nCheckbox);
|
||||||
|
|
||||||
zCheckbox = new QCheckBox(formGroupBox);
|
zCheckbox = new QCheckBox(formGroupBox);
|
||||||
zCheckbox->setObjectName(QString::fromUtf8("zCheckbox"));
|
zCheckbox->setObjectName(QString::fromUtf8("zCheckbox"));
|
||||||
zCheckbox->setLayoutDirection(Qt::RightToLeft);
|
zCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
formLayout_2->setWidget(6, QFormLayout::FieldRole, zCheckbox);
|
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, 1, 2, 1, 1);
|
gridLayout_3->addWidget(formGroupBox, 2, 2, 1, 1);
|
||||||
|
|
||||||
CPUView->setCentralWidget(centralwidget);
|
CPUView->setCentralWidget(centralwidget);
|
||||||
toolBar = new QToolBar(CPUView);
|
toolBar = new QToolBar(CPUView);
|
||||||
@@ -421,14 +434,15 @@ public:
|
|||||||
loggerLabel->setText(QCoreApplication::translate("CPUView", "Instructions History", nullptr));
|
loggerLabel->setText(QCoreApplication::translate("CPUView", "Instructions History", nullptr));
|
||||||
clear->setText(QCoreApplication::translate("CPUView", "Clear History", nullptr));
|
clear->setText(QCoreApplication::translate("CPUView", "Clear History", nullptr));
|
||||||
formGroupBox->setTitle(QCoreApplication::translate("CPUView", "Flags", nullptr));
|
formGroupBox->setTitle(QCoreApplication::translate("CPUView", "Flags", nullptr));
|
||||||
negativeLabel->setText(QCoreApplication::translate("CPUView", "Memory/Accumulator Select (M)", nullptr));
|
negativeLabel->setText(QCoreApplication::translate("CPUView", "Memory Select (M)", nullptr));
|
||||||
zeroLabel->setText(QCoreApplication::translate("CPUView", "Index Select (X) / Break (B)", nullptr));
|
zeroLabel->setText(QCoreApplication::translate("CPUView", "Index Select (X)", nullptr));
|
||||||
carryLabel->setText(QCoreApplication::translate("CPUView", "Interupt Request Disable (I)", nullptr));
|
carryLabel->setText(QCoreApplication::translate("CPUView", "Interupt Request Disable (I)", nullptr));
|
||||||
Overflow->setText(QCoreApplication::translate("CPUView", "Overflow (V)", nullptr));
|
Overflow->setText(QCoreApplication::translate("CPUView", "Overflow (V)", nullptr));
|
||||||
decimalLabel->setText(QCoreApplication::translate("CPUView", "Decimal (D)", nullptr));
|
decimalLabel->setText(QCoreApplication::translate("CPUView", "Decimal (D)", nullptr));
|
||||||
memoryAccumulatorSelectLabel->setText(QCoreApplication::translate("CPUView", "Carry (C)", nullptr));
|
memoryAccumulatorSelectLabel->setText(QCoreApplication::translate("CPUView", "Carry (C)", nullptr));
|
||||||
indeXSelectLabel->setText(QCoreApplication::translate("CPUView", "Zero (Z)", nullptr));
|
indeXSelectLabel->setText(QCoreApplication::translate("CPUView", "Zero (Z)", nullptr));
|
||||||
irqDisableLabel->setText(QCoreApplication::translate("CPUView", "Negative (N)", nullptr));
|
irqDisableLabel->setText(QCoreApplication::translate("CPUView", "Negative (N)", nullptr));
|
||||||
|
breakBLabel->setText(QCoreApplication::translate("CPUView", "Break (B)", nullptr));
|
||||||
toolBar->setWindowTitle(QCoreApplication::translate("CPUView", "toolBar", nullptr));
|
toolBar->setWindowTitle(QCoreApplication::translate("CPUView", "toolBar", nullptr));
|
||||||
} // retranslateUi
|
} // retranslateUi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user