viewer: Add overlay stack and MoveScaleOverlay

Desktop / GNOME / PiTiVi - Lubosz Sarnecki [collabora.co.uk] - 7 April 2016 07:39 EDT

Differential Revision: https://phabricator.freedesktop.org/D724

Review changes:

viewer: reorder imports clipproperties: Update overlays and selection

movescaleoverlay:

- make python < 3.5 compatible by not joining dicts
- remove redundancy
- replace handle index strings by enums.
- refactor handle index usage
- do not unpack partial function values for python < 3.5
- do not use enum class for python < 3.4
- rename Handle.name to Handle.placement.

overlaystack:

- reorder imports
- change remaining np imports to numpy
- make class members uppercase and called by Class. instead of self.
- Add better comments
- Fix bug where cursor did not reset when releasing the mouse button outside of the viewer.
- Do not shadow python buildin "type" in set_cursor()

82533c1 viewer: Add overlay stack and MoveScaleOverlay.
pitivi/clipproperties.py | 2 +
pitivi/viewer/move_scale_overlay.py | 527 +++++++++++++++++++++++++++++++++++
pitivi/viewer/overlay.py | 74 +++++
pitivi/viewer/overlay_stack.py | 154 ++++++++++
pitivi/viewer/viewer.py | 144 +---------
5 files changed, 765 insertions(+), 136 deletions(-)

Upstream: git.gnome.org


  • Share