Commit graph

415 commits

Author SHA1 Message Date
Pino Toscano 4cb78d9ec6 stop the popping up of a "what's this?" context menu when pressing the right mouse button (to go to the previous page)
svn path=/trunk/playground/graphics/okular/; revision=600984
2006-11-01 15:37:57 +00:00
Pino Toscano 4130ba5e49 Just like any other presentation application, now you can draw red paths on a page during the presentation mode.
Like that kind of applications, the drawings are erased when switching page and when exiting the presentation, and there is a button to explicitely clear the page.

svn path=/trunk/playground/graphics/okular/; revision=600982
2006-11-01 15:34:27 +00:00
Pino Toscano fdbd0101a4 move the AnnotatorEngine base class and the SmoothPath engine out of the private use of the page view annotator
svn path=/trunk/playground/graphics/okular/; revision=600980
2006-11-01 15:23:11 +00:00
Albert Astals Cid 511e6f32a1 fix porting bug
Thanks Pino for noticing

svn path=/trunk/playground/graphics/okular/; revision=600483
2006-10-30 18:17:11 +00:00
Pino Toscano e7f46c265e i like icons
svn path=/trunk/playground/graphics/okular/; revision=600478
2006-10-30 18:03:56 +00:00
Pino Toscano 2bd05e79d5 a generator can not block the gui events of the main page view, otherwise bad things will happen - it's also not really logic to allow such a thing, better think about something else if a generator wants to interact with the gui somehow
svn path=/trunk/playground/graphics/okular/; revision=600225
2006-10-29 22:33:24 +00:00
Pino Toscano e5f7314c65 hand-written ROUND -> qRound
svn path=/trunk/playground/graphics/okular/; revision=600081
2006-10-29 13:42:07 +00:00
Holger Freyther d8e92f5ff8 okular/ui/pageview.cpp: Make it compile with QtMac
I have XRender available on my system but I use QtMac
    so only check for XRender if we use Qt/X11.

svn path=/trunk/playground/graphics/okular/; revision=600075
2006-10-29 13:17:19 +00:00
Pino Toscano 08eab9344b fix the drawing of two highlight annotations
svn path=/trunk/playground/graphics/okular/; revision=599965
2006-10-29 09:50:57 +00:00
Pino Toscano 95046e8889 use the right arrows in RtL layout
svn path=/trunk/playground/graphics/okular/; revision=599954
2006-10-29 08:52:31 +00:00
Pino Toscano f387bb2b0a Cancel selecting when Esc is pressed.
Implements KPDF wish #126359.

svn path=/trunk/playground/graphics/okular/; revision=599881
2006-10-28 23:27:44 +00:00
Pino Toscano 6ac2174811 move the configuration update procedures of the page view into the page view itself
make the pageview update when changing the number of columns in overview mode

svn path=/trunk/playground/graphics/okular/; revision=599878
2006-10-28 22:58:05 +00:00
Pino Toscano 8def2109ec change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
svn path=/trunk/playground/graphics/okular/; revision=599847
2006-10-28 19:18:36 +00:00
Pino Toscano 0be674f981 Forwardport SVN commit 599376 by pino:
Don't try querying the document if it's closed.

svn path=/trunk/playground/graphics/okular/; revision=599385
2006-10-26 20:59:07 +00:00
Pino Toscano 03e01b97f6 it's not a real composition effect, but this should help a bit...
svn path=/trunk/playground/graphics/okular/; revision=598542
2006-10-23 21:35:58 +00:00
Pino Toscano 4c0808fabf a bit less of #include's
svn path=/trunk/playground/graphics/okular/; revision=598229
2006-10-22 23:00:39 +00:00
Pino Toscano ab1fe9f8cc initialize a pointer is always a good idea
svn path=/trunk/playground/graphics/okular/; revision=598206
2006-10-22 21:20:08 +00:00
Pino Toscano 23b3a7f6a1 ooops forgot to remove some debug
svn path=/trunk/playground/graphics/okular/; revision=598204
2006-10-22 21:07:41 +00:00
Pino Toscano 339bfc6907 Create a new AnnotationEngine to select some text from the current page, and make it able to distill Highlight annotations. Now you can hightlight th text in your document, wooo :)
svn path=/trunk/playground/graphics/okular/; revision=598201
2006-10-22 20:53:56 +00:00
Pino Toscano 5f28d1163f make a pair of actions name and label more close to the others
remove unused (duplicated) action

svn path=/trunk/playground/graphics/okular/; revision=598165
2006-10-22 18:19:17 +00:00
Pino Toscano d010d05e6e make the AnnotatorEngine able to return a list of annotations (this will be useful later...)
svn path=/trunk/playground/graphics/okular/; revision=598151
2006-10-22 16:43:55 +00:00
Pino Toscano 7d6f5be0e5 less verbose
svn path=/trunk/playground/graphics/okular/; revision=598093
2006-10-22 13:49:11 +00:00
Pino Toscano d37a58ec71 show something as caption for the presentation mode; show always the file name instead of the full url when in both the part and presentation mode there is no document title available
svn path=/trunk/playground/graphics/okular/; revision=597895
2006-10-21 23:21:11 +00:00
Pino Toscano ed84916c0d spell checking
svn path=/trunk/playground/graphics/okular/; revision=597875
2006-10-21 22:07:05 +00:00
Pino Toscano 1fabb1880d rename setSelected to setCurrent, as it clashes with a new function of Qt4.2
svn path=/trunk/playground/graphics/okular/; revision=597727
2006-10-21 13:11:43 +00:00
Albert Astals Cid d3f03d2144 Change slotRequestVisiblePixmaps that is called due to a rotation change to a queued petition, this makes rotation changing from 0º to 180º work as previously pixmaps where not reasked because the page items relayouting was done after (in a queded petition) and so they did not intersect at this stage, now as we use a queued petition too for slotRequestVisiblePixmaps, the order is correct and works
Transform QTimer::singleShot to QMetaObject::invokeMethod as thiago said it is better

