Commit graph

210 commits

Author SHA1 Message Date
Thomas Fischer e4aa8317b5 Auto-fit zoom
BUGS: 249364
REVIEW: 110003
2013-08-18 17:19:20 +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 84d7eae067 Make KConfigDialogs application-modal (instead of window-modal) 2013-05-28 23:44:55 +02:00
Fabio D'Urso ae64a4ba48 Annotation tool configuration: open edit window back on itemDoubleClick
Otherwise it's impossible to select items if itemActivated is configured
to be triggered by single-clicks.
This reverts f1d5638dca
2013-05-24 17:51:49 +02:00
Burkhard Lück 26e036d1c1 add anchor for help call to open the configuration chapter when using help action in the onfiguration dialog 2013-05-23 10:06:09 +02:00
Albert Astals Cid f8a511a5f8 Small tweak to the UI 2013-05-22 00:01:02 +02:00
Fabio D'Urso edb5fc3275 Re-add some kWarnings about missing/invalid tools.xml file 2013-05-21 12:48:48 +02:00
Fabio D'Urso d3a6c9100c WidgetAnnotTools: Add edit button 2013-05-20 20:29:14 +02:00
Fabio D'Urso c8bcee597b WidgetAnnotTools: Tidy up slots 2013-05-20 20:29:14 +02:00
Fabio D'Urso c1bf817e75 Use a enum instead of strings to identify combobox entries 2013-05-18 23:43:12 +02:00
Fabio D'Urso c6989bccce Fix comment 2013-05-18 22:36:27 +02:00
Fabio D'Urso f1d5638dca Connect to a better signal 2013-05-18 22:36:27 +02:00
Fabio D'Urso 6be4155a98 Moved AnnotationTools config option under the Reviews group 2013-05-18 19:35:46 +02:00
Fabio D'Urso 14703512b6 Merge remote-tracking branch 'origin/master' into configurable-review-tools 2013-05-18 19:34:37 +02:00
Azat Khuzhin 1fdb0a0a06 Font selector for TextDocumentGenerator
REVIEW: 109021
2013-05-18 16:03:33 +02:00
Fabio D'Urso faaaeeb5c9 Made Inplace annotations' alignment configurable
Note that PagePainter support for this property is currently broken: it
only works at 100% zoom.
2013-05-18 15:30:46 +02:00
Fabio D'Urso f52432aa57 Show tool icon in EditAnnotToolDialog 2013-05-18 14:12:45 +02:00
Fabio D'Urso 0cc45d4102 Show big icons in annotation tool configuration panel 2013-05-18 14:12:45 +02:00
Fabio D'Urso a5cadb28c1 Merge remote-tracking branch 'origin/master' into configurable-review-tools
Conflicts:
	conf/settings.kcfgc
	ui/pageviewannotator.cpp
2013-05-18 14:02:44 +02:00
Albert Astals Cid 0b17c7fb72 Merge remote-tracking branch 'origin/KDE/4.10'
Conflicts:
	conf/settings.kcfgc
	generators/spectre/okularApplication_ghostview.desktop
2013-04-20 18:16:59 +02:00
Fabio D'Urso 38a5a3f526 Made font configurable in inplace text annotations 2013-04-20 11:16:31 +02:00
Fabio D'Urso 93c824f931 Added support to edit existing annotation tools, renamed NewAnnotToolDialog to EditAnnotToolDialog 2013-04-20 11:16:31 +02:00
Fabio D'Urso 3dcaa58558 Create tool XML entries via DOM methods 2013-04-20 11:16:31 +02:00
Fabio D'Urso 35d481e783 Consistently call "Note" -> "Pop-up Note" (as opposed to "Inline Note") 2013-04-20 11:16:30 +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
Patrick Spendrin 67593aaedd revert the revert as it was right in the first place 2013-04-20 02:49:34 +02:00
Patrick Spendrin 21c100612d revert to previous state for now 2013-04-20 02:40:15 +02:00
Patrick Spendrin 6d74eb0d55 do use unneeded export here 2013-04-20 02:17:25 +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 04441e7e4b Set new tools' default values the same values as predefined tools 2013-04-19 01:28:30 +02:00
Fabio D'Urso 6bce1b85bc Made line extensions configurable in the straight line annotation tool 2013-04-19 01:28:30 +02:00
Fabio D'Urso 5397f99262 Made polygon annotations' inner color configurable 2013-04-19 01:28:30 +02:00
Fabio D'Urso d07735b23d Configurable innerColor in GeomAnnotation tools (rectangle, ellipse) 2013-04-19 01:28:30 +02:00
Fabio D'Urso 2e0296e913 Merge remote-tracking branch 'origin/master' into configurable-review-tools
Conflicts:
	ui/pageview.cpp
	ui/pageviewannotator.cpp
2013-04-19 01:17:56 +02:00
Yuri Chornoivan 55d55c98fd Some cleanup in docs, fix EBN warnings 2013-01-21 21:38:45 +02:00
Patrick von Reth d940c53767 fixed build on windows 2013-01-13 15:35:02 +01:00
Jaydeep Solanki 1d914e6bf5 GUI to configure the Text/Graphics Anti-alias and Text hinting
BUGS: 164759
REVIEW: 106660
GUI:
2012-12-31 12:15:02 +01:00
Fabio D'Urso cb5d84eecf Provide default name for new annotation tools
This patch also removes the slot qualification to AnnotationWidget::applyChanges()
that I had added in "Show the same widget as the annotation properties dialog when
creating annotation tools", because it's not needed any more.
2012-12-29 13:22:56 +01:00
Fabio D'Urso 36aca4403a Show tool icons in the configuration widget 2012-12-29 13:22:14 +01: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 bd9a02863a Show the same widget as the annotation properties dialog when creating annotation tools
Note: Some properties are not stored in the tools' XML yet
2012-12-29 13:22:10 +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
Fabio D'Urso 13e10acf9c Fixed localization issues
Translate strings when retrieving the default annotation tool list, so
that we can assume that strings in the AnnotationTools setting are
translated.

Note: In future patches, I'll remove i18n strings from the default tool
list at all
2012-12-28 10:19:21 +01:00
Fabio D'Urso f5aa37c216 Added support to create new annotation tools 2012-12-28 10:19:21 +01:00
Fabio D'Urso 394cc00ac5 Initial implementation of widget to edit annotation tools
It only supports removal, moveup and movedown.
2012-12-28 10:19:05 +01:00
Fabio D'Urso 6ae60a08da Annotation settings: Added stub widget to edit raw XML tool data 2012-12-28 00:29:25 +01:00
Fabio D'Urso e568f100d5 Turn the annotation tools list in a configurable option
Instead of using a system-wide tools.xml file containing a list of
<tool>...</tool> elements, store each tool element as string in a
stringlist configuration option.
Note that the global tools.xml file is still needed to read the
default values.
2012-12-28 00:29:18 +01:00
Fabio D'Urso 17ccabb691 Renamed "Identity" -> "Annotations" config panel
It only contained an option to set annotations' author name
2012-12-27 19:38:41 +01:00
Albert Astals Cid 12b6d1c3d3 Kill the ZoomFactor config
It was only used to return 1, that was then used in
CHMGenerator::textPage, that code still looks a bit fishy, but that was already there, it's just now that looks a bit more fishier
2012-11-15 23:45:01 +01:00