<table><tr><td style="">tobiasdeiminger created this revision.<br />Herald added a project: Okular.<br />Herald added a subscriber: okular-devel.<br />tobiasdeiminger requested review of this revision.
</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/D15204">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>1st part of Dileep Sankhlas GSoC 18 project.<br />
Typewriter is originally specified by PDF as special FreeText<br />
annotation, where Intent=FreeTextTypewriter. This patch supports it<br />
natively for PDF, and also provide an Okular specific implementation<br />
for other document types.</p>

<p>The added tool reuses the inline note UI. Main feature is transparent<br />
background, so that users can fill non interactive forms.</p>

<p>This squashes everything from Dileeps orignal work <a href="https://phabricator.kde.org/D13203" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D13203</a> up to<br />
ID 36397, as a ready to use feature with no further dependencies. The<br />
remainder will follow in an extra Diff.</p>

<p>FEATURE: 353401</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">okularpartrc is generated (if not yet existing) with typewriter as 10th tool</li>
<li class="remarkup-list-item">typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"</li>
<li class="remarkup-list-item">selecting the tool and left click into document opens inline note input dialog</li>
<li class="remarkup-list-item">finishing creates an annotation similar to inline note, but with transparent background</li>
<li class="remarkup-list-item">saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter</li>
<li class="remarkup-list-item">saving into archive stores color with alpha channel (RRGGBBAA), for all kind of annotations</li>
<li class="remarkup-list-item">opening annotated archive works, if archive was created with old Okular, and opened in patched Okular</li>
<li class="remarkup-list-item">opening annotated archive works, if archive was created with patched Okular, and opened in old Okular</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>typewriter_td1 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15204">https://phabricator.kde.org/D15204</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/annotationstest.cpp<br />
autotests/parttest.cpp<br />
conf/editannottooldialog.cpp<br />
conf/editannottooldialog.h<br />
core/annotations.cpp<br />
ui/annotationpropertiesdialog.cpp<br />
ui/annotationwidgets.cpp<br />
ui/annotationwidgets.h<br />
ui/annotwindow.cpp<br />
ui/data/CMakeLists.txt<br />
ui/data/sources/tool-typewriter-okular-colorizable.svgz<br />
ui/data/tool-typewriter-okular-colorizable.png<br />
ui/data/tool-typewriter-okular-colorizable@2x.png<br />
ui/data/tools.xml<br />
ui/guiutils.cpp<br />
ui/pagepainter.cpp<br />
ui/pageviewannotator.cpp</div></div></div><br /><div><strong>To: </strong>tobiasdeiminger<br /><strong>Cc: </strong>okular-devel, ngraham, aacid<br /></div>