Albert Astals Cid
667e07a343
setAttribute with doubles is evil as it uses the current locale and we don't want that, use QString::number
...
BUGS: 211990
svn path=/trunk/KDE/kdegraphics/okular/; revision=1050633
17 years ago
Albert Astals Cid
b9d749bc0d
Commit "Document information" patch by Luigi Toscano, 8 months without a nack from any devel and i like it, so let's commit it
...
Luigi's mail says
********
The attached patch changes a bit the handling of document informations
and the informations shown in the info page.
- document path is added to the information and a button allows you to
toggle between to file name (default) and the complete path;
- the number of the page is added to the information set by
documentInfo() and not by the properties dialog (so the latter will not
modify datas);
- the order of the information shown is the fixed now (see
orderedProperties).
*********
Then there are a few things of my own since some const here and there and adding three values to Key enum
Also it fixes wish 208999
BUGS: 208999
svn path=/trunk/KDE/kdegraphics/okular/; revision=1049872
17 years ago
Albert Astals Cid
4041eb7f5b
empty the pixmaps queue stack before doing the loop waiting for executing pixmap requests to empty, otherwise a single shot timed call to sendGeneratorRequest can kick us in the back cause bad things to happen, ranging from crashes to the app waiting forever in the loop
...
Patch provided by pino and tested by me
BUG: 212066
svn path=/trunk/KDE/kdegraphics/okular/; revision=1047671
17 years ago
Albert Astals Cid
a79fe451fd
check the search we are doing is still alive, otherwise doesn't make sense to keep on doing it and even more doing so might make us crash
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1045410
17 years ago
Albert Astals Cid
0b1124c4a8
do not accept new pixmap requests if we are shutting down
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1041420
17 years ago
Albert Astals Cid
10ba02cbd5
in case we have a new enough poppler give a better error message when we can't save files with /Encrypt
...
BUGS: 208119
svn path=/trunk/KDE/kdegraphics/okular/; revision=1037771
17 years ago
Pino Toscano
90074bef90
check the actual mime type names and not their pointers
...
BUG: 210882
svn path=/trunk/KDE/kdegraphics/okular/; revision=1037414
17 years ago
Albert Astals Cid
27830a988e
Add a [hidden] config option to set hinting to fonts
...
Defaults to disabled
Made the dvi and pdf backends honor the hinting setting
svn path=/trunk/KDE/kdegraphics/okular/; revision=1032936
17 years ago
Albert Astals Cid
b55024cfd7
Do not start a search if it's already running
...
BUGS: 203142
svn path=/trunk/KDE/kdegraphics/okular/; revision=1009822
17 years ago
Armin Berres
555cb3c9a1
add synctex support for pdf files
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=1003016
17 years ago
Pino Toscano
df230edd3a
fix signal/slot connection
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=990840
17 years ago
Pino Toscano
b2472bef0d
check that the rotation page notification really refers to a page of a document
...
fixes crash when rotating documents opened in one of more than one okular tabs in konqueror
svn path=/trunk/KDE/kdegraphics/okular/; revision=989681
17 years ago
Pino Toscano
dc7583eb8b
Add the concept of "next destination" next to the "next viewport" one.
...
This allows a resolution, if set, of that named destination when opening a document.
CCBUG: 192032
svn path=/trunk/KDE/kdegraphics/okular/; revision=967542
17 years ago
Pino Toscano
42afd676d9
handle relative file names in source reference links correctly
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=942963
17 years ago
Pino Toscano
4d48c59a34
now that we have a small "progress" animation next to the search line edit in the find bar, there's no need for the "searching for ..." dialog
...
feedback about this new "notification" is much welcome
CCBUG: 155858
svn path=/trunk/KDE/kdegraphics/okular/; revision=926301
17 years ago
Patrick Spendrin
3330a5f992
fix crash in okular - forward port r923029
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=923031
17 years ago
Pino Toscano
e449fd1ef0
on document closing, clear the fifo with allocated text pages
...
(fixes potential crash because of references to potentially non-existing pages in the next open document)
svn path=/trunk/KDE/kdegraphics/okular/; revision=923020
17 years ago
Pino Toscano
3b905e3cf4
undefine the internal macros at the end
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=908738
17 years ago
Pino Toscano
46a2bb5273
When the loaded document is empty, consider its loading as failed.
...
(Added a TODO for a proper UI message.)
BUG: 179447
svn path=/trunk/KDE/kdegraphics/okular/; revision=904821
17 years ago
Pino Toscano
cba63bd669
Pass the plugin keyword when creating generators.
...
This should make the Ruby binding work again.
BUG: 177537
svn path=/trunk/KDE/kdegraphics/okular/; revision=895926
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
52a666f073
When starting an incremental search, do not consider the start page "done" if there was a match in it.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=890800
18 years ago
Patrick Spendrin
d7c9bcb596
under windows there is no gid yet
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=885793
18 years ago
Pino Toscano
e5b13e2d5b
claim support for application/vnd.kde.okular-archive in the correct way, ie via .desktop files
...
thanks Albert for waking me up
svn path=/trunk/KDE/kdegraphics/okular/; revision=884982
18 years ago
Pino Toscano
938ed4acfa
claim support of the new application/vnd.kde.okular-archive mimetype, and check it where appropriate
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=884851
18 years ago
Pino Toscano
b6c5ba1bc8
Add API to load and save "document archives", ie an .okular archive with document and metadata (currently annotations).
...
Few missing to be done in it:
- more checks when saving
- make it use a proper mimetype
CCBUG: 151614
svn path=/trunk/KDE/kdegraphics/okular/; revision=884597
18 years ago
Pino Toscano
acab77c691
add a loadDocumentInfo() variant that takes the file name to read stuff from, and make the non-parameters one calling the new one
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=884461
18 years ago
Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Pino Toscano
9d8c52b5eb
Shuffle a bit the way documents are opened:
...
- when there are no backends for handling the document mimetype, try harder using the mimetype from the file content only
- when the backend fails loading, try again with the backend that handles the mimetype of the file content
BUG: 166034
svn path=/trunk/KDE/kdegraphics/okular/; revision=881991
18 years ago
Pino Toscano
5542445f04
replace the home-made placeholder replacements with KMacroExpander+KShell, and use KProcess
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=873601
18 years ago
Pino Toscano
4da5b7a105
Add a configuration page for the text editor used for source references links (that is, the ones used also for inverse search).
...
Factor out the editor commands structure.
svn path=/trunk/KDE/kdegraphics/okular/; revision=873570
18 years ago
Pino Toscano
97335bf267
simple optimization in the Google-like search: split the search terms just once
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=873283
18 years ago
Pino Toscano
e0f2e1dd13
disable the "no results found" dialog when searching. search users should use the proper signal to get the search result (and do proper feedback)
...
CCBUG: 155858
svn path=/trunk/KDE/kdegraphics/okular/; revision=870011
18 years ago
Pino Toscano
27e703f878
always deal with memory measures as ulonglong, this way systems with >4 GB of memory work for real now
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=867871
18 years ago
Pino Toscano
d3b0b62cfc
Make Okular able to distinguish the LilyPond "Point and click" links,
...
and make them act as source references when activated.
FEATURE: 163569
svn path=/trunk/KDE/kdegraphics/okular/; revision=863572
18 years ago
Pino Toscano
0eab41cc97
do not use the specified widget as parent for the Document, but just keep it
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=863377
18 years ago
Pino Toscano
6fe1576442
Correctly get the filename from the original url, not from the local file name of the real file being open.
...
BUG: 168068
svn path=/trunk/KDE/kdegraphics/okular/; revision=842324
18 years ago
Albert Astals Cid
61964b930f
And now okular coupled with poppler from 5 minutes ago has the hability to let you save to file fonts embedded into a pdf file
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=840789
18 years ago
Pino Toscano
4d1a48cddb
when saving the internal xml, be sure to save it as utf-8, and to advertize the encoding in the main processing instruction
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=839566
18 years ago
Pino Toscano
8bad2a8629
& is different than |
...
fix a condition that made the view loading and saving vanish into the hyperspace
BUG: 167220
svn path=/trunk/KDE/kdegraphics/okular/; revision=836658
18 years ago
Pino Toscano
830fcef561
handle relative paths in browse actions, second and hopefully better try
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=817344
18 years ago
Pino Toscano
3cc607ff69
handle relative paths in browse links, as shown by the testcase provided by knusperfrosch
...
and, btw, master dfaure rocks once again!
svn path=/trunk/KDE/kdegraphics/okular/; revision=817340
18 years ago
Pino Toscano
e4dc8d8126
Load and save in the XML document info all the properties of the various View's, that are specific to each document.
...
At the moment, they are the zoom mode and level of the page view.
BUG: 155752
svn path=/trunk/KDE/kdegraphics/okular/; revision=814998
18 years ago
Pino Toscano
afc6f89727
Check whether the document to open is absolute as first thing, so we can open it directly even with no document open.
...
BUG: 162459
svn path=/trunk/KDE/kdegraphics/okular/; revision=811109
18 years ago
Pino Toscano
18f486c2c1
add the possibility to store an useful bounding box of a page, and for generators to notify the document (and its observers) on its change
...
original patch by kde2eran@tromer.org, thanks!
CCMAIL: kde2eran@tromer.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=809467
18 years ago
Albert Astals Cid
bb23209234
limit the number of text pages we keep in memory so that searching does not bring your system to its knees
...
BUG: 161213
svn path=/trunk/KDE/kdegraphics/okular/; revision=803949
18 years ago
Pino Toscano
e13e74db92
add a private slot for hooks on config change
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=803946
18 years ago
Albert Astals Cid
3fd8f39b77
make sure we don't detach
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=801823
18 years ago
Albert Astals Cid
048a879e32
Fordwardport commit 801781:
...
Correctly calculate the amount of memory to free, should fix bug 153675
svn path=/trunk/KDE/kdegraphics/okular/; revision=801782
18 years ago
Pino Toscano
5851ddf6a8
Start a View class for managing the "views" of a document.
...
Provide ways to register & unregister the view from a Document, and to get/set the view capabilities.
svn path=/trunk/KDE/kdegraphics/okular/; revision=801657
18 years ago