D14904: TOC: Add collapse/expand options
Peter Wu
noreply at phabricator.kde.org
Fri Aug 17 17:40:17 BST 2018
Lekensteyn created this revision.
Lekensteyn added a reviewer: Okular.
Lekensteyn added a project: Okular.
Herald added a subscriber: okular-devel.
Lekensteyn requested review of this revision.
REVISION SUMMARY
Large specifications with many (nested) sections are painful to navigate
through when the TOC is expanded by default. Introduce four new options,
"Expand/Collapse recursively" is based on Kate's document view while
"Expand/Collapse all" was added to handle the top-level sections.
As for other viewers, PDF.js uses shift-click to handle the former while
using double-click on a the TOC icon to handle the latter. That is not
very obvious, so extending the context menu seems the next best option.
BUG: 216870
TEST PLAN
Open a document such as ACPI 6.2 (Eratta A) from https://uefi.org/specifications
Try Expand/Collapse all. Select a child and try Expand/Collapse recursively.
F6202066: Screenshot_20180817_183839.png <https://phabricator.kde.org/F6202066>
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D14904
AFFECTED FILES
part.cpp
part.h
ui/toc.cpp
ui/toc.h
To: Lekensteyn, #okular
Cc: okular-devel, #okular, ngraham, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180817/45cd3829/attachment.html>
More information about the Okular-devel
mailing list