Debian Codegraph @

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