1. 14 May, 2017 1 commit
    • Craig Watson's avatar
      Document mode: improved doc. selection after deleting documents · 425129ff
      Craig Watson authored
      This mainly changes document mode behaviour in two ways:
      1) When deleting 2+ items, a new document was selected in the list. Now, the current document is selected,
      or if it has been deleted, a the first document in the list is set as
      current document.
      
      2) When deleting the last item in the trash, no document was selected.
      Now, the current document is selected instead.
      425129ff
  2. 30 Apr, 2017 3 commits
    • Marco Ciampa's avatar
      Updated Italian translation · 750de4db
      Marco Ciampa authored
      Credit: ciampix
      750de4db
    • Craig Watson's avatar
      Bumped version to 1.3.6-b.1 · 7b4b59c3
      Craig Watson authored
      7b4b59c3
    • 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
  3. 24 Apr, 2017 1 commit
  4. 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
  5. 09 Apr, 2017 2 commits
    • 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
    • Craig Watson's avatar
      Added sceneSize function to UBGraphicsScene · b7f5cc27
      Craig Watson authored
      b7f5cc27
  6. 11 Mar, 2017 6 commits
  7. 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
  8. 25 Feb, 2017 1 commit
  9. 22 Feb, 2017 1 commit
  10. 18 Feb, 2017 1 commit
    • Craig Watson's avatar
      Smaller Triangle tool · 8d9fc7b0
      Craig Watson authored
      Added checks for the size of the interior, cut-out triangle to make sure
      everything is drawn correctly at small sizes; buttons are now also
      hidden if they overflow from the tool.
      8d9fc7b0
  11. 12 Feb, 2017 2 commits
  12. 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
  13. 04 Feb, 2017 1 commit
  14. 01 Feb, 2017 1 commit
  15. 28 Jan, 2017 2 commits
  16. 25 Jan, 2017 4 commits
  17. 22 Jan, 2017 1 commit
  18. 16 Jan, 2017 1 commit
  19. 15 Jan, 2017 3 commits
  20. 14 Jan, 2017 3 commits
  21. 08 Jan, 2017 3 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
      When loading a scene that is about to be deleted, don't cache the previous and next scenes. · 4cff8473
      Craig Watson authored
      This prevents crashes that may occur when deleting multiple pages from a document.
      4cff8473
    • Craig Watson's avatar