1. 23 Jul, 2020 3 commits
  2. 11 Jul, 2020 1 commit
    • Albert Astals Cid's avatar
      Run clang-format · 19d98d6a
      Albert Astals Cid authored
      find . \( -name "*.cpp" -or -name "*.h"  -or -name "*.c"  -or -name "*.cc" \) -exec clang-format -i {} \;
      
      If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
      19d98d6a
  3. 19 Feb, 2020 1 commit
  4. 24 Jan, 2020 1 commit
  5. 09 Jan, 2020 1 commit
  6. 23 Dec, 2019 1 commit
  7. 18 Sep, 2019 1 commit
  8. 04 Oct, 2018 1 commit
    • Dileep Sankhla's avatar
      Support setting text color for typewriter annotations · e44ff387
      Dileep Sankhla authored
      Summary:
      Changing typewriter text color can be done in the typewriter properties dialog, or programmatically via new okular API methods TextAnnotation::textColor and TextAnnotation::setTextColor.
      
      poppler >= 0.69 is required to store text color natively inside PDF documents. For other document types, text color is stored as metadata inside the document archive.
      
      This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.
      
      Test Plan:
      - properties dialog of typewriter annotation has "Font Color" picker
      - saving to PDF results in <r> <g> <b> rg operation in /DA
      - saving to archive results in fontColor="rrggbb" attribute in metadata.xml
      
      Reviewers: sander
      
      Reviewed By: sander
      
      Subscribers: kde-doc-english, sander, okular-devel
      
      Tags: #okular, #documentation
      
      Differential Revision: https://phabricator.kde.org/D15205
      e44ff387
  9. 31 Aug, 2018 1 commit
  10. 16 Nov, 2017 1 commit
  11. 15 Nov, 2017 1 commit
  12. 28 Jul, 2017 1 commit
  13. 19 Mar, 2017 1 commit
    • Tobias Deiminger's avatar
      Add annotation resize functionality · 0957abc3
      Tobias Deiminger authored
      Usage:
      If you left-click an annotation, it gets selected. Resize handles appear on the selection rectangle. When cursor is moved over one of the 8 resize handles on the corners/edges, the cursor shape changes to indicate resize mode. Everywhere else on the annotation means "move", just as it was before resize feature was added. Pressing ESC or clicking an area outside the annotation cancels a selection. Pressing Del deletes a selected annotation.
      
      Feature is only applicable for annotation types AText, AStamp and AGeom.
      
      Implementation:
      It works by eventually changing AnnotationPrivate::m_boundary and notifying generator (i.e. poppler) about that change. Annotation state handling is shifted out of PageView into a new class MouseAnnotation (ui/pageviewmouseannotation.cpp). Some functionality not related to resizing but to annotation interaction in general is also shifted to class MouseAnnotation, to build a single place of responsiblity.
      
      Other changes:
      Add method Document::adjustPageAnnotation, backed by a QUndoCommand.
      class Okular::AdjustAnnotationCommand.
      Add Annotation::adjust and Annotation::canBeResized methods.
      Draw resize handles in PagePainter::paintCroppedPageOnPainter.
      
      Resize and move work
      -for types AText, AStamp and AGeom
      -on all pages of document
      -when viewport position changes
      -when zoom level changes
      -for all page rotations (0°, 90°, 180°, 270°)
      
      Selection is canceled
      -when currently selected annotation is deleted
      -on mouse click outside of currently selected annotation
      -ESC is pressed
      
      Viewport is shifted when mouse cursor during move/resize comes close to viewport border.
      Resize to negative is prevented.
      Tiny annotations are still selectable.
      If mouse is moved over an annotation type that we can focus, and the annotation is not yet focused, mouse cursor shape changes to arrow.
      If mouse cursor rests over an annotation A, while annotation B is focused, a tooltip for annotation A is shown.
      Selected Annotation is deleted when Del is pressed.
      
      Test for regressions:
      -Annotation interaction (focus, move, resize, start playback, ...) are only done in mode EnumMouseMode::Browse.
      -If mouse is moved over an annotation type where we can start an action, mouse cursor shape changes to pointing hand.
      -If mouse is moved over an annotation type that we can't interact with, mouse cursor shape stays a open hand.
      -If mouse cursor rests over an annotation of any type, a tooltip for that annotation is shown.
      -Grab/move scroll area (on left click + mouse move) is prevented, if mouse is over focused annotation, or over AMovie/AScreen/AFileAttachment annotation.
      -A double click on a annotation starts the "annotator".
      
      REVIEW: 127366
      BUG: 177778
      BUG: 314843
      BUG: 358060
      0957abc3
  14. 29 Oct, 2015 1 commit
  15. 20 Aug, 2015 1 commit
    • Tobias Koenig's avatar
      Add basic support for RichMedia annotations in PDF files · 8b603c17
      Tobias Koenig authored
      That patch extracts the video file, which is defined in a
      rich media annotation as parameter for the flash player,
      and uses the normal multimedia player, to playback the video
      file.
      
      This feature requires poppler-qt5 in version 0.36.
      
      FEATURE: 326230
      REVIEW: 124612
      8b603c17
  16. 30 Jul, 2015 1 commit
  17. 16 Sep, 2014 1 commit
  18. 11 Sep, 2014 1 commit
  19. 09 Sep, 2014 1 commit
  20. 24 Aug, 2014 1 commit
  21. 26 Jun, 2013 1 commit
  22. 18 May, 2013 1 commit
    • Fabio D'Urso's avatar
      Compile with Poppler < 0.20 · a7cb8e1d
      Fabio D'Urso authored
      I had added this special case because Poppler < 0.20 stored garbage
      in the DOM node corresponding to inplaceText (but good data in contents).
      This code copied the good value into inplaceText, so that our UI code,
      which used to show the user what it read from inplaceText, showed the
      good value instead.
      
      Now that Okular only has contents, this special handling is no longer
      needed.
      a7cb8e1d
  23. 14 May, 2013 1 commit
  24. 12 Dec, 2012 1 commit
  25. 22 Oct, 2012 1 commit
  26. 21 Sep, 2012 1 commit
  27. 10 Jun, 2012 1 commit
  28. 04 Jun, 2012 1 commit
  29. 17 May, 2012 4 commits
  30. 13 Apr, 2012 1 commit
  31. 03 Apr, 2012 1 commit
  32. 22 Mar, 2012 1 commit
  33. 26 Jan, 2012 1 commit
  34. 01 Jun, 2011 1 commit
  35. 23 Aug, 2008 1 commit