From: dooglus Date: Sun, 17 Feb 2008 12:36:39 +0000 (+0000) Subject: Add keyboard shortcuts to the blend method menus. Needs more work, because now the... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c8cff9c60a3fb403cf6091fa83b89e6ff49413fe;p=synfig.git Add keyboard shortcuts to the blend method menus. Needs more work, because now the Params panel shows underscores where the shortcut letters are... git-svn-id: http://svn.voria.com/code@1733 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/paramdesc.cpp b/synfig-core/trunk/src/synfig/paramdesc.cpp index a8691a0..8947f19 100644 --- a/synfig-core/trunk/src/synfig/paramdesc.cpp +++ b/synfig-core/trunk/src/synfig/paramdesc.cpp @@ -56,35 +56,35 @@ ParamDesc::ParamDesc(synfig::Color::BlendMethod, const String &a): critical_ (true), hidden_ (false), invisible_duck_ (false), - is_distance_ (false), - animation_only_ (false) + is_distance_ (false), + animation_only_ (false) { set_local_name(_("Blend Method")) - .set_hint("enum") - .add_enum_value(Color::BLEND_COMPOSITE,"composite",_("Composite")) - .add_enum_value(Color::BLEND_STRAIGHT,"straight",_("Straight")) - .add_enum_value(Color::BLEND_ONTO,"onto",_("Onto")) - .add_enum_value(Color::BLEND_STRAIGHT_ONTO,"straightonto",_("StraightOnto")) - .add_enum_value(Color::BLEND_BEHIND,"behind",_("Behind")) - .add_enum_value(Color::BLEND_SCREEN,"screen",_("Screen")) - .add_enum_value(Color::BLEND_OVERLAY,"overlay",_("Overlay")) - .add_enum_value(Color::BLEND_HARD_LIGHT,"hard_light",_("Hard Light")) - .add_enum_value(Color::BLEND_MULTIPLY,"multiply",_("Multiply")) - .add_enum_value(Color::BLEND_DIVIDE,"divide",_("Divide")) - .add_enum_value(Color::BLEND_ADD,"add",_("Add")) - .add_enum_value(Color::BLEND_SUBTRACT,"subtract",_("Subtract")) - .add_enum_value(Color::BLEND_DIFFERENCE,"difference",_("Difference")) - .add_enum_value(Color::BLEND_BRIGHTEN,"brighten",_("Brighten")) - .add_enum_value(Color::BLEND_DARKEN,"darken",_("Darken")) - .add_enum_value(Color::BLEND_COLOR,"color",_("Color")) - .add_enum_value(Color::BLEND_HUE,"hue",_("Hue")) - .add_enum_value(Color::BLEND_SATURATION,"saturation",_("Saturation")) - .add_enum_value(Color::BLEND_LUMINANCE,"luminance",_("Luminance")) -// These are deprecated - .add_enum_value(Color::BLEND_ALPHA_OVER,"alphaover",_("Alpha Over")) - .add_enum_value(Color::BLEND_ALPHA_BRIGHTEN,"alphabrighten",_("Alpha Brighten")) - .add_enum_value(Color::BLEND_ALPHA_DARKEN,"alphadarken",_("Alpha Darken")) - ; // end of enums + .set_hint("enum") // used shortcuts: A B C D E F G H I K L M N O P R S T U V Y; free: J Q W X Z + .add_enum_value(Color::BLEND_COMPOSITE, "composite", _("_Composite" )) + .add_enum_value(Color::BLEND_STRAIGHT, "straight", _("_Straight" )) + .add_enum_value(Color::BLEND_ONTO, "onto", _("_Onto" )) + .add_enum_value(Color::BLEND_STRAIGHT_ONTO, "straightonto", _("S_traight Onto" )) + .add_enum_value(Color::BLEND_BEHIND, "behind", _("_Behind" )) + .add_enum_value(Color::BLEND_SCREEN, "screen", _("Sc_reen" )) + .add_enum_value(Color::BLEND_OVERLAY, "overlay", _("Overla_y" )) + .add_enum_value(Color::BLEND_HARD_LIGHT, "hard_light", _("_Hard Light" )) + .add_enum_value(Color::BLEND_MULTIPLY, "multiply", _("_Multiply" )) + .add_enum_value(Color::BLEND_DIVIDE, "divide", _("_Divide" )) + .add_enum_value(Color::BLEND_ADD, "add", _("_Add" )) + .add_enum_value(Color::BLEND_SUBTRACT, "subtract", _("S_ubtract" )) + .add_enum_value(Color::BLEND_DIFFERENCE, "difference", _("Di_fference" )) + .add_enum_value(Color::BLEND_BRIGHTEN, "brighten", _("Bri_ghten" )) + .add_enum_value(Color::BLEND_DARKEN, "darken", _("Dar_ken" )) + .add_enum_value(Color::BLEND_COLOR, "color", _("Co_lor" )) + .add_enum_value(Color::BLEND_HUE, "hue", _("Hu_e" )) + .add_enum_value(Color::BLEND_SATURATION, "saturation", _("Saturatio_n" )) + .add_enum_value(Color::BLEND_LUMINANCE, "luminance", _("Lum_inance" )) + // These are deprecated + .add_enum_value(Color::BLEND_ALPHA_OVER, "alphaover", _("Alpha O_ver" )) + .add_enum_value(Color::BLEND_ALPHA_BRIGHTEN, "alphabrighten", _("Al_pha Brighten" )) + .add_enum_value(Color::BLEND_ALPHA_DARKEN, "alphadarken", _("Al_pha Darken" )) + ; // end of enums } ParamDesc::ParamDesc(const ValueBase&, const String &a):