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
29{
30 std::string action;
31 std::string primary;
32 std::string secondary;
33};
34
44{
45public:
53 const std::string &get (
54 bool primary,
55 const std::string &action,
56 const std::string &default_shortcut) const;
57
58private:
59 std::vector<UserShortcut> shortcuts;
60};
61
65
66#endif
Manages user-defined keyboard shortcuts.
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.
Represents a user-defined keyboard shortcut.