Fabio D'Urso
68439221ea
Unparent the old TOCModel so that it doesn't get deleted twice
...
BUG: 322919
FIXED-IN: 4.11.3
2013-10-01 19:21:13 +02:00
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.
2013-06-08 17:27:17 +02:00
Albert Astals Cid
04c3b836ff
Merge remote-tracking branch 'origin/KDE/4.10'
...
Conflicts:
generators/spectre/okularApplication_ghostview.desktop
2013-03-14 23:09:57 +01:00
Albert Astals Cid
3f3f82afa1
Fix my email address
2013-03-14 23:09:07 +01:00
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
2013-02-24 23:01:02 +01:00
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
2013-01-18 18:03:10 +01:00
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
2013-01-15 01:21:38 +01:00
Albert Astals Cid
0413d53857
Delete the oldModel even if the new doc has no toc
...
BUGS: 313146
2013-01-15 01:16:35 +01:00
Jaydeep Solanki
7c99477f94
Preserve TOC folding status on document dirty reload
...
REVIEW: 107994
BUGS: 312138
2013-01-09 23:31:23 +01:00
Tobias Koenig
d3e0dadcac
Introduce notifyCurrentPageChanged callback DocumentObserver interface
2012-09-06 08:46:10 +02:00
Montel Laurent
f9f65979f5
Normalize signals/slots
2011-07-31 21:22:04 +02:00
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
2009-11-19 17:26:41 +00:00
Pino Toscano
5bfb9dca4f
Support for external URLs as destination for the TOC items.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=890883
2008-11-30 15:48:01 +00:00
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
2008-11-30 11:28:08 +00:00
Pino Toscano
f84c256657
don't activate the TOC when it has no items
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=753072
2007-12-26 16:01:54 +00:00
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
2007-09-09 16:15:33 +00:00
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
2007-09-09 10:50:36 +00:00
Pino Toscano
dac41f84ad
give the thumbnail list, the toc and the bookmark list a coherent look
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=704267
2007-08-24 14:20:03 +00:00
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
2007-05-02 22:50:27 +00:00
Pino Toscano
0e12746a92
Link -> Action renaming.
...
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
2007-04-20 12:49:17 +00:00
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
2007-04-20 12:37:12 +00:00
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +00:00
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
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
2007-04-15 15:48:39 +00:00
Pino Toscano
9ccf6d520d
adapt the icon names to the icon naming spec
...
svn path=/trunk/playground/graphics/okular/; revision=640710
2007-03-08 21:41:46 +00:00
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
2007-01-25 21:35:20 +00:00
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
2007-01-19 23:30:32 +00:00
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
2007-01-02 22:37:55 +00:00
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
2006-12-26 14:35:27 +00:00
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
2006-12-26 12:26:49 +00:00
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
2006-12-26 12:01:30 +00:00
Pino Toscano
ab508c75a9
hopefully draw the toc item correcty, this time
...
svn path=/trunk/playground/graphics/okular/; revision=615872
2006-12-23 00:34:40 +00:00
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
2006-12-22 20:42:36 +00:00
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
2006-12-22 19:26:28 +00:00
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
2006-10-28 19:18:36 +00:00
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
2006-10-21 13:11:43 +00:00
Pino Toscano
20947b2e8d
much like the other side panes
...
svn path=/trunk/playground/graphics/okular/; revision=595366
2006-10-14 08:52:34 +00:00
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
2006-09-21 08:45:36 +00:00
Laurent Montel
95486afabf
clear button is not necessary it's into klineeedit now
...
svn path=/trunk/playground/graphics/okular/; revision=586807
2006-09-20 16:55:05 +00:00
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
2006-09-04 14:57:39 +00:00
Pino Toscano
cc447bd3dc
use the layout direction of the parent treewidget
...
svn path=/trunk/playground/graphics/okular/; revision=561525
2006-07-12 11:16:20 +00:00
Pino Toscano
a73c1d14a1
don't exclude ourself when setting a new viewport
...
svn path=/trunk/playground/graphics/okular/; revision=558490
2006-07-05 13:34:16 +00:00
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
2006-06-20 13:59:08 +00:00
Pino Toscano
639039e791
Now TOC is a simple widget, with the treewiget inside.
...
Added a search lineedit (and a clear button) to search into the document toc. Implements KPDF's wish #99349 .
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545972
2006-05-28 17:27:24 +00:00
Pino Toscano
880561c3ab
port the TOC widget to QListWidget
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=542450
2006-05-19 11:32:08 +00:00
Pino Toscano
63c18ab06e
Make the oKular part and its shell compile and link.
...
Created a oKularcore lib, so the generators ca link to it, and made the oKularpart link to it too, of course.
Adapted the sources of the Okularpart to the new location for the generated settings.h.
svn path=/branches/work/kde4/playground/graphics/okular/; revision=523729
2006-03-28 22:22:10 +00:00
Albert Astals Cid
b61b6e2f22
some fixes more, able to see pdf already
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522382
2006-03-25 11:45:16 +00:00
Pino Toscano
8b41489e2f
porting
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=522251
2006-03-24 21:31:46 +00:00
Albert Astals Cid
ec923ec701
compile some more files
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=521912
2006-03-23 20:43:38 +00:00
Albert Astals Cid
3e168cfd07
branchport r511281
...
svn path=/trunk/playground/graphics/oKular/kpdf/; revision=511282
2006-02-19 13:36:28 +00:00