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
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
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
- 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
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
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
- 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
- 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
- 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
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
- 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
- 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
- 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
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