You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
9.0 KiB
Python

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialogs/collection_modify_dialog/collection_modify_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(735, 492)
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName("verticalLayout")
self.top_frame = QtWidgets.QFrame(Dialog)
self.top_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.top_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.top_frame.setObjectName("top_frame")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.top_frame)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.collection_name_label = QtWidgets.QLabel(self.top_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.collection_name_label.sizePolicy().hasHeightForWidth())
self.collection_name_label.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.collection_name_label.setFont(font)
self.collection_name_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.collection_name_label.setObjectName("collection_name_label")
self.horizontalLayout_4.addWidget(self.collection_name_label)
self.collection_name_line = QtWidgets.QLineEdit(self.top_frame)
self.collection_name_line.setObjectName("collection_name_line")
self.horizontalLayout_4.addWidget(self.collection_name_line)
self.verticalLayout.addWidget(self.top_frame)
self.frame = QtWidgets.QFrame(Dialog)
self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame.setObjectName("frame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
self.horizontalLayout.setObjectName("horizontalLayout")
self.image_list_frame = QtWidgets.QFrame(self.frame)
self.image_list_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.image_list_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.image_list_frame.setObjectName("image_list_frame")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.image_list_frame)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.entry_label = QtWidgets.QLabel(self.image_list_frame)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.entry_label.setFont(font)
self.entry_label.setObjectName("entry_label")
self.verticalLayout_2.addWidget(self.entry_label)
self.entry_list = QtWidgets.QListView(self.image_list_frame)
self.entry_list.setObjectName("entry_list")
self.verticalLayout_2.addWidget(self.entry_list)
self.button_frame = QtWidgets.QFrame(self.image_list_frame)
self.button_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.button_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.button_frame.setObjectName("button_frame")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.button_frame)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.add_image_button = QtWidgets.QPushButton(self.button_frame)
self.add_image_button.setObjectName("add_image_button")
self.horizontalLayout_2.addWidget(self.add_image_button)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.verticalLayout_2.addWidget(self.button_frame)
self.horizontalLayout.addWidget(self.image_list_frame)
self.ranking_list_frame = QtWidgets.QFrame(self.frame)
self.ranking_list_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.ranking_list_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.ranking_list_frame.setObjectName("ranking_list_frame")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.ranking_list_frame)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.label = QtWidgets.QLabel(self.ranking_list_frame)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.verticalLayout_3.addWidget(self.label)
self.ranking_list_view = QtWidgets.QListView(self.ranking_list_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ranking_list_view.sizePolicy().hasHeightForWidth())
self.ranking_list_view.setSizePolicy(sizePolicy)
self.ranking_list_view.setObjectName("ranking_list_view")
self.verticalLayout_3.addWidget(self.ranking_list_view)
self.button2_frame = QtWidgets.QFrame(self.ranking_list_frame)
self.button2_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.button2_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.button2_frame.setObjectName("button2_frame")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.button2_frame)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.optimize_ranking_button = QtWidgets.QPushButton(self.button2_frame)
self.optimize_ranking_button.setObjectName("optimize_ranking_button")
self.horizontalLayout_3.addWidget(self.optimize_ranking_button)
spacerItem1 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.verticalLayout_3.addWidget(self.button2_frame)
self.horizontalLayout.addWidget(self.ranking_list_frame)
self.description_frame = QtWidgets.QFrame(self.frame)
self.description_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.description_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.description_frame.setObjectName("description_frame")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.description_frame)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.description_label = QtWidgets.QLabel(self.description_frame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.description_label.sizePolicy().hasHeightForWidth())
self.description_label.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.description_label.setFont(font)
self.description_label.setObjectName("description_label")
self.verticalLayout_4.addWidget(self.description_label)
self.description_browser = QtWidgets.QTextBrowser(self.description_frame)
self.description_browser.setObjectName("description_browser")
self.verticalLayout_4.addWidget(self.description_browser)
self.horizontalLayout.addWidget(self.description_frame)
self.verticalLayout.addWidget(self.frame)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.collection_name_label.setText(_translate("Dialog", "Collection Name"))
self.entry_label.setText(_translate("Dialog", "Entries"))
self.add_image_button.setText(_translate("Dialog", "Add Art"))
self.label.setText(_translate("Dialog", "Ranking"))
self.optimize_ranking_button.setText(_translate("Dialog", "Optimize Ranking"))
self.description_label.setText(_translate("Dialog", "Description"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
Dialog = QtWidgets.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.show()
sys.exit(app.exec_())