Commit graph

72 commits

Author SHA1 Message Date
Pino Toscano 98ed679e0e Do not change the offset of the shadow, as it does not change in themes, says Diego.
svn path=/trunk/KDE/kdegraphics/okular/; revision=748590
2007-12-14 22:12:23 +00:00
Pino Toscano 704a53bb12 get correctly the layout direction of the widget, thanks Diego
svn path=/trunk/KDE/kdegraphics/okular/; revision=748587
2007-12-14 22:08:22 +00:00
Pino Toscano 1bf39cf98a In the message widget, draw the icon on the right when the layout is RightToLeft.
svn path=/trunk/KDE/kdegraphics/okular/; revision=748578
2007-12-14 21:37:00 +00:00
Pino Toscano 5a06b9d911 improve getInnetPoint() and getOuterPoint() so that
- they use a nice switch
- the real anchor widget position is taken into account (no more magic constant, and the position is correct even in RtL configurations)

svn path=/trunk/KDE/kdegraphics/okular/; revision=748015
2007-12-13 11:32:09 +00:00
Pino Toscano 1022878a5a icon renaming:
- pencil -> draw-freehand

svn path=/trunk/KDE/kdegraphics/okular/; revision=746342
2007-12-08 18:49:02 +00:00
Pino Toscano 995972052d Review toolbar:
- enable/disable (instead of hide/show) the tools that cannot be constructed (eg due to the document not extracting text)
- disable the tools when there is no document open

svn path=/trunk/KDE/kdegraphics/okular/; revision=746293
2007-12-08 15:59:04 +00:00
Pino Toscano 537b828e50 for now, disable the animation of the review toolbar, as it seems to be slow sometimes
#define OKULAR_ANIMATE_REVIEW_TOOBAR to re-eanble it

svn path=/trunk/KDE/kdegraphics/okular/; revision=736304
2007-11-13 22:04:04 +00:00
Pino Toscano 7f44aafa94 correctly hide the form widgets when a widget is focused
svn path=/trunk/KDE/kdegraphics/okular/; revision=726769
2007-10-18 20:35:34 +00:00
Pino Toscano a580378469 no need for the PageViewToolBar to have the mouse tracking enabled
svn path=/trunk/KDE/kdegraphics/okular/; revision=722555
2007-10-07 15:30:02 +00:00
Pino Toscano 3c6b0b9181 add a method to toggle any of the tool buttons
svn path=/trunk/KDE/kdegraphics/okular/; revision=715999
2007-09-23 17:40:23 +00:00
Pino Toscano 4415a36e3e rename the AnnotationItem to AnnotationToolItem, otherwise there's a plain conflict with the private class of the AnnotationModel
svn path=/trunk/KDE/kdegraphics/okular/; revision=710030
2007-09-08 23:15:03 +00:00
Albert Astals Cid 41c25cb208 Back from holiday, let's do some comitting :-)
* Update some copyright years and mail addresses
 * Search does not block the GUI anymore YUHUUUUU
   Well, it it does but it's almost unperceptible, that means the searching methods of Document no longer return a bool but a void and the Document::searchFinished signal is used to know if something was found, nothing was found or the user pressed the cancel button !YES! one can cancel search now :-)
 * TextPage no longer holds the area and the current transformed area, it took TOO MUCH memory, now we transform the area each time, it's much more CPU intensive but i could not measure a time loss while searching big documents and i could measure HUNDREDS of MB of usage less.
 * MICRO optimization: Change some code to not detach some containers
 * I still don't have ADSL so this is something like a "blind" commit, Pino will check it compiles against current KDE, not against what's on my computers

svn path=/trunk/KDE/kdegraphics/okular/; revision=699701
2007-08-13 22:25:27 +00:00
Pino Toscano 7bef230d46 draw the gradient of the review toolbar using QLinearGradient
svn path=/trunk/KDE/kdegraphics/okular/; revision=696071
2007-08-03 18:32:16 +00:00
Pino Toscano a9532ee414 and a static QBitmap here leaks as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=660422
2007-05-02 17:25:49 +00:00
Pino Toscano 912706a856 revert my r659797, a QButtonGroup can't help here
svn path=/trunk/KDE/kdegraphics/okular/; revision=660408
2007-05-02 16:37:59 +00:00
Pino Toscano 859c246013 drop the idea of the static QBitmap, so it's not leaked anymore
svn path=/trunk/KDE/kdegraphics/okular/; revision=660048
2007-05-01 11:46:47 +00:00
Pino Toscano bb01aa18da this action button has to stay hidden until really needed
svn path=/trunk/KDE/kdegraphics/okular/; revision=660043
2007-05-01 11:36:25 +00:00
Pino Toscano f9d3246141 use a button group and simplify a bit
svn path=/trunk/KDE/kdegraphics/okular/; revision=659797
2007-04-30 20:26:26 +00:00
Pino Toscano 2c1d5aa44e Refactor a bit the annotating toolbar, so it can handle better its items and cha
nges to its status. This brings us:
- less item reloading (previously done every time the toolbar is shown, now only when needed)
- the toolbar is redrawn correctly if it's shown and a new document is open
- as Albert pointed me yesterday, no need to show the annotating tools that act on text if the document does not support the extraction of text

