Peter Wu
61c2c2cedd
TOC: Add collapse/expand options
...
Large specifications with many (nested) sections are painful to navigate
through when the TOC is expanded by default. Introduce four new options,
"Expand/Collapse whole section" 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
Differential Revision: https://phabricator.kde.org/D14904
8 years ago
Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
9 years ago
Gilbert Assaf
a2aceadc13
Allow to create bookmarks from the TOC
...
BUGS: 190203
REVIEWS: 129999
9 years ago
Albert Astals Cid
5b62bc71d4
Simplify KTreeviewSearchLine to only work on a treeview
...
Instead of many, allows for an easy fix of the case than children of root are ignored on search
11 years ago
Montel Laurent
2eacdea022
Port to new connect api
12 years ago
Montel Laurent
378f6847a2
Remove some deprecated kdelibs4support
12 years ago
Frederik Gladhorn
ac15a7075e
More QUrl porting
12 years ago
Frederik Gladhorn
0ba233788c
Use moc include style dictated by automoc
...
While it's generally not a great idea to include moc files at least this
compiles.
12 years ago
Fabio D'Urso
68439221ea
Unparent the old TOCModel so that it doesn't get deleted twice
...
BUG: 322919
FIXED-IN: 4.11.3
13 years ago
Fabio D'Urso
80ebb46d36
Don't attempt to restore old TOCModel if it hasn't been actually saved
...
Because if it hasn't been saved (54b4a20e07 )
this results in m_model == 0, which makes us crash.
13 years ago
Albert Astals Cid
3f3f82afa1
Fix my email address
13 years ago
Albert Astals Cid
541650a4f4
Remove the concept of observer/view id
...
Just use the pointer as id :-)
This is BIC and SIC, increase the soversion now to makes sure we don't forget in the future
Patch based in an earlier patch by Bogdan Cristea <cristeab@gmail.com>
REVIEW: 109115
13 years ago
Albert Astals Cid
f40b42f8db
Fix my fixes for 313147 and 313146
...
It actually fixed them but make the toc reload keeping not work anymore :D
13 years ago
Jaydeep Solanki
54b4a20e07
No need to prepare for reloading if there's nothing to reload
...
Part of review 108404
The other part was fixed in the previous commit in a different way
REVIEW: 108404
13 years ago
Albert Astals Cid
0413d53857
Delete the oldModel even if the new doc has no toc
...
BUGS: 313146
13 years ago
Jaydeep Solanki
7c99477f94
Preserve TOC folding status on document dirty reload
...
REVIEW: 107994
BUGS: 312138
13 years ago
Tobias Koenig
d3e0dadcac
Introduce notifyCurrentPageChanged callback DocumentObserver interface
14 years ago
Montel Laurent
f9f65979f5
Normalize signals/slots
15 years ago
Elvis Stansvik
820a667190
Save case sensitivity and regular expression search options for the Contents
...
and Reviews side panels to okularpartrc.
If these options are turned on they are now saved as:
[Contents]
ContentsSearchCaseSensitive=true
ContentsSearchRegularExpression=true
and
[Reviews]
ReviewsSearchCaseSensitive=true
ReviewsSearchRegularExpression=true
respectively.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1051497
17 years ago
Pino Toscano
5bfb9dca4f
Support for external URLs as destination for the TOC items.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=890883
18 years ago
Pino Toscano
769a70956f
add more checks against invalid viewports
...
fix crash when activating some of the toc items in the testcase of #176513 (still it would be nice to know why they are "void" items"...)
svn path=/trunk/KDE/kdegraphics/okular/; revision=890803
18 years ago
Pino Toscano
f84c256657
don't activate the TOC when it has no items
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=753072
18 years ago
Pino Toscano
a917f080e6
Create a model for the TOC, and use that for displaying the TOC of the document.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710317
19 years ago
Pino Toscano
b56ad8c3ae
Change the DocumentObserver::notifySetup() to allow a better tuning of the different setup options (different layout for the pages, or different document).
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=710227
19 years ago
Pino Toscano
dac41f84ad
give the thumbnail list, the toc and the bookmark list a coherent look
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=704267
19 years ago
Pino Toscano
106e96240c
rename (almost) every ActionFoo class to FooAction
...
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
19 years ago
Pino Toscano
0e12746a92
Link -> Action renaming.
...
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
19 years ago
Pino Toscano
5f21b15d99
Link -> Action renaming.
...
Step #2 : Link -> Action for the action hierarchy, and for the ObjectRect type.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
19 years ago
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
19 years ago
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
19 years ago
Pino Toscano
29e8bbc50f
make it possible for generators to decide the initial open/close state for the items of a TOC
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=654247
19 years ago
Pino Toscano
9ccf6d520d
adapt the icon names to the icon naming spec
...
svn path=/trunk/playground/graphics/okular/; revision=640710
19 years ago
Pino Toscano
573f989b47
don't keep the domelement for every toc item, just extract the needed information
...
svn path=/trunk/playground/graphics/okular/; revision=627174
19 years ago
Pino Toscano
b163e04115
Support for labelling the pages, and for displaying the page label (if any) in the table of contents side pane.
...
svn path=/trunk/playground/graphics/okular/; revision=625312
19 years ago
Tobias Koenig
86a1fd3b69
Big cleanup of Document API and documentation:
...
* add full API docs
* renamed getMetaData -> metaData
* removed supportsRotation in Document and Generator
* moved Permission and SearchDirection enums into separated header core/global.h
svn path=/trunk/playground/graphics/okular/; revision=619183
19 years ago
Pino Toscano
b9a2413619
remove the evil hack of the separator by using a custom role for the page number
...
svn path=/trunk/playground/graphics/okular/; revision=616706
19 years ago
Pino Toscano
b7328d7234
add an handy DocumentViewport::isValid() and use it where possible instead of doing checks manually
...
svn path=/trunk/playground/graphics/okular/; revision=616667
19 years ago
Pino Toscano
349dfb7eb1
move the delegate used to draw the side page numbers in an own file
...
svn path=/trunk/playground/graphics/okular/; revision=616662
19 years ago
Pino Toscano
ab508c75a9
hopefully draw the toc item correcty, this time
...
svn path=/trunk/playground/graphics/okular/; revision=615872
19 years ago
Pino Toscano
fd6166e74c
update correctly when the option for toggling the page numbers in the toc is changed
...
svn path=/trunk/playground/graphics/okular/; revision=615815
20 years ago
Pino Toscano
3c0069f811
Display - if available - the page number on the right of every item in the table of contents.
...
Implements the KPDF wish #122863 .
svn path=/trunk/playground/graphics/okular/; revision=615801
20 years ago
Pino Toscano
8def2109ec
change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
...
svn path=/trunk/playground/graphics/okular/; revision=599847
20 years ago
Pino Toscano
1fabb1880d
rename setSelected to setCurrent, as it clashes with a new function of Qt4.2
...
svn path=/trunk/playground/graphics/okular/; revision=597727
20 years ago
Pino Toscano
20947b2e8d
much like the other side panes
...
svn path=/trunk/playground/graphics/okular/; revision=595366
20 years ago
Tobias Koenig
df7d144c10
Moved all classes in core/ into the 'Okular' namespace and removed
...
nearly all references to kpdf (knewstuff still missing).
svn path=/trunk/playground/graphics/okular/; revision=586993
20 years ago
Laurent Montel
95486afabf
clear button is not necessary it's into klineeedit now
...
svn path=/trunk/playground/graphics/okular/; revision=586807
20 years ago
Dirk Mueller
3c092edf3f
if tmp can be null then m_current can be as well (CID 2644)
...
svn path=/trunk/playground/graphics/okular/; revision=580808
20 years ago
Pino Toscano
cc447bd3dc
use the layout direction of the parent treewidget
...
svn path=/trunk/playground/graphics/okular/; revision=561525
20 years ago
Pino Toscano
a73c1d14a1
don't exclude ourself when setting a new viewport
...
svn path=/trunk/playground/graphics/okular/; revision=558490
20 years ago
Pino Toscano
8f32edb95e
Make the TOC highlight (well, just indicate with an arrow for the moment) the first entry for the current page.
...
Implements bug #127358 .
svn path=/trunk/playground/graphics/okular/; revision=553236
20 years ago