Skip to content

Fix incomplete ubdocument#1237

Merged
kaamui merged 6 commits intoOpenBoard-org:devfrom
letsfindaway:fix-incomplete-ubdocument
Mar 10, 2025
Merged

Fix incomplete ubdocument#1237
kaamui merged 6 commits intoOpenBoard-org:devfrom
letsfindaway:fix-incomplete-ubdocument

Conversation

@letsfindaway
Copy link
Copy Markdown
Collaborator

This PR completes the work on UBDocument as far as it addresses the issues described in letsfindaway#208.

Fixing issues with scene duplication

  • emit signals when a scene was duplicated, deleted or moved
  • handle signals in UBBoardController to update selected scene
  • update metadata in UBDocument when it was changed
  • avoid forwarding of mouse event after a UI button was pressed

Fixing issues when selecting pages

  • selection in board mode after using UI button
  • don't change selection in document mode after using UI button
  • don't force loading all thumbnails when selecting range
  • adapt board selection when scenes are inserted/moved/deleted
  • remove duplicate event forwarding in UBDocumentThumbnailsView

Fixing issues in document handling

  • separate selection in Board mode from Document mode
  • sync selection in Board mode with Document mode manipulations
  • save scene before moving
  • display dialog before deleting page(s)
  • inhibit de-selection of page in Board mode

Refactor confirmation dialog

  • use UBDocument when deleting pages in Document mode with the action button
  • don't duplicate confirmation dialog moved to UBDocument

There is also a list of tests passed with this PR.

- emit signals when a scene was duplicated, deleted or moved
- handle signals in UBBoardController to update selected scene
- update metadata in UBDocument when it was changed
- avoid forwarding of mouse event after a UI button was pressed
- use QVector instead of QList
- provides constructor with size argument

Fixes OpenBoard-org#1235, thanks @sebojolais
- selection in board mode after using UI button
- don't change selection in document mode after using UI button
- don't force loading all thumbnails when selecting range
- separate selection in Board mode from Document mode
- sync selection in Board mode with Document mode manipulations
- save scene before moving
- display dialog before deleting page(s)
- inhibit de-selection of page in Board mode
- adapt board selection when scenes are inserted/moved/deleted
- remove duplicate event forwarding in UBDocumentThumbnailsView
- use UBDocument when deleting pages in Document mode
  with the action button
- don't duplicate confirmation dialog moved to UBDocument
@letsfindaway letsfindaway force-pushed the fix-incomplete-ubdocument branch from 33fb87d to 7d5feb7 Compare March 3, 2025 09:55
@kaamui kaamui merged commit 7f54c8c into OpenBoard-org:dev Mar 10, 2025
@letsfindaway letsfindaway deleted the fix-incomplete-ubdocument branch March 10, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants