ardour
|
#include <keyboard.h>
Classes | |
struct | AccelKeyLess |
Public Types | |
typedef std::vector< uint32_t > | State |
typedef uint32_t | ModifierMask |
Public Member Functions | |
Keyboard () | |
~Keyboard () | |
XMLNode & | get_state (void) |
int | set_state (const XMLNode &, int version) |
virtual void | setup_keybindings ()=0 |
bool | key_is_down (uint32_t keyval) |
bool | leave_window (GdkEventCrossing *ev, Gtk::Window *) |
bool | enter_window (GdkEventCrossing *ev, Gtk::Window *) |
bool | focus_in_window (GdkEventFocus *ev, Gtk::Window *) |
bool | focus_out_window (GdkEventFocus *ev, Gtk::Window *) |
int | reset_bindings () |
Static Public Member Functions | |
static const char * | primary_modifier_name () |
static const char * | secondary_modifier_name () |
static const char * | tertiary_modifier_name () |
static const char * | level4_modifier_name () |
static const char * | copy_modifier_name () |
static const char * | rangeselect_modifier_name () |
static void | set_primary_modifier (uint32_t newval) |
static void | set_secondary_modifier (uint32_t newval) |
static void | set_tertiary_modifier (uint32_t newval) |
static void | set_level4_modifier (uint32_t newval) |
static void | set_copy_modifier (uint32_t newval) |
static void | set_range_select_modifier (uint32_t newval) |
static bool | no_modifier_keys_pressed (GdkEventButton *ev) |
static bool | no_modifier_keys_pressed (GdkEventKey *ev) |
static bool | modifier_state_contains (guint state, ModifierMask) |
static bool | modifier_state_equals (guint state, ModifierMask) |
static bool | no_modifiers_active (guint state) |
static void | set_snap_modifier (guint) |
static ModifierMask | snap_modifier () |
static guint | edit_button () |
static void | set_edit_button (guint) |
static guint | edit_modifier () |
static void | set_edit_modifier (guint) |
static guint | delete_button () |
static void | set_delete_button (guint) |
static guint | delete_modifier () |
static void | set_delete_modifier (guint) |
static guint | insert_note_button () |
static void | set_insert_note_button (guint) |
static guint | insert_note_modifier () |
static void | set_insert_note_modifier (guint) |
static bool | is_edit_event (GdkEventButton *) |
static bool | is_delete_event (GdkEventButton *) |
static bool | is_insert_note_event (GdkEventButton *) |
static bool | is_context_menu_event (GdkEventButton *) |
static bool | is_button2_event (GdkEventButton *) |
static Keyboard & | the_keyboard () |
static bool | some_magic_widget_has_focus () |
static void | magic_widget_grab_focus () |
static void | magic_widget_drop_focus () |
static Gtk::Window * | get_current_window () |
static void | close_current_dialog () |
static void | keybindings_changed () |
static void | save_keybindings () |
static bool | load_keybindings (std::string path) |
static void | set_can_save_keybindings (bool yn) |
static std::string | current_binding_name () |
Public Attributes | |
sigc::signal0< void > | ZoomVerticalModifierReleased |
Static Public Attributes | |
static uint32_t | PrimaryModifier = GDK_CONTROL_MASK |
static uint32_t | SecondaryModifier = GDK_MOD1_MASK |
static uint32_t | TertiaryModifier = GDK_SHIFT_MASK |
static uint32_t | Level4Modifier = GDK_MOD4_MASK |
static uint32_t | CopyModifier = GDK_CONTROL_MASK |
static uint32_t | RangeSelectModifier = GDK_SHIFT_MASK |
static uint32_t | GainFineScaleModifier = Keyboard::PrimaryModifier |
static uint32_t | GainExtraFineScaleModifier = Keyboard::SecondaryModifier |
static uint32_t | ScrollZoomVerticalModifier = Keyboard::SecondaryModifier |
static uint32_t | ScrollZoomHorizontalModifier = Keyboard::PrimaryModifier |
static uint32_t | ScrollHorizontalModifier = Keyboard::TertiaryModifier |
static GdkModifierType | RelevantModifierKeyMask |
static std::map< std::string, std::string > | binding_files |
Protected Types | |
typedef std::pair< std::string, std::string > | two_strings |
Protected Member Functions | |
gint | snooper (GtkWidget *, GdkEventKey *) |
Static Protected Member Functions | |
static gint | _snooper (GtkWidget *, GdkEventKey *, gpointer) |
static void | set_modifier (uint32_t newval, uint32_t &variable) |
Protected Attributes | |
guint | snooper_id |
State | state |
Static Protected Attributes | |
static Keyboard * | _the_keyboard = 0 |
static guint | edit_but = 3 |
static guint | edit_mod = GDK_CONTROL_MASK |
static guint | delete_but = 3 |
static guint | delete_mod = GDK_SHIFT_MASK |
static guint | insert_note_but = 1 |
static guint | insert_note_mod = GDK_CONTROL_MASK |
static guint | snap_mod = GDK_MOD3_MASK |
static guint | button2_modifiers = 0 |
static Gtk::Window * | current_window = 0 |
static std::string | user_keybindings_path |
static bool | can_save_keybindings = false |
static bool | bindings_changed_after_save_became_legal = false |
static std::string | _current_binding_name |
static std::map< Gtk::AccelKey, two_strings, AccelKeyLess > | release_keys |
static bool | _some_magic_widget_has_focus = false |
Additional Inherited Members | |
Private Member Functions inherited from PBD::Stateful | |
Stateful () | |
virtual | ~Stateful () |
virtual bool | apply_changes (PropertyBase const &) |
PropertyChange | apply_changes (PropertyList const &) |
const OwnedPropertyList & | properties () const |
void | add_property (PropertyBase &s) |
void | add_extra_xml (XMLNode &) |
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
void | save_extra_xml (const XMLNode &) |
const PBD::ID & | id () const |
bool | set_id (const XMLNode &) |
void | set_id (const std::string &) |
void | reset_id () |
void | clear_changes () |
virtual void | clear_owned_changes () |
PropertyList * | get_changes_as_properties (Command *) const |
virtual void | rdiff (std::vector< Command * > &) const |
bool | changed () const |
virtual PropertyList * | property_factory (const XMLNode &) const |
virtual void | suspend_property_changes () |
virtual void | resume_property_changes () |
bool | property_changes_suspended () const |
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
void | add_properties (XMLNode &) |
PropertyChange | set_values (XMLNode const &) |
virtual void | post_set (const PropertyChange &) |
virtual void | send_change (const PropertyChange &) |
virtual void | mid_thaw (const PropertyChange &) |
Private Attributes inherited from PBD::Stateful | |
PBD::Signal1< void, const PropertyChange & > | PropertyChanged |
XMLNode * | _extra_xml |
XMLNode * | _instant_xml |
PBD::PropertyChange | _pending_changed |
Glib::Threads::Mutex | _lock |
std::string | _xml_node_name |
name of node to use for this object in XML More... | |
OwnedPropertyList * | _properties |
Static Private Attributes inherited from PBD::Stateful | |
static int | current_state_version = 0 |
static int | loading_state_version = 0 |
Definition at line 41 of file keyboard.h.
typedef uint32_t Gtkmm2ext::Keyboard::ModifierMask |
Definition at line 53 of file keyboard.h.
typedef std::vector<uint32_t> Gtkmm2ext::Keyboard::State |
Definition at line 52 of file keyboard.h.
|
protected |
Definition at line 196 of file keyboard.h.
Keyboard::Keyboard | ( | ) |
Definition at line 140 of file keyboard.cc.
Keyboard::~Keyboard | ( | ) |
Definition at line 161 of file keyboard.cc.
|
staticprotected |
Definition at line 227 of file keyboard.cc.
|
static |
Definition at line 339 of file keyboard.cc.
|
static |
Definition at line 94 of file keyboard.cc.
|
inlinestatic |
Definition at line 159 of file keyboard.h.
|
inlinestatic |
Definition at line 130 of file keyboard.h.
|
inlinestatic |
Definition at line 132 of file keyboard.h.
|
inlinestatic |
Definition at line 125 of file keyboard.h.
|
inlinestatic |
Definition at line 127 of file keyboard.h.
bool Keyboard::enter_window | ( | GdkEventCrossing * | ev, |
Gtk::Window * | win | ||
) |
Definition at line 354 of file keyboard.cc.
bool Keyboard::focus_in_window | ( | GdkEventFocus * | ev, |
Gtk::Window * | win | ||
) |
Definition at line 388 of file keyboard.cc.
bool Keyboard::focus_out_window | ( | GdkEventFocus * | ev, |
Gtk::Window * | win | ||
) |
Definition at line 396 of file keyboard.cc.
|
inlinestatic |
Definition at line 151 of file keyboard.h.
|
virtual |
Implements PBD::Stateful.
Definition at line 167 of file keyboard.cc.
|
inlinestatic |
Definition at line 135 of file keyboard.h.
|
inlinestatic |
Definition at line 137 of file keyboard.h.
|
static |
Definition at line 486 of file keyboard.cc.
|
static |
Definition at line 506 of file keyboard.cc.
|
static |
Definition at line 498 of file keyboard.cc.
|
static |
Definition at line 470 of file keyboard.cc.
|
static |
Definition at line 478 of file keyboard.cc.
bool Keyboard::key_is_down | ( | uint32_t | keyval | ) |
Definition at line 348 of file keyboard.cc.
|
static |
Definition at line 532 of file keyboard.cc.
bool Keyboard::leave_window | ( | GdkEventCrossing * | ev, |
Gtk::Window * | |||
) |
Definition at line 362 of file keyboard.cc.
|
static |
Definition at line 93 of file keyboard.cc.
|
static |
Definition at line 556 of file keyboard.cc.
|
static |
Definition at line 129 of file keyboard.cc.
|
static |
Definition at line 123 of file keyboard.cc.
|
static |
Definition at line 520 of file keyboard.cc.
|
static |
Definition at line 526 of file keyboard.cc.
|
inlinestatic |
Definition at line 99 of file keyboard.h.
|
inlinestatic |
Definition at line 103 of file keyboard.h.
|
static |
Definition at line 514 of file keyboard.cc.
|
static |
Definition at line 90 of file keyboard.cc.
|
static |
Definition at line 95 of file keyboard.cc.
int Keyboard::reset_bindings | ( | ) |
Definition at line 617 of file keyboard.cc.
|
static |
Definition at line 548 of file keyboard.cc.
|
static |
Definition at line 91 of file keyboard.cc.
|
static |
Definition at line 542 of file keyboard.cc.
|
inlinestatic |
Definition at line 88 of file keyboard.h.
|
static |
Definition at line 425 of file keyboard.cc.
|
static |
Definition at line 431 of file keyboard.cc.
|
static |
Definition at line 411 of file keyboard.cc.
|
static |
Definition at line 417 of file keyboard.cc.
|
static |
Definition at line 439 of file keyboard.cc.
|
static |
Definition at line 445 of file keyboard.cc.
|
inlinestatic |
Definition at line 85 of file keyboard.h.
|
staticprotected |
Definition at line 454 of file keyboard.cc.
|
inlinestatic |
Definition at line 76 of file keyboard.h.
|
inlinestatic |
Definition at line 91 of file keyboard.h.
|
inlinestatic |
Definition at line 79 of file keyboard.h.
|
static |
Definition at line 462 of file keyboard.cc.
|
virtual |
Implements PBD::Stateful.
Definition at line 191 of file keyboard.cc.
|
inlinestatic |
Definition at line 82 of file keyboard.h.
|
pure virtual |
Implemented in ArdourKeyboard.
|
inlinestatic |
Definition at line 123 of file keyboard.h.
|
protected |
Definition at line 233 of file keyboard.cc.
|
static |
Definition at line 135 of file keyboard.cc.
|
static |
Definition at line 92 of file keyboard.cc.
|
inlinestatic |
Definition at line 146 of file keyboard.h.
|
staticprotected |
Definition at line 194 of file keyboard.h.
|
staticprotected |
Definition at line 205 of file keyboard.h.
|
staticprotected |
Definition at line 177 of file keyboard.h.
|
static |
Definition at line 160 of file keyboard.h.
|
staticprotected |
Definition at line 193 of file keyboard.h.
|
staticprotected |
Definition at line 189 of file keyboard.h.
|
staticprotected |
Definition at line 192 of file keyboard.h.
|
static |
Definition at line 59 of file keyboard.h.
|
staticprotected |
Definition at line 190 of file keyboard.h.
|
staticprotected |
Definition at line 184 of file keyboard.h.
|
staticprotected |
Definition at line 185 of file keyboard.h.
|
staticprotected |
Definition at line 182 of file keyboard.h.
|
staticprotected |
Definition at line 183 of file keyboard.h.
|
static |
Definition at line 62 of file keyboard.h.
|
static |
Definition at line 61 of file keyboard.h.
|
staticprotected |
Definition at line 186 of file keyboard.h.
|
staticprotected |
Definition at line 187 of file keyboard.h.
|
static |
Definition at line 58 of file keyboard.h.
|
static |
Definition at line 55 of file keyboard.h.
|
static |
Definition at line 60 of file keyboard.h.
|
staticprotected |
Definition at line 198 of file keyboard.h.
|
static |
Definition at line 97 of file keyboard.h.
|
static |
Definition at line 67 of file keyboard.h.
|
static |
Definition at line 66 of file keyboard.h.
|
static |
Definition at line 65 of file keyboard.h.
|
static |
Definition at line 56 of file keyboard.h.
|
staticprotected |
Definition at line 188 of file keyboard.h.
|
protected |
Definition at line 179 of file keyboard.h.
|
protected |
Definition at line 180 of file keyboard.h.
|
static |
Definition at line 57 of file keyboard.h.
|
staticprotected |
Definition at line 191 of file keyboard.h.
sigc::signal0<void> Gtkmm2ext::Keyboard::ZoomVerticalModifierReleased |
Definition at line 174 of file keyboard.h.