summaryrefslogtreecommitdiff
path: root/ui/officeui.sh
blob: e6273389da5f9bc6806ab00f7ffa96c9b91cb721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash

# create office user interface
export local officeui='
<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 Office>
	<hbox space-expand="true" space-extend="true">
		<tree hscrollbar-policy="1" vscrollbar-policy="1" exported-column="1" selection-mode="3">
			<variable>office</variable>
			<label>Application Category|Application Name|Application Description</label>
			<item>app-office|abiword|Fully featured yet light and fast cross platform word processor documentation</item>
			<item>app-office|fet|Opensource school/high-school/university timetable scheduling software</item>
			<item>app-office|gnucash|A personal finance manager</item>
			<item>app-office|libreoffice|A full office productivity suite</item>
			<item>app-office|wps-office|WPS Office is an office productivity suite</item>
			<item>app-text|qpdfview|A tabbed document viewer</item>
		</tree>
	</hbox>
	<hbox space-expand="false" space-extend="false">
		<button space-expand="true" space-extend="true" tooltip-text="Install package(s)">
			<label>Install package(s)</label>
			<action>epkg autoinstall $office|$sisyphusprogress &</action>
		</button>
		<button space-expand="true" space-extend="true" tooltip-text="Uninstall package(s)">
			<label>Uninstall package(s)</label>
			<action>epkg autoremove $office|$sisyphusprogress &</action>
		</button>
		<button space-expand="true" space-extend="true" tooltip-text="Clean orphan package(s)">
			<label>Clean orphan package(s)</label>
			<action>epkg autoclean|$sisyphusprogress &</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>'