Debian Codegraph @

Source/Core/DolphinQt/Config/Mapping/HotkeyGeneral.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/HotkeyGeneral.h"
5
6 #include <QGridLayout>
7 #include <QGroupBox>
8
9 #include "Core/HotkeyManager.h"
10
11 HotkeyGeneral::HotkeyGeneral(MappingWindow* window) : MappingWidget(window)
12 {
13 CreateMainLayout();
14 }
15
16 void HotkeyGeneral::CreateMainLayout()
17 {
18 m_main_layout = new QGridLayout;
19
20 m_main_layout->addWidget(
21 CreateGroupBox(tr("General"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_GENERAL)), 0, 0, -1, 1);
22
23 m_main_layout->addWidget(
24 CreateGroupBox(tr("Volume"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_VOLUME)), 0, 1);
25 m_main_layout->addWidget(
26 CreateGroupBox(tr("Emulation Speed"), HotkeyManagerEmu::GetHotkeyGroup(HKGP_SPEED)), 1, 1);
27
28 setLayout(m_main_layout);
29 }
30
31 InputConfig* HotkeyGeneral::GetConfig()
32 {
33 return HotkeyManagerEmu::GetConfig();
34 }
35
36 void HotkeyGeneral::LoadSettings()
37 {
38 HotkeyManagerEmu::LoadConfig();
39 }
40
41 void HotkeyGeneral::SaveSettings()
42 {
43 HotkeyManagerEmu::GetConfig()->SaveConfig();
44 }