diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-07-09 13:22:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-07-09 13:22:03 +0100 |
commit | a09a21d956c747d0479eab11c50b5988d9053faa (patch) | |
tree | 751db5d3168086f93a5f18bb6546763061d6475b /src | |
parent | d726ee844e60b64e89bc3ed1a95cf1e4a0aecb11 (diff) |
drop categories, list all available packages by default, redesign UI
Diffstat (limited to 'src')
39 files changed, 246 insertions, 3584 deletions
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 Binary files differdeleted file mode 100644 index becbfc9..0000000 --- a/src/frontend/gui/icon/category_accessories.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_all.png b/src/frontend/gui/icon/category_all.png Binary files differdeleted file mode 100644 index 462c97c..0000000 --- a/src/frontend/gui/icon/category_all.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_development.png b/src/frontend/gui/icon/category_development.png Binary files differdeleted file mode 100644 index b2c160e..0000000 --- a/src/frontend/gui/icon/category_development.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_games.png b/src/frontend/gui/icon/category_games.png Binary files differdeleted file mode 100644 index b128490..0000000 --- a/src/frontend/gui/icon/category_games.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_graphics.png b/src/frontend/gui/icon/category_graphics.png Binary files differdeleted file mode 100644 index 63c7c5e..0000000 --- a/src/frontend/gui/icon/category_graphics.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_internet.png b/src/frontend/gui/icon/category_internet.png Binary files differdeleted file mode 100644 index 9f630cd..0000000 --- a/src/frontend/gui/icon/category_internet.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_local.png b/src/frontend/gui/icon/category_local.png Binary files differdeleted file mode 100644 index 561d218..0000000 --- a/src/frontend/gui/icon/category_local.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_multimedia.png b/src/frontend/gui/icon/category_multimedia.png Binary files differdeleted file mode 100644 index e6414e6..0000000 --- a/src/frontend/gui/icon/category_multimedia.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_office.png b/src/frontend/gui/icon/category_office.png Binary files differdeleted file mode 100644 index 78af8a4..0000000 --- a/src/frontend/gui/icon/category_office.png +++ /dev/null diff --git a/src/frontend/gui/icon/category_system.png b/src/frontend/gui/icon/category_system.png Binary files differdeleted file mode 100644 index 2a360bd..0000000 --- a/src/frontend/gui/icon/category_system.png +++ /dev/null diff --git a/src/frontend/gui/icon/window_close.png b/src/frontend/gui/icon/exit.png Binary files differindex 35dbf35..35dbf35 100644 --- a/src/frontend/gui/icon/window_close.png +++ b/src/frontend/gui/icon/exit.png diff --git a/src/frontend/gui/icon/package_install.png b/src/frontend/gui/icon/install.png Binary files differindex 736cddf..736cddf 100644 --- a/src/frontend/gui/icon/package_install.png +++ b/src/frontend/gui/icon/install.png diff --git a/src/frontend/gui/icon/remove_orphans.png b/src/frontend/gui/icon/orphans.png Binary files differindex b165bf7..b165bf7 100644 --- a/src/frontend/gui/icon/remove_orphans.png +++ b/src/frontend/gui/icon/orphans.png diff --git a/src/frontend/gui/icon/package_search.png b/src/frontend/gui/icon/package_search.png Binary files differdeleted file mode 100644 index 5f50a53..0000000 --- a/src/frontend/gui/icon/package_search.png +++ /dev/null diff --git a/src/frontend/gui/icon/window_icon.png b/src/frontend/gui/icon/sisyphus.png Binary files differindex da169ba..da169ba 100644 --- a/src/frontend/gui/icon/window_icon.png +++ b/src/frontend/gui/icon/sisyphus.png diff --git a/src/frontend/gui/icon/package_uninstall.png b/src/frontend/gui/icon/uninstall.png Binary files differindex 187ce04..187ce04 100644 --- a/src/frontend/gui/icon/package_uninstall.png +++ b/src/frontend/gui/icon/uninstall.png diff --git a/src/frontend/gui/icon/system_upgrade.png b/src/frontend/gui/icon/upgrade.png Binary files differindex 4443cb7..4443cb7 100644 --- a/src/frontend/gui/icon/system_upgrade.png +++ b/src/frontend/gui/icon/upgrade.png 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Accesories</class> - <widget class="QWidget" name="Accesories"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Accesories</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_accessories.png</normaloff>../icon/category_accessories.png</iconset> - </property> - <widget class="QTableWidget" name="table_accesories"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_accesories</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Development</class> - <widget class="QWidget" name="Development"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Development</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_development.png</normaloff>../icon/category_development.png</iconset> - </property> - <widget class="QTableWidget" name="table_development"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_development</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Everything</class> - <widget class="QWidget" name="Everything"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : All Packages</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_all.png</normaloff>../icon/category_all.png</iconset> - </property> - <widget class="QTableWidget" name="table_everything"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_everything</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Games</class> - <widget class="QWidget" name="Games"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Games</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_games.png</normaloff>../icon/category_games.png</iconset> - </property> - <widget class="QTableWidget" name="table_games"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_games</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Graphics</class> - <widget class="QWidget" name="Graphics"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Graphics</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_graphics.png</normaloff>../icon/category_graphics.png</iconset> - </property> - <widget class="QTableWidget" name="table_graphics"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_graphics</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Internet</class> - <widget class="QWidget" name="Internet"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Internet</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_internet.png</normaloff>../icon/category_internet.png</iconset> - </property> - <widget class="QTableWidget" name="table_internet"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_internet</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Local</class> - <widget class="QWidget" name="Local"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Local Packages</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_local.png</normaloff>../icon/category_local.png</iconset> - </property> - <widget class="QTableWidget" name="table_local"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Slot</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_local</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Multimedia</class> - <widget class="QWidget" name="Multimedia"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Multimedia</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_multimedia.png</normaloff>../icon/category_multimedia.png</iconset> - </property> - <widget class="QTableWidget" name="table_multimedia"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_multimedia</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>Office</class> - <widget class="QWidget" name="Office"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category Office</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_office.png</normaloff>../icon/category_office.png</iconset> - </property> - <widget class="QTableWidget" name="table_office"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_office</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> 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 @@ <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> - <class>MainWindow</class> - <widget class="QMainWindow" name="MainWindow"> + <class>SisyphusGUI</class> + <widget class="QWidget" name="SisyphusGUI"> + <property name="windowModality"> + <enum>Qt::ApplicationModal</enum> + </property> <property name="geometry"> <rect> <x>0</x> @@ -27,493 +30,213 @@ </property> <property name="windowIcon"> <iconset> - <normaloff>../icon/window_icon.png</normaloff>../icon/window_icon.png</iconset> - </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> - </property> - <property name="autoFillBackground"> - <bool>true</bool> + <normaloff>../icon/sisyphus.png</normaloff>../icon/sisyphus.png</iconset> </property> - <widget class="QWidget" name="sisyphus"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <widget class="QFrame" name="manage"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>200</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> - </property> - <property name="autoFillBackground"> - <bool>true</bool> - </property> - <property name="frameShape"> - <enum>QFrame::NoFrame</enum> + <widget class="QTableWidget" name="table_everything"> + <property name="geometry"> + <rect> + <x>25</x> + <y>25</y> + <width>950</width> + <height>500</height> + </rect> + </property> + <property name="maximumSize"> + <size> + <width>950</width> + <height>500</height> + </size> + </property> + <property name="frameShape"> + <enum>QFrame::Panel</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Raised</enum> + </property> + <property name="sizeAdjustPolicy"> + <enum>QAbstractScrollArea::AdjustToContents</enum> + </property> + <property name="editTriggers"> + <set>QAbstractItemView::NoEditTriggers</set> + </property> + <property name="dragDropOverwriteMode"> + <bool>false</bool> + </property> + <property name="selectionMode"> + <enum>QAbstractItemView::SingleSelection</enum> + </property> + <property name="selectionBehavior"> + <enum>QAbstractItemView::SelectRows</enum> + </property> + <attribute name="horizontalHeaderCascadingSectionResizes"> + <bool>true</bool> + </attribute> + <attribute name="horizontalHeaderDefaultSectionSize"> + <number>110</number> + </attribute> + <attribute name="horizontalHeaderStretchLastSection"> + <bool>true</bool> + </attribute> + <attribute name="verticalHeaderVisible"> + <bool>false</bool> + </attribute> + <column> + <property name="text"> + <string>Category</string> </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> + </column> + <column> + <property name="text"> + <string>Name</string> </property> - <widget class="QLineEdit" name="input"> - <property name="geometry"> - <rect> - <x>100</x> - <y>30</y> - <width>800</width> - <height>40</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Enter package name you want to Search/Install/Uninstall</p></body></html></string> - </property> - <property name="text"> - <string>Enter package name...</string> - </property> - <property name="frame"> - <bool>true</bool> - </property> - <property name="alignment"> - <set>Qt::AlignJustify|Qt::AlignVCenter</set> - </property> - <property name="clearButtonEnabled"> - <bool>true</bool> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>215</x> - <y>105</y> - <width>190</width> - <height>40</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package(s)</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_search"> - <property name="geometry"> - <rect> - <x>25</x> - <y>105</y> - <width>190</width> - <height>40</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Search package(s)</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_search.png</normaloff>../icon/package_search.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>405</x> - <y>105</y> - <width>190</width> - <height>40</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package(s)</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="system_upgrade"> - <property name="geometry"> - <rect> - <x>595</x> - <y>105</y> - <width>190</width> - <height>40</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Upgrade system</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/system_upgrade.png</normaloff>../icon/system_upgrade.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>785</x> - <y>105</y> - <width>190</width> - <height>40</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <widget class="QFrame" name="browse"> - <property name="geometry"> - <rect> - <x>0</x> - <y>200</y> - <width>1000</width> - <height>400</height> - </rect> + </column> + <column> + <property name="text"> + <string>Available Version</string> </property> - <property name="frameShape"> - <enum>QFrame::NoFrame</enum> + </column> + <column> + <property name="text"> + <string>Installed Version</string> </property> - <property name="frameShadow"> - <enum>QFrame::Plain</enum> + </column> + <column> + <property name="text"> + <string>Description</string> </property> - <widget class="QPushButton" name="category_accesories"> - <property name="geometry"> - <rect> - <x>25</x> - <y>20</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Accesories Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_accessories.png</normaloff>../icon/category_accessories.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_games"> - <property name="geometry"> - <rect> - <x>425</x> - <y>20</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Games Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_games.png</normaloff>../icon/category_games.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_graphics"> - <property name="geometry"> - <rect> - <x>625</x> - <y>20</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Graphics Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_graphics.png</normaloff>../icon/category_graphics.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_internet"> - <property name="geometry"> - <rect> - <x>825</x> - <y>20</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Internet Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_internet.png</normaloff>../icon/category_internet.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_multimedia"> - <property name="geometry"> - <rect> - <x>25</x> - <y>215</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Multimedia Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_multimedia.png</normaloff>../icon/category_multimedia.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_office"> - <property name="geometry"> - <rect> - <x>225</x> - <y>215</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Office Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_office.png</normaloff>../icon/category_office.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_system"> - <property name="geometry"> - <rect> - <x>425</x> - <y>215</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse System Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_system.png</normaloff>../icon/category_system.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_development"> - <property name="geometry"> - <rect> - <x>225</x> - <y>20</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Development Category</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_development.png</normaloff>../icon/category_development.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_everything"> - <property name="geometry"> - <rect> - <x>625</x> - <y>215</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse All Packages</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_all.png</normaloff>../icon/category_all.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_local"> - <property name="geometry"> - <rect> - <x>825</x> - <y>215</y> - <width>150</width> - <height>150</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Browse Installed Packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/category_local.png</normaloff>../icon/category_local.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>64</width> - <height>64</height> - </size> - </property> - </widget> - </widget> + </column> + </widget> + <widget class="QPushButton" name="package_uninstall"> + <property name="geometry"> + <rect> + <x>225</x> + <y>550</y> + <width>150</width> + <height>30</height> + </rect> + </property> + <property name="toolTip"> + <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>../icon/uninstall.png</normaloff>../icon/uninstall.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + </widget> + <widget class="QPushButton" name="orphans_remove"> + <property name="geometry"> + <rect> + <x>425</x> + <y>550</y> + <width>150</width> + <height>30</height> + </rect> + </property> + <property name="toolTip"> + <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>../icon/orphans.png</normaloff>../icon/orphans.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + </widget> + <widget class="QPushButton" name="sisyphus_exit"> + <property name="geometry"> + <rect> + <x>825</x> + <y>550</y> + <width>150</width> + <height>30</height> + </rect> + </property> + <property name="toolTip"> + <string><html><head/><body><p align="center">Exit Sisyphus</p></body></html></string> + </property> + <property name="icon"> + <iconset> + <normaloff>../icon/exit.png</normaloff>../icon/exit.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + </widget> + <widget class="QPushButton" name="package_install"> + <property name="geometry"> + <rect> + <x>25</x> + <y>550</y> + <width>150</width> + <height>30</height> + </rect> + </property> + <property name="toolTip"> + <string><html><head/><body><p align="center">Install package</p></body></html></string> + </property> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>../icon/install.png</normaloff>../icon/install.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + </widget> + <widget class="QPushButton" name="system_upgrade"> + <property name="geometry"> + <rect> + <x>625</x> + <y>550</y> + <width>150</width> + <height>30</height> + </rect> + </property> + <property name="toolTip"> + <string><html><head/><body><p align="center">Upgrade system</p></body></html></string> + </property> + <property name="icon"> + <iconset> + <normaloff>../icon/upgrade.png</normaloff>../icon/upgrade.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> </widget> </widget> <tabstops> - <tabstop>input</tabstop> - <tabstop>package_search</tabstop> + <tabstop>table_everything</tabstop> <tabstop>package_install</tabstop> <tabstop>package_uninstall</tabstop> - <tabstop>system_upgrade</tabstop> <tabstop>orphans_remove</tabstop> - <tabstop>category_accesories</tabstop> - <tabstop>category_development</tabstop> - <tabstop>category_games</tabstop> - <tabstop>category_graphics</tabstop> - <tabstop>category_internet</tabstop> - <tabstop>category_multimedia</tabstop> - <tabstop>category_office</tabstop> - <tabstop>category_system</tabstop> - <tabstop>category_local</tabstop> - <tabstop>category_everything</tabstop> + <tabstop>sisyphus_exit</tabstop> </tabstops> <resources/> <connections/> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>System</class> - <widget class="QWidget" name="System"> - <property name="windowModality"> - <enum>Qt::ApplicationModal</enum> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>1000</width> - <height>600</height> - </rect> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="maximumSize"> - <size> - <width>1000</width> - <height>600</height> - </size> - </property> - <property name="windowTitle"> - <string>Sisyphus : Category System</string> - </property> - <property name="windowIcon"> - <iconset> - <normaloff>../icon/category_system.png</normaloff>../icon/category_system.png</iconset> - </property> - <widget class="QTableWidget" name="table_system"> - <property name="geometry"> - <rect> - <x>25</x> - <y>25</y> - <width>950</width> - <height>475</height> - </rect> - </property> - <property name="maximumSize"> - <size> - <width>950</width> - <height>500</height> - </size> - </property> - <property name="frameShape"> - <enum>QFrame::Panel</enum> - </property> - <property name="frameShadow"> - <enum>QFrame::Raised</enum> - </property> - <property name="sizeAdjustPolicy"> - <enum>QAbstractScrollArea::AdjustToContents</enum> - </property> - <property name="editTriggers"> - <set>QAbstractItemView::NoEditTriggers</set> - </property> - <property name="dragDropOverwriteMode"> - <bool>false</bool> - </property> - <property name="selectionMode"> - <enum>QAbstractItemView::SingleSelection</enum> - </property> - <property name="selectionBehavior"> - <enum>QAbstractItemView::SelectRows</enum> - </property> - <attribute name="horizontalHeaderCascadingSectionResizes"> - <bool>true</bool> - </attribute> - <attribute name="horizontalHeaderDefaultSectionSize"> - <number>110</number> - </attribute> - <attribute name="horizontalHeaderStretchLastSection"> - <bool>true</bool> - </attribute> - <attribute name="verticalHeaderVisible"> - <bool>false</bool> - </attribute> - <column> - <property name="text"> - <string>Category</string> - </property> - </column> - <column> - <property name="text"> - <string>Name</string> - </property> - </column> - <column> - <property name="text"> - <string>Available Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Installed Version</string> - </property> - </column> - <column> - <property name="text"> - <string>Description</string> - </property> - </column> - </widget> - <widget class="QPushButton" name="package_uninstall"> - <property name="geometry"> - <rect> - <x>275</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_uninstall.png</normaloff>../icon/package_uninstall.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="orphans_remove"> - <property name="geometry"> - <rect> - <x>525</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/remove_orphans.png</normaloff>../icon/remove_orphans.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="category_exit"> - <property name="geometry"> - <rect> - <x>775</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Close window</p></body></html></string> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/window_close.png</normaloff>../icon/window_close.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - <widget class="QPushButton" name="package_install"> - <property name="geometry"> - <rect> - <x>25</x> - <y>530</y> - <width>200</width> - <height>40</height> - </rect> - </property> - <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>../icon/package_install.png</normaloff>../icon/package_install.png</iconset> - </property> - <property name="iconSize"> - <size> - <width>32</width> - <height>32</height> - </size> - </property> - </widget> - </widget> - <tabstops> - <tabstop>table_system</tabstop> - <tabstop>package_install</tabstop> - <tabstop>package_uninstall</tabstop> - <tabstop>orphans_remove</tabstop> - <tabstop>category_exit</tabstop> - </tabstops> - <resources/> - <connections/> -</ui> |