summaryrefslogtreecommitdiff
path: root/multimediaui.sh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2016-12-24 13:54:04 +0000
committerV3n3RiX <venerix@redcorelinux.org>2016-12-24 13:54:04 +0000
commite29bad9d89695116525de1afd362ff23a9ae77a5 (patch)
treede3f9346645f64c8090e26c9464d949937aec144 /multimediaui.sh
parent1464e6b615b555d66be18abf119032e5c0d38eaa (diff)
modularize user interfaces
Diffstat (limited to 'multimediaui.sh')
-rwxr-xr-xmultimediaui.sh37
1 files changed, 37 insertions, 0 deletions
diff --git a/multimediaui.sh b/multimediaui.sh
new file mode 100755
index 0000000..dc59493
--- /dev/null
+++ b/multimediaui.sh
@@ -0,0 +1,37 @@
+#!/usr/bin/env bash
+
+# create multimedia user interface
+export local multimediaui='
+<window title="Sisyphus - A simple Epkg GUI" window-position="1" icon-name="gtk-search" modal="true" resizable="false" width-request="800" height-request="600">
+<vbox>
+<frame Multimedia>
+ <hbox space-expand="true" space-extend="true">
+ <table hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1">
+ <variable>multimedia</variable>
+ <label>Application Category|Application Name|Application Description</label>
+ <item>media-tv|tv-maxe|Program to view free channels</item>
+ </table>
+ </hbox>
+ <hbox space-expand="false" space-extend="false">
+ <button space-expand="true" space-extend="true" label-text="install">
+ <label>Install package</label>
+ <action>epkg autoinstall $multimedia|$showdialog</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="uninstall">
+ <label>Uninstall package</label>
+ <action>epkg autoremove $multimedia|$showdialog</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="home">
+ <label>Back home</label>
+ <action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=mainui &</action>
+ <action signal="button-release-event">EXIT:ok</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="exit">
+ <label>Exit</label>
+ <action>EXIT:ok</action>
+ </button>
+ </hbox>
+</frame>
+
+</vbox>
+</window>'