Commit graph

4888 commits

Author SHA1 Message Date
Pino Toscano
5b1276dc57 Add for GotoAction the possibility to represent a named destination, instead of a viewport.
svn path=/trunk/KDE/kdegraphics/okular/; revision=967385
2009-05-13 11:13:04 +00:00
Pino Toscano
16db4f6a0d use the width and heightof the view, it seems to slightly improve the placement of the text areas
(although the problem is not solved yet)
also, skip text nodes with a null area (we wouldn't be able to place them anywhere, anyway)

svn path=/trunk/KDE/kdegraphics/okular/; revision=966802
2009-05-11 21:32:28 +00:00
Pino Toscano
3aeb12fe1e use the right values of width/height for the x/y scale when getting the links of each page
fix the position of the links, mostly

svn path=/trunk/KDE/kdegraphics/okular/; revision=966651
2009-05-11 17:18:45 +00:00
Script Kiddy
81e3526dab SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=966631
2009-05-11 17:13:40 +00:00
Pino Toscano
002ea53f97 QVector<bool> -> QBitArray
svn path=/trunk/KDE/kdegraphics/okular/; revision=966611
2009-05-11 16:02:35 +00:00
Pino Toscano
455b535ab6 Switch from the sync API to the async one.
Protected the potentially concurred methods using the user mutex.
Removed the manual 'ready' flag and the calculation of the bounding box, as both are done in the core.

This should avoid the block when rendering pages and extracting text from them, and reduce the "slow" feeling esp when invoking external Ghostscript.
BUG: 192284
CCBUG: 162643

svn path=/trunk/KDE/kdegraphics/okular/; revision=966599
2009-05-11 15:14:17 +00:00
Pino Toscano
e75b76545c convert and set the links only *once* per page
svn path=/trunk/KDE/kdegraphics/okular/; revision=966553
2009-05-11 11:41:20 +00:00
Script Kiddy
4b5f6aa2fc SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=965702
2009-05-09 15:29:01 +00:00
Pino Toscano
c6c0a69cbc SVN_SILENT
silent some debug output

svn path=/trunk/KDE/kdegraphics/okular/; revision=965466
2009-05-08 23:37:32 +00:00
Pino Toscano
a84db251c4 Instead of directly closing the find bar with Esc, check whether a search is running from it.
In case it is, then cancel it, otherwise just close the find bar.
This make it possible to cancel a running search in the find bar without waiting for it to find some match and stop.

svn path=/trunk/KDE/kdegraphics/okular/; revision=965461
2009-05-08 23:19:37 +00:00
Pino Toscano
3a31169487 search line edit:
- save and get wether a search is running
- add a method to cancel a running one

svn path=/trunk/KDE/kdegraphics/okular/; revision=965457
2009-05-08 23:13:39 +00:00
Pino Toscano
23f93e3a71 Save & restore the value of "case sensitivity" and "from current page" options of the find bar.
svn path=/trunk/KDE/kdegraphics/okular/; revision=965341
2009-05-08 16:26:02 +00:00
Pino Toscano
ff9c6a6ab5 do not leak the dvi renderer when the loading fails
svn path=/trunk/KDE/kdegraphics/okular/; revision=965081
2009-05-07 21:43:13 +00:00
Pino Toscano
f1455f14b5 remove the rc.cpp-like file once xgettext is done
svn path=/trunk/KDE/kdegraphics/okular/; revision=964891
2009-05-07 15:54:40 +00:00
Pino Toscano
793a8fc9b6 do not hardcode the maximum number of digits of the pages line edit to 4
actually, do not hardcode it at all, as the validator will do the job just fine
CCBUG: 191859

svn path=/trunk/KDE/kdegraphics/okular/; revision=964588
2009-05-06 23:00:38 +00:00
Pino Toscano
1b84b3fb4a raise the typing timeout from 500ms to 700ms
it does not seem too slow, and it allows slightly more time for "not too fast" typers

svn path=/trunk/KDE/kdegraphics/okular/; revision=964098
2009-05-06 00:06:19 +00:00
Jakub Stachowski
9931d3cc99 Do not blindly assume that contents are HTML file.
It is also can be plain text - AportisDoc format.
I don't think many of those are still around but it is simpler to make them display properly
than tweak mime rules to make sure that they will be ignored by Okular.


svn path=/trunk/KDE/kdegraphics/okular/; revision=962670
2009-05-02 21:01:11 +00:00
Pino Toscano
0599270e40 take the reading of the X/Y dpi values out of the for loop
svn path=/trunk/KDE/kdegraphics/okular/; revision=962293
2009-05-01 23:47:47 +00:00
Pino Toscano
2f61233ab2 export the actual page numbers, instead of the page count
BUG: 191223

svn path=/trunk/KDE/kdegraphics/okular/; revision=961994
2009-05-01 11:47:01 +00:00
Laurent Montel
26e33dfc8d add missing i18n
svn path=/trunk/KDE/kdegraphics/okular/; revision=958064
2009-04-23 11:31:28 +00:00
Albert Astals Cid
d796459fb6 Add some userMutex to remove some helgrind warnings
May or may not fix bug 190336
Please try once KDE 4.2.3 is out if this still crashes for you
CCBUG: 190336

svn path=/trunk/KDE/kdegraphics/okular/; revision=957819
2009-04-22 23:02:00 +00:00
Christoph Feck
1f812e3e46 SVN_SILENT Cleanup .ui files
This removes (as discussed on k-c-d)
* obsolete <pixmapfunction>
* deprecated <layoutdefault>
* empty <author>, <comment>, <exportmacro>


svn path=/trunk/KDE/kdegraphics/okular/; revision=957378
2009-04-21 21:54:46 +00:00
Pino Toscano
9a4b23d866 force the sidebar widget to not be transparent
svn path=/trunk/KDE/kdegraphics/okular/; revision=957332
2009-04-21 20:39:01 +00:00
Script Kiddy
8a04e58248 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=956741
2009-04-20 14:13:53 +00:00
Pino Toscano
9190c9224d raise a bit the tolerance
Thomas, what do you think?
CCBUG: 157336

svn path=/trunk/KDE/kdegraphics/okular/; revision=956361
2009-04-19 22:34:29 +00:00
Sascha Peilicke
f806e7cb53 Reverted wrong poppler build check removal.
svn path=/trunk/KDE/kdegraphics/okular/; revision=956061
2009-04-19 12:07:32 +00:00
Sascha Peilicke
3cc3c5b969 Remove check HAVE_POPPLER_08 for now, this breaks build for later versions. The poppler-qt4 generator does version checks itself.
svn path=/trunk/KDE/kdegraphics/okular/; revision=956051
2009-04-19 11:47:25 +00:00
Pino Toscano
93953ef2c0 use the kde toolbar font for the text in the sidebar
svn path=/trunk/KDE/kdegraphics/okular/; revision=955952
2009-04-18 23:18:00 +00:00
Script Kiddy
8a6422f66e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=954907
2009-04-16 13:48:36 +00:00
Andrew Coles
372c8bd0a6 SVN_SILENT
Added missing period.


svn path=/trunk/KDE/kdegraphics/okular/; revision=952406
2009-04-11 20:12:34 +00:00
Albert Astals Cid
87a00c3fdc use the new kfiledialog:/// variant that let's you both specify a keyword and a filename
ok'ed by pino

svn path=/trunk/KDE/kdegraphics/okular/; revision=951941
2009-04-10 16:27:38 +00:00
Andrew Coles
9f3163ee61 Extracting missing strings from .kcfg files.
svn path=/trunk/KDE/kdegraphics/okular/; revision=951704
2009-04-09 21:52:50 +00:00
Script Kiddy
1fc8693c81 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=951139
2009-04-08 15:00:34 +00:00
André Wöbbeking
3e7626447a finish old todo: completed KAboutData to enable "About Backend" action
I hoped to see the mimetype icon but there is no icon for x-dvi :-(

svn path=/trunk/KDE/kdegraphics/okular/; revision=946999
2009-03-30 17:50:44 +00:00
Pino Toscano
512ad01b14 PS print dialog: open with a non-lilliputian size, and remember its size across invocations
svn path=/trunk/KDE/kdegraphics/okular/; revision=945138
2009-03-26 22:44:16 +00:00
Script Kiddy
fa136bc6db SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=944478
2009-03-25 15:35:35 +00:00
André Wöbbeking
d99acec0f2 forwardport of rev. 943375 by woebbe:
slotAboutBackend(): use the document's mimetype to get an icon instead of the unknown icon.
this way you don't have to specify redundant icon names yourself.

svn path=/trunk/KDE/kdegraphics/okular/; revision=943494
2009-03-23 22:57:50 +00:00
Pino Toscano
bb73bf347c detect when we are embedded in KHTML
svn path=/trunk/KDE/kdegraphics/okular/; revision=943271
2009-03-23 15:40:09 +00:00
Pino Toscano
f0066c8212 use -1 to indicate an unspecified coordinate now
svn path=/trunk/KDE/kdegraphics/okular/; revision=943102
2009-03-23 12:11:25 +00:00
Pino Toscano
212e8a6417 improve the source reference picking by looking for the nearest object in case there's none right under the mouse
svn path=/trunk/KDE/kdegraphics/okular/; revision=943101
2009-03-23 12:10:11 +00:00
Pino Toscano
6d0241e5d2 add functions to get the nearest object rect to a point in a page, and return its distance, and the accessor functions for object rects
based on an patch by Luigi Toscano, thanks!
CCMAIL: luigi.toscano@tiscali.it

svn path=/trunk/KDE/kdegraphics/okular/; revision=943099
2009-03-23 12:05:00 +00:00
Pino Toscano
a0028d494d read correctly the destination file name for non-grouped items in pdfsync links
svn path=/trunk/KDE/kdegraphics/okular/; revision=942965
2009-03-23 01:26:34 +00:00
Pino Toscano
42afd676d9 handle relative file names in source reference links correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=942963
2009-03-23 01:22:17 +00:00
Pino Toscano
9822fae845 centralize the idea of knowing where are we embedded into
apply it to the print preview mode (effectively replacing the "dummy mode"), and to the "native shell" case

svn path=/trunk/KDE/kdegraphics/okular/; revision=942873
2009-03-22 18:38:38 +00:00
Script Kiddy
98a4a3e915 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=942761
2009-03-22 13:44:51 +00:00
Christian Ehrlicher
be51224a3c KUrl::path() -> KUrl::toLocalFile() - fixes
svn path=/trunk/KDE/kdegraphics/okular/; revision=941468
2009-03-19 17:12:27 +00:00
Pino Toscano
1eac0dc906 make Poppler 0.8 the minimum version required for Okular, and drop support for Poppler 0.6
svn path=/trunk/KDE/kdegraphics/okular/; revision=940958
2009-03-18 14:32:06 +00:00
Script Kiddy
0757dc7f60 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=940941
2009-03-18 14:29:08 +00:00
Pino Toscano
ede4f767ce - add a compile check for poppler 0.8
- improve the message shown

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=940936
2009-03-18 14:27:23 +00:00
Pino Toscano
70f7610f9e SVN_SILENT no gui to configure
svn path=/trunk/KDE/kdegraphics/okular/; revision=939431
2009-03-14 21:06:31 +00:00