1. 21 Mar, 2019 1 commit
  2. 20 Feb, 2019 1 commit
  3. 18 Feb, 2019 1 commit
  4. 02 Oct, 2018 2 commits
  5. 31 Jul, 2018 1 commit
  6. 25 Jul, 2018 1 commit
  7. 19 Jul, 2018 1 commit
  8. 18 Jul, 2018 2 commits
  9. 14 Mar, 2018 1 commit
  10. 19 Feb, 2018 1 commit
  11. 27 Nov, 2017 2 commits
  12. 21 Nov, 2017 1 commit
  13. 13 Nov, 2017 1 commit
  14. 09 Apr, 2017 1 commit
    • Craig Watson's avatar
      Fixed PDF export page size · 716314fe
      Craig Watson authored
      In some cases, export of a document containing a PDF background to PDF
      caused the contents to be truncated.
      
      The "simple" PDF exporter will now set the output page size to be equal
      either to the document nominal size or, if the document has a background
      PDF item, to the size of this item.
      716314fe
  15. 04 Feb, 2017 1 commit
  16. 25 Jan, 2017 2 commits
  17. 22 Jan, 2017 1 commit
  18. 15 Jan, 2017 1 commit
  19. 08 Jan, 2017 2 commits
    • 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
    • Craig Watson's avatar
  20. 06 Nov, 2016 1 commit
    • Craig Watson's avatar
      Fix saving of polygons' fill rule · 8365f2f7
      Craig Watson authored
      Up until now, the fill rule of a polygon was always saved as even-odd,
      despite the fact that in most if not all cases, polygons are drawn with
      winding fill within OpenBoard.
      Saving is now fixed, but there is no way to know upon loading whether
      the polygon was correctly saved or whether; so for now, we just set the
      fill rule to Winding when loading a polygon.
      8365f2f7
  21. 10 Sep, 2016 1 commit
  22. 03 Sep, 2016 1 commit
  23. 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
  24. 27 Jun, 2016 1 commit
    • Craig Watson's avatar
      Fixes to import and export of files containing PDFs · 3abf154d
      Craig Watson authored
      The scale of PDF items was sometimes badly calculated when opening a
      document made with a previous version of OpenBoard or made on another
      computer.
      
      Specifically, this solves the following issues:
      
      - PDF scale calculation in documents that did not specify the pageDPI
      used to render the PDF (happened with documents created with some old
      versions of OpenBoard)
      
      - PDF scale calculation in multi-page documents (it was set correctly
      for the first page, but not the following ones)
      3abf154d
  25. 22 Jun, 2016 2 commits
    • 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
    • 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
  26. 13 May, 2016 1 commit
  27. 26 Apr, 2016 1 commit
  28. 25 Apr, 2016 2 commits
  29. 20 Apr, 2016 1 commit
  30. 21 Mar, 2016 1 commit
  31. 15 Mar, 2016 2 commits
  32. 08 Mar, 2016 1 commit
    • Craig Watson's avatar
      Save metadata.rdf less often · 11b9bf74
      Craig Watson authored
      The documents' metadata.rdf file is now persisted only when a scene in
      the document is also persisted; as well as when the document is modified
      (trashed / path changed) in the the Documents pane.
      
      Code was cleaned-up a bit too (added a forgotten return value, etc)
      11b9bf74