okular/ui/data/tools.xml
Pino Toscano 05d97ede77 Annotations:
- make the PagePainter draw all the points specified in a LineAnnotation, as it can represent also a Polygon or Polyline annotation
- automatically read the annotation dom element in the base AnnotatorEngine class, so every engine won't need to read it on its own
- properly reset some vars in the engines
- when constructing a Stamp annotation, use the right 'icon' attribute of the annotation element (and not the icon of the engine)
- renamed the TwoPointsEngine into PolyLineEngine, and abstracted to construct a polygon/polyline with a specified number of sides
- added a polygon button on the annotation toolbar
- check better if the annotator has to paint something

svn path=/trunk/playground/graphics/okular/; revision=583102
2006-09-11 11:51:10 +00:00

76 lines
2.7 KiB
XML

<!DOCTYPE KPDFAnnotatingTools>
<!--
Engine/Annotation Types [specific attributes]:
[color]
SmoothLine [lowPassFilter{true,false}] [orthoSnap{true,false}]
[color]
[opacity]
Highlight
Ink [width]
PickPoint [hoverIcon{string}]
[color]
Stamp[icon]
Text
TwoPoints [block{true,false}]
[color]
Line[width]
Geom
-->
<annotatingTools>
<tool id="1" name="Note" pixmap="tool_note">
<tooltip>Text Annotation</tooltip>
<engine type="PickPoint" color="#FFFF00" hoverIcon="tool_note" center="true">
<annotation type="Text" color="#FFFF00" />
</engine>
<shortcut>1</shortcut>
</tool>
<tool id="2" name="FreeText" pixmap="pinnote">
<tooltip>Free Text Annotation</tooltip>
<engine type="PickPoint" color="#FFFF00" hoverIcon="tool_note">
<annotation type="FreeText" color="#FFFF00" />
</engine>
<shortcut>2</shortcut>
</tool>
<tool id="3" name="Green Highlighter" pixmap="tool_ink_green">
<tooltip>Green Ink</tooltip>
<engine type="SmoothLine" color="#00FF00">
<annotation type="Ink" color="#00FF00" width="2" />
</engine>
<shortcut>3</shortcut>
</tool>
<tool id="4" name="Pink Highlighter" pixmap="tool_hl_pink">
<tooltip>Pink Ink</tooltip>
<engine type="SmoothLine" color="#FF0080">
<annotation type="Ink" color="#FF0080" width="4" />
</engine>
<shortcut>4</shortcut>
</tool>
<tool id="5" name="Yellow Highlighter" pixmap="tool_hl_yellow">
<tooltip>Yellow Highlight</tooltip>
<engine type="SmoothLine" color="#FFFF00">
<annotation type="Highlight" color="#FFFF00" />
</engine>
<shortcut>5</shortcut>
</tool>
<tool id="6" name="Straight Yellow Line" pixmap="tool_hl_yellow">
<tooltip>Straight Yellow Line</tooltip>
<engine type="PolyLine" color="#FFE000" points="2">
<annotation type="Line" width="4" color="#FFE000" />
</engine>
<shortcut>6</shortcut>
</tool>
<tool id="7" name="Blue Polygon" pixmap="polygon">
<tooltip>Draw a polygon (click on the first point to close it)</tooltip>
<engine type="PolyLine" color="#007EEE" points="-1">
<annotation type="Line" width="4" color="#007EEE" />
</engine>
<shortcut>7</shortcut>
</tool>
<tool id="8" name="Stamp" pixmap="stamp">
<tooltip>Put a stamp symbol</tooltip>
<engine type="PickPoint" hoverIcon="okular" center="true" size="64">
<annotation type="Stamp" icon="okular"/>
</engine>
<shortcut>8</shortcut>
</tool>
</annotatingTools>