Commit graph

351 commits

Author SHA1 Message Date
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
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
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
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
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 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
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
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
Laurent Montel 8ad07fc5da Compile++
svn path=/trunk/playground/graphics/okular/; revision=584683
2006-09-15 11:57:39 +00:00
Pino Toscano 8357b47a8c Annotations:
support the Hidden and DenyDelete flags

svn path=/trunk/playground/graphics/okular/; revision=584409
2006-09-14 18:42:28 +00:00
Pino Toscano f1fa2511e8 Annotations:
- fix once again the PixmapPreviewSelector to support adding a visible name and an id for each item: this way we can add new pixmaps to it associating every pixmap name to a visible string (usually i18n'ed)
- when clicking on Apply in the Annotation Properties dialog, there are no changes pending so the annotation is unchanged again

svn path=/trunk/playground/graphics/okular/; revision=584208
2006-09-14 10:36:15 +00:00
Pino Toscano 58610481d8 Annotations:
- really activate the Apply button of the Properties dialog only when something is changed
- apply the changed in real-time, so they cna be seen directly with Apply and no need to close the dialog
- add a small fix (last, I hope) for the PixmapPreviewSelector about the pixmap loading 

svn path=/trunk/playground/graphics/okular/; revision=583922
2006-09-13 19:52:46 +00:00
Pino Toscano 15baef171e Annotations:
- improve the icon loading strategy for Stamp and Text(Linked) annotations: first look where we have the custom icons, then in the system place(s)
- add a simple (for now) TextAnnotationWidget to change the icon of a Linked Text annotation

svn path=/trunk/playground/graphics/okular/; revision=583882
2006-09-13 18:19:22 +00:00
Pino Toscano a6dfc76123 extract a PixmapPreviewSelector out of the StampAnnotationWidget
svn path=/trunk/playground/graphics/okular/; revision=583857
2006-09-13 17:28:32 +00:00
Tobias Koenig 2f0946e831 Make selection tool working again
svn path=/trunk/playground/graphics/okular/; revision=583789
2006-09-13 12:49:12 +00:00
Tobias Koenig c3c79fa216 SVN_SILENT code cleanup
svn path=/trunk/playground/graphics/okular/; revision=583782
2006-09-13 12:11:42 +00:00
Pino Toscano c178ed6392 if we're constructing a polygon (closed), then really set that it is closed instead of closign manually adding the first point to the path
svn path=/trunk/playground/graphics/okular/; revision=583633
2006-09-12 20:47:36 +00:00
Pino Toscano c3a4b37301 Annotations:
start a basic system for the annotation properties editing. Add a base class that will act as "interface", and a factory to create the right subclass depending on the annotation type.
Adapt the Annotation Properties dialog to interact with the annotation widget.
Add the editing support for Stamp Annotation (but the artwork are missing, grrr)

svn path=/trunk/playground/graphics/okular/; revision=583620
2006-09-12 20:21:34 +00:00
Pino Toscano aabe548eac when we have no color set for a Linked TextAnnotation, don't try to colorize the icon with a valid color, but leave it gray instead
svn path=/trunk/playground/graphics/okular/; revision=583618
2006-09-12 20:15:28 +00:00
Pino Toscano 05d97ede77 Annotations:
- make the PagePainter draw all the points specified in a LineAnnotation, as it can represent also a Polygon or Polyline annotation
- automatically read the annotation dom element in the base AnnotatorEngine class, so every engine won't need to read it on its own
- properly reset some vars in the engines
- when constructing a Stamp annotation, use the right 'icon' attribute of the annotation element (and not the icon of the engine)
- renamed the TwoPointsEngine into PolyLineEngine, and abstracted to construct a polygon/polyline with a specified number of sides
- added a polygon button on the annotation toolbar
- check better if the annotator has to paint something

svn path=/trunk/playground/graphics/okular/; revision=583102
2006-09-11 11:51:10 +00:00
Pino Toscano 3578b4b9e8 Annotations:
- improve the calculation of the bounding rect for freetext annotations
- fix the drawing of the pixmap associated with the PickPointEngine
- implement the creation of stamp annotations

svn path=/trunk/playground/graphics/okular/; revision=582808
2006-09-10 16:10:40 +00:00
Pino Toscano 0395938c7a move the drawing of the TextAnnotation::InPlace from the unbuffered annotations to the buffered ones: this allow us to draw using the specified opacity, and later we could easily draw the callout
svn path=/trunk/playground/graphics/okular/; revision=582624
2006-09-09 22:25:33 +00:00
Albert Astals Cid 5d7dd80086 fordwardport r582532
svn path=/trunk/playground/graphics/okular/; revision=582534
2006-09-09 17:31:36 +00:00
Pino Toscano 53fa802939 now the PickPointEngine can draw the pixmap either in the center or in the bottom-right part of the cursor
svn path=/trunk/playground/graphics/okular/; revision=582293
2006-09-08 23:06:22 +00:00
Pino Toscano ecf3fec2d1 the standard icon names as specified in the PDF Reference are CamelCase, so better lowering them when loading their icons
svn path=/trunk/playground/graphics/okular/; revision=582292
2006-09-08 23:02:55 +00:00
Pino Toscano b66b54a9c9 very small fixes about annotations
svn path=/trunk/playground/graphics/okular/; revision=582276
2006-09-08 21:08:51 +00:00
Pino Toscano d77701bc61 visible texts need to be i18n'ed
svn path=/trunk/playground/graphics/okular/; revision=581267
2006-09-05 20:40:39 +00:00
Pino Toscano 08e3a7de21 improve a bit the annotation dialog:
- use two standard kde widgets for the color selection and for the opacity slider
- clean up the code by storing only what we need to store, and by #include'ing most of the stuff in the cpp only

svn path=/trunk/playground/graphics/okular/; revision=581263
2006-09-05 20:22:19 +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
Tobias Koenig 90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Tobias Koenig 69a72ebbe8 We have to use setFixedSize() here, otherwise the layout will set a height
of 0 for the ThumbnailWidget => ThumbnailWidget::region() is empty => QWidget::repaint
won't paint the content of the widget.

Now the thumbnails are showed on startup again and when the orientation is
changed the layout of the thumbnails is adapted as well...

svn path=/trunk/playground/graphics/okular/; revision=578852
2006-08-30 12:32:58 +00:00
Albert Astals Cid 760fdbcadb makeItBuild
svn path=/trunk/playground/graphics/okular/; revision=578661
2006-08-29 21:09:55 +00:00
Laurent Montel fcac6654b8 Adapt to new qtdbus
svn path=/trunk/playground/graphics/okular/; revision=578226
2006-08-28 18:12:22 +00:00
Albert Astals Cid 5ce0f2a634 branchport r573007
svn path=/trunk/playground/graphics/okular/; revision=573009
2006-08-14 15:03:12 +00:00
Chu Xiaodong 9c575a91d3 replace embedded annotation dialog with annot window, child of PageView
svn path=/trunk/playground/graphics/okular/; revision=572243
2006-08-11 23:53:48 +00:00