1. 24 Aug, 2017 1 commit
    • Julian Wolff's avatar
      add markdown support · 49313857
      Julian Wolff authored
      Adds support for Markdown documents
      BUG: 360603
      Test Plan: Open a Markdown (.md) document in Okular
      Reviewers: #okular, aacid
      Reviewed By: #okular, aacid
      Subscribers: michaelweghorn, aacid
      Tags: #okular
      Differential Revision: https://phabricator.kde.org/D7382
  2. 10 Aug, 2017 1 commit
    • Oliver Sander's avatar
      Print via QPrinter when rasterizing and printing annotations · 0c4c2ddb
      Oliver Sander authored
      When the user chooses to print with rasterization and annotations,
      it is easy to print directly to a QPrinter, rather than converting
      to PostScript and then using CUPS tools.  The code for it was
      already there, but it was hidden behind an #ifdef Q_OS_WIN.
      This patch enables it for all plattforms.  If nothing else,
      it will make an interesting debugging tool, because it allows
      to bypass the postscript & CUPS toolchain from the GUI.
      This may allow to track down some of the numerous my-printer-settings-
      are-getting-ignored bugs.
      The previously windows-only rasterization code used printer.physicalDpiX()
      as the rasterization resolution.  At least on my machine this resulted
      in a dpi value of 1200, which means quite a lot of memory is used.
      I left the windows code untouched, but on Unix I lowered that value
      to 300dpi, which is what the postscript rasterizer uses.
      Incidentally, this patch does fix at least one bug for me:
      Without it, my printer will happily ignore the 'print in grayscale'
      button.  With the patch, that button is suddenly honoured.
      REVIEW: 130218
  3. 08 Aug, 2017 1 commit
  4. 30 Jul, 2017 2 commits
  5. 28 Jul, 2017 3 commits
  6. 20 Jun, 2017 2 commits
  7. 31 May, 2017 4 commits
  8. 21 May, 2017 2 commits
  9. 12 May, 2017 3 commits
  10. 22 Apr, 2017 4 commits
  11. 17 Apr, 2017 1 commit
  12. 09 Apr, 2017 2 commits
  13. 06 Apr, 2017 1 commit
  14. 19 Mar, 2017 1 commit
    • Tobias Deiminger's avatar
      Add annotation resize functionality · 0957abc3
      Tobias Deiminger authored
      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.
      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
  15. 05 Mar, 2017 2 commits
  16. 03 Mar, 2017 2 commits
  17. 02 Mar, 2017 6 commits
  18. 27 Feb, 2017 1 commit
  19. 26 Feb, 2017 1 commit