mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-05 02:49:50 +00:00
Reworking a bit the UI to add room for a stack viewer
This commit is contained in:
@@ -165,8 +165,16 @@ namespace ComSquare::Debugger
|
|||||||
this->_ui.xIndexLineEdit->setText(Utility::to_hex(this->_registers.xl).c_str());
|
this->_ui.xIndexLineEdit->setText(Utility::to_hex(this->_registers.xl).c_str());
|
||||||
this->_ui.yIndexLineEdit->setText(Utility::to_hex(this->_registers.yl).c_str());
|
this->_ui.yIndexLineEdit->setText(Utility::to_hex(this->_registers.yl).c_str());
|
||||||
}
|
}
|
||||||
this->_ui.flagsLineEdit->setText(this->_getFlagsString().c_str());
|
|
||||||
this->_ui.emulationModeCheckBox->setCheckState(this->_isEmulationMode ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
this->_ui.emulationModeCheckBox->setCheckState(this->_isEmulationMode ? 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.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.dCheckbox->setCheckState(this->_registers.p.d ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
|
this->_ui.cCheckbox->setCheckState(this->_registers.p.c ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
|
this->_ui.zCheckbox->setCheckState(this->_registers.p.z ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
|
this->_ui.nCheckbox->setCheckState(this->_registers.p.n ? Qt::CheckState::Checked : Qt::CheckState::Unchecked);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CPUDebug::_getFlagsString()
|
std::string CPUDebug::_getFlagsString()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>971</width>
|
<width>971</width>
|
||||||
<height>709</height>
|
<height>673</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="0" column="0" rowspan="2">
|
<item row="0" column="0" rowspan="2">
|
||||||
<widget class="QTableView" name="disassembly">
|
<widget class="QTableView" name="disassembly">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@@ -54,6 +54,23 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QTableView" name="stackView"/>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Stack Viewer</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="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">
|
||||||
@@ -140,23 +157,13 @@
|
|||||||
<widget class="QLineEdit" name="yIndexLineEdit"/>
|
<widget class="QLineEdit" name="yIndexLineEdit"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item row="8" column="0">
|
||||||
<widget class="QLabel" name="flagsLabel">
|
|
||||||
<property name="text">
|
|
||||||
<string>Flags</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1">
|
|
||||||
<widget class="QLineEdit" name="flagsLineEdit"/>
|
|
||||||
</item>
|
|
||||||
<item row="9" column="0">
|
|
||||||
<widget class="QLabel" name="emulationModeLabel">
|
<widget class="QLabel" name="emulationModeLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Emulation mode</string>
|
<string>Emulation mode</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="1">
|
<item row="8" column="1">
|
||||||
<widget class="QCheckBox" name="emulationModeCheckBox">
|
<widget class="QCheckBox" name="emulationModeCheckBox">
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::RightToLeft</enum>
|
<enum>Qt::RightToLeft</enum>
|
||||||
@@ -170,6 +177,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QTextBrowser" name="logger"/>
|
||||||
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QPushButton" name="clear">
|
<widget class="QPushButton" name="clear">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -187,11 +197,153 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QTextBrowser" name="logger"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="2">
|
||||||
|
<widget class="QGroupBox" name="formGroupBox">
|
||||||
|
<property name="title">
|
||||||
|
<string>Flags</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QFormLayout" name="formLayout_2">
|
||||||
|
<property name="sizeConstraint">
|
||||||
|
<enum>QLayout::SetDefaultConstraint</enum>
|
||||||
|
</property>
|
||||||
|
<property name="labelAlignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="formAlignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||||
|
</property>
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>26</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>7</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="negativeLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Memory/Accumulator Select (M)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QCheckBox" name="mCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="zeroLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Index Select (X) / Break (B)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QCheckBox" name="xCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="carryLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Interupt Request Disable (I)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QCheckBox" name="iCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="Overflow">
|
||||||
|
<property name="text">
|
||||||
|
<string>Overflow (V)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QCheckBox" name="vCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="decimalLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Decimal (D)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QCheckBox" name="dCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0">
|
||||||
|
<widget class="QLabel" name="memoryAccumulatorSelectLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Carry (C)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="1">
|
||||||
|
<widget class="QCheckBox" name="cCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0">
|
||||||
|
<widget class="QLabel" name="indeXSelectLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Zero (Z)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0">
|
||||||
|
<widget class="QLabel" name="irqDisableLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Negative (N)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="1">
|
||||||
|
<widget class="QCheckBox" name="nCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1">
|
||||||
|
<widget class="QCheckBox" name="zCheckbox">
|
||||||
|
<property name="layoutDirection">
|
||||||
|
<enum>Qt::RightToLeft</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QToolBar" name="toolBar">
|
<widget class="QToolBar" name="toolBar">
|
||||||
|
|||||||
+163
-26
@@ -16,6 +16,7 @@
|
|||||||
#include <QtWidgets/QCheckBox>
|
#include <QtWidgets/QCheckBox>
|
||||||
#include <QtWidgets/QFormLayout>
|
#include <QtWidgets/QFormLayout>
|
||||||
#include <QtWidgets/QGridLayout>
|
#include <QtWidgets/QGridLayout>
|
||||||
|
#include <QtWidgets/QGroupBox>
|
||||||
#include <QtWidgets/QHeaderView>
|
#include <QtWidgets/QHeaderView>
|
||||||
#include <QtWidgets/QLabel>
|
#include <QtWidgets/QLabel>
|
||||||
#include <QtWidgets/QLineEdit>
|
#include <QtWidgets/QLineEdit>
|
||||||
@@ -35,8 +36,11 @@ public:
|
|||||||
QAction *actionStep;
|
QAction *actionStep;
|
||||||
QAction *actionNext;
|
QAction *actionNext;
|
||||||
QWidget *centralwidget;
|
QWidget *centralwidget;
|
||||||
QGridLayout *gridLayout_2;
|
QGridLayout *gridLayout_3;
|
||||||
QTableView *disassembly;
|
QTableView *disassembly;
|
||||||
|
QGridLayout *gridLayout_2;
|
||||||
|
QTableView *stackView;
|
||||||
|
QLabel *label;
|
||||||
QFormLayout *formLayout;
|
QFormLayout *formLayout;
|
||||||
QLabel *accumulatorLabel;
|
QLabel *accumulatorLabel;
|
||||||
QLineEdit *accumulatorLineEdit;
|
QLineEdit *accumulatorLineEdit;
|
||||||
@@ -54,21 +58,37 @@ public:
|
|||||||
QLineEdit *xIndexLineEdit;
|
QLineEdit *xIndexLineEdit;
|
||||||
QLabel *yIndexLabel;
|
QLabel *yIndexLabel;
|
||||||
QLineEdit *yIndexLineEdit;
|
QLineEdit *yIndexLineEdit;
|
||||||
QLabel *flagsLabel;
|
|
||||||
QLineEdit *flagsLineEdit;
|
|
||||||
QLabel *emulationModeLabel;
|
QLabel *emulationModeLabel;
|
||||||
QCheckBox *emulationModeCheckBox;
|
QCheckBox *emulationModeCheckBox;
|
||||||
QGridLayout *gridLayout;
|
QGridLayout *gridLayout;
|
||||||
|
QTextBrowser *logger;
|
||||||
QPushButton *clear;
|
QPushButton *clear;
|
||||||
QLabel *loggerLabel;
|
QLabel *loggerLabel;
|
||||||
QTextBrowser *logger;
|
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;
|
||||||
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, 709);
|
CPUView->resize(971, 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);
|
||||||
@@ -90,8 +110,8 @@ public:
|
|||||||
actionNext->setIcon(icon3);
|
actionNext->setIcon(icon3);
|
||||||
centralwidget = new QWidget(CPUView);
|
centralwidget = new QWidget(CPUView);
|
||||||
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
|
||||||
gridLayout_2 = new QGridLayout(centralwidget);
|
gridLayout_3 = new QGridLayout(centralwidget);
|
||||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||||
disassembly = new QTableView(centralwidget);
|
disassembly = new QTableView(centralwidget);
|
||||||
disassembly->setObjectName(QString::fromUtf8("disassembly"));
|
disassembly->setObjectName(QString::fromUtf8("disassembly"));
|
||||||
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
@@ -107,7 +127,23 @@ public:
|
|||||||
disassembly->horizontalHeader()->setVisible(false);
|
disassembly->horizontalHeader()->setVisible(false);
|
||||||
disassembly->horizontalHeader()->setHighlightSections(false);
|
disassembly->horizontalHeader()->setHighlightSections(false);
|
||||||
|
|
||||||
gridLayout_2->addWidget(disassembly, 0, 0, 2, 1);
|
gridLayout_3->addWidget(disassembly, 0, 0, 2, 1);
|
||||||
|
|
||||||
|
gridLayout_2 = new QGridLayout();
|
||||||
|
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||||
|
stackView = new QTableView(centralwidget);
|
||||||
|
stackView->setObjectName(QString::fromUtf8("stackView"));
|
||||||
|
|
||||||
|
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 = new QFormLayout();
|
||||||
formLayout->setObjectName(QString::fromUtf8("formLayout"));
|
formLayout->setObjectName(QString::fromUtf8("formLayout"));
|
||||||
@@ -191,33 +227,28 @@ public:
|
|||||||
|
|
||||||
formLayout->setWidget(7, QFormLayout::FieldRole, yIndexLineEdit);
|
formLayout->setWidget(7, QFormLayout::FieldRole, yIndexLineEdit);
|
||||||
|
|
||||||
flagsLabel = new QLabel(centralwidget);
|
|
||||||
flagsLabel->setObjectName(QString::fromUtf8("flagsLabel"));
|
|
||||||
|
|
||||||
formLayout->setWidget(8, QFormLayout::LabelRole, flagsLabel);
|
|
||||||
|
|
||||||
flagsLineEdit = new QLineEdit(centralwidget);
|
|
||||||
flagsLineEdit->setObjectName(QString::fromUtf8("flagsLineEdit"));
|
|
||||||
|
|
||||||
formLayout->setWidget(8, QFormLayout::FieldRole, flagsLineEdit);
|
|
||||||
|
|
||||||
emulationModeLabel = new QLabel(centralwidget);
|
emulationModeLabel = new QLabel(centralwidget);
|
||||||
emulationModeLabel->setObjectName(QString::fromUtf8("emulationModeLabel"));
|
emulationModeLabel->setObjectName(QString::fromUtf8("emulationModeLabel"));
|
||||||
|
|
||||||
formLayout->setWidget(9, QFormLayout::LabelRole, emulationModeLabel);
|
formLayout->setWidget(8, QFormLayout::LabelRole, emulationModeLabel);
|
||||||
|
|
||||||
emulationModeCheckBox = new QCheckBox(centralwidget);
|
emulationModeCheckBox = new QCheckBox(centralwidget);
|
||||||
emulationModeCheckBox->setObjectName(QString::fromUtf8("emulationModeCheckBox"));
|
emulationModeCheckBox->setObjectName(QString::fromUtf8("emulationModeCheckBox"));
|
||||||
emulationModeCheckBox->setLayoutDirection(Qt::RightToLeft);
|
emulationModeCheckBox->setLayoutDirection(Qt::RightToLeft);
|
||||||
emulationModeCheckBox->setCheckable(true);
|
emulationModeCheckBox->setCheckable(true);
|
||||||
|
|
||||||
formLayout->setWidget(9, QFormLayout::FieldRole, emulationModeCheckBox);
|
formLayout->setWidget(8, QFormLayout::FieldRole, emulationModeCheckBox);
|
||||||
|
|
||||||
|
|
||||||
gridLayout_2->addLayout(formLayout, 0, 1, 1, 1);
|
gridLayout_3->addLayout(formLayout, 0, 2, 1, 1);
|
||||||
|
|
||||||
gridLayout = new QGridLayout();
|
gridLayout = new QGridLayout();
|
||||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||||
|
logger = new QTextBrowser(centralwidget);
|
||||||
|
logger->setObjectName(QString::fromUtf8("logger"));
|
||||||
|
|
||||||
|
gridLayout->addWidget(logger, 1, 0, 1, 1);
|
||||||
|
|
||||||
clear = new QPushButton(centralwidget);
|
clear = new QPushButton(centralwidget);
|
||||||
clear->setObjectName(QString::fromUtf8("clear"));
|
clear->setObjectName(QString::fromUtf8("clear"));
|
||||||
|
|
||||||
@@ -229,13 +260,110 @@ public:
|
|||||||
|
|
||||||
gridLayout->addWidget(loggerLabel, 0, 0, 1, 1);
|
gridLayout->addWidget(loggerLabel, 0, 0, 1, 1);
|
||||||
|
|
||||||
logger = new QTextBrowser(centralwidget);
|
|
||||||
logger->setObjectName(QString::fromUtf8("logger"));
|
|
||||||
|
|
||||||
gridLayout->addWidget(logger, 1, 0, 1, 1);
|
gridLayout_3->addLayout(gridLayout, 1, 1, 1, 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, -1, -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(2, QFormLayout::LabelRole, carryLabel);
|
||||||
|
|
||||||
|
iCheckbox = new QCheckBox(formGroupBox);
|
||||||
|
iCheckbox->setObjectName(QString::fromUtf8("iCheckbox"));
|
||||||
|
iCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
|
formLayout_2->setWidget(2, QFormLayout::FieldRole, iCheckbox);
|
||||||
|
|
||||||
|
Overflow = new QLabel(formGroupBox);
|
||||||
|
Overflow->setObjectName(QString::fromUtf8("Overflow"));
|
||||||
|
|
||||||
|
formLayout_2->setWidget(3, QFormLayout::LabelRole, Overflow);
|
||||||
|
|
||||||
|
vCheckbox = new QCheckBox(formGroupBox);
|
||||||
|
vCheckbox->setObjectName(QString::fromUtf8("vCheckbox"));
|
||||||
|
vCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
|
formLayout_2->setWidget(3, QFormLayout::FieldRole, vCheckbox);
|
||||||
|
|
||||||
|
decimalLabel = new QLabel(formGroupBox);
|
||||||
|
decimalLabel->setObjectName(QString::fromUtf8("decimalLabel"));
|
||||||
|
|
||||||
|
formLayout_2->setWidget(4, QFormLayout::LabelRole, decimalLabel);
|
||||||
|
|
||||||
|
dCheckbox = new QCheckBox(formGroupBox);
|
||||||
|
dCheckbox->setObjectName(QString::fromUtf8("dCheckbox"));
|
||||||
|
dCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
|
formLayout_2->setWidget(4, QFormLayout::FieldRole, dCheckbox);
|
||||||
|
|
||||||
|
memoryAccumulatorSelectLabel = new QLabel(formGroupBox);
|
||||||
|
memoryAccumulatorSelectLabel->setObjectName(QString::fromUtf8("memoryAccumulatorSelectLabel"));
|
||||||
|
|
||||||
|
formLayout_2->setWidget(5, QFormLayout::LabelRole, memoryAccumulatorSelectLabel);
|
||||||
|
|
||||||
|
cCheckbox = new QCheckBox(formGroupBox);
|
||||||
|
cCheckbox->setObjectName(QString::fromUtf8("cCheckbox"));
|
||||||
|
cCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
|
formLayout_2->setWidget(5, QFormLayout::FieldRole, cCheckbox);
|
||||||
|
|
||||||
|
indeXSelectLabel = new QLabel(formGroupBox);
|
||||||
|
indeXSelectLabel->setObjectName(QString::fromUtf8("indeXSelectLabel"));
|
||||||
|
|
||||||
|
formLayout_2->setWidget(6, QFormLayout::LabelRole, indeXSelectLabel);
|
||||||
|
|
||||||
|
irqDisableLabel = new QLabel(formGroupBox);
|
||||||
|
irqDisableLabel->setObjectName(QString::fromUtf8("irqDisableLabel"));
|
||||||
|
|
||||||
|
formLayout_2->setWidget(7, QFormLayout::LabelRole, irqDisableLabel);
|
||||||
|
|
||||||
|
nCheckbox = new QCheckBox(formGroupBox);
|
||||||
|
nCheckbox->setObjectName(QString::fromUtf8("nCheckbox"));
|
||||||
|
nCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
|
formLayout_2->setWidget(7, QFormLayout::FieldRole, nCheckbox);
|
||||||
|
|
||||||
|
zCheckbox = new QCheckBox(formGroupBox);
|
||||||
|
zCheckbox->setObjectName(QString::fromUtf8("zCheckbox"));
|
||||||
|
zCheckbox->setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
|
formLayout_2->setWidget(6, QFormLayout::FieldRole, zCheckbox);
|
||||||
|
|
||||||
|
|
||||||
gridLayout_2->addLayout(gridLayout, 1, 1, 1, 1);
|
gridLayout_3->addWidget(formGroupBox, 1, 2, 1, 1);
|
||||||
|
|
||||||
CPUView->setCentralWidget(centralwidget);
|
CPUView->setCentralWidget(centralwidget);
|
||||||
toolBar = new QToolBar(CPUView);
|
toolBar = new QToolBar(CPUView);
|
||||||
@@ -279,6 +407,7 @@ public:
|
|||||||
#if QT_CONFIG(shortcut)
|
#if QT_CONFIG(shortcut)
|
||||||
actionNext->setShortcut(QCoreApplication::translate("CPUView", "N", nullptr));
|
actionNext->setShortcut(QCoreApplication::translate("CPUView", "N", nullptr));
|
||||||
#endif // QT_CONFIG(shortcut)
|
#endif // QT_CONFIG(shortcut)
|
||||||
|
label->setText(QCoreApplication::translate("CPUView", "Stack Viewer", nullptr));
|
||||||
accumulatorLabel->setText(QCoreApplication::translate("CPUView", "Accumulator", nullptr));
|
accumulatorLabel->setText(QCoreApplication::translate("CPUView", "Accumulator", nullptr));
|
||||||
accumulatorLineEdit->setText(QString());
|
accumulatorLineEdit->setText(QString());
|
||||||
programBankRegisterLabel->setText(QCoreApplication::translate("CPUView", "Program Bank", nullptr));
|
programBankRegisterLabel->setText(QCoreApplication::translate("CPUView", "Program Bank", nullptr));
|
||||||
@@ -288,10 +417,18 @@ public:
|
|||||||
stackPointerLabel->setText(QCoreApplication::translate("CPUView", "Stack Pointer", nullptr));
|
stackPointerLabel->setText(QCoreApplication::translate("CPUView", "Stack Pointer", nullptr));
|
||||||
xIndexLabel->setText(QCoreApplication::translate("CPUView", "X Index", nullptr));
|
xIndexLabel->setText(QCoreApplication::translate("CPUView", "X Index", nullptr));
|
||||||
yIndexLabel->setText(QCoreApplication::translate("CPUView", "Y Index", nullptr));
|
yIndexLabel->setText(QCoreApplication::translate("CPUView", "Y Index", nullptr));
|
||||||
flagsLabel->setText(QCoreApplication::translate("CPUView", "Flags", nullptr));
|
|
||||||
emulationModeLabel->setText(QCoreApplication::translate("CPUView", "Emulation mode", nullptr));
|
emulationModeLabel->setText(QCoreApplication::translate("CPUView", "Emulation mode", nullptr));
|
||||||
clear->setText(QCoreApplication::translate("CPUView", "Clear History", nullptr));
|
clear->setText(QCoreApplication::translate("CPUView", "Clear History", nullptr));
|
||||||
loggerLabel->setText(QCoreApplication::translate("CPUView", "Instructions History", nullptr));
|
loggerLabel->setText(QCoreApplication::translate("CPUView", "Instructions History", nullptr));
|
||||||
|
formGroupBox->setTitle(QCoreApplication::translate("CPUView", "Flags", nullptr));
|
||||||
|
negativeLabel->setText(QCoreApplication::translate("CPUView", "Memory/Accumulator Select (M)", nullptr));
|
||||||
|
zeroLabel->setText(QCoreApplication::translate("CPUView", "Index Select (X) / Break (B)", 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));
|
||||||
toolBar->setWindowTitle(QCoreApplication::translate("CPUView", "toolBar", nullptr));
|
toolBar->setWindowTitle(QCoreApplication::translate("CPUView", "toolBar", nullptr));
|
||||||
} // retranslateUi
|
} // retranslateUi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user