Revision 585289
Go back to digest for 17th September 2006Features in Graphics
Pino Toscano committed changes in /trunk/playground/graphics/okular/ui:
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.
File Changes
Modified 2 files
- /trunk/playground/graphics/okular/ui
- /pagepainter.cpp
- /pageviewannotator.cpp
2 files changed in total