SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KeybindSettings.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
10 
11 class KeybindSettings
12 {
13 public:
15 
16 // Keybind serialization class version
17 static const constexpr uint32_t class_version = 1;
18 
19  // Keybind Members
21  QString m_cur_keybind_profile = "Default";
22 
23  // Keybind Methods
24  void setKeybindProfile(QString &profile);
25 const CurrentKeybinds &getCurrentKeybinds() const;
26  void resetKeybinds();
27  void setKeybind(QString &profile, KeyName &key, ModKeys &mods, QString &command, bool &is_secondary);
28  void removeKeybind(QString &profile, KeyName &key, ModKeys &mods);
29  void keybindsDump();
30 };
QString m_cur_keybind_profile
Definition: keybind_definitions.h:484
const CurrentKeybinds & getCurrentKeybinds() const
Definition: keybind_definitions.cpp:43
KeyName
Definition: keybind_definitions.h:21
static const constexpr uint32_t class_version
Definition: keybind_definitions.h:480
void setKeybind(QString &profile, KeyName &key, ModKeys &mods, QString &command, bool &is_secondary)
Definition: keybind_definitions.cpp:63
void setKeybindProfile(QString &profile)
Definition: keybind_definitions.cpp:38
KeybindSettings()
Definition: keybind_definitions.cpp:33
Parse_AllKeyProfiles m_keybind_profiles
Definition: keybind_definitions.h:483
void keybindsDump()
Definition: keybind_definitions.cpp:99
std::vector< Keybind > CurrentKeybinds
Definition: keybind_definitions.h:473
std::vector< Keybind_Profiles > Parse_AllKeyProfiles
Definition: keybind_definitions.h:472
Definition: keybind_definitions.h:476
ModKeys
Definition: keybind_definitions.h:13
void resetKeybinds()
Definition: KeybindSettings.cpp:58
void removeKeybind(QString &profile, KeyName &key, ModKeys &mods)
Definition: keybind_definitions.cpp:79