Commit graph

74 commits

Author SHA1 Message Date
Albert Astals Cid d8f9800d28 Make the drawing tools be actions instead of tool buttons
3 benefits:
 * We can set the shortcut in the edit shortcuts dialog as before
 * Shortcuts can be activated without showing the topbar as before
 * Drawing in the toppbar is exactly as the other actions
2015-08-22 22:17:40 +02:00
Tobias Koenig 81f80ac3a4 Implement drawing quick selection tool for presentation mode
REVIEW: 124687
2015-08-22 22:17:40 +02:00
Montel Laurent ffbf0b82f6 Rename icons 2015-03-17 08:52:39 +01:00
Montel Laurent 5e984303a4 Use new KDE_ macro 2015-03-04 07:52:20 +01:00
Montel Laurent 4ec78fa5df Use modern macro 2014-10-07 13:16:16 +02:00
Vishesh Handa e038950f50 KIcon -> QIcon 2014-08-13 11:54:49 +02:00
Fabio D'Urso fded55268d Show stamp preview in stamp tool icon
Note that if a low-res 16x16 version is available, it is shown instead
of the 64x64 version actually used by PagePainter.
e.g. try with the default stamp "Okular"
2013-05-18 17:16:40 +02:00
Fabio D'Urso 04e008de89 Put hex color codes in lower-case, so that kcfg can recognize default annotations 2013-04-20 11:16:31 +02:00
Fabio D'Urso 806fd2eafb Allow nameless tools (which default to predefined names)
Removed name attribute from default tools (ie those from tools.xml), so
that they now get default names, which automatically translated if the
application language is switched.

With this patch, tools.xml no longer contains strings to be translated.

NOTE: Messages.sh was not tested
2013-04-20 10:47:33 +02:00
Fabio D'Urso def23dd0ba Moved (and partly rewritten) annotation tooltips from tools.xml to pageviewannotator
Two purposes:
 - Have tooltips available even for user-created annotations (not just
   the predefined ones)
 - Avoid i18n strings in settings (NOTE: the "name" attribute will be
   removed in next patch)

Some tooltips were created over new (eg for new tools), some were
rewritten to actually give instructions instead of repeating the name of
the tool, some were rewritten to avoid references to colors (because
colors are no longer fixed)
2013-04-19 19:28:19 +02:00
Fabio D'Urso 18981a6707 Made icon for Note annotations configurable
Unlike Stamp annotations, hoverIcon and icon are different in Note
annotations.
2012-12-29 13:22:14 +01:00
Fabio D'Urso 8d969a8dbf Made line width configurable in Ink, Line, Polygon, Square and Circle annotation tools
Note that previously the width attrubute was ignored by the PolyLine
engine and it always set width=1, that's why I had to change the default
value in tools.xml.
2012-12-29 13:22:13 +01:00
Fabio D'Urso 32e0701333 Removed unused PNG icons
Note: I'm only removing PNG files; source SVGs are still there
2012-12-28 17:22:10 +01:00
Fabio D'Urso 9f41ff9d13 Paint some other annotation tool icons dynamically
Affected tools:
 - Note
 - Inline Note
 - Ink
 - Highlighter

Note that the Stamp tool is the only one that's left with a static icon
2012-12-28 17:22:02 +01:00
Fabio D'Urso ef4e1d7ab3 Paint some annotation tool icons dynamically
So that they are the same color as the annotations they create.
This patch also adds some new icons.

Affected annotation tools:
 - Ellipse
 - Polygon
 - Rectangle (NEW)
 - Squiggly (NEW)
 - Line
 - Strikeout (NEW)
 - Underline

I'll edit the remaining icons in next patches.
2012-12-28 16:40:16 +01: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
Pino Toscano 7e8aed4376 add the svg of the annotation tool icons
as of Eugene Trounev sent them to me more than three years ago, just gz-compressing them now;
followup of b811186781

(apparently I forgot to commit them at that time)
2012-06-10 22:04:27 +02:00
Albert Astals Cid 4694f034f0 shift tools by 1 so there is no a "shortcut space" in the middle
BUGS: 251725
FIXED-IN: 4.6.0

