Debian Codegraph @

Source/Core/DolphinQt/Config/Mapping/HotkeyTAS.cpp

raw symbols SCIP
1 // Copyright 2017 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #include "DolphinQt/Config/Mapping/HotkeyTAS.h"
5
6 #include <QGroupBox>
7 #include <QHBoxLayout>
8
9 #include "Core/HotkeyManager.h"
10
11 HotkeyTAS::HotkeyTAS(MappingWindow* window) : MappingWidget(window)
12 {
13 CreateMainLayout();
14 }
15
16 void HotkeyTAS::CreateMainLayout()
17 {
18 m_main_layout = new QHBoxLayout();
19
20 m_main_layout->addWidget(
21 CreateGroupBox(tr("Frame Advance"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_FRAME_ADVANCE)));
22 m_main_layout->addWidget(
23 CreateGroupBox(tr("Movie"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_MOVIE)));
24
25 setLayout(m_main_layout);
26 }
27
28 InputConfig* HotkeyTAS::GetConfig()
29 {
30 return HotkeyManagerEmu::GetConfig();
31 }
32
33 void HotkeyTAS::LoadSettings()
34 {
35 HotkeyManagerEmu::LoadConfig();
36 }
37
38 void HotkeyTAS::SaveSettings()
39 {
40 HotkeyManagerEmu::GetConfig()->SaveConfig();
41 }