svn path=/trunk/KDE/kdegraphics/okular/; revision=659722
2007-04-30 17:40:53 +00:00
Albert Astals Cid 0d47b62715 krazy include order issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Christian Ehrlicher c5c2da7c89 fix win32 compilation
warnings--

svn path=/trunk/playground/graphics/okular/; revision=643874
2007-03-18 17:14:36 +00:00
Urs Wolfer 6a7101b632 take use of antialiased painter
svn path=/trunk/playground/graphics/okular/; revision=643728
2007-03-18 10:21:21 +00:00
Pino Toscano 4da2254d24 move the private stuff of PageViewToolBar into the already existing private class
svn path=/trunk/playground/graphics/okular/; revision=643300
2007-03-16 20:36:48 +00:00
Pino Toscano 55f8590f48 make it compile with Qt4.3 (snapshot)
svn path=/trunk/playground/graphics/okular/; revision=643279
2007-03-16 19:18:47 +00:00
Pino Toscano 9ccf6d520d adapt the icon names to the icon naming spec
svn path=/trunk/playground/graphics/okular/; revision=640710
2007-03-08 21:41:46 +00:00
Tobias Koenig da204fd4b8 Match the forms exactly into the surrounding frame
svn path=/trunk/playground/graphics/okular/; revision=638384
2007-03-01 19:34:06 +00:00
Pino Toscano a5f6538d43 avoid the jumping of the pageview to the next (hidden) focus form widget when hiding them
svn path=/trunk/playground/graphics/okular/; revision=637148
2007-02-25 14:59:26 +00:00
Pino Toscano db8a10dc2c Preliminary supports for text and choice form fields.
This includes:
- the interfaces for the generators
- the basic widgets for editing their value
- a top bar for show/hide the forms of a document
- the implementation of the forms for the PDF backend
still nothing that can be done with them, nor the value of the forms can be saved...
... but it's a start! :-)

svn path=/trunk/playground/graphics/okular/; revision=637001
2007-02-25 00:07:59 +00:00
Pino Toscano 252de94b21 improve a bit the PageViewTopMessage api, in preparation of new future usage
svn path=/trunk/playground/graphics/okular/; revision=636493
2007-02-23 10:54:30 +00:00
Pino Toscano b9514f2310 finish drawing on the mask before setting it to the widget
svn path=/trunk/playground/graphics/okular/; revision=621865
2007-01-09 23:38:15 +00:00
Pino Toscano 112e1237b7 Add support for showing icons in the page view top message.
With simplier words: add an 'attach' icon in the message pane that informs about attachments in the current document.

svn path=/trunk/playground/graphics/okular/; revision=616780
2006-12-26 19:25:11 +00:00
Pino Toscano 536ebab639 SmallIconSet -> KIcon
DesktopIconSet -> KIcon
fix the #include's accordingly, where possible

svn path=/trunk/playground/graphics/okular/; revision=615251
2006-12-20 20:37:50 +00:00
Pino Toscano 3022f55916 iterator -> const_iterator
svn path=/trunk/playground/graphics/okular/; revision=607839
2006-11-25 22:21:00 +00:00
Pino Toscano 4a40c3fd9f fix the drawing artifacts when the review toolbar is placed in eg right or bottom position
svn path=/trunk/playground/graphics/okular/; revision=606106
2006-11-19 11:01:27 +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 ac87494ce0 As suggested by our usability expert Florian, add a bar above the page view showing in case the document has embedded files, that can be clsed with the X button.
svn path=/trunk/playground/graphics/okular/; revision=591837
2006-10-03 10:11:16 +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
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 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
Tobias Koenig 90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Pino Toscano f26c31409a less qt3_support
svn path=/trunk/playground/graphics/okular/; revision=571390
2006-08-09 15:12:10 +00:00
Pino Toscano dceb1211ca less qt3_support
svn path=/branches/work/kde4/playground/graphics/okular/; revision=547800
2006-06-03 13:01:15 +00:00
Albert Astals Cid cb7ca95e94 pages have orientation
document has a rotation to apply over the page's own orientation
text search really works now when rotating (at least all my tests here worked)

svn path=/branches/work/kde4/playground/graphics/okular/; revision=547644
2006-06-02 20:42:57 +00:00
Pino Toscano efe4e26fda less deprecated (QPalette and QTimer)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545630
2006-05-27 22:07:29 +00:00
Pino Toscano 6ac790e88c less deprecated (QPalette-related)
svn path=/branches/work/kde4/playground/graphics/okular/; revision=545465
2006-05-27 15:44:30 +00:00
Pino Toscano a1b62851f7 less deprecated
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541859
2006-05-17 13:54:56 +00:00
Pino Toscano fa4fa79167 fix the icon size; less deprecated methods
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541851
2006-05-17 13:22:24 +00:00
Pino Toscano 2f183e0b19 increase the size of the tooltip widget by (1,1) so all will fit into
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541841
2006-05-17 12:56:38 +00:00
Pino Toscano 198a3d8e00 as it used to look like in qt3
svn path=/branches/work/kde4/playground/graphics/okular/; revision=541246
2006-05-15 19:50:57 +00:00
Pino Toscano f378bfa9ab Use a better way to invalidate the rects of the hidden PageViewItem's.
svn path=/branches/work/kde4/playground/graphics/okular/; revision=532961
2006-04-23 12:44:10 +00:00