Commit graph

102 commits

Author SHA1 Message Date
Luigi Toscano 56c101833f Remove PageViewTopMessage, use KMessageWidget instead
Acked by Albert Astal Cid
2014-05-09 17:19:50 +02:00
Luigi Toscano 480df58d68 Few fixes to PageViewMessage
- support for multiline/long messages (properly wrapped)
- react (resize) on parent resize
- code refactoring (common code in private methods)

REVIEW: 115596
2014-02-15 23:40:36 +01:00
Fabio D'Urso ad589985e1 Remove some unused #includes 2013-10-14 20:42:34 +02:00
Fabio D'Urso 5860fc89c5 Added shortcut to annotation config panel as review toolbar's context menu 2013-05-28 23:55:10 +02:00
Fabio D'Urso aebf585464 Don't hardcode pixmap name in annotation tools' XML description
First step towards dynamically-generated tool icons
2012-12-28 10:26:04 +01:00
Fabio D'Urso 9f19fc3daa PDF documents: Tell the user that XFA forms are not supported yet 2012-11-03 18:28:51 +01:00
Tobias Koenig 486df96203 Make video player behave similar to Adobe Acroread
Hide the video player initially until the user has clicked on
the annotation area. This ensures that an available 'first-frame' image
is always visible. Also change the appearance of the mouse cursor when
the annotation area is entered.

REVIEW:104159
2012-03-12 17:20:51 +01:00
Montel Laurent f9f65979f5 Normalize signals/slots 2011-07-31 21:22:04 +02:00
Albert Astals Cid 439e7b9799 remove unused variables
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230896
2011-05-08 15:33:17 +00:00
Albert Astals Cid 72e616551b Allow the "continuous" selection of a tool by double clicking on it
Patch by Raffaele Mancuso cleaned up by me
This will be in KDE 4.7.0
This fixes the original report of bug 161020 so i'm closing it
If there were any other different wish report in that bug, do the proper thing an open a new one
BUGS: 161020

svn path=/trunk/KDE/kdegraphics/okular/; revision=1218185
2011-01-31 23:51:34 +00:00
Laurent Montel a86bbe9053 Use QLatin1String
svn path=/trunk/KDE/kdegraphics/okular/; revision=1178207
2010-09-22 11:52:46 +00:00
Pino Toscano 3c25f99a7c take into account also the width of the details text
svn path=/trunk/KDE/kdegraphics/okular/; revision=1166348
2010-08-21 15:48:55 +00:00
Pino Toscano b7e955e2c3 add the possibility to show a "details text" in PageViewMessage
in case it is not empty, show such details text with a 60% line spacing wrt the "main text";
also add an inline version of display() using the previous api, so we can port the usages of it to the new display()

svn path=/trunk/KDE/kdegraphics/okular/; revision=1166254
2010-08-21 10:40:22 +00:00
Pino Toscano 6993fda364 Load video widgets for the video annotations of the document in the main page view.
Add them as part of the page items, so they can be resized, moved and shown/hidden automatically according to the related pages.

svn path=/trunk/KDE/kdegraphics/okular/; revision=851960
2008-08-25 01:59:23 +00:00
Pino Toscano 2329f93b84 more qreal/double mismatches
svn path=/trunk/KDE/kdegraphics/okular/; revision=839972
2008-07-31 09:26:11 +00:00
Pino Toscano 94a4d5086a do not leave painters open more than necessary
svn path=/trunk/KDE/kdegraphics/okular/; revision=817890
2008-06-06 22:03:30 +00:00
Pino Toscano 2b971b07b2 Make it possible to draw just sections (crops within bounding boxes) of pages.
Separated normal & cropped geometries in page items;
made the page painter able to draw based on a crop section;
add a config + menu option for turning the white borders removal.

Based on a patch by the Mr. anonymous kde2eran@tromer.org, thanks.

BUG: 161599

svn path=/trunk/KDE/kdegraphics/okular/; revision=809496
2008-05-19 00:37:14 +00:00
Pino Toscano 7eac68815b Use the id of the form fields as id, not the name!
svn path=/trunk/KDE/kdegraphics/okular/; revision=773440
2008-02-11 01:37:02 +00:00
Pino Toscano e26ce5255b the text color needs to be adapted to the color scheme as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=765271
2008-01-23 18:22:38 +00:00
Pino Toscano a3e0474e35 Use the standard KDE color for the content area messages.
Patch by Robert Knight, thanks!

BUG: 156457

svn path=/trunk/KDE/kdegraphics/okular/; revision=765205
2008-01-23 13:20:25 +00:00
Pino Toscano 26b02fe068 vertically center the icon in the message
svn path=/trunk/KDE/kdegraphics/okular/; revision=756265
2008-01-03 00:58:00 +00:00
Eike Hein a56276f00d Review toolbar tweaks.
svn path=/trunk/KDE/kdegraphics/okular/; revision=756192
2008-01-02 22:09:12 +00:00
Eike Hein 93fdfab88c person("pinotree")->happiness++
svn path=/trunk/KDE/kdegraphics/okular/; revision=756180
2008-01-02 21:52:25 +00:00
Eike Hein 2ab6d6f842 On second thought, keep the mask - less work for Qt.
svn path=/trunk/KDE/kdegraphics/okular/; revision=756115
2008-01-02 19:48:30 +00:00
Eike Hein 3af668a384 Draw the review toolbar borders anti-aliased.
svn path=/trunk/KDE/kdegraphics/okular/; revision=756114
2008-01-02 19:44:57 +00:00
Eike Hein cb4367608b Draw the page view message popup borders anti-aliased. Gets
rid of my #1 Okular annoyance (yes, I'm petty like that).

svn path=/trunk/KDE/kdegraphics/okular/; revision=756098
2008-01-02 18:41:31 +00:00
Pino Toscano 39fb1ef5b6 correctly show/hide the form widgets in each page correctly even when not in Continuous mode
svn path=/trunk/KDE/kdegraphics/okular/; revision=755275
2007-12-31 22:22:38 +00:00
Pino Toscano 8761aa5f12 add possibility to for an item to be "set visible" or not
svn path=/trunk/KDE/kdegraphics/okular/; revision=755208
2007-12-31 17:17:54 +00:00
Jure Repinc e60c1ec1cf The background is always yellow, the text can be hard to read with a dark
color scheme with white text. So now the text is always set to black.

svn path=/trunk/KDE/kdegraphics/okular/; revision=755179
2007-12-31 16:09:46 +00:00
Pino Toscano 44aa2d7088 Globally store an icon loader different that the global one (eg the KPart one);
this way we can load our custom icons when embedded in other shells than ours.

svn path=/trunk/KDE/kdegraphics/okular/; revision=752473
2007-12-24 15:02:32 +00:00
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