svn path=/trunk/KDE/kdegraphics/okular/; revision=1186344
2010-10-15 22:48:25 +00:00
Pino Toscano 52ce4cc095 disable the (already unused) knewstuff2 stuff from compilation and installation
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066279
2009-12-26 16:23:36 +00:00
Albert Astals Cid 2fd0a0124a Fix the name of the tool to represent what it is
BUGS: 210313

svn path=/trunk/KDE/kdegraphics/okular/; revision=1037764
2009-10-19 22:39:11 +00:00
Urs Wolfer 913c95f58f optimizegraphics: Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4".
Reduced disk space: 3180KB (3MB)

svn path=/trunk/KDE/kdegraphics/doc/okular/; revision=977313
2009-06-03 20:56:09 +00:00
Pino Toscano b811186781 Add the new shiny set of icons for the annotation tools, done by Eugene 'it-s' Trounev, thanks!
CCMAIL: eugene.trounev@gmail.com
Disabling some old icons, and removing some temporary ones.

svn path=/trunk/KDE/kdegraphics/okular/; revision=905910
2009-01-05 11:37:43 +00:00
Pino Toscano 0b399926b2 add 'expired' stamp that i forgot in the previous commit, always by eugene (it-s)
svn path=/trunk/KDE/kdegraphics/okular/; revision=884842
2008-11-15 23:55:50 +00:00
Pino Toscano 2ec236aad8 see you, single element svg-stamp
svn path=/trunk/KDE/kdegraphics/okular/; revision=884839
2008-11-15 23:32:25 +00:00
Pino Toscano 2a3b22fa0a Import the first version of the SVG stamps for stamp annotations.
The elements represents the "standard" stamp types as defined in the PDF specs.

Nice work kindly provided you by Eugene 'it-s' Trounev, raise your hand and say "thanks" to him!
CCMAIL: eugene.trounev@gmail.com

svn path=/trunk/KDE/kdegraphics/okular/; revision=884834
2008-11-15 23:15:13 +00:00
Pino Toscano 13df616873 Add an "Approved" SVG stamp, kindly provided by Eugene Trounev [it-s].
Thanks!

CCMAIL: eugene.trounev@gmail.com

svn path=/trunk/KDE/kdegraphics/okular/; revision=862879
2008-09-20 08:55:00 +00:00
Pino Toscano a5e2ce3d4a When construct "stamp" annotations, allow to drag to select the area for the rubber stamp.
svn path=/trunk/KDE/kdegraphics/okular/; revision=862807
2008-09-19 22:51:41 +00:00
Urs Wolfer 7bdd00bc7c Losslessly optimized PNG and SVGZ files with "optipng -o5" and "advdef -z -4".
Reduced disk space: 5128KB (5MB)

svn path=/trunk/KDE/kdegraphics/doc/okular/; revision=820008
2008-06-12 21:07:49 +00:00
Jakob Petsovits df5364da6c Copy Okular's app icon from Oxygen core as "okular",
in the hicolor namespace. Before, the non-specified
"graphics-viewer-document" icon was used, which caused
icon loaders from other toolkits not to find this icon
as they don't consider Oxygen by default.

Also update all the references that made use of the
"graphics-viewer-document" icon in the code and
the many .desktop files.

svn path=/trunk/KDE/kdegraphics/okular/; revision=819965
2008-06-12 18:51:36 +00:00
Pino Toscano a8294eb55f - add oxygen icons for the 'pushpin' and 'paperclip' symbols for file attachment annotations
- add oxygen icon for the 'stamp' tool, and use it in the review toolbar tools

svn path=/trunk/KDE/kdegraphics/okular/; revision=799092
2008-04-20 10:55:08 +00:00
Urs Wolfer 2ea7ce44b3 Re-compress svgz files with:
find . -name "*.svgz" -exec advdef -z -4 '{}' \;

That saves around 6MB in trunk without any restrictions.

Also correct the svn mimetype for all svgz files which had a wrong one (which is thy reason why my fist commit failed...) with:
svn propset svn:mime-type 'application/octet-stream'

svn path=/trunk/KDE/kdegraphics/okular/; revision=756680
2008-01-03 15:25:23 +00:00
Urs Wolfer d1b4c8ae17 Optimize PNG files again.
Last optimization has been done almost two years ago. There a lot of new files in trunk (e.g all Oxygen stuff).
It's not the correct time to do that again (before the release).

This run saves again around 10MB of diskspace without any restrictions.

