Created GUI and converted to .py
This commit is contained in:
0
horsygui.py
Normal file
0
horsygui.py
Normal file
705
modules/gui.py
Normal file
705
modules/gui.py
Normal file
@@ -0,0 +1,705 @@
|
|||||||
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_MainWindow(object):
|
||||||
|
def setupUi(self, MainWindow):
|
||||||
|
MainWindow.setObjectName("MainWindow")
|
||||||
|
MainWindow.resize(899, 700)
|
||||||
|
MainWindow.setMinimumSize(QtCore.QSize(899, 700))
|
||||||
|
MainWindow.setMaximumSize(QtCore.QSize(899, 700))
|
||||||
|
icon = QtGui.QIcon()
|
||||||
|
icon.addPixmap(QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/horsy_white32x32.png"),
|
||||||
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
|
MainWindow.setWindowIcon(icon)
|
||||||
|
MainWindow.setWindowOpacity(0.99)
|
||||||
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||||||
|
self.centralwidget.setStyleSheet("QWidget{\n"
|
||||||
|
" background-color: rgb(30, 30, 30);\n"
|
||||||
|
"}\n"
|
||||||
|
"")
|
||||||
|
self.centralwidget.setObjectName("centralwidget")
|
||||||
|
self.horsy_logo_lefttop = QtWidgets.QLabel(self.centralwidget)
|
||||||
|
self.horsy_logo_lefttop.setGeometry(QtCore.QRect(10, 10, 32, 32))
|
||||||
|
self.horsy_logo_lefttop.setStyleSheet("background: none;")
|
||||||
|
self.horsy_logo_lefttop.setText("")
|
||||||
|
self.horsy_logo_lefttop.setPixmap(
|
||||||
|
QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/horsy_white32x32.png"))
|
||||||
|
self.horsy_logo_lefttop.setObjectName("horsy_logo_lefttop")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
|
||||||
|
self.tabWidget.setGeometry(QtCore.QRect(10, 4, 881, 691))
|
||||||
|
self.tabWidget.setToolTip("")
|
||||||
|
self.tabWidget.setLayoutDirection(QtCore.Qt.RightToLeft)
|
||||||
|
self.tabWidget.setAutoFillBackground(False)
|
||||||
|
self.tabWidget.setStyleSheet("QTabBar::tab\n"
|
||||||
|
"{\n"
|
||||||
|
" background: rgb(22, 22, 22);\n"
|
||||||
|
" color: white; \n"
|
||||||
|
" font: 12pt \"MS Shell Dlg 2\";\n"
|
||||||
|
" width: 150px;\n"
|
||||||
|
" height: 21px;\n"
|
||||||
|
" padding: 13px;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QTabBar::tab:selected\n"
|
||||||
|
"{\n"
|
||||||
|
" color: rgb(166, 184, 200);\n"
|
||||||
|
" background: rgb(45, 45, 45);\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QTabBar::tab:hover \n"
|
||||||
|
"{\n"
|
||||||
|
" color: rgb(166, 184, 200);\n"
|
||||||
|
" background: rgb(29, 29, 29);\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QTabBar\n"
|
||||||
|
"{\n"
|
||||||
|
"margin-top: 5px;\n"
|
||||||
|
"}\n"
|
||||||
|
"")
|
||||||
|
self.tabWidget.setDocumentMode(True)
|
||||||
|
self.tabWidget.setTabsClosable(False)
|
||||||
|
self.tabWidget.setMovable(True)
|
||||||
|
self.tabWidget.setTabBarAutoHide(False)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.account_tab = QtWidgets.QWidget()
|
||||||
|
self.account_tab.setObjectName("account_tab")
|
||||||
|
self.loginlogout_button = QtWidgets.QPushButton(self.account_tab)
|
||||||
|
self.loginlogout_button.setEnabled(True)
|
||||||
|
self.loginlogout_button.setGeometry(QtCore.QRect(720, 10, 151, 50))
|
||||||
|
self.loginlogout_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.loginlogout_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.loginlogout_button.setObjectName("loginlogout_button")
|
||||||
|
self.username_box = QtWidgets.QLineEdit(self.account_tab)
|
||||||
|
self.username_box.setGeometry(QtCore.QRect(720, 70, 151, 31))
|
||||||
|
self.username_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.username_box.setText("")
|
||||||
|
self.username_box.setReadOnly(True)
|
||||||
|
self.username_box.setObjectName("username_box")
|
||||||
|
self.changeemail_button = QtWidgets.QPushButton(self.account_tab)
|
||||||
|
self.changeemail_button.setEnabled(True)
|
||||||
|
self.changeemail_button.setGeometry(QtCore.QRect(360, 20, 151, 50))
|
||||||
|
self.changeemail_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.changeemail_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.changeemail_button.setObjectName("changeemail_button")
|
||||||
|
self.email_box = QtWidgets.QTextEdit(self.account_tab)
|
||||||
|
self.email_box.setEnabled(True)
|
||||||
|
self.email_box.setGeometry(QtCore.QRect(10, 20, 341, 51))
|
||||||
|
self.email_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 5px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.email_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.email_box.setAcceptRichText(False)
|
||||||
|
self.email_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.email_box.setObjectName("email_box")
|
||||||
|
self.oldpass_box = QtWidgets.QTextEdit(self.account_tab)
|
||||||
|
self.oldpass_box.setEnabled(True)
|
||||||
|
self.oldpass_box.setGeometry(QtCore.QRect(10, 80, 341, 51))
|
||||||
|
self.oldpass_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 5px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.oldpass_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.oldpass_box.setAcceptRichText(False)
|
||||||
|
self.oldpass_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.oldpass_box.setObjectName("oldpass_box")
|
||||||
|
self.newpass_box = QtWidgets.QTextEdit(self.account_tab)
|
||||||
|
self.newpass_box.setEnabled(True)
|
||||||
|
self.newpass_box.setGeometry(QtCore.QRect(10, 140, 341, 51))
|
||||||
|
self.newpass_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 5px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.newpass_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.newpass_box.setAcceptRichText(False)
|
||||||
|
self.newpass_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.newpass_box.setObjectName("newpass_box")
|
||||||
|
self.changepass_button = QtWidgets.QPushButton(self.account_tab)
|
||||||
|
self.changepass_button.setEnabled(True)
|
||||||
|
self.changepass_button.setGeometry(QtCore.QRect(360, 140, 151, 50))
|
||||||
|
self.changepass_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.changepass_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.changepass_button.setObjectName("changepass_button")
|
||||||
|
self.manage_packages_table = QtWidgets.QTableWidget(self.account_tab)
|
||||||
|
self.manage_packages_table.setGeometry(QtCore.QRect(10, 240, 871, 411))
|
||||||
|
self.manage_packages_table.setStyleSheet("QTableWidget\n"
|
||||||
|
"{\n"
|
||||||
|
"color: white;\n"
|
||||||
|
"font: 15pt \"MS Shell Dlg 2\";\n"
|
||||||
|
"margin: 20px;\n"
|
||||||
|
"border-radius: 45px;\n"
|
||||||
|
"}\n"
|
||||||
|
"")
|
||||||
|
self.manage_packages_table.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored)
|
||||||
|
self.manage_packages_table.setAutoScroll(False)
|
||||||
|
self.manage_packages_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||||||
|
self.manage_packages_table.setTabKeyNavigation(False)
|
||||||
|
self.manage_packages_table.setProperty("showDropIndicator", False)
|
||||||
|
self.manage_packages_table.setDragDropOverwriteMode(False)
|
||||||
|
self.manage_packages_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
|
||||||
|
self.manage_packages_table.setShowGrid(False)
|
||||||
|
self.manage_packages_table.setRowCount(1)
|
||||||
|
self.manage_packages_table.setColumnCount(4)
|
||||||
|
self.manage_packages_table.setObjectName("manage_packages_table")
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.manage_packages_table.setItem(0, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.manage_packages_table.setItem(0, 1, item)
|
||||||
|
self.manage_packages_table.horizontalHeader().setVisible(False)
|
||||||
|
self.manage_packages_table.horizontalHeader().setDefaultSectionSize(203)
|
||||||
|
self.manage_packages_table.horizontalHeader().setHighlightSections(False)
|
||||||
|
self.manage_packages_table.horizontalHeader().setMinimumSectionSize(150)
|
||||||
|
self.manage_packages_table.verticalHeader().setVisible(False)
|
||||||
|
self.manage_packages_table.verticalHeader().setDefaultSectionSize(120)
|
||||||
|
self.manage_packages_table.verticalHeader().setHighlightSections(False)
|
||||||
|
self.manage_packages_message = QtWidgets.QTextBrowser(self.account_tab)
|
||||||
|
self.manage_packages_message.setGeometry(QtCore.QRect(380, 230, 121, 21))
|
||||||
|
self.manage_packages_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.manage_packages_message.setAcceptRichText(False)
|
||||||
|
self.manage_packages_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.manage_packages_message.setObjectName("manage_packages_message")
|
||||||
|
self.tabWidget.addTab(self.account_tab, "")
|
||||||
|
self.upload_tab = QtWidgets.QWidget()
|
||||||
|
self.upload_tab.setObjectName("upload_tab")
|
||||||
|
self.packagename_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.packagename_box.setGeometry(QtCore.QRect(10, 55, 101, 31))
|
||||||
|
self.packagename_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.packagename_box.setObjectName("packagename_box")
|
||||||
|
self.before_uploading_message = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.before_uploading_message.setGeometry(QtCore.QRect(10, 10, 321, 41))
|
||||||
|
self.before_uploading_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.before_uploading_message.setAcceptRichText(False)
|
||||||
|
self.before_uploading_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.before_uploading_message.setObjectName("before_uploading_message")
|
||||||
|
self.packagename_message = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.packagename_message.setGeometry(QtCore.QRect(120, 60, 321, 21))
|
||||||
|
self.packagename_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.packagename_message.setAcceptRichText(False)
|
||||||
|
self.packagename_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.packagename_message.setObjectName("packagename_message")
|
||||||
|
self.package_desc_box = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.package_desc_box.setGeometry(QtCore.QRect(10, 90, 256, 101))
|
||||||
|
self.package_desc_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.package_desc_box.setAcceptRichText(False)
|
||||||
|
self.package_desc_box.setTextInteractionFlags(
|
||||||
|
QtCore.Qt.LinksAccessibleByKeyboard | QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextBrowserInteraction | QtCore.Qt.TextEditable | QtCore.Qt.TextEditorInteraction | QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse)
|
||||||
|
self.package_desc_box.setObjectName("package_desc_box")
|
||||||
|
self.url_of_exe_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.url_of_exe_box.setGeometry(QtCore.QRect(10, 195, 291, 31))
|
||||||
|
self.url_of_exe_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.url_of_exe_box.setObjectName("url_of_exe_box")
|
||||||
|
self.source_url_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.source_url_box.setGeometry(QtCore.QRect(10, 230, 291, 31))
|
||||||
|
self.source_url_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.source_url_box.setObjectName("source_url_box")
|
||||||
|
self.dependency_url_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.dependency_url_box.setGeometry(QtCore.QRect(10, 265, 291, 31))
|
||||||
|
self.dependency_url_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.dependency_url_box.setObjectName("dependency_url_box")
|
||||||
|
self.dependency_run_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.dependency_run_box.setGeometry(QtCore.QRect(10, 300, 291, 31))
|
||||||
|
self.dependency_run_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.dependency_run_box.setObjectName("dependency_run_box")
|
||||||
|
self.main_exe_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.main_exe_box.setGeometry(QtCore.QRect(10, 335, 291, 31))
|
||||||
|
self.main_exe_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.main_exe_box.setObjectName("main_exe_box")
|
||||||
|
self.upload_button = QtWidgets.QPushButton(self.upload_tab)
|
||||||
|
self.upload_button.setEnabled(True)
|
||||||
|
self.upload_button.setGeometry(QtCore.QRect(10, 380, 291, 50))
|
||||||
|
self.upload_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.upload_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.upload_button.setObjectName("upload_button")
|
||||||
|
self.safetywarning_message = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.safetywarning_message.setGeometry(QtCore.QRect(10, 450, 281, 161))
|
||||||
|
self.safetywarning_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.safetywarning_message.setAcceptRichText(False)
|
||||||
|
self.safetywarning_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.safetywarning_message.setObjectName("safetywarning_message")
|
||||||
|
self.horsy_logo_big = QtWidgets.QLabel(self.upload_tab)
|
||||||
|
self.horsy_logo_big.setGeometry(QtCore.QRect(390, 40, 471, 551))
|
||||||
|
self.horsy_logo_big.setStyleSheet("background: none")
|
||||||
|
self.horsy_logo_big.setText("")
|
||||||
|
self.horsy_logo_big.setPixmap(
|
||||||
|
QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/horsy_white.png"))
|
||||||
|
self.horsy_logo_big.setObjectName("horsy_logo_big")
|
||||||
|
self.tabWidget.addTab(self.upload_tab, "")
|
||||||
|
self.browse_tab = QtWidgets.QWidget()
|
||||||
|
self.browse_tab.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||||
|
self.browse_tab.setObjectName("browse_tab")
|
||||||
|
self.search_table = QtWidgets.QTableWidget(self.browse_tab)
|
||||||
|
self.search_table.setGeometry(QtCore.QRect(0, 90, 871, 481))
|
||||||
|
self.search_table.setStyleSheet("QTableWidget\n"
|
||||||
|
"{\n"
|
||||||
|
"color: white;\n"
|
||||||
|
"font: 15pt \"MS Shell Dlg 2\";\n"
|
||||||
|
"margin: 20px;\n"
|
||||||
|
"border-radius: 45px;\n"
|
||||||
|
"}\n"
|
||||||
|
"")
|
||||||
|
self.search_table.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored)
|
||||||
|
self.search_table.setAutoScroll(False)
|
||||||
|
self.search_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||||||
|
self.search_table.setTabKeyNavigation(False)
|
||||||
|
self.search_table.setProperty("showDropIndicator", False)
|
||||||
|
self.search_table.setDragDropOverwriteMode(False)
|
||||||
|
self.search_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
|
||||||
|
self.search_table.setShowGrid(False)
|
||||||
|
self.search_table.setRowCount(1)
|
||||||
|
self.search_table.setColumnCount(4)
|
||||||
|
self.search_table.setObjectName("search_table")
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.search_table.setItem(0, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.search_table.setItem(0, 1, item)
|
||||||
|
self.search_table.horizontalHeader().setVisible(False)
|
||||||
|
self.search_table.horizontalHeader().setDefaultSectionSize(203)
|
||||||
|
self.search_table.horizontalHeader().setHighlightSections(False)
|
||||||
|
self.search_table.horizontalHeader().setMinimumSectionSize(150)
|
||||||
|
self.search_table.verticalHeader().setVisible(False)
|
||||||
|
self.search_table.verticalHeader().setDefaultSectionSize(120)
|
||||||
|
self.search_table.verticalHeader().setHighlightSections(False)
|
||||||
|
self.search_box = QtWidgets.QTextEdit(self.browse_tab)
|
||||||
|
self.search_box.setEnabled(True)
|
||||||
|
self.search_box.setGeometry(QtCore.QRect(30, 30, 711, 51))
|
||||||
|
self.search_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 15px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.search_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.search_box.setAcceptRichText(False)
|
||||||
|
self.search_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.search_box.setObjectName("search_box")
|
||||||
|
self.search_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
|
self.search_button.setEnabled(True)
|
||||||
|
self.search_button.setGeometry(QtCore.QRect(750, 30, 91, 50))
|
||||||
|
self.search_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.search_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.search_button.setObjectName("search_button")
|
||||||
|
self.install_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
|
self.install_button.setEnabled(True)
|
||||||
|
self.install_button.setGeometry(QtCore.QRect(20, 575, 146, 50))
|
||||||
|
self.install_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.install_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.install_button.setObjectName("install_button")
|
||||||
|
self.source_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
|
self.source_button.setEnabled(True)
|
||||||
|
self.source_button.setGeometry(QtCore.QRect(190, 575, 146, 50))
|
||||||
|
self.source_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.source_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.source_button.setObjectName("source_button")
|
||||||
|
self.info_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
|
self.info_button.setEnabled(True)
|
||||||
|
self.info_button.setGeometry(QtCore.QRect(360, 575, 146, 50))
|
||||||
|
self.info_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.info_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.info_button.setObjectName("info_button")
|
||||||
|
self.like_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
|
self.like_button.setEnabled(True)
|
||||||
|
self.like_button.setGeometry(QtCore.QRect(540, 575, 146, 50))
|
||||||
|
self.like_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.like_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.like_button.setObjectName("like_button")
|
||||||
|
self.dislike_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
|
self.dislike_button.setEnabled(True)
|
||||||
|
self.dislike_button.setGeometry(QtCore.QRect(710, 575, 146, 50))
|
||||||
|
self.dislike_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.dislike_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.dislike_button.setObjectName("dislike_button")
|
||||||
|
self.algolia_logo = QtWidgets.QLabel(self.browse_tab)
|
||||||
|
self.algolia_logo.setGeometry(QtCore.QRect(820, 530, 31, 31))
|
||||||
|
self.algolia_logo.setStyleSheet("background: none;")
|
||||||
|
self.algolia_logo.setText("")
|
||||||
|
self.algolia_logo.setPixmap(
|
||||||
|
QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/algolia120x32.png"))
|
||||||
|
self.algolia_logo.setObjectName("algolia_logo")
|
||||||
|
self.tabWidget.addTab(self.browse_tab, "")
|
||||||
|
self.installed_tab = QtWidgets.QWidget()
|
||||||
|
self.installed_tab.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||||
|
self.installed_tab.setObjectName("installed_tab")
|
||||||
|
self.delete_button = QtWidgets.QPushButton(self.installed_tab)
|
||||||
|
self.delete_button.setEnabled(True)
|
||||||
|
self.delete_button.setGeometry(QtCore.QRect(440, 575, 421, 50))
|
||||||
|
self.delete_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.delete_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.delete_button.setObjectName("delete_button")
|
||||||
|
self.update_button = QtWidgets.QPushButton(self.installed_tab)
|
||||||
|
self.update_button.setEnabled(True)
|
||||||
|
self.update_button.setGeometry(QtCore.QRect(20, 575, 401, 50))
|
||||||
|
self.update_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.update_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.update_button.setObjectName("update_button")
|
||||||
|
self.installed_table = QtWidgets.QTableWidget(self.installed_tab)
|
||||||
|
self.installed_table.setGeometry(QtCore.QRect(0, 10, 871, 571))
|
||||||
|
self.installed_table.setStyleSheet("QTableWidget\n"
|
||||||
|
"{\n"
|
||||||
|
"color: white;\n"
|
||||||
|
"font: 15pt \"MS Shell Dlg 2\";\n"
|
||||||
|
"margin: 20px;\n"
|
||||||
|
"border-radius: 45px;\n"
|
||||||
|
"}\n"
|
||||||
|
"")
|
||||||
|
self.installed_table.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored)
|
||||||
|
self.installed_table.setAutoScroll(False)
|
||||||
|
self.installed_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||||||
|
self.installed_table.setTabKeyNavigation(False)
|
||||||
|
self.installed_table.setProperty("showDropIndicator", False)
|
||||||
|
self.installed_table.setDragDropOverwriteMode(False)
|
||||||
|
self.installed_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
|
||||||
|
self.installed_table.setShowGrid(False)
|
||||||
|
self.installed_table.setRowCount(1)
|
||||||
|
self.installed_table.setColumnCount(4)
|
||||||
|
self.installed_table.setObjectName("installed_table")
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.installed_table.setItem(0, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.installed_table.setItem(0, 1, item)
|
||||||
|
self.installed_table.horizontalHeader().setVisible(False)
|
||||||
|
self.installed_table.horizontalHeader().setDefaultSectionSize(203)
|
||||||
|
self.installed_table.horizontalHeader().setHighlightSections(False)
|
||||||
|
self.installed_table.horizontalHeader().setMinimumSectionSize(150)
|
||||||
|
self.installed_table.verticalHeader().setVisible(False)
|
||||||
|
self.installed_table.verticalHeader().setDefaultSectionSize(120)
|
||||||
|
self.installed_table.verticalHeader().setHighlightSections(False)
|
||||||
|
self.tabWidget.addTab(self.installed_tab, "")
|
||||||
|
self.horsy_text_lefttop = QtWidgets.QLabel(self.centralwidget)
|
||||||
|
self.horsy_text_lefttop.setGeometry(QtCore.QRect(70, 10, 65, 30))
|
||||||
|
self.horsy_text_lefttop.setStyleSheet("color: white;\n"
|
||||||
|
"font: 20pt \"MS Shell Dlg 2\";\n"
|
||||||
|
"background: none;")
|
||||||
|
self.horsy_text_lefttop.setObjectName("horsy_text_lefttop")
|
||||||
|
self.tabWidget.raise_()
|
||||||
|
self.horsy_logo_lefttop.raise_()
|
||||||
|
self.horsy_text_lefttop.raise_()
|
||||||
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
|
|
||||||
|
self.retranslateUi(MainWindow)
|
||||||
|
self.tabWidget.setCurrentIndex(3)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||||
|
|
||||||
|
def retranslateUi(self, MainWindow):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
MainWindow.setWindowTitle(_translate("MainWindow", "horsy"))
|
||||||
|
self.loginlogout_button.setText(_translate("MainWindow", "Log in/Log out"))
|
||||||
|
self.username_box.setPlaceholderText(_translate("MainWindow", "Log in first"))
|
||||||
|
self.changeemail_button.setText(_translate("MainWindow", "Change e-mail"))
|
||||||
|
self.email_box.setPlaceholderText(_translate("MainWindow", "email"))
|
||||||
|
self.oldpass_box.setPlaceholderText(_translate("MainWindow", "Old password"))
|
||||||
|
self.newpass_box.setPlaceholderText(_translate("MainWindow", "New password"))
|
||||||
|
self.changepass_button.setText(_translate("MainWindow", "Change password"))
|
||||||
|
self.manage_packages_table.setSortingEnabled(True)
|
||||||
|
__sortingEnabled = self.manage_packages_table.isSortingEnabled()
|
||||||
|
self.manage_packages_table.setSortingEnabled(False)
|
||||||
|
self.manage_packages_table.setSortingEnabled(__sortingEnabled)
|
||||||
|
self.manage_packages_message.setHtml(_translate("MainWindow",
|
||||||
|
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Manage your packages</p></body></html>"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.account_tab), _translate("MainWindow", "Account"))
|
||||||
|
self.packagename_box.setPlaceholderText(_translate("MainWindow", "Package name"))
|
||||||
|
self.before_uploading_message.setHtml(_translate("MainWindow",
|
||||||
|
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Before starting, please make sure you have done your project and <span style=\" font-weight:600;\">uploaded</span> it to any hosting service or file sharing service</p></body></html>"))
|
||||||
|
self.packagename_message.setHtml(_translate("MainWindow",
|
||||||
|
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">It should contain only lowercase letters, underscores and dashes</p></body></html>"))
|
||||||
|
self.package_desc_box.setHtml(_translate("MainWindow",
|
||||||
|
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
|
||||||
|
self.package_desc_box.setPlaceholderText(
|
||||||
|
_translate("MainWindow", "Package description. It should be a short text under 256 characters"))
|
||||||
|
self.url_of_exe_box.setPlaceholderText(_translate("MainWindow", "Url of executable (ends on .exe or .zip)"))
|
||||||
|
self.source_url_box.setPlaceholderText(
|
||||||
|
_translate("MainWindow", "Url of source (project on GitHub, source archive)"))
|
||||||
|
self.dependency_url_box.setPlaceholderText(_translate("MainWindow", "Dependency URL (installer in .exe)"))
|
||||||
|
self.dependency_run_box.setPlaceholderText(
|
||||||
|
_translate("MainWindow", "Dependency run (run this during installation)"))
|
||||||
|
self.main_exe_box.setPlaceholderText(
|
||||||
|
_translate("MainWindow", "Main executable command (file.exe, python main.py, etc)"))
|
||||||
|
self.upload_button.setText(_translate("MainWindow", "Upload"))
|
||||||
|
self.safetywarning_message.setHtml(_translate("MainWindow",
|
||||||
|
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:11pt;\">We don\'t moderate any apps and we </span><span style=\" font-size:11pt; font-weight:600;\">won\'t</span><span style=\" font-size:11pt;\"> delete your app, if it is not doesn\'t match some rules. But, if your app uses server vulnerabilities or hinders server work, we will delete your app. Keep in mind, that we don\'t responsible for your apps, but we advise you to share only working and safe apps on horsy</span></p></body></html>"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.upload_tab), _translate("MainWindow", "Upload"))
|
||||||
|
self.search_table.setSortingEnabled(True)
|
||||||
|
__sortingEnabled = self.search_table.isSortingEnabled()
|
||||||
|
self.search_table.setSortingEnabled(False)
|
||||||
|
self.search_table.setSortingEnabled(__sortingEnabled)
|
||||||
|
self.search_box.setPlaceholderText(_translate("MainWindow", "Search packages..."))
|
||||||
|
self.search_button.setText(_translate("MainWindow", "Search"))
|
||||||
|
self.install_button.setText(_translate("MainWindow", "Install"))
|
||||||
|
self.source_button.setText(_translate("MainWindow", "Get source"))
|
||||||
|
self.info_button.setText(_translate("MainWindow", "Info"))
|
||||||
|
self.like_button.setText(_translate("MainWindow", "👍"))
|
||||||
|
self.dislike_button.setText(_translate("MainWindow", "👎"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.browse_tab), _translate("MainWindow", "Browse"))
|
||||||
|
self.delete_button.setText(_translate("MainWindow", "Uninstall"))
|
||||||
|
self.update_button.setText(_translate("MainWindow", "Update"))
|
||||||
|
self.installed_table.setSortingEnabled(True)
|
||||||
|
__sortingEnabled = self.installed_table.isSortingEnabled()
|
||||||
|
self.installed_table.setSortingEnabled(False)
|
||||||
|
self.installed_table.setSortingEnabled(__sortingEnabled)
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.installed_tab), _translate("MainWindow", "Installed"))
|
||||||
|
self.horsy_text_lefttop.setText(_translate("MainWindow", "horsy"))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
import sys
|
||||||
|
|
||||||
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
|
MainWindow = QtWidgets.QMainWindow()
|
||||||
|
ui = Ui_MainWindow()
|
||||||
|
ui.setupUi(MainWindow)
|
||||||
|
MainWindow.show()
|
||||||
|
sys.exit(app.exec_())
|
||||||
@@ -3,4 +3,5 @@ requests
|
|||||||
Cryptography
|
Cryptography
|
||||||
Pyinstaller
|
Pyinstaller
|
||||||
tqdm
|
tqdm
|
||||||
algoliasearch
|
algoliasearch
|
||||||
|
PyQt5
|
||||||
@@ -72,72 +72,11 @@ class Ui_MainWindow(object):
|
|||||||
self.tabWidget.setObjectName("tabWidget")
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
self.account_tab = QtWidgets.QWidget()
|
self.account_tab = QtWidgets.QWidget()
|
||||||
self.account_tab.setObjectName("account_tab")
|
self.account_tab.setObjectName("account_tab")
|
||||||
self.tabWidget.addTab(self.account_tab, "")
|
self.loginlogout_button = QtWidgets.QPushButton(self.account_tab)
|
||||||
self.upload_tab = QtWidgets.QWidget()
|
self.loginlogout_button.setEnabled(True)
|
||||||
self.upload_tab.setObjectName("upload_tab")
|
self.loginlogout_button.setGeometry(QtCore.QRect(720, 10, 151, 50))
|
||||||
self.lineEdit = QtWidgets.QLineEdit(self.upload_tab)
|
self.loginlogout_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
self.lineEdit.setGeometry(QtCore.QRect(10, 55, 101, 31))
|
self.loginlogout_button.setStyleSheet("QPushButton {\n"
|
||||||
self.lineEdit.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.lineEdit.setObjectName("lineEdit")
|
|
||||||
self.textBrowser = QtWidgets.QTextBrowser(self.upload_tab)
|
|
||||||
self.textBrowser.setGeometry(QtCore.QRect(10, 10, 321, 41))
|
|
||||||
self.textBrowser.setStyleSheet("color: white;\n"
|
|
||||||
"border: none;")
|
|
||||||
self.textBrowser.setAcceptRichText(False)
|
|
||||||
self.textBrowser.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
|
||||||
self.textBrowser.setObjectName("textBrowser")
|
|
||||||
self.textBrowser_2 = QtWidgets.QTextBrowser(self.upload_tab)
|
|
||||||
self.textBrowser_2.setGeometry(QtCore.QRect(120, 60, 321, 21))
|
|
||||||
self.textBrowser_2.setStyleSheet("color: white;\n"
|
|
||||||
"border: none;")
|
|
||||||
self.textBrowser_2.setAcceptRichText(False)
|
|
||||||
self.textBrowser_2.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
|
||||||
self.textBrowser_2.setObjectName("textBrowser_2")
|
|
||||||
self.textBrowser_3 = QtWidgets.QTextBrowser(self.upload_tab)
|
|
||||||
self.textBrowser_3.setGeometry(QtCore.QRect(10, 90, 256, 101))
|
|
||||||
self.textBrowser_3.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.textBrowser_3.setAcceptRichText(False)
|
|
||||||
self.textBrowser_3.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextEditable|QtCore.Qt.TextEditorInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
|
|
||||||
self.textBrowser_3.setObjectName("textBrowser_3")
|
|
||||||
self.lineEdit_2 = QtWidgets.QLineEdit(self.upload_tab)
|
|
||||||
self.lineEdit_2.setGeometry(QtCore.QRect(10, 195, 291, 31))
|
|
||||||
self.lineEdit_2.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.lineEdit_2.setObjectName("lineEdit_2")
|
|
||||||
self.lineEdit_3 = QtWidgets.QLineEdit(self.upload_tab)
|
|
||||||
self.lineEdit_3.setGeometry(QtCore.QRect(10, 230, 291, 31))
|
|
||||||
self.lineEdit_3.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.lineEdit_3.setObjectName("lineEdit_3")
|
|
||||||
self.lineEdit_4 = QtWidgets.QLineEdit(self.upload_tab)
|
|
||||||
self.lineEdit_4.setGeometry(QtCore.QRect(10, 265, 291, 31))
|
|
||||||
self.lineEdit_4.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.lineEdit_4.setObjectName("lineEdit_4")
|
|
||||||
self.lineEdit_5 = QtWidgets.QLineEdit(self.upload_tab)
|
|
||||||
self.lineEdit_5.setGeometry(QtCore.QRect(10, 300, 291, 31))
|
|
||||||
self.lineEdit_5.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.lineEdit_5.setObjectName("lineEdit_5")
|
|
||||||
self.lineEdit_6 = QtWidgets.QLineEdit(self.upload_tab)
|
|
||||||
self.lineEdit_6.setGeometry(QtCore.QRect(10, 335, 291, 31))
|
|
||||||
self.lineEdit_6.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
|
||||||
"border-radius: 5px; \n"
|
|
||||||
"color: rgb(242, 242, 242);")
|
|
||||||
self.lineEdit_6.setObjectName("lineEdit_6")
|
|
||||||
self.info_button_2 = QtWidgets.QPushButton(self.upload_tab)
|
|
||||||
self.info_button_2.setEnabled(True)
|
|
||||||
self.info_button_2.setGeometry(QtCore.QRect(10, 380, 291, 50))
|
|
||||||
self.info_button_2.setMinimumSize(QtCore.QSize(0, 50))
|
|
||||||
self.info_button_2.setStyleSheet("QPushButton {\n"
|
|
||||||
" color: rgb(204, 204, 204);\n"
|
" color: rgb(204, 204, 204);\n"
|
||||||
" border-width: 1px;\n"
|
" border-width: 1px;\n"
|
||||||
" border-radius:6px;\n"
|
" border-radius:6px;\n"
|
||||||
@@ -155,20 +94,239 @@ class Ui_MainWindow(object):
|
|||||||
" border-width: 0px;\n"
|
" border-width: 0px;\n"
|
||||||
" background-color: rgb(92, 99, 109);\n"
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
"}")
|
"}")
|
||||||
self.info_button_2.setObjectName("info_button_2")
|
self.loginlogout_button.setObjectName("loginlogout_button")
|
||||||
self.textBrowser_4 = QtWidgets.QTextBrowser(self.upload_tab)
|
self.username_box = QtWidgets.QLineEdit(self.account_tab)
|
||||||
self.textBrowser_4.setGeometry(QtCore.QRect(10, 450, 281, 161))
|
self.username_box.setGeometry(QtCore.QRect(720, 70, 151, 31))
|
||||||
self.textBrowser_4.setStyleSheet("color: white;\n"
|
self.username_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.username_box.setText("")
|
||||||
|
self.username_box.setReadOnly(True)
|
||||||
|
self.username_box.setObjectName("username_box")
|
||||||
|
self.changeemail_button = QtWidgets.QPushButton(self.account_tab)
|
||||||
|
self.changeemail_button.setEnabled(True)
|
||||||
|
self.changeemail_button.setGeometry(QtCore.QRect(360, 20, 151, 50))
|
||||||
|
self.changeemail_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.changeemail_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.changeemail_button.setObjectName("changeemail_button")
|
||||||
|
self.email_box = QtWidgets.QTextEdit(self.account_tab)
|
||||||
|
self.email_box.setEnabled(True)
|
||||||
|
self.email_box.setGeometry(QtCore.QRect(10, 20, 341, 51))
|
||||||
|
self.email_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 5px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.email_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.email_box.setAcceptRichText(False)
|
||||||
|
self.email_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.email_box.setObjectName("email_box")
|
||||||
|
self.oldpass_box = QtWidgets.QTextEdit(self.account_tab)
|
||||||
|
self.oldpass_box.setEnabled(True)
|
||||||
|
self.oldpass_box.setGeometry(QtCore.QRect(10, 80, 341, 51))
|
||||||
|
self.oldpass_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 5px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.oldpass_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.oldpass_box.setAcceptRichText(False)
|
||||||
|
self.oldpass_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.oldpass_box.setObjectName("oldpass_box")
|
||||||
|
self.newpass_box = QtWidgets.QTextEdit(self.account_tab)
|
||||||
|
self.newpass_box.setEnabled(True)
|
||||||
|
self.newpass_box.setGeometry(QtCore.QRect(10, 140, 341, 51))
|
||||||
|
self.newpass_box.setStyleSheet("QTextEdit {\n"
|
||||||
|
" background-color: rgb(74, 76, 83);\n"
|
||||||
|
" border-radius: 5px; \n"
|
||||||
|
" color: rgb(242, 242, 242);\n"
|
||||||
|
" padding: 15px, 15px;\n"
|
||||||
|
" border: 15px white;\n"
|
||||||
|
"}")
|
||||||
|
self.newpass_box.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
|
||||||
|
self.newpass_box.setAcceptRichText(False)
|
||||||
|
self.newpass_box.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction)
|
||||||
|
self.newpass_box.setObjectName("newpass_box")
|
||||||
|
self.changepass_button = QtWidgets.QPushButton(self.account_tab)
|
||||||
|
self.changepass_button.setEnabled(True)
|
||||||
|
self.changepass_button.setGeometry(QtCore.QRect(360, 140, 151, 50))
|
||||||
|
self.changepass_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.changepass_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.changepass_button.setObjectName("changepass_button")
|
||||||
|
self.manage_packages_table = QtWidgets.QTableWidget(self.account_tab)
|
||||||
|
self.manage_packages_table.setGeometry(QtCore.QRect(10, 240, 871, 411))
|
||||||
|
self.manage_packages_table.setStyleSheet("QTableWidget\n"
|
||||||
|
"{\n"
|
||||||
|
"color: white;\n"
|
||||||
|
"font: 15pt \"MS Shell Dlg 2\";\n"
|
||||||
|
"margin: 20px;\n"
|
||||||
|
"border-radius: 45px;\n"
|
||||||
|
"}\n"
|
||||||
|
"")
|
||||||
|
self.manage_packages_table.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored)
|
||||||
|
self.manage_packages_table.setAutoScroll(False)
|
||||||
|
self.manage_packages_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
|
||||||
|
self.manage_packages_table.setTabKeyNavigation(False)
|
||||||
|
self.manage_packages_table.setProperty("showDropIndicator", False)
|
||||||
|
self.manage_packages_table.setDragDropOverwriteMode(False)
|
||||||
|
self.manage_packages_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
|
||||||
|
self.manage_packages_table.setShowGrid(False)
|
||||||
|
self.manage_packages_table.setRowCount(1)
|
||||||
|
self.manage_packages_table.setColumnCount(4)
|
||||||
|
self.manage_packages_table.setObjectName("manage_packages_table")
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.manage_packages_table.setItem(0, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.manage_packages_table.setItem(0, 1, item)
|
||||||
|
self.manage_packages_table.horizontalHeader().setVisible(False)
|
||||||
|
self.manage_packages_table.horizontalHeader().setDefaultSectionSize(203)
|
||||||
|
self.manage_packages_table.horizontalHeader().setHighlightSections(False)
|
||||||
|
self.manage_packages_table.horizontalHeader().setMinimumSectionSize(150)
|
||||||
|
self.manage_packages_table.verticalHeader().setVisible(False)
|
||||||
|
self.manage_packages_table.verticalHeader().setDefaultSectionSize(120)
|
||||||
|
self.manage_packages_table.verticalHeader().setHighlightSections(False)
|
||||||
|
self.manage_packages_message = QtWidgets.QTextBrowser(self.account_tab)
|
||||||
|
self.manage_packages_message.setGeometry(QtCore.QRect(380, 230, 121, 21))
|
||||||
|
self.manage_packages_message.setStyleSheet("color: white;\n"
|
||||||
"border: none;")
|
"border: none;")
|
||||||
self.textBrowser_4.setAcceptRichText(False)
|
self.manage_packages_message.setAcceptRichText(False)
|
||||||
self.textBrowser_4.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
self.manage_packages_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
self.textBrowser_4.setObjectName("textBrowser_4")
|
self.manage_packages_message.setObjectName("manage_packages_message")
|
||||||
self.label = QtWidgets.QLabel(self.upload_tab)
|
self.tabWidget.addTab(self.account_tab, "")
|
||||||
self.label.setGeometry(QtCore.QRect(390, 40, 471, 551))
|
self.upload_tab = QtWidgets.QWidget()
|
||||||
self.label.setStyleSheet("background: none")
|
self.upload_tab.setObjectName("upload_tab")
|
||||||
self.label.setText("")
|
self.packagename_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
self.label.setPixmap(QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/horsy_white.png"))
|
self.packagename_box.setGeometry(QtCore.QRect(10, 55, 101, 31))
|
||||||
self.label.setObjectName("label")
|
self.packagename_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.packagename_box.setObjectName("packagename_box")
|
||||||
|
self.before_uploading_message = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.before_uploading_message.setGeometry(QtCore.QRect(10, 10, 321, 41))
|
||||||
|
self.before_uploading_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.before_uploading_message.setAcceptRichText(False)
|
||||||
|
self.before_uploading_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.before_uploading_message.setObjectName("before_uploading_message")
|
||||||
|
self.packagename_message = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.packagename_message.setGeometry(QtCore.QRect(120, 60, 321, 21))
|
||||||
|
self.packagename_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.packagename_message.setAcceptRichText(False)
|
||||||
|
self.packagename_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.packagename_message.setObjectName("packagename_message")
|
||||||
|
self.package_desc_box = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.package_desc_box.setGeometry(QtCore.QRect(10, 90, 256, 101))
|
||||||
|
self.package_desc_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.package_desc_box.setAcceptRichText(False)
|
||||||
|
self.package_desc_box.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextEditable|QtCore.Qt.TextEditorInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
|
||||||
|
self.package_desc_box.setObjectName("package_desc_box")
|
||||||
|
self.url_of_exe_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.url_of_exe_box.setGeometry(QtCore.QRect(10, 195, 291, 31))
|
||||||
|
self.url_of_exe_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.url_of_exe_box.setObjectName("url_of_exe_box")
|
||||||
|
self.source_url_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.source_url_box.setGeometry(QtCore.QRect(10, 230, 291, 31))
|
||||||
|
self.source_url_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.source_url_box.setObjectName("source_url_box")
|
||||||
|
self.dependency_url_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.dependency_url_box.setGeometry(QtCore.QRect(10, 265, 291, 31))
|
||||||
|
self.dependency_url_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.dependency_url_box.setObjectName("dependency_url_box")
|
||||||
|
self.dependency_run_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.dependency_run_box.setGeometry(QtCore.QRect(10, 300, 291, 31))
|
||||||
|
self.dependency_run_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.dependency_run_box.setObjectName("dependency_run_box")
|
||||||
|
self.main_exe_box = QtWidgets.QLineEdit(self.upload_tab)
|
||||||
|
self.main_exe_box.setGeometry(QtCore.QRect(10, 335, 291, 31))
|
||||||
|
self.main_exe_box.setStyleSheet("background-color: rgb(74, 76, 83);\n"
|
||||||
|
"border-radius: 5px; \n"
|
||||||
|
"color: rgb(242, 242, 242);")
|
||||||
|
self.main_exe_box.setObjectName("main_exe_box")
|
||||||
|
self.upload_button = QtWidgets.QPushButton(self.upload_tab)
|
||||||
|
self.upload_button.setEnabled(True)
|
||||||
|
self.upload_button.setGeometry(QtCore.QRect(10, 380, 291, 50))
|
||||||
|
self.upload_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
|
self.upload_button.setStyleSheet("QPushButton {\n"
|
||||||
|
" color: rgb(204, 204, 204);\n"
|
||||||
|
" border-width: 1px;\n"
|
||||||
|
" border-radius:6px;\n"
|
||||||
|
" border-style: solid;\n"
|
||||||
|
" background-color: rgb(28, 30, 33);\n"
|
||||||
|
" border-color: rgb(66, 143, 225);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:hover{\n"
|
||||||
|
" border-width: 2px;\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:pressed{\n"
|
||||||
|
" background-color: rgb(50, 60, 63);\n"
|
||||||
|
"}\n"
|
||||||
|
"QPushButton:disabled{\n"
|
||||||
|
" border-width: 0px;\n"
|
||||||
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
|
"}")
|
||||||
|
self.upload_button.setObjectName("upload_button")
|
||||||
|
self.safetywarning_message = QtWidgets.QTextBrowser(self.upload_tab)
|
||||||
|
self.safetywarning_message.setGeometry(QtCore.QRect(10, 450, 281, 161))
|
||||||
|
self.safetywarning_message.setStyleSheet("color: white;\n"
|
||||||
|
"border: none;")
|
||||||
|
self.safetywarning_message.setAcceptRichText(False)
|
||||||
|
self.safetywarning_message.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
|
||||||
|
self.safetywarning_message.setObjectName("safetywarning_message")
|
||||||
|
self.horsy_logo_big = QtWidgets.QLabel(self.upload_tab)
|
||||||
|
self.horsy_logo_big.setGeometry(QtCore.QRect(390, 40, 471, 551))
|
||||||
|
self.horsy_logo_big.setStyleSheet("background: none")
|
||||||
|
self.horsy_logo_big.setText("")
|
||||||
|
self.horsy_logo_big.setPixmap(QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/horsy_white.png"))
|
||||||
|
self.horsy_logo_big.setObjectName("horsy_logo_big")
|
||||||
self.tabWidget.addTab(self.upload_tab, "")
|
self.tabWidget.addTab(self.upload_tab, "")
|
||||||
self.browse_tab = QtWidgets.QWidget()
|
self.browse_tab = QtWidgets.QWidget()
|
||||||
self.browse_tab.setLayoutDirection(QtCore.Qt.LeftToRight)
|
self.browse_tab.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||||
@@ -267,7 +425,7 @@ class Ui_MainWindow(object):
|
|||||||
self.install_button.setObjectName("install_button")
|
self.install_button.setObjectName("install_button")
|
||||||
self.source_button = QtWidgets.QPushButton(self.browse_tab)
|
self.source_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
self.source_button.setEnabled(True)
|
self.source_button.setEnabled(True)
|
||||||
self.source_button.setGeometry(QtCore.QRect(200, 575, 146, 50))
|
self.source_button.setGeometry(QtCore.QRect(190, 575, 146, 50))
|
||||||
self.source_button.setMinimumSize(QtCore.QSize(0, 50))
|
self.source_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
self.source_button.setStyleSheet("QPushButton {\n"
|
self.source_button.setStyleSheet("QPushButton {\n"
|
||||||
" color: rgb(204, 204, 204);\n"
|
" color: rgb(204, 204, 204);\n"
|
||||||
@@ -290,7 +448,7 @@ class Ui_MainWindow(object):
|
|||||||
self.source_button.setObjectName("source_button")
|
self.source_button.setObjectName("source_button")
|
||||||
self.info_button = QtWidgets.QPushButton(self.browse_tab)
|
self.info_button = QtWidgets.QPushButton(self.browse_tab)
|
||||||
self.info_button.setEnabled(True)
|
self.info_button.setEnabled(True)
|
||||||
self.info_button.setGeometry(QtCore.QRect(370, 575, 146, 50))
|
self.info_button.setGeometry(QtCore.QRect(360, 575, 146, 50))
|
||||||
self.info_button.setMinimumSize(QtCore.QSize(0, 50))
|
self.info_button.setMinimumSize(QtCore.QSize(0, 50))
|
||||||
self.info_button.setStyleSheet("QPushButton {\n"
|
self.info_button.setStyleSheet("QPushButton {\n"
|
||||||
" color: rgb(204, 204, 204);\n"
|
" color: rgb(204, 204, 204);\n"
|
||||||
@@ -357,12 +515,12 @@ class Ui_MainWindow(object):
|
|||||||
" background-color: rgb(92, 99, 109);\n"
|
" background-color: rgb(92, 99, 109);\n"
|
||||||
"}")
|
"}")
|
||||||
self.dislike_button.setObjectName("dislike_button")
|
self.dislike_button.setObjectName("dislike_button")
|
||||||
self.label_2 = QtWidgets.QLabel(self.browse_tab)
|
self.algolia_logo = QtWidgets.QLabel(self.browse_tab)
|
||||||
self.label_2.setGeometry(QtCore.QRect(820, 530, 31, 31))
|
self.algolia_logo.setGeometry(QtCore.QRect(820, 530, 31, 31))
|
||||||
self.label_2.setStyleSheet("background: none;")
|
self.algolia_logo.setStyleSheet("background: none;")
|
||||||
self.label_2.setText("")
|
self.algolia_logo.setText("")
|
||||||
self.label_2.setPixmap(QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/algolia120x32.png"))
|
self.algolia_logo.setPixmap(QtGui.QPixmap("D:\\RAZNOE\\prgrming\\horsy\\Source\\client\\uis\\../img/algolia120x32.png"))
|
||||||
self.label_2.setObjectName("label_2")
|
self.algolia_logo.setObjectName("algolia_logo")
|
||||||
self.tabWidget.addTab(self.browse_tab, "")
|
self.tabWidget.addTab(self.browse_tab, "")
|
||||||
self.installed_tab = QtWidgets.QWidget()
|
self.installed_tab = QtWidgets.QWidget()
|
||||||
self.installed_tab.setLayoutDirection(QtCore.Qt.LeftToRight)
|
self.installed_tab.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||||||
@@ -447,7 +605,7 @@ class Ui_MainWindow(object):
|
|||||||
self.installed_table.verticalHeader().setHighlightSections(False)
|
self.installed_table.verticalHeader().setHighlightSections(False)
|
||||||
self.tabWidget.addTab(self.installed_tab, "")
|
self.tabWidget.addTab(self.installed_tab, "")
|
||||||
self.horsy_text_lefttop = QtWidgets.QLabel(self.centralwidget)
|
self.horsy_text_lefttop = QtWidgets.QLabel(self.centralwidget)
|
||||||
self.horsy_text_lefttop.setGeometry(QtCore.QRect(60, 10, 71, 31))
|
self.horsy_text_lefttop.setGeometry(QtCore.QRect(70, 10, 65, 30))
|
||||||
self.horsy_text_lefttop.setStyleSheet("color: white;\n"
|
self.horsy_text_lefttop.setStyleSheet("color: white;\n"
|
||||||
"font: 20pt \"MS Shell Dlg 2\";\n"
|
"font: 20pt \"MS Shell Dlg 2\";\n"
|
||||||
"background: none;")
|
"background: none;")
|
||||||
@@ -458,37 +616,53 @@ class Ui_MainWindow(object):
|
|||||||
MainWindow.setCentralWidget(self.centralwidget)
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
|
|
||||||
self.retranslateUi(MainWindow)
|
self.retranslateUi(MainWindow)
|
||||||
self.tabWidget.setCurrentIndex(0)
|
self.tabWidget.setCurrentIndex(3)
|
||||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||||
|
|
||||||
def retranslateUi(self, MainWindow):
|
def retranslateUi(self, MainWindow):
|
||||||
_translate = QtCore.QCoreApplication.translate
|
_translate = QtCore.QCoreApplication.translate
|
||||||
MainWindow.setWindowTitle(_translate("MainWindow", "horsy"))
|
MainWindow.setWindowTitle(_translate("MainWindow", "horsy"))
|
||||||
|
self.loginlogout_button.setText(_translate("MainWindow", "Log in/Log out"))
|
||||||
|
self.username_box.setPlaceholderText(_translate("MainWindow", "Log in first"))
|
||||||
|
self.changeemail_button.setText(_translate("MainWindow", "Change e-mail"))
|
||||||
|
self.email_box.setPlaceholderText(_translate("MainWindow", "email"))
|
||||||
|
self.oldpass_box.setPlaceholderText(_translate("MainWindow", "Old password"))
|
||||||
|
self.newpass_box.setPlaceholderText(_translate("MainWindow", "New password"))
|
||||||
|
self.changepass_button.setText(_translate("MainWindow", "Change password"))
|
||||||
|
self.manage_packages_table.setSortingEnabled(True)
|
||||||
|
__sortingEnabled = self.manage_packages_table.isSortingEnabled()
|
||||||
|
self.manage_packages_table.setSortingEnabled(False)
|
||||||
|
self.manage_packages_table.setSortingEnabled(__sortingEnabled)
|
||||||
|
self.manage_packages_message.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Manage your packages</p></body></html>"))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.account_tab), _translate("MainWindow", "Account"))
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.account_tab), _translate("MainWindow", "Account"))
|
||||||
self.lineEdit.setPlaceholderText(_translate("MainWindow", "Package name"))
|
self.packagename_box.setPlaceholderText(_translate("MainWindow", "Package name"))
|
||||||
self.textBrowser.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
self.before_uploading_message.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Before starting, please make sure you have done your project and <span style=\" font-weight:600;\">uploaded</span> it to any hosting service or file sharing service</p></body></html>"))
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Before starting, please make sure you have done your project and <span style=\" font-weight:600;\">uploaded</span> it to any hosting service or file sharing service</p></body></html>"))
|
||||||
self.textBrowser_2.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
self.packagename_message.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">It should contain only lowercase letters, underscores and dashes</p></body></html>"))
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">It should contain only lowercase letters, underscores and dashes</p></body></html>"))
|
||||||
self.textBrowser_3.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
self.package_desc_box.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
|
||||||
self.textBrowser_3.setPlaceholderText(_translate("MainWindow", "Package description. It should be a short text under 256 characters"))
|
self.package_desc_box.setPlaceholderText(_translate("MainWindow", "Package description. It should be a short text under 256 characters"))
|
||||||
self.lineEdit_2.setPlaceholderText(_translate("MainWindow", "Url of executable (ends on .exe or .zip)"))
|
self.url_of_exe_box.setPlaceholderText(_translate("MainWindow", "Url of executable (ends on .exe or .zip)"))
|
||||||
self.lineEdit_3.setPlaceholderText(_translate("MainWindow", "Url of source (project on GitHub, source archive)"))
|
self.source_url_box.setPlaceholderText(_translate("MainWindow", "Url of source (project on GitHub, source archive)"))
|
||||||
self.lineEdit_4.setPlaceholderText(_translate("MainWindow", "Dependency URL (installer in .exe)"))
|
self.dependency_url_box.setPlaceholderText(_translate("MainWindow", "Dependency URL (installer in .exe)"))
|
||||||
self.lineEdit_5.setPlaceholderText(_translate("MainWindow", "Dependency run (run this during installation)"))
|
self.dependency_run_box.setPlaceholderText(_translate("MainWindow", "Dependency run (run this during installation)"))
|
||||||
self.lineEdit_6.setPlaceholderText(_translate("MainWindow", "Main executable command (file.exe, python main.py, etc)"))
|
self.main_exe_box.setPlaceholderText(_translate("MainWindow", "Main executable command (file.exe, python main.py, etc)"))
|
||||||
self.info_button_2.setText(_translate("MainWindow", "Upload"))
|
self.upload_button.setText(_translate("MainWindow", "Upload"))
|
||||||
self.textBrowser_4.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
self.safetywarning_message.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
|
||||||
@@ -512,7 +686,7 @@ class Ui_MainWindow(object):
|
|||||||
__sortingEnabled = self.installed_table.isSortingEnabled()
|
__sortingEnabled = self.installed_table.isSortingEnabled()
|
||||||
self.installed_table.setSortingEnabled(False)
|
self.installed_table.setSortingEnabled(False)
|
||||||
self.installed_table.setSortingEnabled(__sortingEnabled)
|
self.installed_table.setSortingEnabled(__sortingEnabled)
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.installed_tab), _translate("MainWindow", "Installed apps"))
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.installed_tab), _translate("MainWindow", "Installed"))
|
||||||
self.horsy_text_lefttop.setText(_translate("MainWindow", "horsy"))
|
self.horsy_text_lefttop.setText(_translate("MainWindow", "horsy"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ margin-top: 5px;
|
|||||||
</string>
|
</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="documentMode">
|
<property name="documentMode">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@@ -166,6 +166,332 @@ QPushButton:disabled{
|
|||||||
<string>Log in/Log out</string>
|
<string>Log in/Log out</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QLineEdit" name="username_box">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>720</x>
|
||||||
|
<y>70</y>
|
||||||
|
<width>151</width>
|
||||||
|
<height>31</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">background-color: rgb(74, 76, 83);
|
||||||
|
border-radius: 5px;
|
||||||
|
color: rgb(242, 242, 242);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Log in first</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QPushButton" name="changeemail_button">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>360</x>
|
||||||
|
<y>20</y>
|
||||||
|
<width>151</width>
|
||||||
|
<height>50</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>50</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QPushButton {
|
||||||
|
color: rgb(204, 204, 204);
|
||||||
|
border-width: 1px;
|
||||||
|
border-radius:6px;
|
||||||
|
border-style: solid;
|
||||||
|
background-color: rgb(28, 30, 33);
|
||||||
|
border-color: rgb(66, 143, 225);
|
||||||
|
}
|
||||||
|
QPushButton:hover{
|
||||||
|
border-width: 2px;
|
||||||
|
}
|
||||||
|
QPushButton:pressed{
|
||||||
|
background-color: rgb(50, 60, 63);
|
||||||
|
}
|
||||||
|
QPushButton:disabled{
|
||||||
|
border-width: 0px;
|
||||||
|
background-color: rgb(92, 99, 109);
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Change e-mail</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QTextEdit" name="email_box">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>20</y>
|
||||||
|
<width>341</width>
|
||||||
|
<height>51</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QTextEdit {
|
||||||
|
background-color: rgb(74, 76, 83);
|
||||||
|
border-radius: 5px;
|
||||||
|
color: rgb(242, 242, 242);
|
||||||
|
padding: 15px, 15px;
|
||||||
|
border: 15px white;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
<property name="acceptRichText">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::TextEditorInteraction</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>email</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QTextEdit" name="oldpass_box">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>80</y>
|
||||||
|
<width>341</width>
|
||||||
|
<height>51</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QTextEdit {
|
||||||
|
background-color: rgb(74, 76, 83);
|
||||||
|
border-radius: 5px;
|
||||||
|
color: rgb(242, 242, 242);
|
||||||
|
padding: 15px, 15px;
|
||||||
|
border: 15px white;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
<property name="acceptRichText">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::TextEditorInteraction</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Old password</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QTextEdit" name="newpass_box">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>140</y>
|
||||||
|
<width>341</width>
|
||||||
|
<height>51</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QTextEdit {
|
||||||
|
background-color: rgb(74, 76, 83);
|
||||||
|
border-radius: 5px;
|
||||||
|
color: rgb(242, 242, 242);
|
||||||
|
padding: 15px, 15px;
|
||||||
|
border: 15px white;
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="lineWrapMode">
|
||||||
|
<enum>QTextEdit::NoWrap</enum>
|
||||||
|
</property>
|
||||||
|
<property name="acceptRichText">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::TextEditorInteraction</set>
|
||||||
|
</property>
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>New password</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QPushButton" name="changepass_button">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>360</x>
|
||||||
|
<y>140</y>
|
||||||
|
<width>151</width>
|
||||||
|
<height>50</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>50</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QPushButton {
|
||||||
|
color: rgb(204, 204, 204);
|
||||||
|
border-width: 1px;
|
||||||
|
border-radius:6px;
|
||||||
|
border-style: solid;
|
||||||
|
background-color: rgb(28, 30, 33);
|
||||||
|
border-color: rgb(66, 143, 225);
|
||||||
|
}
|
||||||
|
QPushButton:hover{
|
||||||
|
border-width: 2px;
|
||||||
|
}
|
||||||
|
QPushButton:pressed{
|
||||||
|
background-color: rgb(50, 60, 63);
|
||||||
|
}
|
||||||
|
QPushButton:disabled{
|
||||||
|
border-width: 0px;
|
||||||
|
background-color: rgb(92, 99, 109);
|
||||||
|
}</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Change password</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QTableWidget" name="manage_packages_table">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>10</x>
|
||||||
|
<y>240</y>
|
||||||
|
<width>871</width>
|
||||||
|
<height>411</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QTableWidget
|
||||||
|
{
|
||||||
|
color: white;
|
||||||
|
font: 15pt "MS Shell Dlg 2";
|
||||||
|
margin: 20px;
|
||||||
|
border-radius: 45px;
|
||||||
|
}
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="sizeAdjustPolicy">
|
||||||
|
<enum>QAbstractScrollArea::AdjustIgnored</enum>
|
||||||
|
</property>
|
||||||
|
<property name="autoScroll">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="editTriggers">
|
||||||
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
|
</property>
|
||||||
|
<property name="tabKeyNavigation">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="showDropIndicator" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="dragDropOverwriteMode">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="selectionMode">
|
||||||
|
<enum>QAbstractItemView::SingleSelection</enum>
|
||||||
|
</property>
|
||||||
|
<property name="showGrid">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="sortingEnabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="rowCount">
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="columnCount">
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
|
<attribute name="horizontalHeaderVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
||||||
|
<number>203</number>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderHighlightSections">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderMinimumSectionSize">
|
||||||
|
<number>150</number>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="verticalHeaderVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="verticalHeaderDefaultSectionSize">
|
||||||
|
<number>120</number>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="verticalHeaderHighlightSections">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<row/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<column/>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
<widget class="QTextBrowser" name="manage_packages_message">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>380</x>
|
||||||
|
<y>230</y>
|
||||||
|
<width>121</width>
|
||||||
|
<height>21</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: white;
|
||||||
|
border: none;</string>
|
||||||
|
</property>
|
||||||
|
<property name="html">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Manage your packages</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="acceptRichText">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::NoTextInteraction</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="upload_tab">
|
<widget class="QWidget" name="upload_tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@@ -673,7 +999,7 @@ QPushButton:disabled{
|
|||||||
</property>
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>200</x>
|
<x>190</x>
|
||||||
<y>575</y>
|
<y>575</y>
|
||||||
<width>146</width>
|
<width>146</width>
|
||||||
<height>50</height>
|
<height>50</height>
|
||||||
@@ -715,7 +1041,7 @@ QPushButton:disabled{
|
|||||||
</property>
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>370</x>
|
<x>360</x>
|
||||||
<y>575</y>
|
<y>575</y>
|
||||||
<width>146</width>
|
<width>146</width>
|
||||||
<height>50</height>
|
<height>50</height>
|
||||||
@@ -860,7 +1186,7 @@ QPushButton:disabled{
|
|||||||
<enum>Qt::LeftToRight</enum>
|
<enum>Qt::LeftToRight</enum>
|
||||||
</property>
|
</property>
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Installed apps</string>
|
<string>Installed</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<widget class="QPushButton" name="delete_button">
|
<widget class="QPushButton" name="delete_button">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
@@ -1040,10 +1366,10 @@ border-radius: 45px;
|
|||||||
<widget class="QLabel" name="horsy_text_lefttop">
|
<widget class="QLabel" name="horsy_text_lefttop">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>60</x>
|
<x>70</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>71</width>
|
<width>65</width>
|
||||||
<height>31</height>
|
<height>30</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
|
|||||||
Reference in New Issue
Block a user