Changeset View
Changeset View
Standalone View
Standalone View
ui/data/tools.xml
1 | <!DOCTYPE okularAnnotatingTools> | 1 | <!DOCTYPE okularAnnotatingTools> | ||
---|---|---|---|---|---|
2 | <!-- | 2 | <!-- | ||
3 | Engine/Annotation Types [specific attributes]: | 3 | Engine | ||
4 | [color] | 4 | TextSelector | ||
5 | SmoothLine [lowPassFilter{true,false}] [orthoSnap{true,false}] | 5 | [color] {RGB HEX} | ||
6 | [color] | 6 | PickPoint | ||
7 | [opacity] | 7 | [color] {RGB HEX} | ||
8 | Highlight | 8 | [block] {true=allow click and drag, false=click only} | ||
9 | Ink [width] | 9 | [hoverIcon] {string or path} | ||
10 | PickPoint [hoverIcon{string}] | 10 | [size] {int = hoover icon size} | ||
11 | [color] | 11 | PolyLine | ||
12 | Stamp[icon] | 12 | [color] {RGB HEX} | ||
13 | [points] {-1=arbitrary number of vertex, n=number of vertices} | ||||
14 | | ||||
15 | Annotation | ||||
16 | Highlight, Underline, Squiggly, StrikeOut | ||||
17 | [color] {RGB HEX} | ||||
18 | [opacity] {decimal in range [0, 1]} | ||||
19 | Typewriter | ||||
20 | [textColor] {RGB HEX} | ||||
21 | [opacity] {decimal in range [0, 1]} | ||||
22 | [font] {string as returned by QFont::toString()} | ||||
23 | FreeText | ||||
24 | [textColor] {RGB HEX} | ||||
25 | [color] {RGB HEX} | ||||
26 | [opacity] {decimal in range [0, 1]} | ||||
27 | [font] {string as returned by QFont::toString()} | ||||
13 | Text | 28 | Text | ||
14 | TwoPoints [block{true,false}] | 29 | [color] {RGB HEX} | ||
15 | [color] | 30 | [opacity] {decimal in range [0, 1]} | ||
16 | Line[width] | 31 | [icon] {string} | ||
17 | Geom | 32 | [align] {0=left, 1=center, 2=right} | ||
33 | Ink | ||||
34 | [color] {RGB HEX} | ||||
35 | [opacity] {decimal in range [0, 1]} | ||||
36 | [width] {decimal > 0} | ||||
37 | Line | ||||
38 | [color] {RGB HEX} | ||||
39 | [innerColor] {RGB HEX} | ||||
40 | [opacity] {decimal in range [0, 1]} | ||||
41 | [width] {decimal > 0} | ||||
42 | [startStyle] {0=Square, 1=Circle, 2=Diamond, 3=Open Arrow, 4=Closed Arrow, | ||||
43 | 5=None, 6=Butt, 7=Right Open Arrow, 8=Right Closed Arrow, 9=Slash} | ||||
44 | [endStyle] {same of [startStyle]} | ||||
45 | [leadFwd] {decimal > 0} | ||||
46 | [leadBack] {decimal > 0} | ||||
47 | GeomSquare, GeomCircle | ||||
48 | [color] {RGB HEX} | ||||
49 | [innerColor] {RGB HEX} | ||||
50 | [opacity] {decimal in range [0, 1]} | ||||
51 | [width] {decimal > 0} | ||||
52 | Stamp | ||||
53 | [icon] {string or path} | ||||
18 | --> | 54 | --> | ||
19 | <annotatingTools> | 55 | <annotatingTools> | ||
20 | <tool id="1" type="note-linked"> | 56 | <tool id="1" type="highlight"> | ||
21 | <engine type="PickPoint" color="#ffffff00" hoverIcon="tool-note"> | 57 | <engine type="TextSelector" color="#ffff00"> | ||
22 | <annotation type="Text" color="#ffffff00" icon="Note" /> | 58 | <annotation type="Highlight" color="#ffffff00" /> | ||
23 | </engine> | 59 | </engine> | ||
24 | <shortcut>1</shortcut> | | |||
25 | </tool> | 60 | </tool> | ||
26 | <tool id="2" type="note-inline"> | 61 | <tool id="2" type="underline"> | ||
27 | <engine type="PickPoint" color="#ffffff00" hoverIcon="tool-note-inline" block="true"> | 62 | <engine type="TextSelector" color="#ff0000"> | ||
28 | <annotation type="FreeText" color="#ffffff00" /> | 63 | <annotation type="Underline" color="#ffff0000" /> | ||
29 | </engine> | 64 | </engine> | ||
30 | <shortcut>2</shortcut> | | |||
31 | </tool> | 65 | </tool> | ||
32 | <tool id="3" type="ink"> | 66 | <tool id="3" type="squiggly"> | ||
33 | <engine type="SmoothLine" color="#ff00ff00"> | 67 | <engine type="TextSelector" color="#ff0000"> | ||
34 | <annotation type="Ink" color="#ff00ff00" width="2" /> | 68 | <annotation type="Squiggly" color="#ffff0000" /> | ||
35 | </engine> | 69 | </engine> | ||
36 | <shortcut>3</shortcut> | | |||
37 | </tool> | 70 | </tool> | ||
38 | <tool id="4" type="highlight"> | 71 | <tool id="4" type="strikeout"> | ||
39 | <engine type="TextSelector" color="#ffffff00"> | 72 | <engine type="TextSelector" color="#ff0000"> | ||
40 | <annotation type="Highlight" color="#ffffff00" /> | 73 | <annotation type="StrikeOut" color="#ffff0000" /> | ||
41 | </engine> | 74 | </engine> | ||
42 | <shortcut>4</shortcut> | | |||
43 | </tool> | 75 | </tool> | ||
44 | <tool id="5" type="straight-line"> | 76 | <tool id="5" type="typewriter"> | ||
45 | <engine type="PolyLine" color="#ffffe000" points="2"> | 77 | <engine type="PickPoint" block="true"> | ||
46 | <annotation type="Line" width="1" color="#ffffe000" /> | 78 | <annotation type="Typewriter" color="#00ffffff" textColor="#000000" width="0" | ||
79 | font="Noto Sans\\,10\\,-1\\,5\\,50\\,0\\,0\\,0\\,0\\,0\\,Regular"/> | ||||
47 | </engine> | 80 | </engine> | ||
48 | <shortcut>5</shortcut> | | |||
49 | </tool> | 81 | </tool> | ||
50 | <tool id="6" type="polygon"> | 82 | <tool id="6" type="note-inline"> | ||
51 | <engine type="PolyLine" color="#ff007eee" points="-1"> | 83 | <engine type="PickPoint" color="#ffff00" hoverIcon="tool-note-inline" block="true"> | ||
52 | <annotation type="Line" width="1" color="#ff007eee" /> | 84 | <annotation type="FreeText" color="#ffffff00" | ||
85 | font="Noto Sans\\,10\\,-1\\,5\\,50\\,0\\,0\\,0\\,0\\,0\\,Regular"/> | ||||
53 | </engine> | 86 | </engine> | ||
54 | <shortcut>6</shortcut> | | |||
55 | </tool> | 87 | </tool> | ||
56 | <tool id="7" type="stamp"> | 88 | <tool id="7" type="note-linked"> | ||
57 | <engine type="PickPoint" hoverIcon="okular" size="64" block="true"> | 89 | <engine type="PickPoint" color="#ffff00" hoverIcon="tool-note"> | ||
58 | <annotation type="Stamp" icon="okular"/> | 90 | <annotation type="Text" color="#ffffff00" icon="Note" /> | ||
59 | </engine> | 91 | </engine> | ||
60 | <shortcut>7</shortcut> | | |||
61 | </tool> | 92 | </tool> | ||
62 | <tool id="8" type="underline"> | 93 | <tool id="8" type="ink"> | ||
63 | <engine type="TextSelector" color="#ff000000"> | 94 | <engine type="SmoothLine" color="#00ff00"> | ||
64 | <annotation type="Underline" color="#ff000000" /> | 95 | <annotation type="Ink" color="#ff00ff00" width="2" /> | ||
65 | </engine> | 96 | </engine> | ||
66 | <shortcut>8</shortcut> | | |||
67 | </tool> | 97 | </tool> | ||
68 | <tool id="9" type="ellipse"> | 98 | <tool id="9" type="straight-line" name="Arrow"> | ||
69 | <engine type="PickPoint" color="#ff00ffff" block="true"> | 99 | <engine type="PolyLine" color="#000000" points="2"> | ||
70 | <annotation type="GeomCircle" width="5" color="#ff00ffff" /> | 100 | <annotation type="Line" width="2" endStyle="3" color="#ff000000" /> | ||
71 | </engine> | 101 | </engine> | ||
72 | <shortcut>9</shortcut> | | |||
73 | </tool> | 102 | </tool> | ||
74 | <tool id="10" type="typewriter"> | 103 | <tool id="10" type="straight-line"> | ||
75 | <engine type="PickPoint" block="true"> | 104 | <engine type="PolyLine" color="#000000" points="2"> | ||
76 | <annotation type="Typewriter" color="#00ffffff" textColor="#ff000000" width="0" /> | 105 | <annotation type="Line" width="2" color="#ff000000" /> | ||
106 | </engine> | ||||
107 | </tool> | ||||
108 | <tool id="11" type="rectangle"> | ||||
109 | <engine type="PickPoint" color="#ff0000" block="true"> | ||||
110 | <annotation type="GeomSquare" width="3" color="#ffff0000" /> | ||||
111 | </engine> | ||||
112 | </tool> | ||||
113 | <tool id="12" type="ellipse"> | ||||
114 | <engine type="PickPoint" color="#00ffff" block="true"> | ||||
115 | <annotation type="GeomCircle" width="3" color="#ff00ffff" /> | ||||
116 | </engine> | ||||
117 | </tool> | ||||
118 | <tool id="13" type="polygon"> | ||||
119 | <engine type="PolyLine" color="#007eee" points="-1"> | ||||
120 | <annotation type="Line" width="2" color="#ff007eee" /> | ||||
121 | </engine> | ||||
122 | </tool> | ||||
123 | <tool id="14" type="stamp"> | ||||
124 | <engine type="PickPoint" size="64" block="true"> | ||||
125 | <annotation type="Stamp"/> | ||||
77 | </engine> | 126 | </engine> | ||
78 | </tool> | 127 | </tool> | ||
79 | </annotatingTools> | 128 | </annotatingTools> |