Debian Codegraph @

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

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