Commit graph

2337 commits

Author SHA1 Message Date
Albert Astals Cid
8328b24178 remove qt3 support need for gs generator
svn path=/trunk/playground/graphics/okular/; revision=588874
2006-09-27 09:12:21 +00:00
Albert Astals Cid
f67a7f00a6 chm generator no longer needs qt3support
svn path=/trunk/playground/graphics/okular/; revision=588870
2006-09-27 09:04:48 +00:00
Pino Toscano
42310e184c Restructuring a bit how the text-editor-like selection works:
* putting it in an own view mode
* associating the selection to every page
* using a better algorithm to calculate the selection, even in a page range
* moving its drawing from the page view to the page painter, so it's possibile to draw it just like it's done with eg annotations

Other changes (more or less related):
* moved the annotation popup to a better place, so it won't interfere with annotation drawing
* commented some debug code in TextPage

svn path=/trunk/playground/graphics/okular/; revision=588795
2006-09-26 22:22:01 +00:00
Brad Hards
0776034e3b Implement a bit more of the XPS specification - some
basic matrix transformations now work.

Also do a bit of refactoring - see if painting on a QImage
is any faster than painting on a QPixmap. Also move some
of the convenience routines into member functions, so that
they can correctly implement stuff like fill modes.

svn path=/trunk/playground/graphics/okular/; revision=588580
2006-09-26 11:53:27 +00:00
Albert Astals Cid
f8b9fe00d4 we require poppler >= 0.5.4
svn path=/trunk/playground/graphics/cmake/modules/; revision=588291
2006-09-25 14:19:41 +00:00
Brad Hards
3298fc16a7 Fix serious bug that prevented us getting at the fonts we've loaded.
Also correct a compile warning.

svn path=/trunk/playground/graphics/okular/; revision=587490
2006-09-23 00:42:42 +00:00
Laurent Montel
1602b6e5c7 Activate by default compile kamera
svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=587147
2006-09-21 18:30:26 +00:00
Laurent Montel
c0af84c9a0 Remove them
svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=587061
2006-09-21 12:24:17 +00:00
Brad Hards
4b68351612 An initial commit of pixmap rendering. This is very ugly code,
but it does work a bit (well, except for the font loading:
http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=130976
is a bad problem)

svn path=/trunk/playground/graphics/okular/; revision=587041
2006-09-21 11:41:46 +00:00
Pino Toscano
62e29bcc8f KPDF -> okular
svn path=/trunk/playground/graphics/okular/; revision=587004
2006-09-21 09:39:32 +00:00
Pino Toscano
aafd2b684e more KPDF -> okular renaming in comments, include guards and READMEs
svn path=/trunk/playground/graphics/okular/; revision=587000
2006-09-21 09:33:56 +00:00
Pino Toscano
41000f2cd8 remove stuff that won't be used, as gv doesn't provide text extraction
svn path=/trunk/playground/graphics/okular/; revision=586998
2006-09-21 09:20:01 +00:00
Pino Toscano
8e847ccd78 adapt to the new Okular namespace for the classes in core/
svn path=/trunk/playground/graphics/okular/; revision=586997
2006-09-21 09:15:00 +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
Albert Astals Cid
46e28192f7 the standard says %m is deprecated
svn path=/trunk/playground/graphics/okular/; revision=586865
2006-09-20 19:58:37 +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
Pino Toscano
9bbabc1f64 Forward port to okular of KPDF commit 586747:
Make okular a bit more friendly for users of RtL languages:
- correctly place the message pane (top-left corner of page view for LtR, top-right for RtL)
- make the mini-progressbar fully usable for both the writing directions
(the icons of the previous/next page buttons were already fixed by me)

svn path=/trunk/playground/graphics/okular/; revision=586751
2006-09-20 13:58:28 +00:00
Tobias Koenig
7f8f7b4d0e * Add initial version of link support
* Improved rendering of tables
 * Refactoring

svn path=/trunk/playground/graphics/okular/; revision=586706
2006-09-20 11:48:04 +00:00
Tobias Koenig
4cb4c1c86b Add convenience ctor
svn path=/trunk/playground/graphics/okular/; revision=586703
2006-09-20 11:44:58 +00:00
Pino Toscano
2371001604 some (few) updates
svn path=/trunk/playground/graphics/okular/; revision=586561
2006-09-19 23:14:49 +00:00
Pino Toscano
f2ecb5fb91 use the right icon when showing annotation-related messages
svn path=/trunk/playground/graphics/okular/; revision=586560
2006-09-19 23:14:12 +00:00
Pino Toscano
b1d70d87a8 icon change for the annotation property action
svn path=/trunk/playground/graphics/okular/; revision=586559
2006-09-19 23:12:49 +00:00
Albert Astals Cid
8beff183b9 add desktop files indicating libokular provides a part for those mimetypes
svn path=/trunk/playground/graphics/okular/; revision=586466
2006-09-19 17:42:02 +00:00
Pino Toscano
45615e5289 Reworked a bit the ObjectRect API, by allowing subclassing for easiness wrt Annotation's. The brand new AnnotationObjectRect is responsible for providing the annotation bounding rect (that may vary for the various annotation types).
Adapted also to receive the X and Y scale, so the bounding rect for every kind of ObjectRect can depend on a specific page size.
As a consequence, we can add also the annotations among the rects of a Page, and use the standard getObjectRect to find them.

svn path=/trunk/playground/graphics/okular/; revision=586457
2006-09-19 17:17:29 +00:00
Pino Toscano
4d0d19be83 - reduce a bit the font used for the date label
- shrink the option button as much as we can

