From a09a21d956c747d0479eab11c50b5988d9053faa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 9 Jul 2017 13:22:03 +0100 Subject: drop categories, list all available packages by default, redesign UI --- src/frontend/gui/accesories.py | 89 ---- src/frontend/gui/development.py | 91 ---- src/frontend/gui/everything.py | 61 --- src/frontend/gui/games.py | 77 --- src/frontend/gui/graphics.py | 82 --- src/frontend/gui/icon/category_accessories.png | Bin 10321 -> 0 bytes src/frontend/gui/icon/category_all.png | Bin 16629 -> 0 bytes src/frontend/gui/icon/category_development.png | Bin 6675 -> 0 bytes src/frontend/gui/icon/category_games.png | Bin 3165 -> 0 bytes src/frontend/gui/icon/category_graphics.png | Bin 31803 -> 0 bytes src/frontend/gui/icon/category_internet.png | Bin 7535 -> 0 bytes src/frontend/gui/icon/category_local.png | Bin 5384 -> 0 bytes src/frontend/gui/icon/category_multimedia.png | Bin 5276 -> 0 bytes src/frontend/gui/icon/category_office.png | Bin 5638 -> 0 bytes src/frontend/gui/icon/category_system.png | Bin 9621 -> 0 bytes src/frontend/gui/icon/exit.png | Bin 0 -> 971 bytes src/frontend/gui/icon/install.png | Bin 0 -> 498 bytes src/frontend/gui/icon/orphans.png | Bin 0 -> 354 bytes src/frontend/gui/icon/package_install.png | Bin 498 -> 0 bytes src/frontend/gui/icon/package_search.png | Bin 2959 -> 0 bytes src/frontend/gui/icon/package_uninstall.png | Bin 250 -> 0 bytes src/frontend/gui/icon/remove_orphans.png | Bin 354 -> 0 bytes src/frontend/gui/icon/sisyphus.png | Bin 0 -> 2691 bytes src/frontend/gui/icon/system_upgrade.png | Bin 1089 -> 0 bytes src/frontend/gui/icon/uninstall.png | Bin 0 -> 250 bytes src/frontend/gui/icon/upgrade.png | Bin 0 -> 1089 bytes src/frontend/gui/icon/window_close.png | Bin 971 -> 0 bytes src/frontend/gui/icon/window_icon.png | Bin 2691 -> 0 bytes src/frontend/gui/internet.py | 101 ---- src/frontend/gui/local.py | 50 -- src/frontend/gui/multimedia.py | 64 --- src/frontend/gui/office.py | 76 --- src/frontend/gui/sisyphus-gui.py | 123 ++--- src/frontend/gui/system.py | 142 ------ src/frontend/gui/ui/accesories.ui | 220 -------- src/frontend/gui/ui/development.ui | 220 -------- src/frontend/gui/ui/everything.ui | 220 -------- src/frontend/gui/ui/games.ui | 220 -------- src/frontend/gui/ui/graphics.ui | 220 -------- src/frontend/gui/ui/internet.ui | 220 -------- src/frontend/gui/ui/local.ui | 217 -------- src/frontend/gui/ui/multimedia.ui | 220 -------- src/frontend/gui/ui/office.ui | 220 -------- src/frontend/gui/ui/sisyphus-gui.ui | 677 ++++++++----------------- src/frontend/gui/ui/system.ui | 220 -------- 45 files changed, 246 insertions(+), 3584 deletions(-) delete mode 100755 src/frontend/gui/accesories.py delete mode 100755 src/frontend/gui/development.py delete mode 100755 src/frontend/gui/everything.py delete mode 100755 src/frontend/gui/games.py delete mode 100755 src/frontend/gui/graphics.py delete mode 100644 src/frontend/gui/icon/category_accessories.png delete mode 100644 src/frontend/gui/icon/category_all.png delete mode 100644 src/frontend/gui/icon/category_development.png delete mode 100644 src/frontend/gui/icon/category_games.png delete mode 100644 src/frontend/gui/icon/category_graphics.png delete mode 100644 src/frontend/gui/icon/category_internet.png delete mode 100644 src/frontend/gui/icon/category_local.png delete mode 100644 src/frontend/gui/icon/category_multimedia.png delete mode 100644 src/frontend/gui/icon/category_office.png delete mode 100644 src/frontend/gui/icon/category_system.png create mode 100644 src/frontend/gui/icon/exit.png create mode 100644 src/frontend/gui/icon/install.png create mode 100644 src/frontend/gui/icon/orphans.png delete mode 100644 src/frontend/gui/icon/package_install.png delete mode 100644 src/frontend/gui/icon/package_search.png delete mode 100644 src/frontend/gui/icon/package_uninstall.png delete mode 100644 src/frontend/gui/icon/remove_orphans.png create mode 100644 src/frontend/gui/icon/sisyphus.png delete mode 100644 src/frontend/gui/icon/system_upgrade.png create mode 100644 src/frontend/gui/icon/uninstall.png create mode 100644 src/frontend/gui/icon/upgrade.png delete mode 100644 src/frontend/gui/icon/window_close.png delete mode 100644 src/frontend/gui/icon/window_icon.png delete mode 100755 src/frontend/gui/internet.py delete mode 100755 src/frontend/gui/local.py delete mode 100755 src/frontend/gui/multimedia.py delete mode 100755 src/frontend/gui/office.py delete mode 100755 src/frontend/gui/system.py delete mode 100644 src/frontend/gui/ui/accesories.ui delete mode 100644 src/frontend/gui/ui/development.ui delete mode 100644 src/frontend/gui/ui/everything.ui delete mode 100644 src/frontend/gui/ui/games.ui delete mode 100644 src/frontend/gui/ui/graphics.ui delete mode 100644 src/frontend/gui/ui/internet.ui delete mode 100644 src/frontend/gui/ui/local.ui delete mode 100644 src/frontend/gui/ui/multimedia.ui delete mode 100644 src/frontend/gui/ui/office.ui delete mode 100644 src/frontend/gui/ui/system.ui (limited to 'src/frontend/gui') diff --git a/src/frontend/gui/accesories.py b/src/frontend/gui/accesories.py deleted file mode 100755 index 2795e31..0000000 --- a/src/frontend/gui/accesories.py +++ /dev/null @@ -1,89 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_accesories.item(self.table_accesories.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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 - ('conky', - 'qt5-fsarchiver', - 'featherpad', - 'mc', - 'screenfetch', - 'sl', - 'wgetpaste', - 'qtkeychain', - 'meteo-qt', - 'zenity', - 'ark', - 'kcalc', - 'kdialog', - 'krusader', - 'keychain', - 'aircrack-ng', - 'wavemon', - 'bleachbit', - 'grsync', - 'gtkdialog', - 'obconf-qt', - 'qarma', - 'qlipper', - 'albert', - 'copyq', - 'qps', - 'slock') - ''') - 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/src/frontend/gui/development.py b/src/frontend/gui/development.py deleted file mode 100755 index 94c16f2..0000000 --- a/src/frontend/gui/development.py +++ /dev/null @@ -1,91 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_development.item(self.table_development.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall']) - - 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 - ('vasile', - 'dpkg', - 'notepadqq', - 'sqlitebrowser', - 'sqlitestudio', - 'fpc', - 'go', - 'lazarus', - 'lua', - 'perl', - 'python', - 'ruby', - 'tcl', - 'tk', - 'vala', - 'PyQt5', - 'designer', - 'expect', - 'android-tools', - 'cmake', - 'debootstrap', - 'geany', - 'geany-plugins', - 'bzr', - 'cvs', - 'git', - 'mercurial', - 'subversion', - 'qt-creator') - ''') - 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/src/frontend/gui/everything.py b/src/frontend/gui/everything.py deleted file mode 100755 index ac83ca6..0000000 --- a/src/frontend/gui/everything.py +++ /dev/null @@ -1,61 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_everything.item(self.table_everything.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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/src/frontend/gui/games.py b/src/frontend/gui/games.py deleted file mode 100755 index 5eed9fa..0000000 --- a/src/frontend/gui/games.py +++ /dev/null @@ -1,77 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_games.item(self.table_games.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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', - 'xonotic') - ''') - 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/src/frontend/gui/graphics.py b/src/frontend/gui/graphics.py deleted file mode 100755 index 9664c09..0000000 --- a/src/frontend/gui/graphics.py +++ /dev/null @@ -1,82 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_graphics.item(self.table_graphics.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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 - ('blender', - 'darktable', - 'gimp', - 'gimp-arrow-brushes', - 'gimp-lqr', - 'imagemagick', - 'inkscape', - 'krita', - 'librecad', - 'luminance-hdr', - 'lximage-qt', - 'cantarell', - 'corefonts', - 'dejavu', - 'liberation-fonts', - 'libertine', - 'noto', - 'open-sans', - 'roboto', - 'ttf-bitstream-vera') - ''') - 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/src/frontend/gui/icon/category_accessories.png b/src/frontend/gui/icon/category_accessories.png deleted file mode 100644 index becbfc9..0000000 Binary files a/src/frontend/gui/icon/category_accessories.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_all.png b/src/frontend/gui/icon/category_all.png deleted file mode 100644 index 462c97c..0000000 Binary files a/src/frontend/gui/icon/category_all.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_development.png b/src/frontend/gui/icon/category_development.png deleted file mode 100644 index b2c160e..0000000 Binary files a/src/frontend/gui/icon/category_development.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_games.png b/src/frontend/gui/icon/category_games.png deleted file mode 100644 index b128490..0000000 Binary files a/src/frontend/gui/icon/category_games.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_graphics.png b/src/frontend/gui/icon/category_graphics.png deleted file mode 100644 index 63c7c5e..0000000 Binary files a/src/frontend/gui/icon/category_graphics.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_internet.png b/src/frontend/gui/icon/category_internet.png deleted file mode 100644 index 9f630cd..0000000 Binary files a/src/frontend/gui/icon/category_internet.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_local.png b/src/frontend/gui/icon/category_local.png deleted file mode 100644 index 561d218..0000000 Binary files a/src/frontend/gui/icon/category_local.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_multimedia.png b/src/frontend/gui/icon/category_multimedia.png deleted file mode 100644 index e6414e6..0000000 Binary files a/src/frontend/gui/icon/category_multimedia.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_office.png b/src/frontend/gui/icon/category_office.png deleted file mode 100644 index 78af8a4..0000000 Binary files a/src/frontend/gui/icon/category_office.png and /dev/null differ diff --git a/src/frontend/gui/icon/category_system.png b/src/frontend/gui/icon/category_system.png deleted file mode 100644 index 2a360bd..0000000 Binary files a/src/frontend/gui/icon/category_system.png and /dev/null differ diff --git a/src/frontend/gui/icon/exit.png b/src/frontend/gui/icon/exit.png new file mode 100644 index 0000000..35dbf35 Binary files /dev/null and b/src/frontend/gui/icon/exit.png differ diff --git a/src/frontend/gui/icon/install.png b/src/frontend/gui/icon/install.png new file mode 100644 index 0000000..736cddf Binary files /dev/null and b/src/frontend/gui/icon/install.png differ diff --git a/src/frontend/gui/icon/orphans.png b/src/frontend/gui/icon/orphans.png new file mode 100644 index 0000000..b165bf7 Binary files /dev/null and b/src/frontend/gui/icon/orphans.png differ diff --git a/src/frontend/gui/icon/package_install.png b/src/frontend/gui/icon/package_install.png deleted file mode 100644 index 736cddf..0000000 Binary files a/src/frontend/gui/icon/package_install.png and /dev/null differ diff --git a/src/frontend/gui/icon/package_search.png b/src/frontend/gui/icon/package_search.png deleted file mode 100644 index 5f50a53..0000000 Binary files a/src/frontend/gui/icon/package_search.png and /dev/null differ diff --git a/src/frontend/gui/icon/package_uninstall.png b/src/frontend/gui/icon/package_uninstall.png deleted file mode 100644 index 187ce04..0000000 Binary files a/src/frontend/gui/icon/package_uninstall.png and /dev/null differ diff --git a/src/frontend/gui/icon/remove_orphans.png b/src/frontend/gui/icon/remove_orphans.png deleted file mode 100644 index b165bf7..0000000 Binary files a/src/frontend/gui/icon/remove_orphans.png and /dev/null differ diff --git a/src/frontend/gui/icon/sisyphus.png b/src/frontend/gui/icon/sisyphus.png new file mode 100644 index 0000000..da169ba Binary files /dev/null and b/src/frontend/gui/icon/sisyphus.png differ diff --git a/src/frontend/gui/icon/system_upgrade.png b/src/frontend/gui/icon/system_upgrade.png deleted file mode 100644 index 4443cb7..0000000 Binary files a/src/frontend/gui/icon/system_upgrade.png and /dev/null differ diff --git a/src/frontend/gui/icon/uninstall.png b/src/frontend/gui/icon/uninstall.png new file mode 100644 index 0000000..187ce04 Binary files /dev/null and b/src/frontend/gui/icon/uninstall.png differ diff --git a/src/frontend/gui/icon/upgrade.png b/src/frontend/gui/icon/upgrade.png new file mode 100644 index 0000000..4443cb7 Binary files /dev/null and b/src/frontend/gui/icon/upgrade.png differ diff --git a/src/frontend/gui/icon/window_close.png b/src/frontend/gui/icon/window_close.png deleted file mode 100644 index 35dbf35..0000000 Binary files a/src/frontend/gui/icon/window_close.png and /dev/null differ diff --git a/src/frontend/gui/icon/window_icon.png b/src/frontend/gui/icon/window_icon.png deleted file mode 100644 index da169ba..0000000 Binary files a/src/frontend/gui/icon/window_icon.png and /dev/null differ diff --git a/src/frontend/gui/internet.py b/src/frontend/gui/internet.py deleted file mode 100755 index fc25c45..0000000 --- a/src/frontend/gui/internet.py +++ /dev/null @@ -1,101 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_internet.item(self.table_internet.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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', - 'opera-ffmpeg-codecs') - ''') - 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/src/frontend/gui/local.py b/src/frontend/gui/local.py deleted file mode 100755 index e8b506a..0000000 --- a/src/frontend/gui/local.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_local.item(self.table_local.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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/src/frontend/gui/multimedia.py b/src/frontend/gui/multimedia.py deleted file mode 100755 index 20bb40f..0000000 --- a/src/frontend/gui/multimedia.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_multimedia.item(self.table_multimedia.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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 - ('mpv', - 'vlc') - ''') - 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/src/frontend/gui/office.py b/src/frontend/gui/office.py deleted file mode 100755 index 86c9e74..0000000 --- a/src/frontend/gui/office.py +++ /dev/null @@ -1,76 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_office.item(self.table_office.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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', - 'qpdfview', - 'cups', - 'cups-filters', - 'cups-pdf', - 'simple-scan', - 'cnijfilter', - 'cnijfilter-drivers', - 'hplip', - 'xsane') - ''') - 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/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 1cc4fb6..800dfad 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -1,104 +1,73 @@ #!/usr/bin/python3 -import sys, subprocess +import sys, subprocess, sqlite3 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 +from libsisyphus import * class Sisyphus(QtWidgets.QMainWindow): def __init__(self): super(Sisyphus, self).__init__() uic.loadUi('ui/sisyphus-gui.ui', self) + self.refresh_database() self.centerOnScreen() self.show() - - self.package_search.clicked.connect(self.search_package) + self.load_packages() + 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): + self.system_upgrade.clicked.connect(self.upgrade_system) + self.sisyphus_exit.clicked.connect(self.exit_sisyphus) + + 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() + pkgname = self.table_everything.item(self.table_everything.currentRow(), 1).text() subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-install'] + pkgname.split()) def uninstall_package(self): - pkgname = self.input.text() + pkgname = self.table_everything.item(self.table_everything.currentRow(), 1).text() subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - def upgrade_system(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'autoupgrade']) - def remove_orphans(self): subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - 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() + def upgrade_system(self): + subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-upgrade']) + + def refresh_database(self): + sisyphus_pkg_system_update() + + def exit_sisyphus(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])) if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) diff --git a/src/frontend/gui/system.py b/src/frontend/gui/system.py deleted file mode 100755 index c647625..0000000 --- a/src/frontend/gui/system.py +++ /dev/null @@ -1,142 +0,0 @@ -#!/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', 'auto-install'] + pkgname.split()) - - def uninstall_package(self): - pkgname = self.table_system.item(self.table_system.currentRow(), 1).text() - subprocess.Popen(['xterm', '-e', 'sisyphus', 'auto-uninstall'] + pkgname.split()) - - def remove_orphans(self): - subprocess.Popen(['xterm', '-e', 'sisyphus', 'remove-orphans']) - - 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 - ('hddtemp', - 'testdisk', - 'system-config-printer', - 'clamav', - 'clamtk', - 'kcdemu', - 'aqemu', - 'docker', - 'libvirt', - 'q4wine', - 'qemu', - 'spice', - 'spice-protocol', - 'virtualbox', - 'virtualbox-extpack-oracle', - 'virtualbox-guest-additions', - 'virtualbox-modules', - 'wine', - 'winetricks', - 'chkrootkit', - 'rkhunter', - 'laptop-mode-tools', - 'gsmartcontrol', - 'hdparm', - 'lm_sensors', - 'microcode-ctl', - 'smartmontools', - 'usb_modeswitch', - 'ms-sys', - 'isowriter', - 'unetbootin-static', - 'b43-firmware', - 'b43legacy-firmware', - 'intel-microcode', - 'ovmf', - 'btrfs-progs', - 'cryptsetup', - 'dosfstools', - 'e2fsprogs', - 'ncdu', - 'ntfs3g', - 'spl', - 'squashfs-tools', - 'xfsprogs', - 'zfs', - 'vhba', - 'bumblebee', - 'xhost', - 'xrandr', - 'radeontop', - 'nvidia-drivers', - 'xf86-input-evdev', - 'xf86-input-joystick', - 'xf86-input-keyboard', - 'xf86-input-mouse', - 'xf86-input-synaptics', - 'xf86-input-wacom', - 'xf86-video-amdgpu', - 'xf86-video-ati', - 'xf86-video-intel', - 'xf86-video-nouveau', - 'xf86-video-qxl', - 'xf86-video-vesa', - 'xf86-video-virtualbox', - 'xf86-video-vmware', - 'arandr', - 'ccsm', - 'compton', - 'grsync', - 'primus', - 'simple-ccsm', - 'slock', - 'vdpauinfo', - 'xscreensaver', - 'qterminal', - 'st', - 'xterm', - 'compiz-fusion', - 'emerald', - 'openbox') - ''') - 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/src/frontend/gui/ui/accesories.ui b/src/frontend/gui/ui/accesories.ui deleted file mode 100644 index ea9e495..0000000 --- a/src/frontend/gui/ui/accesories.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/development.ui b/src/frontend/gui/ui/development.ui deleted file mode 100644 index 4c102f1..0000000 --- a/src/frontend/gui/ui/development.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/everything.ui b/src/frontend/gui/ui/everything.ui deleted file mode 100644 index b609cee..0000000 --- a/src/frontend/gui/ui/everything.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/games.ui b/src/frontend/gui/ui/games.ui deleted file mode 100644 index 0bbc787..0000000 --- a/src/frontend/gui/ui/games.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/graphics.ui b/src/frontend/gui/ui/graphics.ui deleted file mode 100644 index e943b49..0000000 --- a/src/frontend/gui/ui/graphics.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/internet.ui b/src/frontend/gui/ui/internet.ui deleted file mode 100644 index 810c065..0000000 --- a/src/frontend/gui/ui/internet.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/local.ui b/src/frontend/gui/ui/local.ui deleted file mode 100644 index 46cd6f9..0000000 --- a/src/frontend/gui/ui/local.ui +++ /dev/null @@ -1,217 +0,0 @@ - - - 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/src/frontend/gui/ui/multimedia.ui b/src/frontend/gui/ui/multimedia.ui deleted file mode 100644 index b2c4938..0000000 --- a/src/frontend/gui/ui/multimedia.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/office.ui b/src/frontend/gui/ui/office.ui deleted file mode 100644 index d1d3bad..0000000 --- a/src/frontend/gui/ui/office.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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/src/frontend/gui/ui/sisyphus-gui.ui b/src/frontend/gui/ui/sisyphus-gui.ui index 0d6749c..f2cbcdb 100644 --- a/src/frontend/gui/ui/sisyphus-gui.ui +++ b/src/frontend/gui/ui/sisyphus-gui.ui @@ -1,7 +1,10 @@ - MainWindow - + SisyphusGUI + + + Qt::ApplicationModal + 0 @@ -27,493 +30,213 @@ - ../icon/window_icon.png../icon/window_icon.png - - - Qt::LeftToRight - - - true + ../icon/sisyphus.png../icon/sisyphus.png - - - - 0 - 0 - - - - - - 0 - 0 - 1000 - 200 - - - - - 0 - 0 - - - - Qt::LeftToRight - - - true - - - QFrame::NoFrame + + + + 25 + 25 + 950 + 500 + + + + + 950 + 500 + + + + QFrame::Panel + + + QFrame::Raised + + + QAbstractScrollArea::AdjustToContents + + + QAbstractItemView::NoEditTriggers + + + false + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + 110 + + + true + + + false + + + + Category - - QFrame::Plain + + + + Name - - - - 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 - + + + + Available Version - - QFrame::NoFrame + + + + Installed Version - - QFrame::Plain + + + + Description - - - - 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 - - - - + + + + + + 225 + 550 + 150 + 30 + + + + <html><head/><body><p align="center">Uninstall package</p></body></html> + + + + + + + ../icon/uninstall.png../icon/uninstall.png + + + + 32 + 32 + + + + + + + 425 + 550 + 150 + 30 + + + + <html><head/><body><p align="center">Remove orphan packages</p></body></html> + + + + + + + ../icon/orphans.png../icon/orphans.png + + + + 32 + 32 + + + + + + + 825 + 550 + 150 + 30 + + + + <html><head/><body><p align="center">Exit Sisyphus</p></body></html> + + + + ../icon/exit.png../icon/exit.png + + + + 32 + 32 + + + + + + + 25 + 550 + 150 + 30 + + + + <html><head/><body><p align="center">Install package</p></body></html> + + + + + + + ../icon/install.png../icon/install.png + + + + 32 + 32 + + + + + + + 625 + 550 + 150 + 30 + + + + <html><head/><body><p align="center">Upgrade system</p></body></html> + + + + ../icon/upgrade.png../icon/upgrade.png + + + + 32 + 32 + + - input - package_search + table_everything 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 + sisyphus_exit diff --git a/src/frontend/gui/ui/system.ui b/src/frontend/gui/ui/system.ui deleted file mode 100644 index 59f1967..0000000 --- a/src/frontend/gui/ui/system.ui +++ /dev/null @@ -1,220 +0,0 @@ - - - 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