Debian Codegraph @

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

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