diff options
Diffstat (limited to 'src/osd/modules/debugger/qt/debugqtwindow.c')
-rw-r--r-- | src/osd/modules/debugger/qt/debugqtwindow.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/osd/modules/debugger/qt/debugqtwindow.c b/src/osd/modules/debugger/qt/debugqtwindow.c index 5294bad8ef4..9570ad83d5e 100644 --- a/src/osd/modules/debugger/qt/debugqtwindow.c +++ b/src/osd/modules/debugger/qt/debugqtwindow.c @@ -5,6 +5,7 @@ #include "debugqtdasmwindow.h" #include "debugqtmemorywindow.h" #include "debugqtbreakpointswindow.h" +#include "debugqtdeviceswindow.h" bool WindowQt::s_refreshAll = false; bool WindowQt::s_hideAll = false; @@ -38,6 +39,10 @@ WindowQt::WindowQt(running_machine* machine, QWidget* parent) : debugActOpenPoints->setShortcut(QKeySequence("Ctrl+B")); connect(debugActOpenPoints, SIGNAL(triggered()), this, SLOT(debugActOpenPoints())); + QAction* debugActOpenDevices = new QAction("New D&evices Window", this); + debugActOpenDevices->setShortcut(QKeySequence("Shift+Ctrl+D")); + connect(debugActOpenDevices, SIGNAL(triggered()), this, SLOT(debugActOpenDevices())); + QAction* dbgActRun = new QAction("Run", this); dbgActRun->setShortcut(Qt::Key_F5); connect(dbgActRun, SIGNAL(triggered()), this, SLOT(debugActRun())); @@ -92,6 +97,7 @@ WindowQt::WindowQt(running_machine* machine, QWidget* parent) : debugMenu->addAction(debugActOpenDasm); debugMenu->addAction(debugActOpenLog); debugMenu->addAction(debugActOpenPoints); + debugMenu->addAction(debugActOpenDevices); debugMenu->addSeparator(); debugMenu->addAction(dbgActRun); debugMenu->addAction(dbgActRunAndHide); @@ -155,6 +161,16 @@ void WindowQt::debugActOpenPoints() } +void WindowQt::debugActOpenDevices() +{ + DevicesWindow* foo = new DevicesWindow(m_machine, this); + // A valiant effort, but it just doesn't wanna' hide behind the main window & not make a new toolbar icon + // foo->setWindowFlags(Qt::Dialog); + // foo->setWindowFlags(foo->windowFlags() & ~Qt::WindowStaysOnTopHint); + foo->show(); +} + + void WindowQt::debugActRun() { debug_cpu_get_visible_cpu(*m_machine)->debug()->go(); |