]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/debug/cpubrowser.cpp
Minor update to debugger; added autoupdating to CPU/MEM windows.
[virtualjaguar] / src / gui / debug / cpubrowser.cpp
index 331ac9059ac390f30f2536017876fa39d6a75603..6a0d242790f527ce36c7b0bf0da73611e6ddea8d 100644 (file)
@@ -25,7 +25,8 @@
 CPUBrowserWindow::CPUBrowserWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog),
        layout(new QVBoxLayout), text(new QLabel),
        refresh(new QPushButton(tr("Refresh"))),
-       bpm(new QCheckBox(tr("BPM"))), bpmAddress(new QLineEdit)
+       bpm(new QCheckBox(tr("BPM"))), bpmAddress(new QLineEdit),
+       bpmContinue(new QPushButton(tr("Resume")))
 {
        setWindowTitle(tr("CPU Browser"));
 
@@ -37,6 +38,7 @@ CPUBrowserWindow::CPUBrowserWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt:
        QHBoxLayout * hbox1 = new QHBoxLayout;
        hbox1->addWidget(bpm);
        hbox1->addWidget(bpmAddress);
+       hbox1->addWidget(bpmContinue);
 
        QFont fixedFont("Lucida Console", 8, QFont::Normal);
 //     QFont fixedFont("", 8, QFont::Normal);
@@ -52,6 +54,7 @@ CPUBrowserWindow::CPUBrowserWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt:
        connect(refresh, SIGNAL(clicked()), this, SLOT(RefreshContents()));
        connect(bpm, SIGNAL(clicked(bool)), this, SLOT(HandleBPM(bool)));
        connect(bpmAddress, SIGNAL(textChanged(const QString &)), this, SLOT(HandleBPMAddress(const QString &)));
+       connect(bpmContinue, SIGNAL(clicked()), this, SLOT(HandleBPMContinue()));
 }
 
 
@@ -260,6 +263,12 @@ void CPUBrowserWindow::HandleBPMAddress(const QString & newText)
 }
 
 
+void CPUBrowserWindow::HandleBPMContinue(void)
+{
+       M68KDebugResume();
+}
+
+
 void CPUBrowserWindow::keyPressEvent(QKeyEvent * e)
 {
        if (e->key() == Qt::Key_Escape)