1. 02 Oct, 2018 1 commit
  2. 20 Dec, 2017 2 commits
  3. 19 Dec, 2017 2 commits
  4. 11 Dec, 2017 1 commit
  5. 06 Dec, 2017 2 commits
  6. 21 Nov, 2017 2 commits
  7. 13 Nov, 2017 2 commits
  8. 03 Nov, 2017 1 commit
  9. 10 Oct, 2017 4 commits
  10. 25 Sep, 2017 1 commit
  11. 24 Sep, 2017 1 commit
  12. 23 Sep, 2017 1 commit
  13. 17 Sep, 2017 2 commits
  14. 09 Sep, 2017 2 commits
    • Craig Watson's avatar
      Moved bezier calculations to UBGeometryUtils · 1a075c05
      Craig Watson authored
      -> also deleted obsolete UBInterpolator classes
      1a075c05
    • Craig Watson's avatar
      Improved drawing of end of current stroke · 123ebf1d
      Craig Watson authored
      Distance between the last drawn point and the current point is
      calculated to be able to discard very short stroke segments (i.e we only
      add to the current stroke if the input device has moved more than a
      certain distance since the last drawn point).
      
      This commit moves this code from the stroke to the scene, which allows
      to calculate distance more accurately: it is now calculated as the
      total, absolute distance traveled since the last point, rather than simply the
      length of a line between the last point and current one.
      123ebf1d
  15. 29 May, 2017 1 commit
    • Craig Watson's avatar
      Save one-polygon strokes as polygons, not polylines · c7951401
      Craig Watson authored
      This solves an issue where erasing a stroke to the point that only one
      (truncated) polygon was left resulted in this polygon reappearing after
      reloading the document.
      
      This should not affect any strokes containing more than one polygon.
      c7951401
  16. 28 May, 2017 1 commit
  17. 15 May, 2017 1 commit
    • Craig Watson's avatar
      Fix saving of strokes that were partially erased · bec0dc00
      Craig Watson authored
      This ensures that when part of a line is erased,
      `UBGraphicsStroke::isNominalLine` will no longer return true. This was
      problematic as `UBSvgSubsetAdaptor` uses this to know whether or not to
      save a stroke as polyline.
      If it saves the stroke as a polyline, then the erased portions of the stroke
      reappear after saving.
      
      Therefore, we now force saving of the stroke as a group of polygons when it
      has been partially erased.
      bec0dc00
  18. 30 Apr, 2017 2 commits
    • Craig Watson's avatar
      881a1d50
    • Craig Watson's avatar
      Fix for video-related crashing on Windows · 5416e6d8
      Craig Watson authored
      Issue observed was that OpenBoard would crash on some Windows systems
      when a video was on the page and that page was saved (due to switching
      to document mode, auto saving, or duplicating the page), or when cutting
      the video with Ctrl-X.
      
      This was due to QTBUG-32522, where setting the video output for a
      QMediaPlayer that is hidden results in a crash.
      
      This commit is a work-around for this Qt issue, and so should be reverted
      if and when the upstream issue is fixed.
      5416e6d8
  19. 23 Apr, 2017 1 commit
    • Craig Watson's avatar
      Fix for copy/paste issues · fc81e27b
      Craig Watson authored
      This fixes two related issues:
      1) When taking a partial screenshot of the desktop, then copying it
      (Ctrl-C) and pasting it in a new document, it was not saved
      2) When a page of one document was copied into another (in document
      mode, by dragging the page onto another document), media files
      disappeared from the new page.
      fc81e27b
  20. 09 Apr, 2017 1 commit
  21. 11 Mar, 2017 2 commits
  22. 05 Mar, 2017 2 commits
  23. 27 Feb, 2017 1 commit
    • Craig Watson's avatar
      Don't move a selection containing locked items · 6ff78892
      Craig Watson authored
      Fixes an issue where locked items could be moved if they were selected
      along with other items, and these items all moved by dragging the
      selection frame.
      
      This implementation prevents any movement of the selected items if at
      least one of them is locked. It also changes the colour of the selection
      frame, like a locked UBGraphicsDelegateFrame.
      6ff78892
  24. 11 Feb, 2017 1 commit
    • Craig Watson's avatar
      Fix saving of groups' positions · 14849cf5
      Craig Watson authored
      Previously, only transforms were saved -- not positions (which are set
      if a group is moved by dragging it directly; if dragged by its frame,
      its transform is updated instead).
      
      Issue observed was that a group that had been moved would lose its new
      position when the document was saved then loaded. (All other transforms
      were kept, however).
      
      Now, when duplicating a group before saving a document, position is
      included in the group's transform.
      14849cf5
  25. 28 Jan, 2017 2 commits
  26. 25 Jan, 2017 1 commit
    • Craig Watson's avatar
      When scaling text, first round the scaling factor... · 86e2bf93
      Craig Watson authored
      ... to the nearest 2 decimal places. This fixes a bug where upon loading
      a text item, it could be scaled by e.g 0.999999, which would eventually
      round down the point size by 1pt. Making the text item shrink by 1pt
      every time the document was opened.
      86e2bf93