Zrythm
v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
user_shortcuts.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: © 2024 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10
#ifndef __SETTINGS_USER_SHORTCUTS_H__
11
#define __SETTINGS_USER_SHORTCUTS_H__
12
13
#include <string>
14
#include <vector>
15
21
28
struct
UserShortcut
29
{
30
std::string action;
31
std::string primary;
32
std::string secondary;
33
};
34
43
class
UserShortcuts
44
{
45
public
:
53
const
std::string &
get
(
54
bool
primary,
55
const
std::string &action,
56
const
std::string &default_shortcut)
const
;
57
58
private
:
59
std::vector<UserShortcut> shortcuts;
60
};
61
65
66
#endif
UserShortcuts
Manages user-defined keyboard shortcuts.
Definition
user_shortcuts.h:44
UserShortcuts::get
const std::string & get(bool primary, const std::string &action, const std::string &default_shortcut) const
Returns a shortcut for the given action, or default_shortcut if not found.
UserShortcut
Represents a user-defined keyboard shortcut.
Definition
user_shortcuts.h:29
src
gui
backend
backend
settings
user_shortcuts.h
Generated by
1.15.0