1. 06 Nov, 2016 1 commit
  2. 16 Oct, 2016 3 commits
  3. 15 Oct, 2016 1 commit
    • Craig Watson's avatar
      Added stroke simplification algorithm · df71f158
      Craig Watson authored
      If enabled in the preferences menu, pen and marker strokes will be
      replaced by a simplified stroke after they are drawn.
      
      The algorithm is very basic (for now): if three points are almost lined
      up (the threshold angle can be specified in the config file), then the
      middle one is removed. This is repeated over the whole stroke; new
      polygons are then generated based on the simplified stroke points.
      
      This typically cuts down on number of points and polygons by a factor of
      about 10, while having minimal visual impact.
      df71f158
  4. 24 Sep, 2016 1 commit
  5. 03 Sep, 2016 1 commit
  6. 02 Sep, 2016 1 commit
    • Craig Watson's avatar
      User-resizable background grid: · 081dbee1
      Craig Watson authored
      - The background selection palette now includes a slider to change the
      size of the background grid. Default min/max values are 16 and 64px,
      defined in UBSettings. Grid resizes dynamically as the slider is moved.
      - Measuring tools' (ruler, triangle) markers follow grid size: 1 square
      of the background grid corresponds to 1cm
      - Grid size can be different for each page of a document
      - Grid size is saved in the .svg
      - Documents with a background grid but no specified grid size follow the
      default size defined in UBSettings.
      
      Previously, grid size was calculated based on DPI, which can vary from
      one OS, computer or display to the next. This new setting allows
      documents to be migrated from one machine to another with no unexpected
      changes in grid size happening. It also makes it easy to correct any
      problems importing old documents (whose grid size might be smaller or
      larger than expected when imported on a new version of OpenBoard).
      081dbee1
  7. 22 Jun, 2016 1 commit
    • Craig Watson's avatar
      Fix PDF export of documents containing both PDFs and tools · b323f2f9
      Craig Watson authored
      In some cases, the PDF background of a document could be scaled badly
      when tools such as the ruler, compass etc. were present on the page.
      
      This happened with PDFs of version <= 1.4, and when the tools were
      outside of / larger than the page.
      b323f2f9
  8. 13 May, 2016 1 commit
  9. 09 May, 2016 5 commits
  10. 09 Mar, 2016 5 commits
  11. 07 Mar, 2016 1 commit
  12. 01 Mar, 2016 2 commits
    • Craig Watson's avatar
      Overhaul of UBGraphicsMediaItem class · fe9affee
      Craig Watson authored
      - Removed inheritance of UBGraphicsProxyWidget; cleaned up related code
      - Added two children classes: UBGraphicsVideoItem and
      UBGraphicsAudioItem. UBGraphicsMediaItem is now an abstract class.
      - Better encapsulation; the Scene and other external classes no longer
      access the mediaObject directly
      
      There is now less distinction between audio and video items to outside
      code: apart from the UBSvgSubsetAdaptor, there is no need to know
      whether a media item holds a video or audio file. Creation is handled
      through the static function `UBGraphicsMediaItem::createMediaItem(URL,
      parent)`
      fe9affee
    • Craig Watson's avatar
      Corrected a few minor duplication / zValue issues: · 41b538c7
      Craig Watson authored
      - zValue is correctly initialized when duplicating an object
      - Duplicated objects are translated correctly
      41b538c7
  13. 29 Feb, 2016 1 commit
  14. 16 Feb, 2016 1 commit
  15. 11 Dec, 2015 1 commit
    • Craig Watson's avatar
      Fixed duplication of groups · d6503534
      Craig Watson authored
      Previously, duplication did not copy the transformation matrices of group
      members correctly. This made grouped objects move away when saving and
      re-opening a document.
      This should now be fixed.
      d6503534
  16. 09 Dec, 2015 1 commit
  17. 03 Dec, 2015 1 commit
    • Craig Watson's avatar
      Video fixed on OS X · ce521ede
      Craig Watson authored
      QVideoWidget had to be abandoned in favour of QGraphicsVideoItem. This
      is because UBGraphicsMediaItem, i.e the class representing a media
      (audio or video) object on the board, is a QGraphicsProxyWidget, and is
      used to embed a QWidget into the Scene.
      
      With Phonon's video widget, it was possible to embed the video widget in
      this ProxyWidget. This is no longer possible (except on Windows, for
      some reason), so this commit is a workaround, to use a
      QGraphicsVideoItem instead of a QVideoWidget while modifying the rest
      of the class hierarchy as little as possible.
      
      Ultimately, a cleaner solution (not making UBGraphicsMediaItem inherit
      QGraphicsProxyWidget, for example) may be desirable.
      ce521ede
  18. 09 Nov, 2015 1 commit
  19. 06 Nov, 2015 1 commit
  20. 14 Oct, 2014 1 commit
  21. 13 May, 2014 3 commits
  22. 28 Apr, 2014 1 commit
  23. 25 Apr, 2014 1 commit
  24. 16 Apr, 2014 1 commit
  25. 26 Mar, 2014 1 commit
  26. 03 Mar, 2014 1 commit
  27. 28 Feb, 2014 1 commit