summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2016-12-24 14:46:02 +0000
committerV3n3RiX <venerix@redcorelinux.org>2016-12-24 14:46:02 +0000
commit0a9c0ed6afb4489d63c59226323fb2a15bc5a70c (patch)
tree356db8efe8e0aaf329fc8df160a84c6e42afabdf
parentc39289cfef73a2a595d0cc56885f2e1cac544b8a (diff)
connect system user interface to main user interface
-rwxr-xr-xlibsisyphus.sh2
-rwxr-xr-xsystemui.sh28
2 files changed, 30 insertions, 0 deletions
diff --git a/libsisyphus.sh b/libsisyphus.sh
index ff3cb1d..38b7bd4 100755
--- a/libsisyphus.sh
+++ b/libsisyphus.sh
@@ -84,6 +84,8 @@ export local mainui='
</button>
<button tooltip-text="System Tools">
<label>System Tools</label>
+ <action signal="button-press-event">gtkdialog --space-expand=true --space-fill=true --program=systemui &</action>
+ <action signal="button-release-event">EXIT:ok</action>
</button>
</hbox>
</frame>
diff --git a/systemui.sh b/systemui.sh
index 5fc4fe7..9191eba 100755
--- a/systemui.sh
+++ b/systemui.sh
@@ -4,5 +4,33 @@
export local systemui='
<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 System>
+ <hbox space-expand="true" space-extend="true">
+ <table hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1">
+ <variable>system</variable>
+ <label>Application Category|Application Name|Application Description</label>
+ <item>sys-boot|unetbootin-static|Universal Netboot Installer creates Live USB systems for various OS distributions</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 $system|$showdialog</action>
+ </button>
+ <button space-expand="true" space-extend="true" label-text="uninstall">
+ <label>Uninstall package</label>
+ <action>epkg autoremove $system|$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>'