From cb42a9ad193179c527b44eccd3ca3ac59d573386 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 28 Feb 2017 15:10:39 +0100 Subject: Add composition Matrix Two-by-two. --- voctogui/lib/shortcuts.py | 3 +- voctogui/lib/toolbar/composition.py | 3 +- voctogui/ui/composite-matrix-two-by-two.svg | 95 +++++++++++++++++++++++++++++ voctogui/ui/voctogui.ui | 19 ++++++ 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 voctogui/ui/composite-matrix-two-by-two.svg (limited to 'voctogui') diff --git a/voctogui/lib/shortcuts.py b/voctogui/lib/shortcuts.py index d5fbc91..5ad2bbf 100644 --- a/voctogui/lib/shortcuts.py +++ b/voctogui/lib/shortcuts.py @@ -25,7 +25,8 @@ if hasattr(Gtk, "ShortcutsWindow"): for accel, desc in [("F1", "Select fullscreen mode"), ("F2", "Select Picture in Picture mode"), ("F3", "Select Side-by-Side Equal mode"), - ("F4", "Select Side-by-Side Preview mode")]: + ("F4", "Select Side-by-Side Preview mode"), + ("F5", "Select Matrix Two-by-two mode")]: short = Gtk.ShortcutsShortcut(title=desc, accelerator=accel) short.show() compose_group.add(short) diff --git a/voctogui/lib/toolbar/composition.py b/voctogui/lib/toolbar/composition.py index b55254a..3cf5797 100644 --- a/voctogui/lib/toolbar/composition.py +++ b/voctogui/lib/toolbar/composition.py @@ -17,7 +17,8 @@ class CompositionToolbarController(object): 'fullscreen', 'picture_in_picture', 'side_by_side_equal', - 'side_by_side_preview' + 'side_by_side_preview', + 'matrix_two_by_two' ] self.composite_btns = {} diff --git a/voctogui/ui/composite-matrix-two-by-two.svg b/voctogui/ui/composite-matrix-two-by-two.svg new file mode 100644 index 0000000..2086be2 --- /dev/null +++ b/voctogui/ui/composite-matrix-two-by-two.svg @@ -0,0 +1,95 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + diff --git a/voctogui/ui/voctogui.ui b/voctogui/ui/voctogui.ui index 0e0c447..53e3129 100644 --- a/voctogui/ui/voctogui.ui +++ b/voctogui/ui/voctogui.ui @@ -12,6 +12,11 @@ False composite-fullscreen.svg + + True + False + composite-matrix-two-by-two.svg + True False @@ -102,6 +107,20 @@ True + + + True + False + Matrix Two-by-two + True + img-composite-matrix-two-by-two + composite-fullscreen + + + False + True + + True -- cgit v1.2.3