diff options
Diffstat (limited to 'src/citra_qt/main.cpp')
| -rw-r--r-- | src/citra_qt/main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 82667446b..929392b14 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | #include "citra_qt/debugger/profiler.h" | 25 | #include "citra_qt/debugger/profiler.h" |
| 26 | #include "citra_qt/debugger/ramview.h" | 26 | #include "citra_qt/debugger/ramview.h" |
| 27 | #include "citra_qt/debugger/registers.h" | 27 | #include "citra_qt/debugger/registers.h" |
| 28 | #include "citra_qt/debugger/wait_tree.h" | ||
| 28 | #include "citra_qt/game_list.h" | 29 | #include "citra_qt/game_list.h" |
| 29 | #include "citra_qt/hotkeys.h" | 30 | #include "citra_qt/hotkeys.h" |
| 30 | #include "citra_qt/main.h" | 31 | #include "citra_qt/main.h" |
| @@ -104,6 +105,10 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 104 | connect(graphicsSurfaceViewerAction, SIGNAL(triggered()), this, | 105 | connect(graphicsSurfaceViewerAction, SIGNAL(triggered()), this, |
| 105 | SLOT(OnCreateGraphicsSurfaceViewer())); | 106 | SLOT(OnCreateGraphicsSurfaceViewer())); |
| 106 | 107 | ||
| 108 | waitTreeWidget = new WaitTreeWidget(this); | ||
| 109 | addDockWidget(Qt::LeftDockWidgetArea, waitTreeWidget); | ||
| 110 | waitTreeWidget->hide(); | ||
| 111 | |||
| 107 | QMenu* debug_menu = ui.menu_View->addMenu(tr("Debugging")); | 112 | QMenu* debug_menu = ui.menu_View->addMenu(tr("Debugging")); |
| 108 | debug_menu->addAction(graphicsSurfaceViewerAction); | 113 | debug_menu->addAction(graphicsSurfaceViewerAction); |
| 109 | debug_menu->addSeparator(); | 114 | debug_menu->addSeparator(); |
| @@ -119,6 +124,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 119 | debug_menu->addAction(graphicsBreakpointsWidget->toggleViewAction()); | 124 | debug_menu->addAction(graphicsBreakpointsWidget->toggleViewAction()); |
| 120 | debug_menu->addAction(graphicsVertexShaderWidget->toggleViewAction()); | 125 | debug_menu->addAction(graphicsVertexShaderWidget->toggleViewAction()); |
| 121 | debug_menu->addAction(graphicsTracingWidget->toggleViewAction()); | 126 | debug_menu->addAction(graphicsTracingWidget->toggleViewAction()); |
| 127 | debug_menu->addAction(waitTreeWidget->toggleViewAction()); | ||
| 122 | 128 | ||
| 123 | // Set default UI state | 129 | // Set default UI state |
| 124 | // geometry: 55% of the window contents are in the upper screen half, 45% in the lower half | 130 | // geometry: 55% of the window contents are in the upper screen half, 45% in the lower half |
| @@ -184,6 +190,9 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { | |||
| 184 | connect(this, SIGNAL(EmulationStarting(EmuThread*)), graphicsTracingWidget, | 190 | connect(this, SIGNAL(EmulationStarting(EmuThread*)), graphicsTracingWidget, |
| 185 | SLOT(OnEmulationStarting(EmuThread*))); | 191 | SLOT(OnEmulationStarting(EmuThread*))); |
| 186 | connect(this, SIGNAL(EmulationStopping()), graphicsTracingWidget, SLOT(OnEmulationStopping())); | 192 | connect(this, SIGNAL(EmulationStopping()), graphicsTracingWidget, SLOT(OnEmulationStopping())); |
| 193 | connect(this, SIGNAL(EmulationStarting(EmuThread*)), waitTreeWidget, | ||
| 194 | SLOT(OnEmulationStarting(EmuThread*))); | ||
| 195 | connect(this, SIGNAL(EmulationStopping()), waitTreeWidget, SLOT(OnEmulationStopping())); | ||
| 187 | 196 | ||
| 188 | // Setup hotkeys | 197 | // Setup hotkeys |
| 189 | RegisterHotkey("Main Window", "Load File", QKeySequence::Open); | 198 | RegisterHotkey("Main Window", "Load File", QKeySequence::Open); |
| @@ -344,12 +353,16 @@ void GMainWindow::BootGame(const std::string& filename) { | |||
| 344 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | 353 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); |
| 345 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), callstackWidget, | 354 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), callstackWidget, |
| 346 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | 355 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); |
| 356 | connect(emu_thread.get(), SIGNAL(DebugModeEntered()), waitTreeWidget, | ||
| 357 | SLOT(OnDebugModeEntered()), Qt::BlockingQueuedConnection); | ||
| 347 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), disasmWidget, SLOT(OnDebugModeLeft()), | 358 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), disasmWidget, SLOT(OnDebugModeLeft()), |
| 348 | Qt::BlockingQueuedConnection); | 359 | Qt::BlockingQueuedConnection); |
| 349 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), registersWidget, SLOT(OnDebugModeLeft()), | 360 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), registersWidget, SLOT(OnDebugModeLeft()), |
| 350 | Qt::BlockingQueuedConnection); | 361 | Qt::BlockingQueuedConnection); |
| 351 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), callstackWidget, SLOT(OnDebugModeLeft()), | 362 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), callstackWidget, SLOT(OnDebugModeLeft()), |
| 352 | Qt::BlockingQueuedConnection); | 363 | Qt::BlockingQueuedConnection); |
| 364 | connect(emu_thread.get(), SIGNAL(DebugModeLeft()), waitTreeWidget, SLOT(OnDebugModeLeft()), | ||
| 365 | Qt::BlockingQueuedConnection); | ||
| 353 | 366 | ||
| 354 | // Update the GUI | 367 | // Update the GUI |
| 355 | registersWidget->OnDebugModeEntered(); | 368 | registersWidget->OnDebugModeEntered(); |