D15204: Add typewriter annotation tool

Tobias Deiminger noreply at phabricator.kde.org
Sat Sep 1 11:36:41 BST 2018


tobiasdeiminger created this revision.
Herald added a project: Okular.
Herald added a subscriber: okular-devel.
tobiasdeiminger requested review of this revision.

REVISION SUMMARY
  1st part of Dileep Sankhlas GSoC 18 project.
  Typewriter is originally specified by PDF as special FreeText
  annotation, where Intent=FreeTextTypewriter. This patch supports it
  natively for PDF, and also provide an Okular specific implementation
  for other document types.
  
  The added tool reuses the inline note UI. Main feature is transparent
  background, so that users can fill non interactive forms.
  
  This squashes everything from Dileeps orignal work D13203 <https://phabricator.kde.org/D13203> up to
  ID 36397, as a ready to use feature with no further dependencies. The
  remainder will follow in an extra Diff.
  
  FEATURE: 353401

TEST PLAN
  - okularpartrc is generated (if not yet existing) with typewriter as 10th tool
  - typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
  - selecting the tool and left click into document opens inline note input dialog
  - finishing creates an annotation similar to inline note, but with transparent background
  - saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
  - saving into archive stores color with alpha channel (RRGGBBAA), for all kind of annotations
  - opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
  - opening annotated archive works, if archive was created with patched Okular, and opened in old Okular

REPOSITORY
  R223 Okular

BRANCH
  typewriter_td1 (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D15204

AFFECTED FILES
  autotests/annotationstest.cpp
  autotests/parttest.cpp
  conf/editannottooldialog.cpp
  conf/editannottooldialog.h
  core/annotations.cpp
  ui/annotationpropertiesdialog.cpp
  ui/annotationwidgets.cpp
  ui/annotationwidgets.h
  ui/annotwindow.cpp
  ui/data/CMakeLists.txt
  ui/data/sources/tool-typewriter-okular-colorizable.svgz
  ui/data/tool-typewriter-okular-colorizable.png
  ui/data/tool-typewriter-okular-colorizable at 2x.png
  ui/data/tools.xml
  ui/guiutils.cpp
  ui/pagepainter.cpp
  ui/pageviewannotator.cpp

To: tobiasdeiminger
Cc: okular-devel, ngraham, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180901/c4ca8f33/attachment-0001.html>


More information about the Okular-devel mailing list