From bc02c657543a7d2be99ffbec9d002d698941f56f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 12 Jun 2017 02:41:32 +0100 Subject: merge epkg into sisyphus : from now on sisyphus-cli will be the CLI frontend (old epkg) && sisyphus-gui will be the GUI frontend ;; the backend libsisyphus.sh will be ported to python as well --- frontend/gui/Makefile | 40 ++ frontend/gui/accesories.py | 50 +++ frontend/gui/desktop/sisyphus-gui.desktop | 7 + frontend/gui/desktop/sisyphus-gui.png | Bin 0 -> 74727 bytes frontend/gui/development.py | 50 +++ frontend/gui/everything.py | 61 +++ frontend/gui/games.py | 76 ++++ frontend/gui/graphics.py | 50 +++ frontend/gui/icon/category_accessories.png | Bin 0 -> 10321 bytes frontend/gui/icon/category_all.png | Bin 0 -> 16629 bytes frontend/gui/icon/category_development.png | Bin 0 -> 6675 bytes frontend/gui/icon/category_games.png | Bin 0 -> 3165 bytes frontend/gui/icon/category_graphics.png | Bin 0 -> 31803 bytes frontend/gui/icon/category_internet.png | Bin 0 -> 7535 bytes frontend/gui/icon/category_local.png | Bin 0 -> 5384 bytes frontend/gui/icon/category_multimedia.png | Bin 0 -> 5276 bytes frontend/gui/icon/category_office.png | Bin 0 -> 5638 bytes frontend/gui/icon/category_system.png | Bin 0 -> 9621 bytes frontend/gui/icon/package_install.png | Bin 0 -> 498 bytes frontend/gui/icon/package_search.png | Bin 0 -> 2959 bytes frontend/gui/icon/package_uninstall.png | Bin 0 -> 250 bytes frontend/gui/icon/remove_orphans.png | Bin 0 -> 354 bytes frontend/gui/icon/system_upgrade.png | Bin 0 -> 1089 bytes frontend/gui/icon/window_close.png | Bin 0 -> 971 bytes frontend/gui/icon/window_icon.png | Bin 0 -> 2691 bytes frontend/gui/internet.py | 100 +++++ frontend/gui/local.py | 50 +++ frontend/gui/multimedia.py | 50 +++ frontend/gui/office.py | 84 ++++ frontend/gui/org.redcorelinux.sisyphus-gui.policy | 22 + frontend/gui/sisyphus-gui | 12 + frontend/gui/sisyphus-gui-pkexec | 2 + frontend/gui/sisyphus-gui.py | 106 +++++ frontend/gui/system.py | 50 +++ frontend/gui/ui/accesories.ui | 220 +++++++++ frontend/gui/ui/development.ui | 220 +++++++++ frontend/gui/ui/everything.ui | 220 +++++++++ frontend/gui/ui/games.ui | 220 +++++++++ frontend/gui/ui/graphics.ui | 220 +++++++++ frontend/gui/ui/internet.ui | 220 +++++++++ frontend/gui/ui/local.ui | 217 +++++++++ frontend/gui/ui/multimedia.ui | 220 +++++++++ frontend/gui/ui/office.ui | 220 +++++++++ frontend/gui/ui/sisyphus-gui.ui | 520 ++++++++++++++++++++++ frontend/gui/ui/system.ui | 220 +++++++++ 45 files changed, 3527 insertions(+) create mode 100644 frontend/gui/Makefile create mode 100755 frontend/gui/accesories.py create mode 100755 frontend/gui/desktop/sisyphus-gui.desktop create mode 100644 frontend/gui/desktop/sisyphus-gui.png create mode 100755 frontend/gui/development.py create mode 100755 frontend/gui/everything.py create mode 100755 frontend/gui/games.py create mode 100755 frontend/gui/graphics.py create mode 100644 frontend/gui/icon/category_accessories.png create mode 100644 frontend/gui/icon/category_all.png create mode 100644 frontend/gui/icon/category_development.png create mode 100644 frontend/gui/icon/category_games.png create mode 100644 frontend/gui/icon/category_graphics.png create mode 100644 frontend/gui/icon/category_internet.png create mode 100644 frontend/gui/icon/category_local.png create mode 100644 frontend/gui/icon/category_multimedia.png create mode 100644 frontend/gui/icon/category_office.png create mode 100644 frontend/gui/icon/category_system.png create mode 100644 frontend/gui/icon/package_install.png create mode 100644 frontend/gui/icon/package_search.png create mode 100644 frontend/gui/icon/package_uninstall.png create mode 100644 frontend/gui/icon/remove_orphans.png create mode 100644 frontend/gui/icon/system_upgrade.png create mode 100644 frontend/gui/icon/window_close.png create mode 100644 frontend/gui/icon/window_icon.png create mode 100755 frontend/gui/internet.py create mode 100755 frontend/gui/local.py create mode 100755 frontend/gui/multimedia.py create mode 100755 frontend/gui/office.py create mode 100644 frontend/gui/org.redcorelinux.sisyphus-gui.policy create mode 100755 frontend/gui/sisyphus-gui create mode 100755 frontend/gui/sisyphus-gui-pkexec create mode 100755 frontend/gui/sisyphus-gui.py create mode 100755 frontend/gui/system.py create mode 100644 frontend/gui/ui/accesories.ui create mode 100644 frontend/gui/ui/development.ui create mode 100644 frontend/gui/ui/everything.ui create mode 100644 frontend/gui/ui/games.ui create mode 100644 frontend/gui/ui/graphics.ui create mode 100644 frontend/gui/ui/internet.ui create mode 100644 frontend/gui/ui/local.ui create mode 100644 frontend/gui/ui/multimedia.ui create mode 100644 frontend/gui/ui/office.ui create mode 100644 frontend/gui/ui/sisyphus-gui.ui create mode 100644 frontend/gui/ui/system.ui (limited to 'frontend/gui') diff --git a/frontend/gui/Makefile b/frontend/gui/Makefile new file mode 100644 index 0000000..67236e1 --- /dev/null +++ b/frontend/gui/Makefile @@ -0,0 +1,40 @@ +SUBDIRS = +DESTDIR = +UBINDIR ?= /usr/bin +DESKTOPDIR ?= /usr/share/applications +PIXMAPDIR ?= /usr/share/pixmaps +SISYPHUSDATADIR ?= /usr/share/sisyphus-gui +POLKITDIR ?= /usr/share/polkit-1/actions + +all: + for d in $(SUBDIRS); do $(MAKE) -C $$d; done + +clean: + for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done + +install: + for d in $(SUBDIRS); do $(MAKE) -C $$d install; done + + install -d $(DESTDIR)$(UBINDIR) + install -m 0755 sisyphus-gui $(DESTDIR)$(UBINDIR)/ + install -m 0755 sisyphus-gui-pkexec $(DESTDIR)$(UBINDIR)/ + install -d $(DESTDIR)$(SISYPHUSDATADIR) + install -d $(DESTDIR)$(SISYPHUSDATADIR)/icon + install -d $(DESTDIR)$(SISYPHUSDATADIR)/ui + install -m 0755 *.py $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/* $(DESTDIR)$(SISYPHUSDATADIR)/icon/ + install -m 0755 ui/* $(DESTDIR)$(SISYPHUSDATADIR)/ui/ + install -d $(DESTDIR)$(DESKTOPDIR) + install -m 0755 desktop/sisyphus-gui.desktop $(DESTDIR)$(DESKTOPDIR)/ + install -d $(DESTDIR)$(PIXMAPDIR) + install -m 0644 desktop/sisyphus-gui.png $(DESTDIR)$(PIXMAPDIR) + install -d $(DESTDIR)$(POLKITDIR) + install -m 0644 org.redcorelinux.sisyphus-gui.policy $(DESTDIR)$(POLKITDIR)/ + +uninstall: + rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-gui + rm -rf $(DESTDIR)$(UBINDIR)/sisyphus-gui-pkexec + rm -rf $(DESTDIR)$(DESKTOPDIR)/sisyphus-gui.desktop + rm -rf $(DESTDIR)$(PIXMAPDIR)/sisyphus-gui.png + rm -rf $(DESTDIR)$(POLKITDIR)/org.redcorelinux.sisyphus-gui.policy + rm -rf $(DESTDIR)$(SISYPHUSDATADIR) diff --git a/frontend/gui/accesories.py b/frontend/gui/accesories.py new file mode 100755 index 0000000..530886f --- /dev/null +++ b/frontend/gui/accesories.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Accesories(QtWidgets.QMainWindow): + def __init__(self): + super(Accesories, self).__init__() + uic.loadUi('ui/accesories.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_accesories.item(self.table_accesories.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_accesories.item(self.table_accesories.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT * from remote_packages''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_accesories.insertRow(inx) + self.table_accesories.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_accesories.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_accesories.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_accesories.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_accesories.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/desktop/sisyphus-gui.desktop b/frontend/gui/desktop/sisyphus-gui.desktop new file mode 100755 index 0000000..c4ff12b --- /dev/null +++ b/frontend/gui/desktop/sisyphus-gui.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Sisyphus GUI +Type=Application +Comment=Sisyphus Package Manager (GUI) +Exec=sisyphus-gui-pkexec +Icon=sisyphus-gui +Categories=System; diff --git a/frontend/gui/desktop/sisyphus-gui.png b/frontend/gui/desktop/sisyphus-gui.png new file mode 100644 index 0000000..d36d93b Binary files /dev/null and b/frontend/gui/desktop/sisyphus-gui.png differ diff --git a/frontend/gui/development.py b/frontend/gui/development.py new file mode 100755 index 0000000..0f1221f --- /dev/null +++ b/frontend/gui/development.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Development(QtWidgets.QMainWindow): + def __init__(self): + super(Development, self).__init__() + uic.loadUi('ui/development.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_development.item(self.table_development.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_development.item(self.table_development.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT * from remote_packages''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_development.insertRow(inx) + self.table_development.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_development.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_development.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_development.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_development.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/everything.py b/frontend/gui/everything.py new file mode 100755 index 0000000..e6b874b --- /dev/null +++ b/frontend/gui/everything.py @@ -0,0 +1,61 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Everything(QtWidgets.QMainWindow): + def __init__(self): + super(Everything, self).__init__() + uic.loadUi('ui/everything.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_everything.item(self.table_everything.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_everything.item(self.table_everything.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT + a.category AS cat, + a.name AS pn, + a.version AS av, + i.version AS iv, + a.description AS descr + FROM remote_packages AS a + LEFT JOIN local_packages AS i + ON a.category = i.category + AND a.name = i.name + AND a.slot = i.slot + ''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_everything.insertRow(inx) + self.table_everything.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_everything.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_everything.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_everything.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_everything.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/games.py b/frontend/gui/games.py new file mode 100755 index 0000000..052e606 --- /dev/null +++ b/frontend/gui/games.py @@ -0,0 +1,76 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Games(QtWidgets.QMainWindow): + def __init__(self): + super(Games, self).__init__() + uic.loadUi('ui/games.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_games.item(self.table_games.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_games.item(self.table_games.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT + a.category AS cat, + a.name AS pn, + a.version AS av, + i.version AS iv, + a.description AS descr + FROM remote_packages AS a + LEFT JOIN local_packages AS i + ON a.category = i.category + AND a.name = i.name + AND a.slot = i.slot + WHERE a.name IN + ('steam', + 'playonlinux', + 'armagetronad', + 'chromium-bsu', + 'supertuxkart', + 'teeworlds', + 'dosbox', + 'snes9x', + 'zsnes', + 'urbanterror', + 'openttd', + '0ad', + 'warzone2100', + 'wesnoth') + ''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_games.insertRow(inx) + self.table_games.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_games.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_games.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_games.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_games.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/graphics.py b/frontend/gui/graphics.py new file mode 100755 index 0000000..270b8cf --- /dev/null +++ b/frontend/gui/graphics.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Graphics(QtWidgets.QMainWindow): + def __init__(self): + super(Graphics, self).__init__() + uic.loadUi('ui/graphics.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_graphics.item(self.table_graphics.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_graphics.item(self.table_graphics.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT * from remote_packages''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_graphics.insertRow(inx) + self.table_graphics.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_graphics.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_graphics.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_graphics.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_graphics.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/icon/category_accessories.png b/frontend/gui/icon/category_accessories.png new file mode 100644 index 0000000..becbfc9 Binary files /dev/null and b/frontend/gui/icon/category_accessories.png differ diff --git a/frontend/gui/icon/category_all.png b/frontend/gui/icon/category_all.png new file mode 100644 index 0000000..462c97c Binary files /dev/null and b/frontend/gui/icon/category_all.png differ diff --git a/frontend/gui/icon/category_development.png b/frontend/gui/icon/category_development.png new file mode 100644 index 0000000..b2c160e Binary files /dev/null and b/frontend/gui/icon/category_development.png differ diff --git a/frontend/gui/icon/category_games.png b/frontend/gui/icon/category_games.png new file mode 100644 index 0000000..b128490 Binary files /dev/null and b/frontend/gui/icon/category_games.png differ diff --git a/frontend/gui/icon/category_graphics.png b/frontend/gui/icon/category_graphics.png new file mode 100644 index 0000000..63c7c5e Binary files /dev/null and b/frontend/gui/icon/category_graphics.png differ diff --git a/frontend/gui/icon/category_internet.png b/frontend/gui/icon/category_internet.png new file mode 100644 index 0000000..9f630cd Binary files /dev/null and b/frontend/gui/icon/category_internet.png differ diff --git a/frontend/gui/icon/category_local.png b/frontend/gui/icon/category_local.png new file mode 100644 index 0000000..561d218 Binary files /dev/null and b/frontend/gui/icon/category_local.png differ diff --git a/frontend/gui/icon/category_multimedia.png b/frontend/gui/icon/category_multimedia.png new file mode 100644 index 0000000..e6414e6 Binary files /dev/null and b/frontend/gui/icon/category_multimedia.png differ diff --git a/frontend/gui/icon/category_office.png b/frontend/gui/icon/category_office.png new file mode 100644 index 0000000..78af8a4 Binary files /dev/null and b/frontend/gui/icon/category_office.png differ diff --git a/frontend/gui/icon/category_system.png b/frontend/gui/icon/category_system.png new file mode 100644 index 0000000..2a360bd Binary files /dev/null and b/frontend/gui/icon/category_system.png differ diff --git a/frontend/gui/icon/package_install.png b/frontend/gui/icon/package_install.png new file mode 100644 index 0000000..736cddf Binary files /dev/null and b/frontend/gui/icon/package_install.png differ diff --git a/frontend/gui/icon/package_search.png b/frontend/gui/icon/package_search.png new file mode 100644 index 0000000..5f50a53 Binary files /dev/null and b/frontend/gui/icon/package_search.png differ diff --git a/frontend/gui/icon/package_uninstall.png b/frontend/gui/icon/package_uninstall.png new file mode 100644 index 0000000..187ce04 Binary files /dev/null and b/frontend/gui/icon/package_uninstall.png differ diff --git a/frontend/gui/icon/remove_orphans.png b/frontend/gui/icon/remove_orphans.png new file mode 100644 index 0000000..b165bf7 Binary files /dev/null and b/frontend/gui/icon/remove_orphans.png differ diff --git a/frontend/gui/icon/system_upgrade.png b/frontend/gui/icon/system_upgrade.png new file mode 100644 index 0000000..4443cb7 Binary files /dev/null and b/frontend/gui/icon/system_upgrade.png differ diff --git a/frontend/gui/icon/window_close.png b/frontend/gui/icon/window_close.png new file mode 100644 index 0000000..35dbf35 Binary files /dev/null and b/frontend/gui/icon/window_close.png differ diff --git a/frontend/gui/icon/window_icon.png b/frontend/gui/icon/window_icon.png new file mode 100644 index 0000000..da169ba Binary files /dev/null and b/frontend/gui/icon/window_icon.png differ diff --git a/frontend/gui/internet.py b/frontend/gui/internet.py new file mode 100755 index 0000000..c7c7400 --- /dev/null +++ b/frontend/gui/internet.py @@ -0,0 +1,100 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Internet(QtWidgets.QMainWindow): + def __init__(self): + super(Internet, self).__init__() + uic.loadUi('ui/internet.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_internet.item(self.table_internet.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_internet.item(self.table_internet.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT + a.category AS cat, + a.name AS pn, + a.version AS av, + i.version AS iv, + a.description AS descr + FROM remote_packages AS a + LEFT JOIN local_packages AS i + ON a.category = i.category + AND a.name = i.name + AND a.slot = i.slot + WHERE a.name IN + ('firewalld', + 'ufw', + 'ufw-frontends', + 'cifs-utils', + 'samba', + 'sshfs', + 'filezilla', + 'franz', + 'qtox', + 'telegram', + 'viber', + 'konversation', + 'quassel', + 'aria2', + 'dropbox', + 'megasync', + 'owncloud-client', + 'teamviewer', + 'telnet-bsd', + 'tigervnc', + 'youtube-dl', + 'quiterss', + 'qbittorrent', + 'transmission', + 'firefox', + 'google-chrome', + 'opera', + 'qupzilla', + 'vivaldi', + 'adobe-flash', + 'chrome-binary-plugins', + 'freshplayerplugin', + 'google-talkplugin', + 'wmail', + 'trojita', + 'aircrack-ng', + 'wavemon', + 'messengerfordesktop') + ''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_internet.insertRow(inx) + self.table_internet.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_internet.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_internet.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_internet.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_internet.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/local.py b/frontend/gui/local.py new file mode 100755 index 0000000..60c835a --- /dev/null +++ b/frontend/gui/local.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Local(QtWidgets.QMainWindow): + def __init__(self): + super(Local, self).__init__() + uic.loadUi('ui/local.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_local.item(self.table_local.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_local.item(self.table_local.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT * from local_packages''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_local.insertRow(inx) + self.table_local.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_local.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_local.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_local.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_local.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/multimedia.py b/frontend/gui/multimedia.py new file mode 100755 index 0000000..48d9bfb --- /dev/null +++ b/frontend/gui/multimedia.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Multimedia(QtWidgets.QMainWindow): + def __init__(self): + super(Multimedia, self).__init__() + uic.loadUi('ui/multimedia.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_multimedia.item(self.table_multimedia.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_multimedia.item(self.table_multimedia.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT * from remote_packages''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_multimedia.insertRow(inx) + self.table_multimedia.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_multimedia.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_multimedia.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_multimedia.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_multimedia.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/office.py b/frontend/gui/office.py new file mode 100755 index 0000000..e030486 --- /dev/null +++ b/frontend/gui/office.py @@ -0,0 +1,84 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class Office(QtWidgets.QMainWindow): + def __init__(self): + super(Office, self).__init__() + uic.loadUi('ui/office.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_office.item(self.table_office.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_office.item(self.table_office.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT + a.category AS cat, + a.name AS pn, + a.version AS av, + i.version AS iv, + a.description AS descr + FROM remote_packages AS a + LEFT JOIN local_packages AS i + ON a.category = i.category + AND a.name = i.name + AND a.slot = i.slot + WHERE a.name IN + ('fet', + 'libreoffice', + 'wps-office', + 'tesseract', + 'okular', + 'cantarell', + 'corefonts', + 'dejavu', + 'liberation-fonts', + 'libertine', + 'noto', + 'open-sans', + 'roboto', + 'ttf-bitstream-vera', + 'qpdfview', + 'cups', + 'cups-filters', + 'cups-pdf', + 'simple-scan', + 'cnijfilter', + 'cnijfilter-drivers', + 'hplip') + ''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_office.insertRow(inx) + self.table_office.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_office.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_office.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_office.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_office.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/org.redcorelinux.sisyphus-gui.policy b/frontend/gui/org.redcorelinux.sisyphus-gui.policy new file mode 100644 index 0000000..811c348 --- /dev/null +++ b/frontend/gui/org.redcorelinux.sisyphus-gui.policy @@ -0,0 +1,22 @@ + + + + + Redcore Linux + http://redcorelinux.org + + + Run Sisyphus + Authentication is required to run Sisyphus + redcore-logo + + no + no + auth_admin + + /usr/bin/sisyphus-gui + true + + diff --git a/frontend/gui/sisyphus-gui b/frontend/gui/sisyphus-gui new file mode 100755 index 0000000..1e29d08 --- /dev/null +++ b/frontend/gui/sisyphus-gui @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# Sisyphus is a simple GUI for sisyphus, the portage wrapper +# Main Author : Ghiunhan Mamut @ Redcore Linux Project + +main() { + pushd /usr/share/sisyphus-gui + python3 sisyphus-gui.py + popd +} + +main diff --git a/frontend/gui/sisyphus-gui-pkexec b/frontend/gui/sisyphus-gui-pkexec new file mode 100755 index 0000000..4a1b496 --- /dev/null +++ b/frontend/gui/sisyphus-gui-pkexec @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +pkexec /usr/bin/sisyphus-gui diff --git a/frontend/gui/sisyphus-gui.py b/frontend/gui/sisyphus-gui.py new file mode 100755 index 0000000..244a9af --- /dev/null +++ b/frontend/gui/sisyphus-gui.py @@ -0,0 +1,106 @@ +#!/usr/bin/python3 +import sys, subprocess +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +from accesories import Accesories +from development import Development +from games import Games +from graphics import Graphics +from internet import Internet +from multimedia import Multimedia +from office import Office +from system import System +from local import Local +from everything import Everything + +class Sisyphus(QtWidgets.QMainWindow): + def __init__(self): + super(Sisyphus, self).__init__() + uic.loadUi('ui/sisyphus-gui.ui', self) + self.centerOnScreen() + self.show() + + self.package_search.clicked.connect(self.search_package) + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.system_upgrade.clicked.connect(self.upgrade_system) + self.orphans_remove.clicked.connect(self.remove_orphans) + + self.category_accesories.clicked.connect(self.accesories_category) + self.category_development.clicked.connect(self.development_category) + self.category_games.clicked.connect(self.games_category) + self.category_graphics.clicked.connect(self.graphics_category) + self.category_internet.clicked.connect(self.internet_category) + self.category_multimedia.clicked.connect(self.multimedia_category) + self.category_office.clicked.connect(self.office_category) + self.category_system.clicked.connect(self.system_category) + self.category_local.clicked.connect(self.local_category) + self.category_everything.clicked.connect(self.everything_category) + + def centerOnScreen (self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def search_package(self): + pkgname = self.input.text() + subprocess.Popen(['xterm', '-hold', '-e', 'sisyphus', 'search'] + pkgname.split()) + + def install_package(self): + pkgname = self.input.text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.input.text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def upgrade_system(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoupgrade']) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def accesories_category(self): + self.window = Accesories() + self.window.show() + + def development_category(self): + self.window = Development() + self.window.show() + + def games_category(self): + self.window = Games() + self.window.show() + + def graphics_category(self): + self.window = Graphics() + self.window.show() + + def internet_category(self): + self.window = Internet() + self.window.show() + + def multimedia_category(self): + self.window = Multimedia() + self.window.show() + + def office_category(self): + self.window = Office() + self.window.show() + + def system_category(self): + self.window = System() + self.window.show() + + def local_category(self): + self.window = Local() + self.window.show() + + def everything_category(self): + self.window = Everything() + self.window.show() + +if __name__ == '__main__': + app = QtWidgets.QApplication(sys.argv) + window = Sisyphus() + sys.exit(app.exec_()) diff --git a/frontend/gui/system.py b/frontend/gui/system.py new file mode 100755 index 0000000..c9942e0 --- /dev/null +++ b/frontend/gui/system.py @@ -0,0 +1,50 @@ +#!/usr/bin/python3 +import sys, subprocess, sqlite3 +from PyQt5 import QtCore, QtGui, QtWidgets, uic + +class System(QtWidgets.QMainWindow): + def __init__(self): + super(System, self).__init__() + uic.loadUi('ui/system.ui', self) + self.centerOnScreen() + self.show() + self.load_packages() + + self.package_install.clicked.connect(self.install_package) + self.package_uninstall.clicked.connect(self.uninstall_package) + self.orphans_remove.clicked.connect(self.remove_orphans) + self.category_exit.clicked.connect(self.exit_category) + + def centerOnScreen(self): + resolution = QtWidgets.QDesktopWidget().screenGeometry() + self.move((resolution.width() / 2) - (self.frameSize().width() / 2), + (resolution.height() / 2) - (self.frameSize().height() / 2)) + + def install_package(self): + pkgname = self.table_system.item(self.table_system.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoinstall'] + pkgname.split()) + + def uninstall_package(self): + pkgname = self.table_system.item(self.table_system.currentRow(), 1).text() + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoremove'] + pkgname.split()) + + def remove_orphans(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoclean']) + + def exit_category(self): + self.close() + + def load_packages(self): + with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: + cursor=db.cursor() + cursor.execute('''SELECT * from remote_packages''') + rows = cursor.fetchall() + + for row in rows: + inx = rows.index(row) + self.table_system.insertRow(inx) + self.table_system.setItem(inx, 0, QtWidgets.QTableWidgetItem(row[0])) + self.table_system.setItem(inx, 1, QtWidgets.QTableWidgetItem(row[1])) + self.table_system.setItem(inx, 2, QtWidgets.QTableWidgetItem(row[2])) + self.table_system.setItem(inx, 3, QtWidgets.QTableWidgetItem(row[3])) + self.table_system.setItem(inx, 4, QtWidgets.QTableWidgetItem(row[4])) diff --git a/frontend/gui/ui/accesories.ui b/frontend/gui/ui/accesories.ui new file mode 100644 index 0000000..ea9e495 --- /dev/null +++ b/frontend/gui/ui/accesories.ui @@ -0,0 +1,220 @@ + + + Accesories + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Accesories + + + + ../icon/category_accessories.png../icon/category_accessories.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_accesories + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/development.ui b/frontend/gui/ui/development.ui new file mode 100644 index 0000000..4c102f1 --- /dev/null +++ b/frontend/gui/ui/development.ui @@ -0,0 +1,220 @@ + + + Development + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Development + + + + ../icon/category_development.png../icon/category_development.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_development + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/everything.ui b/frontend/gui/ui/everything.ui new file mode 100644 index 0000000..b609cee --- /dev/null +++ b/frontend/gui/ui/everything.ui @@ -0,0 +1,220 @@ + + + Everything + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : All Packages + + + + ../icon/category_all.png../icon/category_all.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_everything + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/games.ui b/frontend/gui/ui/games.ui new file mode 100644 index 0000000..0bbc787 --- /dev/null +++ b/frontend/gui/ui/games.ui @@ -0,0 +1,220 @@ + + + Games + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Games + + + + ../icon/category_games.png../icon/category_games.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_games + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/graphics.ui b/frontend/gui/ui/graphics.ui new file mode 100644 index 0000000..e943b49 --- /dev/null +++ b/frontend/gui/ui/graphics.ui @@ -0,0 +1,220 @@ + + + Graphics + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Graphics + + + + ../icon/category_graphics.png../icon/category_graphics.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_graphics + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/internet.ui b/frontend/gui/ui/internet.ui new file mode 100644 index 0000000..810c065 --- /dev/null +++ b/frontend/gui/ui/internet.ui @@ -0,0 +1,220 @@ + + + Internet + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Internet + + + + ../icon/category_internet.png../icon/category_internet.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_internet + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/local.ui b/frontend/gui/ui/local.ui new file mode 100644 index 0000000..46cd6f9 --- /dev/null +++ b/frontend/gui/ui/local.ui @@ -0,0 +1,217 @@ + + + Local + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Local Packages + + + + ../icon/category_local.png../icon/category_local.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + true + + + false + + + + Category + + + + + Name + + + + + Version + + + + + Slot + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_local + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/multimedia.ui b/frontend/gui/ui/multimedia.ui new file mode 100644 index 0000000..b2c4938 --- /dev/null +++ b/frontend/gui/ui/multimedia.ui @@ -0,0 +1,220 @@ + + + Multimedia + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Multimedia + + + + ../icon/category_multimedia.png../icon/category_multimedia.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_multimedia + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/office.ui b/frontend/gui/ui/office.ui new file mode 100644 index 0000000..d1d3bad --- /dev/null +++ b/frontend/gui/ui/office.ui @@ -0,0 +1,220 @@ + + + Office + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category Office + + + + ../icon/category_office.png../icon/category_office.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_office + package_install + package_uninstall + orphans_remove + category_exit + + + + diff --git a/frontend/gui/ui/sisyphus-gui.ui b/frontend/gui/ui/sisyphus-gui.ui new file mode 100644 index 0000000..0d6749c --- /dev/null +++ b/frontend/gui/ui/sisyphus-gui.ui @@ -0,0 +1,520 @@ + + + MainWindow + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Graphical User Interface + + + + ../icon/window_icon.png../icon/window_icon.png + + + Qt::LeftToRight + + + true + + + + + 0 + 0 + + + + + + 0 + 0 + 1000 + 200 + + + + + 0 + 0 + + + + Qt::LeftToRight + + + true + + + QFrame::NoFrame + + + QFrame::Plain + + + + + 100 + 30 + 800 + 40 + + + + + 0 + 0 + + + + <html><head/><body><p align="center">Enter package name you want to Search/Install/Uninstall</p></body></html> + + + Enter package name... + + + true + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + + + + 215 + 105 + 190 + 40 + + + + + 0 + 0 + + + + <html><head/><body><p align="center">Install package(s)</p></body></html> + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + + 25 + 105 + 190 + 40 + + + + + 0 + 0 + + + + <html><head/><body><p align="center">Search package(s)</p></body></html> + + + + ../icon/package_search.png../icon/package_search.png + + + + 32 + 32 + + + + + + + 405 + 105 + 190 + 40 + + + + + 0 + 0 + + + + <html><head/><body><p align="center">Uninstall package(s)</p></body></html> + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 595 + 105 + 190 + 40 + + + + + 0 + 0 + + + + <html><head/><body><p align="center">Upgrade system</p></body></html> + + + + ../icon/system_upgrade.png../icon/system_upgrade.png + + + + 32 + 32 + + + + + + + 785 + 105 + 190 + 40 + + + + + 0 + 0 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + + 0 + 200 + 1000 + 400 + + + + QFrame::NoFrame + + + QFrame::Plain + + + + + 25 + 20 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Accesories Category</p></body></html> + + + + ../icon/category_accessories.png../icon/category_accessories.png + + + + 64 + 64 + + + + + + + 425 + 20 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Games Category</p></body></html> + + + + ../icon/category_games.png../icon/category_games.png + + + + 64 + 64 + + + + + + + 625 + 20 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Graphics Category</p></body></html> + + + + ../icon/category_graphics.png../icon/category_graphics.png + + + + 64 + 64 + + + + + + + 825 + 20 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Internet Category</p></body></html> + + + + ../icon/category_internet.png../icon/category_internet.png + + + + 64 + 64 + + + + + + + 25 + 215 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Multimedia Category</p></body></html> + + + + ../icon/category_multimedia.png../icon/category_multimedia.png + + + + 64 + 64 + + + + + + + 225 + 215 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Office Category</p></body></html> + + + + ../icon/category_office.png../icon/category_office.png + + + + 64 + 64 + + + + + + + 425 + 215 + 150 + 150 + + + + <html><head/><body><p align="center">Browse System Category</p></body></html> + + + + ../icon/category_system.png../icon/category_system.png + + + + 64 + 64 + + + + + + + 225 + 20 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Development Category</p></body></html> + + + + ../icon/category_development.png../icon/category_development.png + + + + 64 + 64 + + + + + + + 625 + 215 + 150 + 150 + + + + <html><head/><body><p align="center">Browse All Packages</p></body></html> + + + + ../icon/category_all.png../icon/category_all.png + + + + 64 + 64 + + + + + + + 825 + 215 + 150 + 150 + + + + <html><head/><body><p align="center">Browse Installed Packages</p></body></html> + + + + + + + ../icon/category_local.png../icon/category_local.png + + + + 64 + 64 + + + + + + + + input + package_search + package_install + package_uninstall + system_upgrade + orphans_remove + category_accesories + category_development + category_games + category_graphics + category_internet + category_multimedia + category_office + category_system + category_local + category_everything + + + + diff --git a/frontend/gui/ui/system.ui b/frontend/gui/ui/system.ui new file mode 100644 index 0000000..59f1967 --- /dev/null +++ b/frontend/gui/ui/system.ui @@ -0,0 +1,220 @@ + + + System + + + Qt::ApplicationModal + + + + 0 + 0 + 1000 + 600 + + + + + 0 + 0 + + + + + 1000 + 600 + + + + Sisyphus : Category System + + + + ../icon/category_system.png../icon/category_system.png + + + + + 25 + 25 + 950 + 475 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category + + + + + Name + + + + + Available Version + + + + + Installed Version + + + + + Description + + + + + + + 275 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/package_uninstall.png../icon/package_uninstall.png + + + + 32 + 32 + + + + + + + 525 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/remove_orphans.png../icon/remove_orphans.png + + + + 32 + 32 + + + + + + + 775 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Close window</p></body></html> + + + + ../icon/window_close.png../icon/window_close.png + + + + 32 + 32 + + + + + + + 25 + 530 + 200 + 40 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/package_install.png../icon/package_install.png + + + + 32 + 32 + + + + + + table_system + package_install + package_uninstall + orphans_remove + category_exit + + + + -- cgit v1.2.3