Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
key_mapping_editor.hpp File Reference

KeyMappingEditor — Pulp-native UI for rebinding command shortcuts. More...

#include <pulp/view/command_registry.hpp>
#include <pulp/view/view.hpp>
#include <functional>
#include <string>

Go to the source code of this file.

Classes

class  pulp::view::KeyMappingEditor

Namespaces

namespace  pulp
namespace  pulp::state
 SequencerStateChannel is the audio-safe transport for a plugin's structured NON-parameter state: the bulk, observable state a step sequencer / mod-matrix / pattern engine holds outside its automatable parameter set (e.g.
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Functions

std::string pulp::view::format_chord (KeyCode key, std::uint16_t modifiers)
 Render a (key + modifiers) chord as a user-facing string, e.g.

Detailed Description

KeyMappingEditor — Pulp-native UI for rebinding command shortcuts.

The editor is a View that lists every command registered with a CommandRegistry, shows each command's current chord, and lets the user pick a row + press a new chord to rebind. Changes are committed to the registry's ShortcutMap and persisted through pulp::state::ApplicationProperties::user_settings() (or any caller- supplied PropertiesFile).

The widget is deliberately small — it relies on the parent shell to scroll it. Rows use Theme tokens (background.surface, text.primary, border.subtle, accent.primary) where available and fall back to a neutral palette otherwise.