1. 19 Feb, 2020 1 commit
  2. 23 Dec, 2019 1 commit
  3. 18 Dec, 2019 1 commit
    • Albert Astals Cid's avatar
      CI: enable more modernize checks · 78cf6bd9
      Albert Astals Cid authored
      Since unfortunately some of the autogenerated includes don't pass the
      checks we do a trick of building out of source and then specifying the
      .*/okular/.* path as the only includes we care about
      78cf6bd9
  4. 15 Nov, 2019 1 commit
    • kezi olio's avatar
      Add kinetic scrolling & smooth navigation with cursor keys · 51b90ecd
      kezi olio authored
      This patch adds kinetic / inertial scrolling to ease the use of Okular on touchscreen devices, using Qt's QScroller. I think it's much nicer even for mouse usage.
      
      I left the "mouse cursor wraps when going at the edge of the screen" mechanism intact.
      
      Also, I made it so that there is a nice animation when using the up / down keys to navigate the document, instead of having discrete steps.
      
      FEATURE: 413989
      
      FIXED-IN: 1.10.0
      51b90ecd
  5. 09 Oct, 2019 1 commit
  6. 02 Oct, 2019 1 commit
    • Felix Mauch's avatar
      Save view information per file · bd25d17e
      Felix Mauch authored
      Adds the functionality to save the view mode (single page, facing...),
      continuous scrolling, and margin trimming  to the document information,
      as it is already done with the zoom information.
      bd25d17e
  7. 22 Sep, 2019 1 commit
  8. 03 Jun, 2019 1 commit
  9. 21 Apr, 2019 1 commit
    • Shubham  .'s avatar
      Add action in Edit menu to select the text on current page · f788b5a3
      Shubham . authored
      BUG: 358868
      
      Test Plan: Click on "Select All Text on Current Page" entry in Edit menu to select the entire page. The selected text can then be copied via Edit menu item "Copy"
      
      Reviewers: aacid, #vdg, ngraham
      
      Reviewed By: #vdg, ngraham
      
      Subscribers: yurchor, michaelweghorn, kde-doc-english, davidhurka, abetts, loh.tar, alexde, ngraham, okular-devel
      
      Tags: #okular, #documentation
      
      Differential Revision: https://phabricator.kde.org/D18744
      f788b5a3
  10. 26 Mar, 2019 1 commit
  11. 10 Jan, 2019 1 commit
    • Chinmoy Ranjan Pradhan's avatar
      Implement digital signature support for PDF · a234a902
      Chinmoy Ranjan Pradhan authored
      This is a squash of the original branch
      
      It also contains fixes/rework from Albert Astals Cid
      
      If you're interested in its history have a look at the
      gsoc2018_digitalsignature branch
      
      The poppler dependency situation is:
       * With 0.51 you get most signature information
       * With 0.68 you also get signature location/reason information
       * With 0.73 you also get signature certificate information
      a234a902
  12. 29 Nov, 2018 1 commit
    • Tobias Deiminger's avatar
      Fix inconsistent viewport positioning in PageView · a29e4eaf
      Tobias Deiminger authored
      Summary:
      This diff unifies the calculation of the viewport position from a given DocumentViewport. PageView::notifyViewportChanged and PageView::slotRelayoutPages used to handle it differntly, which resulted in viewport jumps for no reason.
      
      It happened in various situations, e.g. when jumping to a page using the footer page navigation, or when reloading the document after presentation mode left, or when resizing the main window after presentation mode left.
      
      The diff selects the notifyViewportChanged way (align viewport top border with page top margin) as golden behavior in case of rePos.enabled == false.
      
      BUGS: 357958
      CCBUG: 341939
      CCBUG: 400890
      
      341939 and 400890 are fixed partially. These two still suffer from a minor displacement that happens when finished signal arrives from pixmap generation thread.
      
      Test Plan:
      - When using the footer page navigation to jump to different pages, new page top is always algined with viewport top.
      - After changing page with footer page navigation, press F5 to reload. Page top stays aligned with viewport top.
      - When exiting presentation mode, and touching the file, page top stays aligned with viewport top.
      - When exiting presentation mode, and changing main window size, page top stays aligned with viewport top.
      
      Reviewers: #okular, sander
      
      Reviewed By: sander
      
      Subscribers: ngraham, sander, aacid, okular-devel
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D16941
      a29e4eaf
  13. 27 Oct, 2018 1 commit
    • Nate Graham's avatar
      Create new "Zoom to 100%" action · 33ca396d
      Nate Graham authored
      Summary:
      This patch implements a "Zoom to 100%" action and sticks it in the {nav View} menu. Since it's a `KStandardAction` with a `KStandardShortcut`, we automatically get the correct icon and keyboard shortcut, but we do override the name to be "Zoom to 100%" since that's clearer for Okular's use case.
      
      FEATURE: 400048
      FIXED-IN: 18.12.0
      
      Test Plan:
      - Action works to zoom the document to 100% scale when invoked
      - Action is disabled when document is opened at 100% scale or is manually zoomed to 100% scale after being opened
      - All other zoom modes and action still work
      
      {F6341045}
      
      Reviewers: #okular, #vdg, abetts
      
      Reviewed By: #vdg, abetts
      
      Subscribers: davidhurka, sander, tobiasdeiminger, veqz, abetts, aacid, okular-devel
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D16345
      33ca396d
  14. 26 Jun, 2018 1 commit
    • Michael Eden's avatar
      Expose 'change colors' through dbus interface · 031b794e
      Michael Eden authored
      Summary:
      This exposes the Okular's functionality of changing the document's colors
      through its d-bus interface. This is mainly useful for scripting Okular to
      switch to a 'day mode' or 'night mode'.
      
      [Example] Switching themes of two applications with one hotkey:
      
      {F5905771}
      
      Reviewers: #okular, aacid
      
      Reviewed By: #okular, aacid
      
      Subscribers: okular-devel
      
      Tags: #okular
      
      Differential Revision: https://phabricator.kde.org/D13471
      031b794e
  15. 16 Nov, 2017 1 commit
  16. 26 Oct, 2017 1 commit
    • Albert Astals Cid's avatar
      Implement swapBackingFile for the PDF backend · ca5422d0
      Albert Astals Cid authored
      How does it work:
       * What it does is really closing and opening the file again through poppler
       * This means that things that are generated in "open" time like Page, Rects, Annotations, Forms need to be updated
      	* For Page what we do is swap the PagePrivate so that other classes that hold Page* don't break
      		* Since some parts of the PagePrivate can be reused, we move them in PagePrivate::adoptGeneratedContents
      	* For all the commands in the undo stack we need to update the annotations/forms it refers to, added a new function to do that
      	* The annotationmodel needs updating it's pointers
      	* The widgets for the forms are reused and their form* updated
      	* the widgets for the videos are recreased since videos don't really hold much content (you lose the playing status on save but i think that's acceptable)
      
      TODO: Make this work for .okular files
      TODO: For files with password we will need to reload the file, asking for the password again and thus losing the undo stack, warn the user
      TODO: autotests
      ca5422d0
  17. 14 Oct, 2017 1 commit
    • Lukas Hetzenecker's avatar
      HiDPI Support for Okular · ecc1141e
      Lukas Hetzenecker authored
      Summary:
      This patch enables HiDPI throughout the application
      
      Every pixmap is multiplied by the devicePixelRatioF
      QPainter code is ajusted to take the DPR value into account
      
      All pixmaps get cached with the highest DPR of all screens. When moving the application to another screen, the cache doesn't have to be invalidated.
      
      BUGS: 362856 383589
      REVIEW: D6268
      ecc1141e
  18. 11 Oct, 2017 1 commit
  19. 02 Mar, 2017 1 commit
  20. 15 Oct, 2016 1 commit
  21. 01 Oct, 2016 1 commit
  22. 11 Jul, 2016 2 commits
  23. 27 Aug, 2015 1 commit
    • Jake Linder's avatar
      Add "Trim To Selection" feature · 172d78c6
      Jake Linder authored
      Changes
      
      C1. Added submenu, moved "Trim margins" (TM mode) to it and added  "Trim To Selection" (TS mode).
      C2. Activating "Trim To selection" enters a new mousemode, similar to RectSelect for defining a viewport.
      C3. Once a viewport has been defined, it serves as a viewport for all pages in the document.
      C4. Left/Right pages are not treated differently.
      
      Manual Testing
      
      T1. Switching between modes enforces at most one active.
      T2. Can deactivate a mode by selecting it again from the menu.
      T3. When draggin bbox selection, clicking outside page does not crash.
      T4. When in "Facing Pages" mode, mouse release must be over any page (or is ignored).
      T5. Normalized bbox coords are computed relative to page indicated by point of mouse release.
      T6. Behave as expected when switching between any pair of No Trim/Trim Margins/Trim To Selection.
      T7. TM mode persisted across app restarts (existing behavior).
      T8. TS mode forgotten across app restarts (as desired).
      T9. Exiting and reselectin "Trim To Selection" prompts for new bbox.
      T10. Choosing a small Trim bbox enforces minimium dimensions size (As percentag of total), as
      it does in TM mode, because of the "scale big and crop down" implementation, to avoid huge pixmaps.
      TS mode minimum set at 20% (vs. TM mode's 50%).
      
      REVIEW: 124716
      BUGS: 351156
      172d78c6
  24. 03 Aug, 2015 1 commit
  25. 20 Jul, 2015 1 commit
  26. 16 Mar, 2015 1 commit
  27. 23 Feb, 2015 1 commit
  28. 13 Aug, 2014 1 commit
  29. 10 May, 2014 1 commit
    • Luigi Toscano's avatar
      Redirect error and warning signals to a KMessageWidget · 69459e74
      Luigi Toscano authored
      Those two categories are usually longer messages and more
      important, so more fit for a (new) KMessageWidget; simple
      notice signals still go to PageViewMessage into PageView.
      
      A more general review of all the messages should be probably
      performed in order to assign proper categories to them.
      
      Reviewed by: Albert Astal Cid
      69459e74
  30. 05 May, 2014 1 commit
    • Tingnan Zhang's avatar
      Improvements to zoom behaviour · fad9c4e6
      Tingnan Zhang authored
      No need for double digit precision in the UI
      ZoomIn/ZoomOut moves you through the well known steps + fit page, fit width; if you need any other you can always write it manually or use MMB zoom
      BUGS: 323434
      BUGS: 323435
      FIXED-IN: 4.14.0
      REVIEW: 112370
      fad9c4e6
  31. 09 Apr, 2014 1 commit
  32. 24 Feb, 2014 1 commit
  33. 27 Oct, 2013 1 commit
  34. 26 Oct, 2013 1 commit
    • Ciro Santilli's avatar
      Add an action to toggle Change Colors · afc74e76
      Ciro Santilli authored
      This has the exact same behaviour of clicking the toolbox Settigs > Configure Okular > Accessibility > Change colors and then clicking Ok, therefore changing the saved configs.
      
      BUGS: 173264
      FIXED-IN: 4.12.0
      afc74e76
  35. 18 Aug, 2013 1 commit
  36. 23 Jun, 2013 1 commit
  37. 03 Jun, 2013 1 commit
    • Jon Mease's avatar
      Undo support for PDF forms · b7ce9114
      Jon Mease authored
      Together with the already commited support for undo in annotations fixes 177501
      BUGS: 177501
      REVIEW: 110589
      FIXED-IN: 4.11.0
      b7ce9114
  38. 28 May, 2013 1 commit
  39. 14 Mar, 2013 1 commit