diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-11-19 22:23:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-19 22:23:51 +0100 |
| commit | 901e29f0806a02f320c5ae7b8b80c5cf9f4828ff (patch) | |
| tree | 922c2739a4494d15ce52a089be16091470d5b9d4 /Source/Core/DolphinQt2/MainWindow.cpp | |
| parent | b3b58b586c798c6f5ff36e0ddfce1120d06b3c2a (diff) | |
| parent | 474b1c2d5c8a8b48274f15ea7140b3e8ddc50c6a (diff) | |
Merge pull request #5995 from spycrab/qt_fifoplayer
Qt: Implement FIFO Player
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index 3c7d265aea..06a769554b 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -45,6 +45,7 @@ #include "DolphinQt2/Config/LogWidget.h" #include "DolphinQt2/Config/Mapping/MappingWindow.h" #include "DolphinQt2/Config/SettingsWindow.h" +#include "DolphinQt2/FIFOPlayerWindow.h" #include "DolphinQt2/Host.h" #include "DolphinQt2/HotkeyScheduler.h" #include "DolphinQt2/MainWindow.h" @@ -155,9 +156,15 @@ void MainWindow::CreateComponents() m_stack = new QStackedWidget(this); m_controllers_window = new ControllersWindow(this); m_settings_window = new SettingsWindow(this); + m_hotkey_window = new MappingWindow(this, MappingWindow::Type::MAPPING_HOTKEYS, 0); + m_log_widget = new LogWidget(this); m_log_config_widget = new LogConfigWidget(this); + m_fifo_window = new FIFOPlayerWindow(this); + + connect(m_fifo_window, &FIFOPlayerWindow::LoadFIFORequested, this, + static_cast<void (MainWindow::*)(const QString&)>(&MainWindow::StartGame)); #if defined(HAVE_XRANDR) && HAVE_XRANDR m_graphics_window = new GraphicsWindow( @@ -215,6 +222,7 @@ void MainWindow::ConnectMenuBar() connect(m_menu_bar, &MenuBar::PerformOnlineUpdate, this, &MainWindow::PerformOnlineUpdate); connect(m_menu_bar, &MenuBar::BootWiiSystemMenu, this, &MainWindow::BootWiiSystemMenu); connect(m_menu_bar, &MenuBar::StartNetPlay, this, &MainWindow::ShowNetPlaySetupDialog); + connect(m_menu_bar, &MenuBar::ShowFIFOPlayer, this, &MainWindow::ShowFIFOPlayer); // Movie connect(m_menu_bar, &MenuBar::PlayRecording, this, &MainWindow::OnPlayRecording); @@ -590,6 +598,13 @@ void MainWindow::ShowNetPlaySetupDialog() m_netplay_setup_dialog->activateWindow(); } +void MainWindow::ShowFIFOPlayer() +{ + m_fifo_window->show(); + m_fifo_window->raise(); + m_fifo_window->activateWindow(); +} + void MainWindow::StateLoad() { QString path = QFileDialog::getOpenFileName(this, tr("Select a File"), QDir::currentPath(), |
