<table><tr><td style="">tobiasdeiminger retitled this revision from "WIP: Add line annotation ending arrows for non PDF documents" to "Add line annotation ending arrows for non PDF documents".<br />tobiasdeiminger edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-64g6adei43sxamw/">(Show Details)</a><br />tobiasdeiminger edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-z4wa53fpan4afl6/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21248">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">This implements drawing the <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">various </span>line ending<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">s</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> styles</span> for 2 point lines in non-PDF documents.<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"><br />
<br />
Implemented:<br />
- Square, Diamond, OpenArrow, ClosedArrow, ROpenArrow, RClosedArrow, Butt, Slash<br />
- for start and stop style (start can't be configured in GUI yet)<br />
- filled or not (fill color can't be configured in GUI yet)<br />
- with or without leader line<br />
- shorten main segment</span><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">TODO:<br />
- Circle<br />
- Expose `LineAnnotPainter` so that it can be reused to generate preview icons</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Looks like this:</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- What about multiline annotations?</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">{F6833437}</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>- draw line annotations with different arrow styles<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">: Square, Diamond, OpenArrow, ClosedArrow, ROpenArrow, RClosedArrow, Butt, Slash, Circle<br />
- ... as start and as end style (start needs D21238 to be configurable in GUI)<br />
- ... filled or not (fill color can't be configured in GUI yet)</span><br />
- ... with different leader line settings<div style="padding: 8px 0;">...</div>- rotate and scale page<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
- leader line with setting 100 gives 100 pixel line at 100% zoom (use kruler to verify)</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21248">https://phabricator.kde.org/D21248</a></div></div><br /><div><strong>To: </strong>tobiasdeiminger<br /><strong>Cc: </strong>sander, knambiar, okular-devel, joaonetto, tfella, ngraham, darcyshen, aacid<br /></div>