1. 02 Oct, 2018 1 commit
  2. 08 Jan, 2017 1 commit
    • Craig Watson's avatar
      Adjust text item size upon loading to account for platform-to-platform variability · ae380e4e
      Craig Watson authored
      The same font, in the same point size, can be displayed differently
      depending on platform (this is a Qt limitation). This can lead to text
      items being the wrong size when importing a document created on a
      different computer.
      
      As a workaround, when saving a text item to SVG, the size of 1pt in
      pixels is calculated and saved. Upon loading, this value is calculated
      again and, if it is different from the saved value, the text item is
      scaled accordingly.
      
      Thus, any document created from this version onward will have
      correctly-scaled text boxes. If an old document (not containing a
      pixel-per-point attribute for text items) is loaded, the scene is marked
      as modified to make sure that all text items are then saved with the
      pixels-per-point value (even if the document is not edited). This allows
      old documents to be "fixed" by simply opening them once from a new
      version of OpenBoard.
      
      save text item font size in pixels, and scale it on load
      
      fixed loading of text item pixel height
      
      Save and load pixels-per-point rather than text pixel height
      
      Upon loading a text item from SVG, make sure that it will be saved with a pixel-per-point value
      ae380e4e
  3. 22 Jun, 2016 1 commit
    • Craig Watson's avatar
      Document's pageDpi is now stored in UBDocumentProxy rather than in UBSettings · 3995d007
      Craig Watson authored
      This fixes an issue where if one document was imported with a different
      DPI than the current one, any document created thereafter would have
      this same value (which could then cause problems if a PDF was added to
      that new document).
      
      Saving this value to UBDocumentProxy not only makes more sense, it also
      fixes this issue.
      3995d007
  4. 13 May, 2016 1 commit
  5. 26 Apr, 2016 1 commit
  6. 01 Mar, 2016 1 commit
    • 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
  7. 23 Dec, 2015 1 commit
  8. 05 Nov, 2015 1 commit
  9. 13 Feb, 2014 1 commit
  10. 12 Feb, 2014 1 commit
  11. 14 Aug, 2013 1 commit
  12. 24 May, 2013 1 commit
  13. 15 May, 2013 1 commit
  14. 29 Apr, 2013 1 commit
  15. 12 Apr, 2013 1 commit
  16. 28 Feb, 2013 1 commit
  17. 27 Feb, 2013 1 commit
  18. 25 Feb, 2013 1 commit
  19. 27 Sep, 2012 1 commit
  20. 27 Aug, 2012 1 commit
  21. 09 Jul, 2012 1 commit
  22. 29 May, 2012 1 commit
  23. 22 May, 2012 1 commit
  24. 11 May, 2012 2 commits
  25. 09 May, 2012 1 commit
  26. 07 May, 2012 1 commit
  27. 04 May, 2012 1 commit
  28. 05 Apr, 2012 1 commit
  29. 29 Mar, 2012 1 commit
  30. 01 Mar, 2012 1 commit
  31. 09 Feb, 2012 1 commit
  32. 28 Nov, 2011 1 commit
  33. 21 Nov, 2011 1 commit
  34. 29 Aug, 2011 1 commit
  35. 25 Aug, 2011 1 commit
  36. 02 Aug, 2011 1 commit
  37. 29 Jun, 2011 1 commit
  38. 19 Apr, 2011 1 commit