Enable/Disable Clips
This fixes #19
Following @jminor's suggestion in https://github.com/OpenTimelineIO/raven/pull/27#issuecomment-1879117563, I've been able to use an ImGui::Checkbox() while keeping Item::_enabled private.
Clips will be greyed out when disabled. Re-enabling clips will return them to their original color. Tracks can be enabled/disabled, but this PR does not include UI changes to distinguish enabled from disabled Tracks.
Summary of changes
timeline.cpp:
- In
DrawItem(), added conditional greying out on disabled clips - Disabled non-Gap items have a grey
fill_color- Obtained by by using
UIColorFromName("")to getIM_COL32(0x88, 0x88, 0x88, 0xff)
- Obtained by by using
inspector.cpp:
- Added an "Enabled" checkbox for non-Gap items (Tracks and Clips) using
ImGui::Checkbox():
Below is a quick demo of enabling/disabling clips
Strech Goal (Greying of entire tracks):
I'm holding off on this stretch goal as I'm not entirely clear on the desired behaviour, such as whether to grey out the just Track header or the Track header plus every clip the Track contains. I'd be willing to work on this in a follow-up Issue, if it's alright with the team.
Thank you for your patience with this feature and for considering these changes.
- :x: - login: @rjwignar / name: Roy J. Wignarajah . The commit (5bb59f2154141c9754611e32d50bd6f371c11628, 2c2aec2ebefb1977983d48f888c9dd7eec2da4ce) is not authorized under a signed CLA. Please click here to be authorized. For further assistance with EasyCLA, please submit a support request ticket.
Thanks @rjwignar - sorry for overlooking this PR for so long. Your change looks good to me. Are you able/willing to sign the CLA and update the DCO so those checks pass?
@rjwignar it would be lovely to get your change merged. If you find some time, please look into the CLA / DCO.