Tobias Koenig
57139e3192
API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
...
svn path=/trunk/playground/graphics/okular/; revision=608236
2006-11-27 08:13:47 +00:00
Tobias Koenig
9969547b0c
* observer API cleanup
...
* removed NotifyRequest, that looked more like a hack than a solution
(see comment in ghostscript generator)
svn path=/trunk/playground/graphics/okular/; revision=608235
2006-11-27 08:12:39 +00:00
Tobias Koenig
d45d7b31b1
Performance improvement: parse content dom only once
...
svn path=/trunk/playground/graphics/okular/; revision=608234
2006-11-27 08:10:24 +00:00
Tobias Koenig
c7aba89080
Bugfix: Show content of AnnotWindow in popup
...
svn path=/trunk/playground/graphics/okular/; revision=608233
2006-11-27 08:09:27 +00:00
Tobias Koenig
d2f9f04494
API cleanup
...
svn path=/trunk/playground/graphics/okular/; revision=608232
2006-11-27 08:08:39 +00:00
Tobias Koenig
fc13c09b3e
Added documentation and some code cleanup
...
svn path=/trunk/playground/graphics/okular/; revision=608231
2006-11-27 08:05:56 +00:00
Tobias Koenig
25f836351f
API cleanup
...
svn path=/trunk/playground/graphics/okular/; revision=608230
2006-11-27 08:04:41 +00:00
Tobias Koenig
1cea7cb777
Fix the bug that ink annotations are not visible on startup.
...
svn path=/trunk/playground/graphics/okular/; revision=608228
2006-11-27 08:01:27 +00:00
Pino Toscano
4c17c58fc2
better remove the search points (with the iterators) first
...
svn path=/trunk/playground/graphics/okular/; revision=608074
2006-11-26 16:46:20 +00:00
Pino Toscano
afa2e5a999
iterator -> const_iterator
...
svn path=/trunk/playground/graphics/okular/; revision=607842
2006-11-25 22:32:13 +00:00
Pino Toscano
3022f55916
iterator -> const_iterator
...
svn path=/trunk/playground/graphics/okular/; revision=607839
2006-11-25 22:21:00 +00:00
Pino Toscano
97f9f895ed
There is nothing to find text into if the text page has no text.
...
BUG: 137860
svn path=/trunk/playground/graphics/okular/; revision=607827
2006-11-25 21:39:52 +00:00
Albert Astals Cid
da3cd5c2fd
put this inside the ifdef, makes too much noise if you don't want to see that much debug
...
svn path=/trunk/playground/graphics/okular/; revision=607508
2006-11-24 21:44:25 +00:00
Albert Astals Cid
4a46c9a140
contains is evil as makes you search twice
...
svn path=/trunk/playground/graphics/okular/; revision=607507
2006-11-24 21:42:56 +00:00
Pino Toscano
5ce4b0674e
Make okular able to copy the text selection to the clipboard (finally!).
...
svn path=/trunk/playground/graphics/okular/; revision=607496
2006-11-24 21:02:38 +00:00
Pino Toscano
f070c5cd32
When in aggressive mode, for the viewer area keep also the page previous and the one next to the pages currently visible.
...
svn path=/trunk/playground/graphics/okular/; revision=607468
2006-11-24 19:29:52 +00:00
Tobias Koenig
0302929b04
Add support of transformation (rotation) of TextPages
...
svn path=/trunk/playground/graphics/okular/; revision=607271
2006-11-23 22:14:04 +00:00
Tobias Koenig
486ca7bd03
SVN_SILENT make it utf-8 clean
...
svn path=/trunk/playground/graphics/okular/; revision=607257
2006-11-23 21:27:43 +00:00
Tobias Koenig
81fb3a383b
Further cleanup of Page API:
...
* getAnnotations() -> annotations()
* setBookmark()/hasBookmark() -> setBookmarked()/isBookmarked()
* moved as much private API of Page as possible to private class
svn path=/trunk/playground/graphics/okular/; revision=607233
2006-11-23 19:25:52 +00:00
Tobias Koenig
471c71d256
Cleaned up the API of TextEntity and TextPage, ready for release ;)
...
svn path=/trunk/playground/graphics/okular/; revision=607211
2006-11-23 17:56:03 +00:00
Tobias Koenig
4848631daf
Renamed all the Page::getXyz() methods to Page::xyz() to be konsistent
...
with the rest of KDE and ... we are no Java developers ;)
svn path=/trunk/playground/graphics/okular/; revision=607204
2006-11-23 17:11:04 +00:00
Tobias Koenig
14d6515b16
Changed the enum SearchDir to SearchDirection and use less strange
...
abbreviations for its items.
Replaced the 'bool strictCase' parameter of Page::findText
with 'Qt::CaseSensitivity caseSensitivity' for better readable code.
svn path=/trunk/playground/graphics/okular/; revision=607203
2006-11-23 16:54:28 +00:00
Tobias Koenig
a844f01f0e
SVN_SILENT warning--
...
svn path=/trunk/playground/graphics/okular/; revision=607196
2006-11-23 16:12:07 +00:00
Tobias Koenig
a7b04cb92b
Replaced
...
Page::setSearchPage( TextPage* );
Page::hasSearchPage();
with
Page::setTextPage( TextPage* );
Page::hasTextPage();
to make the API clearer. The TextPage is not only used for
searching but also for extracting selected text, so the term
'search' is confusing...
svn path=/trunk/playground/graphics/okular/; revision=607195
2006-11-23 16:09:26 +00:00
Tobias Koenig
47636c5ae0
Improved support for href links, the calculation of the bounding
...
rect is correct now.
svn path=/trunk/playground/graphics/okular/; revision=607189
2006-11-23 15:48:05 +00:00
Albert Astals Cid
ee046a1ad6
fordward port Revision 606296
...
********
Fix "No scrolling when selection reaches border"
svn path=/trunk/playground/graphics/okular/; revision=607042
2006-11-22 21:32:21 +00:00
Pino Toscano
1c710fc2eb
better use itemActivated
...
svn path=/trunk/playground/graphics/okular/; revision=606823
2006-11-21 22:25:12 +00:00
Pino Toscano
2840bc7c3d
Smootly move the viewer area to the annotation when an annotation item in the review tab is double-clicked.
...
BUG: 137631
svn path=/trunk/playground/graphics/okular/; revision=606817
2006-11-21 22:08:49 +00:00
Pino Toscano
2f1aa08ac6
move the annotation boundary calculation to AnnotationUtils
...
svn path=/trunk/playground/graphics/okular/; revision=606811
2006-11-21 21:35:45 +00:00
Pino Toscano
f950e3e172
const iterators can be used here, too
...
svn path=/trunk/playground/graphics/okular/; revision=606596
2006-11-21 00:31:44 +00:00
Albert Astals Cid
b10d00e4ae
virtual filesystems always return true for at end, so the memory was not beign correctly calculated
...
svn path=/trunk/playground/graphics/okular/; revision=606586
2006-11-20 22:52:28 +00:00
Pino Toscano
5c0de8b638
Add printing support for DjVu files. (It is also PostScript exporting, as you can print to file to get a PS document.)
...
svn path=/trunk/playground/graphics/okular/; revision=606585
2006-11-20 22:48:44 +00:00
Albert Astals Cid
7dacbf93fd
use the constant accessors so that we don't get dettach on the containers we don't want to get
...
svn path=/trunk/playground/graphics/okular/; revision=606560
2006-11-20 20:28:02 +00:00
Albert Astals Cid
ac1c0b75bc
const_iterator is your friend :-)
...
svn path=/trunk/playground/graphics/okular/; revision=606558
2006-11-20 20:10:42 +00:00
Albert Astals Cid
ccbd55a036
don't look twice in the map
...
svn path=/trunk/playground/graphics/okular/; revision=606547
2006-11-20 19:07:45 +00:00
Pino Toscano
aeab3273cf
don't keep pointers to requests done that have been deleted
...
svn path=/trunk/playground/graphics/okular/; revision=606532
2006-11-20 18:12:42 +00:00
Pino Toscano
2a87f65ad4
fix sillyness
...
svn path=/trunk/playground/graphics/okular/; revision=606531
2006-11-20 18:10:09 +00:00
Tobias Koenig
76ea6f6564
The generator has to reswap the page height and width to create a pixmap
...
width default orientation
svn path=/trunk/playground/graphics/okular/; revision=606530
2006-11-20 18:02:35 +00:00
Tobias Koenig
893d6a4280
Missed this occurence of inkPaths which lead to a crash/assert...
...
svn path=/trunk/playground/graphics/okular/; revision=606525
2006-11-20 17:39:27 +00:00
Pino Toscano
a0d0f637cf
try to keep compatibility with poppler 0.5.x
...
svn path=/trunk/playground/graphics/okular/; revision=606385
2006-11-20 09:14:37 +00:00
Pino Toscano
318c381780
adapt to the recent core API changes
...
svn path=/trunk/playground/graphics/okular/; revision=606384
2006-11-20 09:14:07 +00:00
Tobias Koenig
a490cc0cd7
Add the following functionality:
...
* Bring QPixmap* back to make Albert happy ;)
* Store only one QPixmap per page/size and rotate it directly
* Rotate ObjectRects (boundary)
* Rotate Annotations (point coordinates)
* Don't reload pixmaps, ObjectRects and annotations on rotation
svn path=/trunk/playground/graphics/okular/; revision=606371
2006-11-20 07:53:32 +00:00
Pino Toscano
45fe1103c4
SVN_SILENT const
...
svn path=/trunk/playground/graphics/okular/; revision=606150
2006-11-19 13:50:41 +00:00
Pino Toscano
69e9777ad2
delete the page items when destroying the page view
...
svn path=/trunk/playground/graphics/okular/; revision=606143
2006-11-19 13:20:22 +00:00
Pino Toscano
c0ab6c7b88
properly delete it
...
svn path=/trunk/playground/graphics/okular/; revision=606112
2006-11-19 11:36:06 +00:00
Pino Toscano
4a40c3fd9f
fix the drawing artifacts when the review toolbar is placed in eg right or bottom position
...
svn path=/trunk/playground/graphics/okular/; revision=606106
2006-11-19 11:01:27 +00:00
Pino Toscano
0f4884e7fc
make the agg drawing routine take into account the opacity value for both pena dn brush color, and paint the ink annotation using also the specified opacity level
...
svn path=/trunk/playground/graphics/okular/; revision=606104
2006-11-19 10:44:00 +00:00
Pino Toscano
e5e7393e22
the opacity value applies also to the brush color
...
svn path=/trunk/playground/graphics/okular/; revision=606027
2006-11-19 01:27:18 +00:00
Pino Toscano
6fe91bae4d
usability: as the annotation tools can be used only in normal mode, switch to normal mode when the user choose to use them
...
svn path=/trunk/playground/graphics/okular/; revision=606026
2006-11-19 01:23:06 +00:00
Pino Toscano
44a69612ef
Make okular able to construct and display Geometric (Rectangle/Ellipse) Annotations.
...
Extended the annotation properties dialog to choose the type (rect/ellipse) or the color for the inner part.
Added a button in the review toolbar to construct a cyan ellipse.
svn path=/trunk/playground/graphics/okular/; revision=606023
2006-11-19 00:46:01 +00:00