Add the Image and Library widgets from #196. In this iteration they replace the image `QLabel` in the existing widgets. The `PaintWidget` in the `InstallingWidget` has been replaced by the future `LibraryWidget` that has progress indication. The `ImageWidget` was also used to replace the image `QLabel` in `GameInfo` and `GameDlc` widgets. Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
121 lines
6.3 KiB
Python
121 lines
6.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/tabs/games/game_info/game_dlc_widget.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_GameDlcWidget(object):
|
|
def setupUi(self, GameDlcWidget):
|
|
GameDlcWidget.setObjectName("GameDlcWidget")
|
|
GameDlcWidget.resize(517, 70)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(GameDlcWidget.sizePolicy().hasHeightForWidth())
|
|
GameDlcWidget.setSizePolicy(sizePolicy)
|
|
GameDlcWidget.setWindowTitle("GameDlcWidget")
|
|
GameDlcWidget.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
|
GameDlcWidget.setFrameShadow(QtWidgets.QFrame.Plain)
|
|
self.dlc_layout = QtWidgets.QHBoxLayout(GameDlcWidget)
|
|
self.dlc_layout.setObjectName("dlc_layout")
|
|
self.dlc_info = QtWidgets.QWidget(GameDlcWidget)
|
|
self.dlc_info.setObjectName("dlc_info")
|
|
self.dlc_info_layout = QtWidgets.QFormLayout(self.dlc_info)
|
|
self.dlc_info_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
self.dlc_info_layout.setContentsMargins(0, 0, 0, 0)
|
|
self.dlc_info_layout.setObjectName("dlc_info_layout")
|
|
self.dlc_name_label = QtWidgets.QLabel(self.dlc_info)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.dlc_name_label.sizePolicy().hasHeightForWidth())
|
|
self.dlc_name_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.dlc_name_label.setFont(font)
|
|
self.dlc_name_label.setObjectName("dlc_name_label")
|
|
self.dlc_info_layout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.dlc_name_label)
|
|
self.dlc_name = QtWidgets.QLabel(self.dlc_info)
|
|
self.dlc_name.setMinimumSize(QtCore.QSize(160, 0))
|
|
self.dlc_name.setText("dlc_name")
|
|
self.dlc_name.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.dlc_name.setObjectName("dlc_name")
|
|
self.dlc_info_layout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.dlc_name)
|
|
self.version_label = QtWidgets.QLabel(self.dlc_info)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.version_label.sizePolicy().hasHeightForWidth())
|
|
self.version_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.version_label.setFont(font)
|
|
self.version_label.setObjectName("version_label")
|
|
self.dlc_info_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.version_label)
|
|
self.version = QtWidgets.QLabel(self.dlc_info)
|
|
self.version.setMinimumSize(QtCore.QSize(160, 0))
|
|
self.version.setText("version")
|
|
self.version.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.version.setObjectName("version")
|
|
self.dlc_info_layout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.version)
|
|
self.app_name_label = QtWidgets.QLabel(self.dlc_info)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.app_name_label.sizePolicy().hasHeightForWidth())
|
|
self.app_name_label.setSizePolicy(sizePolicy)
|
|
font = QtGui.QFont()
|
|
font.setBold(True)
|
|
font.setWeight(75)
|
|
self.app_name_label.setFont(font)
|
|
self.app_name_label.setObjectName("app_name_label")
|
|
self.dlc_info_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.app_name_label)
|
|
self.app_name = QtWidgets.QLabel(self.dlc_info)
|
|
self.app_name.setMinimumSize(QtCore.QSize(160, 0))
|
|
self.app_name.setText("app_name")
|
|
self.app_name.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByMouse)
|
|
self.app_name.setObjectName("app_name")
|
|
self.dlc_info_layout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.app_name)
|
|
self.dlc_layout.addWidget(self.dlc_info)
|
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
|
self.dlc_layout.addItem(spacerItem)
|
|
self.action_button = QtWidgets.QPushButton(GameDlcWidget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.action_button.sizePolicy().hasHeightForWidth())
|
|
self.action_button.setSizePolicy(sizePolicy)
|
|
self.action_button.setMinimumSize(QtCore.QSize(160, 0))
|
|
self.action_button.setStyleSheet("")
|
|
self.action_button.setText("Action")
|
|
self.action_button.setObjectName("action_button")
|
|
self.dlc_layout.addWidget(self.action_button, 0, QtCore.Qt.AlignTop)
|
|
self.dlc_layout.setStretch(1, 1)
|
|
|
|
self.retranslateUi(GameDlcWidget)
|
|
QtCore.QMetaObject.connectSlotsByName(GameDlcWidget)
|
|
|
|
def retranslateUi(self, GameDlcWidget):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
self.dlc_name_label.setText(_translate("GameDlcWidget", "DLC Name"))
|
|
self.version_label.setText(_translate("GameDlcWidget", "Version"))
|
|
self.app_name_label.setText(_translate("GameDlcWidget", "Application"))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
GameDlcWidget = QtWidgets.QFrame()
|
|
ui = Ui_GameDlcWidget()
|
|
ui.setupUi(GameDlcWidget)
|
|
GameDlcWidget.show()
|
|
sys.exit(app.exec_())
|