Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

General: Event system #3499

Merged
merged 5 commits into from
Jul 13, 2022
Merged

General: Event system #3499

merged 5 commits into from
Jul 13, 2022

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Jul 12, 2022

Brief description

It is possible to create independent event systems with own callback and topics.

Description

This is small change related to current event system which works only in global scope but in some cases it would be helpful to have independent event system from global scope. For example in tools which are not based on Qt signals which is not usefull all cases especially when their controller should be Qt independent.

Additional information

For example new publisher already has it's own implementation of independent event system but it's not nice to read or maintain as most of the logic is related to handling references to callbacks. This would make the controller much cleaner.

Note

Event system is not used anywhere because this change should be properly tested before it's used so we don't break current usages.

Testing notes:

Event callbacks should work as they did.

  • for example taskChanged from workfiles tool should be captured in hosts (e.g. Maya or Nuke) and frame start/end should be updated to new context (and timer on ftrack should change to new context too)

@iLLiCiTiT iLLiCiTiT self-assigned this Jul 12, 2022
@iLLiCiTiT iLLiCiTiT added the type: enhancement Enhancements to existing functionality label Jul 12, 2022
@iLLiCiTiT iLLiCiTiT marked this pull request as ready for review July 13, 2022 07:41
Copy link
Member

@jakubjezek001 jakubjezek001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in Nuke by context change in workfiles and Ftrack tracking had switched, the nuke context too.

@iLLiCiTiT iLLiCiTiT merged commit 8e35f84 into develop Jul 13, 2022
@iLLiCiTiT iLLiCiTiT deleted the feature/event_system branch July 13, 2022 15:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants