]> git.lyx.org Git - lyx.git/commit
Allow using icon names in InsetInfo
authorEnrico Forestieri <forenr@lyx.org>
Sat, 28 Mar 2015 11:45:20 +0000 (12:45 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 28 Mar 2015 11:45:20 +0000 (12:45 +0100)
commit0f0750a65a7782a5723e8be6af0896b94c448068
treeb7ba6f340c96383bb9b6e33c55231082d6855bf0
parent7789f3eb37619cc5239d4826b19e76fbcdb61612
Allow using icon names in InsetInfo

Currently, only lfun names are accepeted but there are cases in which
the lfun name does not map directly to an icon. Fore example, in the
outliner, the icon named "promote" is used for the lfun outline-out.
As a result, a graphics inset is used in the documentation for describing
the corresponding icon. Now one can also use an icon name. The argument
of "info-isert icon" is firstly lookep up as an lfun. If no corresponding
icon is found, the argument is taken as the name of the icon. If no such
icon exists, the "unknown" icon is used.
src/LyXAction.cpp
src/insets/InsetInfo.cpp