From 00e139908f3f4d786d1f6c20d1de27d2260bfed2 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Mon, 22 Jun 2015 22:35:18 +0200 Subject: Configure Toolbar --- voctogui/lib/ui.py | 18 +++++++++++++ voctogui/ui/stream-live.svg | 63 +++++++++++++++++++++++++++++++++++++++++++++ voctogui/ui/voctogui.ui | 43 ++++++++++++++++++++++++------- 3 files changed, 114 insertions(+), 10 deletions(-) create mode 100644 voctogui/ui/stream-live.svg (limited to 'voctogui') diff --git a/voctogui/lib/ui.py b/voctogui/lib/ui.py index c8ae1c5..73faca7 100644 --- a/voctogui/lib/ui.py +++ b/voctogui/lib/ui.py @@ -26,6 +26,7 @@ class Ui(UiBuilder): self.configure_video_main() self.configure_video_previews() self.configure_audio_selector() + self.configure_streamblank_selector() def configure_video_main(self): self.log.info('Initializing Main Video and Main Audio-Level View') @@ -109,6 +110,23 @@ class Ui(UiBuilder): combo.set_active_id('moofar') + def configure_streamblank_selector(self): + livebtn = self.get_check_widget('stream_live') + blankbtn = self.get_check_widget('stream_blank') + toolbar = blankbtn.get_parent() + pos = toolbar.get_item_index(blankbtn) + + for idx, name in enumerate(['pause', 'nostream']): + if idx == 0: + new_btn = blankbtn + else: + new_icon = Gtk.Image.new_from_pixbuf(blankbtn.get_icon_widget().get_pixbuf()) + new_btn = Gtk.RadioToolButton(group=livebtn) + new_btn.set_icon_widget(new_icon) + toolbar.insert(new_btn, pos+1) + + new_btn.set_label("Stream %s" % name) + def show(self): self.log.info('Running Video-Playback Pipelines') diff --git a/voctogui/ui/stream-live.svg b/voctogui/ui/stream-live.svg new file mode 100644 index 0000000..6f16a60 --- /dev/null +++ b/voctogui/ui/stream-live.svg @@ -0,0 +1,63 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/voctogui/ui/voctogui.ui b/voctogui/ui/voctogui.ui index 4fb75f5..fc4ddc7 100644 --- a/voctogui/ui/voctogui.ui +++ b/voctogui/ui/voctogui.ui @@ -2,11 +2,6 @@ - - True - False - blank-stream.svg - True False @@ -27,6 +22,16 @@ False composite-side-by-side-preview.svg + + True + False + blank-stream.svg + + + True + False + stream-live.svg + @@ -58,7 +63,7 @@ True both - + True False Fullscreen @@ -72,12 +77,13 @@ - + True False Picture in Picture True img-composite-picture-in-picture + composite-fullscreen @@ -86,12 +92,13 @@ - + True False Side-by-side Equal True img-composite-side-by-side-equal + composite-fullscreen @@ -100,12 +107,13 @@ - + True False Side-by-side Preview True img-composite-side-by-side-preview + composite-fullscreen @@ -124,12 +132,27 @@ - + + True + False + Stream Live + True + img-stream-live + True + + + False + True + + + + True False Blank Stream True img-blank-stream + stream_live False -- cgit v1.2.3