1. 01 Aug, 2020 1 commit
    • David Hurka's avatar
      Improve PagePainter and LineAnnotPainter documentation · cd79b9b4
      David Hurka authored
      Write doxygen documentation for:
      * PagePainter::paintPageOnPainter(), paintCroppedPageOnPainter()
      * `Change Colors` algorithm functions of PagePainter
      * PagePainter::drawShapeOnImage(), drawPixmapOnImage(); very straightforward,
        but added a note on the coordinate system.
      * LineAnnotPainter constructor, draw()
      Remove unused functions:
      * PagePainter::cropPixmapOnImage(), QPixmap::copy() can do it easily today.
  2. 31 Jul, 2020 1 commit
    • David Hurka's avatar
      Fix misplacement of some non-PDF annotations on hiDPI · 50df8ad8
      David Hurka authored
      PagePainter::drawShapeOnImage() and drawEllipseOnImage() didn’t respect the image’s device pixel ratio.
      Steps to reproduce:
      * Set your screen scale to e. g. 1.25.
      * Open e. g. a .txt document.
      * Draw e. g. an arrow annotation or a text markup annotation.
  3. 30 Jul, 2020 3 commits
  4. 28 Jul, 2020 2 commits
  5. 25 Jul, 2020 1 commit
  6. 23 Jul, 2020 12 commits
  7. 19 Jul, 2020 1 commit
  8. 17 Jul, 2020 2 commits
  9. 16 Jul, 2020 4 commits
    • David Hurka's avatar
      Annotations: explicitly accept tablet event when it is handled · 15ac564b
      David Hurka authored
      This fixes the jagged freehand lines problem.
      It was caused because tablet events were not accepted, and so were delivered again as mouse event, creating an additional line point slightly offset, causing sharp line angles.
      BUG: 410723
      FIXED-IN: 1.11
    • David Hurka's avatar
      Add Constrain Angle action for annotation tools, alternative to pressing Shift · 34708565
      David Hurka authored
      This adds a KToggleAction which sets annotation tools to constrain angle mode.
      It provides an alternative user interface to the Shift button, which is used to constrain angles since MR !210.
      The action and the Shift button are XOR-ed, i. e. if constrain angle mode is activated, pressing Shift temporarily disables it.
      The action state is remembered accross sessions, for consistency with most other actions. It should be difficult to check this action without knowing of its existence, since it is not in any toolbar or menu, just in the action collection.
      The meaning of AnnotatorEngine::Modifiers was generalized a bit, moving the responsibility about whether to constrain angles back to PageViewAnnotator, because AnnotatorEngine does not know about the action.
      FEATURE: 353560
      FIXED-IN: 1.11
    • Simone Gaiarin's avatar
      Add tooltip to "Quick Annotations" · bba13ee5
      Simone Gaiarin authored
    • Simone Gaiarin's avatar
      Move "Quick Anotations" action next to selection tools · 166f3656
      Simone Gaiarin authored
      Partially addresses #15
  10. 14 Jul, 2020 5 commits
  11. 13 Jul, 2020 5 commits
  12. 12 Jul, 2020 2 commits
  13. 11 Jul, 2020 1 commit