2021-04-28 03:40:10 +12:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2021-09-09 08:50:42 +12:00
|
|
|
# Form implementation generated from reading ui file 'rare/ui/components/tabs/settings/legendary.ui'
|
2021-04-28 03:40:10 +12:00
|
|
|
#
|
2023-12-16 03:57:32 +13:00
|
|
|
# Created by: PyQt5 UI code generator 5.15.10
|
2021-04-28 03:40:10 +12:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
2021-09-12 23:23:40 +12:00
|
|
|
class Ui_LegendarySettings(object):
|
|
|
|
def setupUi(self, LegendarySettings):
|
|
|
|
LegendarySettings.setObjectName("LegendarySettings")
|
2023-12-16 03:57:32 +13:00
|
|
|
LegendarySettings.resize(681, 456)
|
2021-10-04 09:18:38 +13:00
|
|
|
LegendarySettings.setWindowTitle("LegendarySettings")
|
2022-03-29 10:14:11 +13:00
|
|
|
self.legendary_layout = QtWidgets.QHBoxLayout(LegendarySettings)
|
|
|
|
self.legendary_layout.setObjectName("legendary_layout")
|
2021-09-12 01:08:50 +12:00
|
|
|
self.left_layout = QtWidgets.QVBoxLayout()
|
|
|
|
self.left_layout.setObjectName("left_layout")
|
2021-09-12 23:23:40 +12:00
|
|
|
self.install_dir_group = QtWidgets.QGroupBox(LegendarySettings)
|
2022-02-08 07:15:17 +13:00
|
|
|
self.install_dir_group.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
2021-09-12 01:08:50 +12:00
|
|
|
self.install_dir_group.setObjectName("install_dir_group")
|
2021-09-12 23:23:40 +12:00
|
|
|
self.install_dir_layout = QtWidgets.QVBoxLayout(self.install_dir_group)
|
|
|
|
self.install_dir_layout.setObjectName("install_dir_layout")
|
2022-02-08 07:15:17 +13:00
|
|
|
self.left_layout.addWidget(self.install_dir_group, 0, QtCore.Qt.AlignTop)
|
2021-09-12 23:23:40 +12:00
|
|
|
self.download_group = QtWidgets.QGroupBox(LegendarySettings)
|
2022-02-08 07:15:17 +13:00
|
|
|
self.download_group.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
2021-09-12 01:08:50 +12:00
|
|
|
self.download_group.setObjectName("download_group")
|
|
|
|
self.download_layout = QtWidgets.QFormLayout(self.download_group)
|
2021-10-10 01:08:54 +13:00
|
|
|
self.download_layout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
2021-09-12 01:08:50 +12:00
|
|
|
self.download_layout.setObjectName("download_layout")
|
|
|
|
self.max_workers_label = QtWidgets.QLabel(self.download_group)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.max_workers_label.sizePolicy().hasHeightForWidth())
|
|
|
|
self.max_workers_label.setSizePolicy(sizePolicy)
|
|
|
|
self.max_workers_label.setObjectName("max_workers_label")
|
|
|
|
self.download_layout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.max_workers_label)
|
|
|
|
self.max_workers_layout = QtWidgets.QHBoxLayout()
|
|
|
|
self.max_workers_layout.setObjectName("max_workers_layout")
|
|
|
|
self.max_worker_spin = QtWidgets.QSpinBox(self.download_group)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.max_worker_spin.sizePolicy().hasHeightForWidth())
|
|
|
|
self.max_worker_spin.setSizePolicy(sizePolicy)
|
|
|
|
self.max_worker_spin.setMinimum(0)
|
2021-09-12 23:23:40 +12:00
|
|
|
self.max_worker_spin.setMaximum(16)
|
2021-12-28 04:33:56 +13:00
|
|
|
self.max_worker_spin.setProperty("value", 0)
|
2021-09-12 01:08:50 +12:00
|
|
|
self.max_worker_spin.setObjectName("max_worker_spin")
|
|
|
|
self.max_workers_layout.addWidget(self.max_worker_spin)
|
|
|
|
self.max_workers_info_label = QtWidgets.QLabel(self.download_group)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setItalic(True)
|
|
|
|
self.max_workers_info_label.setFont(font)
|
|
|
|
self.max_workers_info_label.setObjectName("max_workers_info_label")
|
|
|
|
self.max_workers_layout.addWidget(self.max_workers_info_label)
|
|
|
|
self.download_layout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.max_workers_layout)
|
|
|
|
self.max_memory_label = QtWidgets.QLabel(self.download_group)
|
|
|
|
self.max_memory_label.setObjectName("max_memory_label")
|
|
|
|
self.download_layout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.max_memory_label)
|
|
|
|
self.max_memory_layout = QtWidgets.QHBoxLayout()
|
|
|
|
self.max_memory_layout.setObjectName("max_memory_layout")
|
|
|
|
self.max_memory_spin = QtWidgets.QSpinBox(self.download_group)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.max_memory_spin.sizePolicy().hasHeightForWidth())
|
|
|
|
self.max_memory_spin.setSizePolicy(sizePolicy)
|
|
|
|
self.max_memory_spin.setMinimum(0)
|
|
|
|
self.max_memory_spin.setMaximum(10240)
|
|
|
|
self.max_memory_spin.setSingleStep(128)
|
|
|
|
self.max_memory_spin.setProperty("value", 1024)
|
|
|
|
self.max_memory_spin.setObjectName("max_memory_spin")
|
|
|
|
self.max_memory_layout.addWidget(self.max_memory_spin)
|
|
|
|
self.max_memory_info_label = QtWidgets.QLabel(self.download_group)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setItalic(True)
|
|
|
|
self.max_memory_info_label.setFont(font)
|
|
|
|
self.max_memory_info_label.setObjectName("max_memory_info_label")
|
|
|
|
self.max_memory_layout.addWidget(self.max_memory_info_label)
|
|
|
|
self.download_layout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.max_memory_layout)
|
|
|
|
self.preferred_cdn_label = QtWidgets.QLabel(self.download_group)
|
|
|
|
self.preferred_cdn_label.setObjectName("preferred_cdn_label")
|
|
|
|
self.download_layout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.preferred_cdn_label)
|
|
|
|
self.preferred_cdn_line = QtWidgets.QLineEdit(self.download_group)
|
|
|
|
self.preferred_cdn_line.setObjectName("preferred_cdn_line")
|
|
|
|
self.download_layout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.preferred_cdn_line)
|
|
|
|
self.disable_https_label = QtWidgets.QLabel(self.download_group)
|
|
|
|
self.disable_https_label.setObjectName("disable_https_label")
|
|
|
|
self.download_layout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.disable_https_label)
|
|
|
|
self.disable_https_check = QtWidgets.QCheckBox(self.download_group)
|
|
|
|
self.disable_https_check.setText("")
|
|
|
|
self.disable_https_check.setObjectName("disable_https_check")
|
|
|
|
self.download_layout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.disable_https_check)
|
2022-02-08 07:15:17 +13:00
|
|
|
self.left_layout.addWidget(self.download_group, 0, QtCore.Qt.AlignTop)
|
2022-03-29 10:14:11 +13:00
|
|
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
|
self.left_layout.addItem(spacerItem)
|
|
|
|
self.legendary_layout.addLayout(self.left_layout)
|
|
|
|
self.right_layout = QtWidgets.QVBoxLayout()
|
|
|
|
self.right_layout.setObjectName("right_layout")
|
|
|
|
self.locale_group = QtWidgets.QGroupBox(LegendarySettings)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.locale_group.sizePolicy().hasHeightForWidth())
|
|
|
|
self.locale_group.setSizePolicy(sizePolicy)
|
|
|
|
self.locale_group.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
|
|
|
self.locale_group.setObjectName("locale_group")
|
|
|
|
self.locale_layout = QtWidgets.QVBoxLayout(self.locale_group)
|
|
|
|
self.locale_layout.setObjectName("locale_layout")
|
|
|
|
self.right_layout.addWidget(self.locale_group, 0, QtCore.Qt.AlignTop)
|
|
|
|
self.cleanup_group = QtWidgets.QGroupBox(LegendarySettings)
|
|
|
|
self.cleanup_group.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
|
|
|
self.cleanup_group.setObjectName("cleanup_group")
|
|
|
|
self.cleanup_layout = QtWidgets.QVBoxLayout(self.cleanup_group)
|
|
|
|
self.cleanup_layout.setObjectName("cleanup_layout")
|
|
|
|
self.clean_keep_manifests_button = QtWidgets.QPushButton(self.cleanup_group)
|
|
|
|
self.clean_keep_manifests_button.setObjectName("clean_keep_manifests_button")
|
|
|
|
self.cleanup_layout.addWidget(self.clean_keep_manifests_button)
|
|
|
|
self.clean_button = QtWidgets.QPushButton(self.cleanup_group)
|
|
|
|
self.clean_button.setObjectName("clean_button")
|
|
|
|
self.cleanup_layout.addWidget(self.clean_button)
|
2023-12-16 03:57:32 +13:00
|
|
|
self.right_layout.addWidget(self.cleanup_group)
|
|
|
|
self.metadata_group = QtWidgets.QGroupBox(LegendarySettings)
|
|
|
|
self.metadata_group.setObjectName("metadata_group")
|
|
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.metadata_group)
|
2022-03-29 10:14:11 +13:00
|
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
2023-12-16 03:57:32 +13:00
|
|
|
self.fetch_win32_check = QtWidgets.QCheckBox(self.metadata_group)
|
|
|
|
self.fetch_win32_check.setObjectName("fetch_win32_check")
|
|
|
|
self.verticalLayout_2.addWidget(self.fetch_win32_check)
|
|
|
|
self.fetch_macos_check = QtWidgets.QCheckBox(self.metadata_group)
|
|
|
|
self.fetch_macos_check.setObjectName("fetch_macos_check")
|
|
|
|
self.verticalLayout_2.addWidget(self.fetch_macos_check)
|
|
|
|
self.fetch_unreal_check = QtWidgets.QCheckBox(self.metadata_group)
|
|
|
|
self.fetch_unreal_check.setObjectName("fetch_unreal_check")
|
|
|
|
self.verticalLayout_2.addWidget(self.fetch_unreal_check)
|
|
|
|
self.metadata_info = QtWidgets.QLabel(self.metadata_group)
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setItalic(True)
|
|
|
|
self.metadata_info.setFont(font)
|
|
|
|
self.metadata_info.setObjectName("metadata_info")
|
|
|
|
self.verticalLayout_2.addWidget(self.metadata_info)
|
|
|
|
self.refresh_metadata_button = QtWidgets.QPushButton(self.metadata_group)
|
|
|
|
self.refresh_metadata_button.setObjectName("refresh_metadata_button")
|
|
|
|
self.verticalLayout_2.addWidget(self.refresh_metadata_button)
|
|
|
|
self.right_layout.addWidget(self.metadata_group)
|
2022-02-08 07:15:17 +13:00
|
|
|
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
2022-03-29 10:14:11 +13:00
|
|
|
self.right_layout.addItem(spacerItem1)
|
|
|
|
self.legendary_layout.addLayout(self.right_layout)
|
2021-04-28 03:40:10 +12:00
|
|
|
|
2021-09-12 23:23:40 +12:00
|
|
|
self.retranslateUi(LegendarySettings)
|
2021-04-28 03:40:10 +12:00
|
|
|
|
2021-09-12 23:23:40 +12:00
|
|
|
def retranslateUi(self, LegendarySettings):
|
2021-04-28 03:40:10 +12:00
|
|
|
_translate = QtCore.QCoreApplication.translate
|
2023-12-16 10:22:55 +13:00
|
|
|
self.install_dir_group.setTitle(_translate("LegendarySettings", "Default installation folder"))
|
|
|
|
self.download_group.setTitle(_translate("LegendarySettings", "Download settings"))
|
|
|
|
self.max_workers_label.setText(_translate("LegendarySettings", "Max sorkers"))
|
2021-09-12 23:23:40 +12:00
|
|
|
self.max_workers_info_label.setText(_translate("LegendarySettings", "Less is slower (0: Default)"))
|
2023-12-16 10:22:55 +13:00
|
|
|
self.max_memory_label.setText(_translate("LegendarySettings", "Max shared memory"))
|
2021-09-12 23:23:40 +12:00
|
|
|
self.max_memory_spin.setSuffix(_translate("LegendarySettings", "MiB"))
|
|
|
|
self.max_memory_info_label.setText(_translate("LegendarySettings", "Less is slower (0: Default)"))
|
|
|
|
self.preferred_cdn_label.setText(_translate("LegendarySettings", "Preferred CDN"))
|
|
|
|
self.preferred_cdn_line.setPlaceholderText(_translate("LegendarySettings", "Default"))
|
|
|
|
self.disable_https_label.setText(_translate("LegendarySettings", "Disable HTTPS"))
|
2022-03-29 10:14:11 +13:00
|
|
|
self.locale_group.setTitle(_translate("LegendarySettings", "Locale"))
|
|
|
|
self.cleanup_group.setTitle(_translate("LegendarySettings", "Cleanup"))
|
|
|
|
self.clean_keep_manifests_button.setText(_translate("LegendarySettings", "Clean, but keep manifests"))
|
|
|
|
self.clean_button.setText(_translate("LegendarySettings", "Remove everything"))
|
2023-12-16 03:57:32 +13:00
|
|
|
self.metadata_group.setTitle(_translate("LegendarySettings", "Platforms"))
|
|
|
|
self.fetch_win32_check.setText(_translate("LegendarySettings", "Include Win32 games"))
|
2023-12-16 10:22:55 +13:00
|
|
|
self.fetch_macos_check.setText(_translate("LegendarySettings", "Include macOS games"))
|
2023-12-16 03:57:32 +13:00
|
|
|
self.fetch_unreal_check.setText(_translate("LegendarySettings", "Include Unreal engine"))
|
|
|
|
self.metadata_info.setText(_translate("LegendarySettings", "Restart Rare to apply"))
|
|
|
|
self.refresh_metadata_button.setText(_translate("LegendarySettings", "Refresh metadata"))
|
2021-04-28 03:40:10 +12:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
import sys
|
|
|
|
app = QtWidgets.QApplication(sys.argv)
|
2021-09-12 23:23:40 +12:00
|
|
|
LegendarySettings = QtWidgets.QWidget()
|
|
|
|
ui = Ui_LegendarySettings()
|
|
|
|
ui.setupUi(LegendarySettings)
|
|
|
|
LegendarySettings.show()
|
2021-04-28 03:40:10 +12:00
|
|
|
sys.exit(app.exec_())
|