diff --git a/lib/RELEASE-NOTES b/lib/RELEASE-NOTES index e4dcd2401b..66aa5615f5 100644 --- a/lib/RELEASE-NOTES +++ b/lib/RELEASE-NOTES @@ -33,6 +33,8 @@ LFUN_EXPORT_CANCEL: Used to cancel background export processes. !!!The following LyX functions have been changed in 2.4: +- LFUN_SET_GRAPHICS_GROUP was renamed into LFUN_GRAPHICS_SET_GROUP. + !!!The following LyX documents have been moved in 2.4: diff --git a/src/FuncCode.h b/src/FuncCode.h index cce61f0df5..6d2839ab07 100644 --- a/src/FuncCode.h +++ b/src/FuncCode.h @@ -404,7 +404,7 @@ enum FuncCode LFUN_COMPLETE, // 310 LFUN_COMPLETION_COMPLETE, - LFUN_SET_GRAPHICS_GROUP, + LFUN_GRAPHICS_SET_GROUP, LFUN_COMPLETION_CANCEL, LFUN_COMPLETION_ACCEPT, LFUN_COMMAND_ALTERNATIVES, diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 5df0790182..dc930568cd 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -3536,15 +3536,15 @@ void LyXAction::init() { LFUN_SET_COLOR, "set-color", ReadOnly | NoBuffer, System }, /*! - * \var lyx::FuncCode lyx::LFUN_SET_GRAPHICS_GROUP + * \var lyx::FuncCode lyx::LFUN_GRAPHICS_SET_GROUP * \li Action: Set the group for the graphics inset on the cursor position. - * \li Syntax: set-graphics-group [] + * \li Syntax: graphics-set-group [] * \li Params: : Id for an existing group. In case the Id is an empty string, the graphics inset is removed from the current group. * \li Origin: sanda, 6 May 2008 * \endvar */ - { LFUN_SET_GRAPHICS_GROUP, "set-graphics-group", Noop, Edit }, + { LFUN_GRAPHICS_SET_GROUP, "graphics-set-group", Noop, Edit }, /*! * \var lyx::FuncCode lyx::LFUN_GRAPHICS_UNIFY diff --git a/src/Text3.cpp b/src/Text3.cpp index 04b00e7dc6..d811616eaa 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1312,7 +1312,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) break; } - case LFUN_SET_GRAPHICS_GROUP: { + case LFUN_GRAPHICS_SET_GROUP: { InsetGraphics * ins = graphics::getCurrentGraphicsInset(cur); if (!ins) break; @@ -3254,7 +3254,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, enable = cur.paragraph().isPassThru(); break; - case LFUN_SET_GRAPHICS_GROUP: { + case LFUN_GRAPHICS_SET_GROUP: { InsetGraphics * ins = graphics::getCurrentGraphicsInset(cur); if (!ins) enable = false; diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp index d08517f00b..eac4f578c3 100644 --- a/src/frontends/qt4/Menus.cpp +++ b/src/frontends/qt4/Menus.cpp @@ -803,10 +803,10 @@ void MenuDefinition::expandGraphicsGroups(BufferView const * bv) set::const_iterator it = grp.begin(); set::const_iterator end = grp.end(); add(MenuItem(MenuItem::Command, qt_("No Group"), - FuncRequest(LFUN_SET_GRAPHICS_GROUP))); + FuncRequest(LFUN_GRAPHICS_SET_GROUP))); for (; it != end; ++it) { addWithStatusCheck(MenuItem(MenuItem::Command, toqstr(*it) + '|', - FuncRequest(LFUN_SET_GRAPHICS_GROUP, *it))); + FuncRequest(LFUN_GRAPHICS_SET_GROUP, *it))); } }