<table><tr><td style="">simgunz created this revision.<br />simgunz added a reviewer: Okular.<br />Herald added a project: Okular.<br />Herald added a subscriber: okular-devel.<br />simgunz 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/D22064">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Configuration:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Add push button to select custom stamp image</li>
<li class="remarkup-list-item">Check if loaded image is usable as stamp or throw error</li>
<li class="remarkup-list-item">Keep image proportions in previewer</li>
<li class="remarkup-list-item">Move previewer below the combobox to display larger preview</li>
</ul>

<p>Annotation tool:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Keep stamp image proportion in annotation preview (while left mouse button is down)</li>
<li class="remarkup-list-item">Adding the annotation with one-click (without holding the left mouse button and dragging) adds the stamp with original proportions</li>
</ul>

<p>TODO:</p>

<ul class="remarkup-list remarkup-list-with-checkmarks">
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> Check if filters in file chooser make sense / propose better alternative</li>
<li class="remarkup-list-item remarkup-unchecked-item"><input type="checkbox" disabled="disabled" /> Update doc</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>From stamp annotation configuration dialog:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Click push button next to combo box opens a file selector</li>
<li class="remarkup-list-item">Selecting a corrupted image file should throw an error</li>
<li class="remarkup-list-item">Selecting a good image file shows the preview of the image</li>
<li class="remarkup-list-item">Select a horizontal image shows a large clear preview</li>
<li class="remarkup-list-item">Select a vertical image file shows a smaller preview without messing up the visual of the config dialog</li>
</ul>

<p>From page view, select the stamp annotation with horizontal image file (not squared):</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Click and hold. The preview maintains proportions</li>
<li class="remarkup-list-item">Single click. The stamp image in the pdf maintains proportions and has the same size of the click and hold preview.</li>
<li class="remarkup-list-item">Add an annotation of the Okular custom stamps (internal SVG so treated slightly differently) do not create problems</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>improve-stamp-annotation</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22064">https://phabricator.kde.org/D22064</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>ui/annotationwidgets.cpp<br />
ui/annotationwidgets.h<br />
ui/guiutils.cpp<br />
ui/guiutils.h<br />
ui/pagepainter.cpp<br />
ui/pageviewannotator.cpp</div></div></div><br /><div><strong>To: </strong>simgunz, Okular<br /><strong>Cc: </strong>okular-devel, fbampaloukas, joaonetto, tfella, ngraham, darcyshen, aacid<br /></div>