]> git.lyx.org Git - features.git/commit
Display bookmarks in the workarea.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Jan 2021 18:21:26 +0000 (19:21 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Jan 2021 19:20:03 +0000 (20:20 +0100)
commit99e636ae7b83dacb5acc96ae3b60a96c28339c0e
treed3522b4e92135d5f8ffc45475b73995aec6f9ede
parentb64b1aa85e18a57878c96f697317340b7db1a169
Display bookmarks in the workarea.

The bookmarks are added as virtual elements in display Rows. Bookmarks
are shown with circled numbers. A new color "bookmarks" has been
added. Currently bookmark 0 (the return position) is not displayed
because it is very disturbing in practice.

To make this work, a new method BookmarksSection::bookmarksInPar
retuns the list of bookmarks in a paragraph along with their position.

Force redraw when using bookmark-save and bookmark-clear.

Fixes bug #2496.
src/BufferView.cpp
src/Color.cpp
src/ColorCode.h
src/Session.cpp
src/Session.h
src/TextMetrics.cpp
src/frontends/qt/GuiApplication.cpp