svn path=/trunk/playground/graphics/okular/; revision=597307
2006-10-19 21:18:39 +00:00
Pino Toscano 85bf380d7d this seems a little bit faster...
svn path=/trunk/playground/graphics/okular/; revision=596608
2006-10-17 22:56:49 +00:00
Pino Toscano a5d7d31d33 isolate the Xrender dependant code, so okular can be compile and work even without it
svn path=/trunk/playground/graphics/okular/; revision=596572
2006-10-17 21:26:43 +00:00
Pino Toscano ef1fb7e8d5 const
svn path=/trunk/playground/graphics/okular/; revision=596146
2006-10-16 19:47:20 +00:00
Pino Toscano 87904adec4 change a bit how we look for objects in a page: first look for annotations, then links (acrobat reader does this way too, so it should be the "right" thing to do)
svn path=/trunk/playground/graphics/okular/; revision=596127
2006-10-16 19:19:42 +00:00
Pino Toscano 1deb800611 instead of being a frame, just use two frames acting as side lines to emulate a
visual zone for the minibar. this makes the prev/next buttons more reachable.

svn path=/trunk/playground/graphics/okular/; revision=595840
2006-10-15 21:10:52 +00:00
Albert Astals Cid 5143cd2512 Report page size
It's only reported in case it makes sense for the format
Only implemented for pdf atm
If all pages have the same size it's reported on document properties
else there's a label shown in the new bottom bar with the size of the current page

svn path=/trunk/playground/graphics/okular/; revision=595822
2006-10-15 19:37:14 +00:00
Albert Astals Cid 7cd16e9d61 fix indenting + hoverbuttons do not accept focus
svn path=/trunk/playground/graphics/okular/; revision=595774
2006-10-15 16:12:26 +00:00
Pino Toscano f27f44fd79 Detach the progress widget from the minibar, and move the minibar as a small toolbar on the bottom of the page view.
Implements KPDF wish #102788.

svn path=/trunk/playground/graphics/okular/; revision=595764
2006-10-15 15:59:22 +00:00
Pino Toscano 2b143ca661 better this than a null icon
svn path=/trunk/playground/graphics/okular/; revision=595472
2006-10-14 12:19:16 +00:00
Pino Toscano 22aac31f78 remove some code that is done automatically by Qt for us
svn path=/trunk/playground/graphics/okular/; revision=595471
2006-10-14 12:18:31 +00:00
Pino Toscano c8ba6d8c15 be sure to remove also the pointer to the old annotation window when deleting the window itself
svn path=/trunk/playground/graphics/okular/; revision=595393
2006-10-14 10:55:10 +00:00
Pino Toscano c9346d8331 tooltip for annotation on the pageview
svn path=/trunk/playground/graphics/okular/; revision=595377
2006-10-14 10:07:42 +00:00
Pino Toscano 20947b2e8d much like the other side panes
svn path=/trunk/playground/graphics/okular/; revision=595366
2006-10-14 08:52:34 +00:00
Pino Toscano 280ba5fd68 improve tooltip
svn path=/trunk/playground/graphics/okular/; revision=595313
2006-10-13 23:13:47 +00:00
Albert Astals Cid 7ae910d0b8 fix rendering when at very high zoom levels
svn path=/trunk/playground/graphics/okular/; revision=594633
2006-10-11 20:26:09 +00:00
Pino Toscano 6bd498e8e3 draw the page outline rect correctly again
svn path=/trunk/playground/graphics/okular/; revision=594614
2006-10-11 18:26:23 +00:00
Pino Toscano fd26a17131 show the clear button of the line edit
svn path=/trunk/playground/graphics/okular/; revision=593736
2006-10-08 21:37:28 +00:00
Albert Astals Cid 4458c20075 viewport() -> widget()
well spotted pino! 

svn path=/trunk/playground/graphics/okular/; revision=593718
2006-10-08 20:12:02 +00:00
Albert Astals Cid d212d60a99 correct indentign, that happens because i use vim instead of kate :-/
svn path=/trunk/playground/graphics/okular/; revision=593716
2006-10-08 20:09:32 +00:00
Albert Astals Cid a5b9f5bff9 since QVBoxLayout seems to have changed its behaviour we do the relayouting at hand since it's easy enough
svn path=/trunk/playground/graphics/okular/; revision=593714
2006-10-08 20:06:27 +00:00
Albert Astals Cid d767c84a30 Fix painting when at very few pages and zoom level alst pages where not beign painted
svn path=/trunk/playground/graphics/okular/; revision=593692
2006-10-08 18:20:04 +00:00
Albert Astals Cid e6dae78ac3 Port Q3ScrollView to QScrollArea, probably still has some small issues but seems to work quite well
svn path=/trunk/playground/graphics/okular/; revision=593332
2006-10-07 14:40:32 +00:00
Pino Toscano c2686ba1d1 show the annotation type in the review side tab, and a simple tooltip with its author
svn path=/trunk/playground/graphics/okular/; revision=593266
2006-10-07 11:00:39 +00:00
Pino Toscano 858a6bf783 factor out the text selections ruotines, so they can be used also from other places
svn path=/trunk/playground/graphics/okular/; revision=592041
2006-10-03 17:13:42 +00:00