23 #ifndef __libgtkmm2ext_keyboard_h__
24 #define __libgtkmm2ext_keyboard_h__
60 typedef std::vector<uint32_t>
State;
101 return (ev->
state & RelevantModifierKeyMask) == 0;
106 return (ev->
state & RelevantModifierKeyMask) == 0;
121 set_modifier (newval, CopyModifier);
125 set_modifier (newval, RangeSelectModifier);
176 return insert_note_but;
180 return insert_note_mod;
184 return button2_modifiers;
188 return momentary_push_modifiers;
192 return group_override_modifiers;
205 return *_the_keyboard;
213 return current_window;
223 return _current_binding_name;
int set_state(const XMLNode &, int version)
static void set_insert_note_modifier(guint)
static std::string current_binding_name()
XMLNode & get_state() const
static Keyboard & the_keyboard()
static bool can_save_keybindings
static const uint32_t PrimaryModifier
static bool no_modifier_keys_pressed(GdkEventButton *ev)
static uint32_t ScrollHorizontalModifier
static void reset_relevant_modifier_key_mask()
static void magic_widget_grab_focus()
static int store_keybindings(std::string const &path)
static guint insert_note_button()
static bool bindings_changed_after_save_became_legal
static uint32_t GainExtraFineScaleModifier
static guint group_override_modifier()
bool focus_out_window(GdkEventFocus *ev, Gtk::Window *)
static bool close_current_dialog()
static void set_edit_modifier(guint)
static const uint32_t Level4Modifier
static sigc::signal1< void, Gtk::Window * > HideMightMeanQuit
static guint momentary_push_modifiers
static const uint32_t TertiaryModifier
bool leave_window(GdkEventCrossing *ev, Gtk::Window *)
static void keybindings_changed()
static guint insert_note_modifier()
static void set_snap_delta_modifier(guint)
static guint insert_note_mod
static guint delete_button()
static uint32_t GainFineScaleModifier
static std::map< std::string, std::string > binding_files
static uint32_t RangeSelectModifier
static std::string format_modifier(uint32_t)
static bool is_insert_note_event(GdkEventButton *)
static guint momentary_push_modifier()
static void set_delete_modifier(guint)
static const char * level4_modifier_short_name()
static Gtk::Window * get_current_window()
static guint edit_button()
static void set_range_select_modifier(uint32_t newval)
static guint insert_note_but
static guint close_window_modifier
static const char * group_override_event_name()
static bool no_modifier_keys_pressed(GdkEventKey *ev)
bool enter_window(GdkEventCrossing *ev, Gtk::Window *)
static guint delete_modifier()
static std::string user_keybindings_path
static const char * tertiary_modifier_name()
static gint _snooper(GtkWidget *, GdkEventKey *, gpointer)
static bool catch_user_event_for_pre_dialog_focus(GdkEvent *ev, Gtk::Window *w)
static void set_edit_button(guint)
static void set_insert_note_button(guint)
static bool is_group_override_event(GdkEventButton *)
static uint32_t ScrollZoomHorizontalModifier
static std::string _current_binding_name
bool key_is_down(uint32_t keyval)
static guint snap_delta_mod
static sigc::signal0< void > RelevantModifierKeysChanged
static uint32_t CopyModifier
static bool some_magic_widget_has_focus()
static guint button2_modifiers
static const char * momentary_push_name()
static bool no_modifiers_active(guint state)
static ModifierMask snap_delta_modifier()
static bool is_edit_event(GdkEventButton *)
static void set_modifier(uint32_t newval, uint32_t &variable)
static Gtk::Window * current_window
static void set_snap_modifier(guint)
std::pair< std::string, std::string > two_strings
static guint button2_modifier()
static void save_keybindings(std::string const &path)
static guint group_override_modifiers
static uint32_t ScrollZoomVerticalModifier
static const int close_window_key
static guint edit_modifier()
static const char * tertiary_modifier_short_name()
static void set_copy_modifier(uint32_t newval)
static const char * secondary_modifier_short_name()
static void save_keybindings()
bool focus_in_window(GdkEventFocus *ev, Gtk::Window *)
static bool modifier_state_equals(guint state, ModifierMask)
sigc::signal0< void > ZoomVerticalModifierReleased
static void set_can_save_keybindings(bool yn)
std::vector< uint32_t > State
static const char * primary_modifier_short_name()
static int read_keybindings(std::string const &path)
static void set_delete_button(guint)
static const char * button2_name()
virtual void setup_keybindings()=0
static GdkModifierType RelevantModifierKeyMask
static ModifierMask snap_modifier()
static bool modifier_state_contains(guint state, ModifierMask)
static bool is_context_menu_event(GdkEventButton *)
static Gtk::Window * pre_dialog_active_window
static const char * level4_modifier_name()
static void magic_widget_drop_focus()
static bool is_momentary_push_event(GdkEventButton *)
static std::string binding_filename_suffix
static const char * secondary_modifier_name()
static bool load_keybindings(std::string const &path)
static Keyboard * _the_keyboard
static bool _some_magic_widget_has_focus
static const uint32_t SecondaryModifier
static bool is_button2_event(GdkEventButton *)
gint snooper(GtkWidget *, GdkEventKey *)
static bool is_delete_event(GdkEventButton *)
static const char * primary_modifier_name()