[Okular-devel] [PATCHES] Customizable annotation tools

Fabio D'Urso fabiodurso at hotmail.it
Wed Aug 1 01:04:31 UTC 2012


On Wednesday, August 01, 2012 12:32:06 AM Albert Astals Cid wrote:
> Can we see screenshots of the other GUI changes you made for lazy people?

Annotation widget changes (in all images old is on the left):
- Do not show the font selection field in pop-up annotations (cmp-popup)
   I guess it was a forgotten if, because the same widget is used for
   inplace text annotations, where configuring the font makes sense.
- Configurable line width in InkAnnotations (cmp-ink)
- Configurable inner color in polygons (cmp-polygon)
   Note that even tough straight lines and polylines use the same widget,
   the inner color field is not shown in those annotations. In other words,
   their properties dialog were not changed.
- Text alignment in inplace text annotations (cmp-inplace)
   This one can be done better (eg with icons) in future patches. I had had a
   quick look at koffice source and I remember that there were different cases
   for LTR and RTL languages, that's why I went the easy path.

The Identity configuration page is replaced by an Annotations page, which 
contains the configurable tool list. You can see it in config-panel-new.
Note that the privacy notice now appears as tooltip for text box.

In config-panel-new, you can also see the dialog to create and edit tools. As 
I said in the previous post, it uses the same widgets used by the annotation 
properties dialog.
The caption is "Edit annotation tool" if the user is editing an existing tool 
(like in the picture), or "Create annotation tool" if the user is creating a 
new tool.
If the user hasn't set a customized name, the Name text box shows the default 
tool name in gray (placeholder text).
The combo lets you choose the tool type. Changing its value also changes the 
type of properties that can be configured. Available choices are: Pop-up Note, 
Inline Note, Freehand Line, Straight Line, Polygon, Polyline, Text markup, 
Geometrical shape, Stamp.

In this dialog, I used the term "Freehand Line" instead of "Ink", and 
"Straight Line", "Polygon" and "Polyline" instead of the generic "Line" which 
is used in the annotation properties dialog, because they sound clearer to me. 
If you agree, I'd make another patch to make the annotation properties dialog 
show these names too.

> It might be good adding some contents to PageViewAnnotator::defaultToolName
> since e.g. "Underline" can be read as a verb or as a noun.
Yes, I see the issue. Currently we have Highlighter, but also Polygon, Stamp, 
Underlining and Ellipse, that are all nouns. I'll review that part.

> What happens when there are lots of items in the toolbar, do you get a
> double line of icons?
Yes. I didn't change it and the existing code can do that (toolbar-wrap).

P.S.: I'd like to change the Polygon icon too, because it's not a polygon 
right now.

Fabio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmp-popup.png
Type: image/png
Size: 51375 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120801/47fb19e0/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmp-ink.png
Type: image/png
Size: 32575 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120801/47fb19e0/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmp-polygon.png
Type: image/png
Size: 42866 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120801/47fb19e0/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmp-inplace.png
Type: image/png
Size: 33604 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120801/47fb19e0/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-panel-new.png
Type: image/png
Size: 88047 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120801/47fb19e0/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar-wrap.png
Type: image/png
Size: 10146 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20120801/47fb19e0/attachment-0011.png>


More information about the Okular-devel mailing list