Lines Matching defs:verb
70 Inkscape::Verb *verb = sp_shortcut_get_verb(shortcut);
71 if (verb) {
72 SPAction *action = verb->get_action(Inkscape::ActionContext(view));
573 g_warning("Missing verb name (action= attribute) for shortcut");
577 Inkscape::Verb *verb=Inkscape::Verb::getbyid(verb_name);
578 if (!verb
586 g_warning("Unknown verb name: %s", verb_name);
625 sp_shortcut_set(keyval | modifiers, verb, is_primary, is_user_set);
632 * Removes a keyboard shortcut for the given verb.
641 Inkscape::Verb *verb = (*verbs)[shortcut];
644 if (verb) {
648 unsigned int const old_primary = (*primary_shortcuts)[verb];
650 (*primary_shortcuts)[verb] = 0;
708 * Adds a keyboard shortcut for the given verb.
714 * \post sp_shortcut_get_verb(shortcut) == verb.
715 * \post !is_primary or sp_shortcut_get_primary(verb) == shortcut.
718 sp_shortcut_set(unsigned int const shortcut, Inkscape::Verb *const verb, bool const is_primary, bool const is_user_set)
723 (*verbs)[shortcut] = verb;
726 if (old_verb && old_verb != verb) {
736 (*primary_shortcuts)[verb] = shortcut;
737 (*user_shortcuts)[verb] = is_user_set;
748 unsigned int sp_shortcut_get_primary(Inkscape::Verb *verb)
755 if (primary_shortcuts->count(verb)) {
756 result = (*primary_shortcuts)[verb];
761 bool sp_shortcut_is_user_set(Inkscape::Verb *verb)
768 if (primary_shortcuts->count(verb)) {
769 result = (*user_shortcuts)[verb];