svn path=/trunk/playground/graphics/okular/; revision=586288
2006-09-19 10:20:13 +00:00
Pino Toscano
1773275615 draw the icon of a linked text annotation always with a fixed, regardless of zoming
svn path=/trunk/playground/graphics/okular/; revision=586286
2006-09-19 10:19:13 +00:00
Dirk Mueller
89bacb77bb compile++
svn path=/trunk/playground/graphics/okular/; revision=586265
2006-09-19 09:09:30 +00:00
Tobias Koenig
265c541925 Prevent endless-loops
svn path=/trunk/playground/graphics/okular/; revision=586047
2006-09-18 15:30:44 +00:00
Tobias Koenig
21b3dc4263 * reimplemented table of contents parsing in a faster way (thanks to tronical!)
svn path=/trunk/playground/graphics/okular/; revision=586039
2006-09-18 15:03:03 +00:00
Pino Toscano
b273826b35 - don't visually consider a zero-length input as failed search
- no need to manually store the case sensitivity, just use the action

svn path=/trunk/playground/graphics/okular/; revision=586035
2006-09-18 14:54:29 +00:00
Pino Toscano
dbbf3169d9 libgs can also be called gs-esp
svn path=/trunk/playground/graphics/cmake/modules/; revision=586003
2006-09-18 13:34:49 +00:00
Tobias Koenig
e21d2af66a * Add support for TableOfContents
* Add basic table rendering

svn path=/trunk/playground/graphics/okular/; revision=585990
2006-09-18 13:01:43 +00:00
Pino Toscano
a8c90e618b fix compilation
svn path=/trunk/playground/graphics/okular/; revision=585743
2006-09-17 22:27:08 +00:00
Urs Wolfer
656a7c403a Port KProgressBar's to QProgressBar's.
svn path=/trunk/playground/graphics/okular/; revision=585741
2006-09-17 22:15:41 +00:00
Pino Toscano
27dc15c960 use a standard color (yellow) when the annotation color is not defined
svn path=/trunk/playground/graphics/okular/; revision=585682
2006-09-17 18:22:00 +00:00
Pino Toscano
dc2c0bef27 Rewrite almost completely the AnnotWindow so it uses less hacks and more Qt stuff; now it's a bit more clean
svn path=/trunk/playground/graphics/okular/; revision=585647
2006-09-17 16:09:10 +00:00
Pino Toscano
78bffae1e3 the annotation toolbar can be moved around again
svn path=/trunk/playground/graphics/okular/; revision=585598
2006-09-17 13:01:36 +00:00
Pino Toscano
dbff613876 update the modification time when clicking on Ok
svn path=/trunk/playground/graphics/okular/; revision=585467
2006-09-17 09:27:01 +00:00
Pino Toscano
3b2420e7c0 SVN_SILENT {x|y}scale -> page{width|height}
svn path=/trunk/playground/graphics/okular/; revision=585461
2006-09-17 09:08:03 +00:00
Pino Toscano
a5ee705911 Annotations:
reverting back the drawing of InPlace Text annotations to the unbuffered ones, but with a more clever behaviout than before:
- the text is drawn wrt the size of the page, and thenscaled to the real annotation boundary size. this makes the drawing of the annotation more similar to the page layout
- the bounding rectangle is drawn to be max 1pixel wide: if the drawn page is smaller than the page, then the rect is scaled along with the text, otherwise it's drawn after the scaling, so it won't appear huge at high levels of zoom
The AnnotationEngine's had to be modified by adding a page pointer parameter to the event() function, necessary to compute correctly the bounding rect of an inline text annotation.

svn path=/trunk/playground/graphics/okular/; revision=585289
2006-09-16 21:16:58 +00:00
Pino Toscano
be5163d35e const
svn path=/trunk/playground/graphics/okular/; revision=585245
2006-09-16 17:11:13 +00:00
Pino Toscano
6c2ea7b63d replace the hard-coded close button with a standard one.
the whole widget needs more loving, though.

svn path=/trunk/playground/graphics/okular/; revision=585241
2006-09-16 17:06:56 +00:00
Pino Toscano
7ee4cbcae9 format a datetime in the kde's way
svn path=/trunk/playground/graphics/okular/; revision=585234
2006-09-16 16:38:09 +00:00
Tobias Koenig
c4ace82830 Don't stop loading if document contains no Pictures directory...
svn path=/trunk/playground/graphics/okular/; revision=585227
2006-09-16 16:17:31 +00:00
Tobias Koenig
dd5b91ca40 * Add support for style families (text looks much more consistent now)
* Add support for images
 * Add support for spaces and tabs

svn path=/trunk/playground/graphics/okular/; revision=585220
2006-09-16 15:52:00 +00:00
Pino Toscano
2202f9cf3e Annotations:
- draw the leader lines (and the extensions) for Line annotations that have them
- add a config widget for setting their length in Line annotations

svn path=/trunk/playground/graphics/okular/; revision=585212
2006-09-16 14:58:32 +00:00
Tobias Koenig
8518b9e17b * Add basic support for enumerations
* Fixed page margins

svn path=/trunk/playground/graphics/okular/; revision=585178
2006-09-16 13:18:26 +00:00
Brad Hards
0e5f1bc41d Fix typo in column title.
Resize columns to fit contents, and widget to fit contents (more or
less - the second part isn't too good).

svn path=/trunk/playground/graphics/okular/; revision=585027
2006-09-16 03:49:40 +00:00
Albert Astals Cid
5fda8d50b8 did not want to commit that
svn path=/trunk/playground/graphics/okular/; revision=584935
2006-09-15 21:12:25 +00:00
Albert Astals Cid
4e04b301f1 Almost foget to fordwardport r582561
Fix bug 133507 that prevented the correct restoring of the document viewport on session restore for remote documents

svn path=/trunk/playground/graphics/okular/; revision=584932
2006-09-15 21:08:48 +00:00