svn path=/trunk/KDE/kdegraphics/okular/; revision=755647
2008-01-02 00:10:07 +00:00
Pino Toscano f7b8b3f6f4 Use Oxygen icons for the text tools. Much better now.
svn path=/trunk/KDE/kdegraphics/okular/; revision=747814
2007-12-13 00:06:31 +00:00
Pino Toscano 82ac390fd0 copy three tool icons from krita to give at least an icon to some of the review tools
not optimal, but better than a plain question mark...

svn path=/trunk/KDE/kdegraphics/okular/; revision=747226
2007-12-11 12:09:55 +00:00
Pino Toscano 04fdc9e475 these icons are not used, do not install them for now
svn path=/trunk/KDE/kdegraphics/okular/; revision=746693
2007-12-09 21:29:53 +00:00
Pino Toscano 704f0ee3a1 remove the 'pink highlighter' and give the proper icon to the 'green highlighter'
svn path=/trunk/KDE/kdegraphics/okular/; revision=746556
2007-12-09 13:44:40 +00:00
Pino Toscano 552b2fd115 activate a selection block when constructing an ellipse
svn path=/trunk/KDE/kdegraphics/okular/; revision=746502
2007-12-09 10:38:46 +00:00
Pino Toscano fb2b74ad70 proper icons
svn path=/trunk/KDE/kdegraphics/okular/; revision=746450
2007-12-09 01:37:51 +00:00
Pino Toscano 6546e208d9 remove tool_eraser.png, there's an oxygen icon for it
svn path=/trunk/KDE/kdegraphics/okular/; revision=746432
2007-12-08 23:20:27 +00:00
Pino Toscano 3fe54b79e8 do not center the "dummy" image of the text annotation, otherwise there's a "jump" when the note is placed
svn path=/trunk/KDE/kdegraphics/okular/; revision=746431
2007-12-08 23:19:42 +00:00
Jeremy Paul Whiting ba526769a1 dont try to install ghns images that are no longer here
svn path=/trunk/KDE/kdegraphics/okular/; revision=746352
2007-12-08 19:02:01 +00:00
Jeremy Paul Whiting 962448d374 move to where it's used
svn path=/trunk/KDE/kdegraphics/okular/; revision=746351
2007-12-08 19:00:33 +00:00
Jeremy Paul Whiting e2c9de4d1b move to kns where it is used
svn path=/trunk/KDE/kdegraphics/okular/; revision=746349
2007-12-08 18:59:42 +00:00
Jeremy Paul Whiting a8d13e8d7c move to where it is used
svn path=/trunk/KDE/kdegraphics/okular/; revision=746348
2007-12-08 18:58:47 +00:00
Pino Toscano 8d2b86906e okular -> graphics-viewer-document
svn path=/trunk/KDE/kdegraphics/okular/; revision=722448
2007-10-07 10:44:59 +00:00
Pino Toscano cd0dd24193 i18n fixes
rename 'freetext' to 'inline note'

svn path=/trunk/KDE/kdegraphics/okular/; revision=701876
2007-08-19 16:15:55 +00:00
Pino Toscano 301ab93196 Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch:
- install a newstuff rc config, pointing to the NS1 stuff on okular.kde.org
- show the download dialog for newstuff, properly (hopefully) initialized
- proper linking for the okularpart

svn path=/trunk/KDE/kdegraphics/okular/; revision=690047
2007-07-19 22:27:45 +00:00
Pino Toscano abd42c14cd the PickPoint annotator engine can draw a dashed frame around the selected zone if a tool wants it; applied to the free text annotation for now [and improved its description while I was there]
svn path=/trunk/playground/graphics/okular/; revision=646200
2007-03-24 22:45:14 +00:00
Pino Toscano 44a69612ef Make okular able to construct and display Geometric (Rectangle/Ellipse) Annotations.
Extended the annotation properties dialog to choose the type (rect/ellipse) or the color for the inner part.
Added a button in the review toolbar to construct a cyan ellipse.

svn path=/trunk/playground/graphics/okular/; revision=606023
2006-11-19 00:46:01 +00:00
Pino Toscano 33fb7d9eb5 add a black underline tool to the review toolbar
svn path=/trunk/playground/graphics/okular/; revision=605981
2006-11-18 20:32:34 +00:00