diff --git a/PySide6-Pkg.ui b/PySide6-Pkg.ui index 2e2deb7..a667b29 100644 --- a/PySide6-Pkg.ui +++ b/PySide6-Pkg.ui @@ -216,7 +216,7 @@ - TextLabel + 默认保存路径: @@ -245,7 +245,7 @@ - TextLabel + 速度倍率 @@ -258,6 +258,251 @@ + + + + 260 + 20 + 241 + 31 + + + + + + + 音量倍率 + + + + + + + Qt::Horizontal + + + + + + + + + 260 + 50 + 241 + 31 + + + + + + + 计分板名称 + + + + + + + + 16777215 + 78 + + + + + + + + + + 510 + 20 + 241 + 31 + + + + + + + 最大指令生成高度 + + + + + + + + + + + + 510 + 50 + 241 + 31 + + + + + + + 玩家选择器 + + + + + + + + + + + + 0 + 50 + 251 + 31 + + + + + + + 选择器模式 + + + + + + + + + + + + 0 + 80 + 241 + 31 + + + + + + + bdx作者名称 + + + + + + + + + + + + 0 + 110 + 371 + 31 + + + + + + + 选择命令格式版本 + + + + + + + + + + + + 260 + 80 + 511 + 31 + + + + + + + 是否启用进度条 + + + + + + + 是否自定义进度条 + + + + + + + 自定义进度条内容: + + + + + + + + + + + + 390 + 110 + 291 + 31 + + + + + + + 选择转换算法版本 + + + + + + + + + + + + 0 + 140 + 301 + 31 + + + + + + + 选择导出模式 + + + + + + + + @@ -296,7 +541,8 @@ - + + .. 打开 Open diff --git a/pp.py b/pp.py index 62a473c..b758829 100644 --- a/pp.py +++ b/pp.py @@ -16,10 +16,11 @@ from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient, QIcon, QImage, QKeySequence, QLinearGradient, QPainter, QPalette, QPixmap, QRadialGradient, QTransform) -from PySide6.QtWidgets import (QApplication, QComboBox, QHBoxLayout, QHeaderView, - QLabel, QMainWindow, QMenu, QMenuBar, - QSizePolicy, QSlider, QStatusBar, QTabWidget, - QTableWidget, QTableWidgetItem, QToolButton, QVBoxLayout, +from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QHBoxLayout, + QHeaderView, QLabel, QMainWindow, QMenu, + QMenuBar, QSizePolicy, QSlider, QSpinBox, + QStatusBar, QTabWidget, QTableWidget, QTableWidgetItem, + QTextBrowser, QTextEdit, QToolButton, QVBoxLayout, QWidget) @@ -30,7 +31,13 @@ class Ui_MainWindow(object): MainWindow.resize(800, 600) self.action = QAction(MainWindow) self.action.setObjectName(u"action") - icon = QIcon(QIcon.fromTheme(u"document-open")) + icon = QIcon() + iconThemeName = u"document-open" + if QIcon.hasThemeIcon(iconThemeName): + icon = QIcon.fromTheme(iconThemeName) + else: + icon.addFile(u".", QSize(), QIcon.Normal, QIcon.Off) + self.action.setIcon(icon) self.action_Input = QAction(MainWindow) self.action_Input.setObjectName(u"action_Input") @@ -182,6 +189,178 @@ class Ui_MainWindow(object): self.horizontalLayout_2.addWidget(self.horizontalSlider) + self.horizontalLayoutWidget_3 = QWidget(self.widget_3) + self.horizontalLayoutWidget_3.setObjectName(u"horizontalLayoutWidget_3") + self.horizontalLayoutWidget_3.setGeometry(QRect(260, 20, 241, 31)) + self.horizontalLayout_4 = QHBoxLayout(self.horizontalLayoutWidget_3) + self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") + self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) + self.label_17 = QLabel(self.horizontalLayoutWidget_3) + self.label_17.setObjectName(u"label_17") + + self.horizontalLayout_4.addWidget(self.label_17) + + self.horizontalSlider_3 = QSlider(self.horizontalLayoutWidget_3) + self.horizontalSlider_3.setObjectName(u"horizontalSlider_3") + self.horizontalSlider_3.setOrientation(Qt.Horizontal) + + self.horizontalLayout_4.addWidget(self.horizontalSlider_3) + + self.horizontalLayoutWidget_4 = QWidget(self.widget_3) + self.horizontalLayoutWidget_4.setObjectName(u"horizontalLayoutWidget_4") + self.horizontalLayoutWidget_4.setGeometry(QRect(260, 50, 241, 31)) + self.horizontalLayout_6 = QHBoxLayout(self.horizontalLayoutWidget_4) + self.horizontalLayout_6.setObjectName(u"horizontalLayout_6") + self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0) + self.label_18 = QLabel(self.horizontalLayoutWidget_4) + self.label_18.setObjectName(u"label_18") + + self.horizontalLayout_6.addWidget(self.label_18) + + self.textEdit = QTextEdit(self.horizontalLayoutWidget_4) + self.textEdit.setObjectName(u"textEdit") + self.textEdit.setMaximumSize(QSize(16777215, 78)) + + self.horizontalLayout_6.addWidget(self.textEdit) + + self.horizontalLayoutWidget_7 = QWidget(self.widget_3) + self.horizontalLayoutWidget_7.setObjectName(u"horizontalLayoutWidget_7") + self.horizontalLayoutWidget_7.setGeometry(QRect(510, 20, 241, 31)) + self.horizontalLayout_9 = QHBoxLayout(self.horizontalLayoutWidget_7) + self.horizontalLayout_9.setObjectName(u"horizontalLayout_9") + self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0) + self.label_21 = QLabel(self.horizontalLayoutWidget_7) + self.label_21.setObjectName(u"label_21") + + self.horizontalLayout_9.addWidget(self.label_21) + + self.spinBox = QSpinBox(self.horizontalLayoutWidget_7) + self.spinBox.setObjectName(u"spinBox") + + self.horizontalLayout_9.addWidget(self.spinBox) + + self.horizontalLayoutWidget_6 = QWidget(self.widget_3) + self.horizontalLayoutWidget_6.setObjectName(u"horizontalLayoutWidget_6") + self.horizontalLayoutWidget_6.setGeometry(QRect(510, 50, 241, 31)) + self.horizontalLayout_8 = QHBoxLayout(self.horizontalLayoutWidget_6) + self.horizontalLayout_8.setObjectName(u"horizontalLayout_8") + self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0) + self.label_20 = QLabel(self.horizontalLayoutWidget_6) + self.label_20.setObjectName(u"label_20") + + self.horizontalLayout_8.addWidget(self.label_20) + + self.textBrowser_2 = QTextBrowser(self.horizontalLayoutWidget_6) + self.textBrowser_2.setObjectName(u"textBrowser_2") + + self.horizontalLayout_8.addWidget(self.textBrowser_2) + + self.horizontalLayoutWidget_10 = QWidget(self.widget_3) + self.horizontalLayoutWidget_10.setObjectName(u"horizontalLayoutWidget_10") + self.horizontalLayoutWidget_10.setGeometry(QRect(0, 50, 251, 31)) + self.horizontalLayout_13 = QHBoxLayout(self.horizontalLayoutWidget_10) + self.horizontalLayout_13.setObjectName(u"horizontalLayout_13") + self.horizontalLayout_13.setContentsMargins(0, 0, 0, 0) + self.label_24 = QLabel(self.horizontalLayoutWidget_10) + self.label_24.setObjectName(u"label_24") + + self.horizontalLayout_13.addWidget(self.label_24) + + self.comboBox_3 = QComboBox(self.horizontalLayoutWidget_10) + self.comboBox_3.setObjectName(u"comboBox_3") + + self.horizontalLayout_13.addWidget(self.comboBox_3) + + self.horizontalLayoutWidget_5 = QWidget(self.widget_3) + self.horizontalLayoutWidget_5.setObjectName(u"horizontalLayoutWidget_5") + self.horizontalLayoutWidget_5.setGeometry(QRect(0, 80, 241, 31)) + self.horizontalLayout_7 = QHBoxLayout(self.horizontalLayoutWidget_5) + self.horizontalLayout_7.setObjectName(u"horizontalLayout_7") + self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0) + self.label_19 = QLabel(self.horizontalLayoutWidget_5) + self.label_19.setObjectName(u"label_19") + + self.horizontalLayout_7.addWidget(self.label_19) + + self.textBrowser = QTextBrowser(self.horizontalLayoutWidget_5) + self.textBrowser.setObjectName(u"textBrowser") + + self.horizontalLayout_7.addWidget(self.textBrowser) + + self.horizontalLayoutWidget_9 = QWidget(self.widget_3) + self.horizontalLayoutWidget_9.setObjectName(u"horizontalLayoutWidget_9") + self.horizontalLayoutWidget_9.setGeometry(QRect(0, 110, 371, 31)) + self.horizontalLayout_12 = QHBoxLayout(self.horizontalLayoutWidget_9) + self.horizontalLayout_12.setObjectName(u"horizontalLayout_12") + self.horizontalLayout_12.setContentsMargins(0, 0, 0, 0) + self.label_23 = QLabel(self.horizontalLayoutWidget_9) + self.label_23.setObjectName(u"label_23") + + self.horizontalLayout_12.addWidget(self.label_23) + + self.comboBox_2 = QComboBox(self.horizontalLayoutWidget_9) + self.comboBox_2.setObjectName(u"comboBox_2") + + self.horizontalLayout_12.addWidget(self.comboBox_2) + + self.horizontalLayoutWidget_8 = QWidget(self.widget_3) + self.horizontalLayoutWidget_8.setObjectName(u"horizontalLayoutWidget_8") + self.horizontalLayoutWidget_8.setGeometry(QRect(260, 80, 511, 31)) + self.horizontalLayout_11 = QHBoxLayout(self.horizontalLayoutWidget_8) + self.horizontalLayout_11.setObjectName(u"horizontalLayout_11") + self.horizontalLayout_11.setContentsMargins(0, 0, 0, 0) + self.checkBox_2 = QCheckBox(self.horizontalLayoutWidget_8) + self.checkBox_2.setObjectName(u"checkBox_2") + + self.horizontalLayout_11.addWidget(self.checkBox_2) + + self.checkBox = QCheckBox(self.horizontalLayoutWidget_8) + self.checkBox.setObjectName(u"checkBox") + + self.horizontalLayout_11.addWidget(self.checkBox) + + self.label_22 = QLabel(self.horizontalLayoutWidget_8) + self.label_22.setObjectName(u"label_22") + + self.horizontalLayout_11.addWidget(self.label_22) + + self.textBrowser_3 = QTextBrowser(self.horizontalLayoutWidget_8) + self.textBrowser_3.setObjectName(u"textBrowser_3") + + self.horizontalLayout_11.addWidget(self.textBrowser_3) + + self.horizontalLayoutWidget_11 = QWidget(self.widget_3) + self.horizontalLayoutWidget_11.setObjectName(u"horizontalLayoutWidget_11") + self.horizontalLayoutWidget_11.setGeometry(QRect(390, 110, 291, 31)) + self.horizontalLayout_14 = QHBoxLayout(self.horizontalLayoutWidget_11) + self.horizontalLayout_14.setObjectName(u"horizontalLayout_14") + self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0) + self.label_25 = QLabel(self.horizontalLayoutWidget_11) + self.label_25.setObjectName(u"label_25") + + self.horizontalLayout_14.addWidget(self.label_25) + + self.comboBox_4 = QComboBox(self.horizontalLayoutWidget_11) + self.comboBox_4.setObjectName(u"comboBox_4") + + self.horizontalLayout_14.addWidget(self.comboBox_4) + + self.horizontalLayoutWidget_12 = QWidget(self.widget_3) + self.horizontalLayoutWidget_12.setObjectName(u"horizontalLayoutWidget_12") + self.horizontalLayoutWidget_12.setGeometry(QRect(0, 140, 301, 31)) + self.horizontalLayout_15 = QHBoxLayout(self.horizontalLayoutWidget_12) + self.horizontalLayout_15.setObjectName(u"horizontalLayout_15") + self.horizontalLayout_15.setContentsMargins(0, 0, 0, 0) + self.label_26 = QLabel(self.horizontalLayoutWidget_12) + self.label_26.setObjectName(u"label_26") + + self.horizontalLayout_15.addWidget(self.label_26) + + self.comboBox_5 = QComboBox(self.horizontalLayoutWidget_12) + self.comboBox_5.setObjectName(u"comboBox_5") + + self.horizontalLayout_15.addWidget(self.comboBox_5) + self.tabO.addTab(self.tab_2, "") self.tab_3 = QWidget() self.tab_3.setObjectName(u"tab_3") @@ -233,9 +412,28 @@ class Ui_MainWindow(object): self.label_12.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None)) self.label_13.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None)) self.label_11.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None)) - self.label_14.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None)) + self.label_14.setText( + QCoreApplication.translate("MainWindow", u"\u9ed8\u8ba4\u4fdd\u5b58\u8def\u5f84\uff1a", None)) self.toolButton.setText(QCoreApplication.translate("MainWindow", u"...", None)) - self.label_15.setText(QCoreApplication.translate("MainWindow", u"TextLabel", None)) + self.label_15.setText(QCoreApplication.translate("MainWindow", u"\u901f\u5ea6\u500d\u7387", None)) + self.label_17.setText(QCoreApplication.translate("MainWindow", u"\u97f3\u91cf\u500d\u7387", None)) + self.label_18.setText(QCoreApplication.translate("MainWindow", u"\u8ba1\u5206\u677f\u540d\u79f0", None)) + self.label_21.setText( + QCoreApplication.translate("MainWindow", u"\u6700\u5927\u6307\u4ee4\u751f\u6210\u9ad8\u5ea6", None)) + self.label_20.setText(QCoreApplication.translate("MainWindow", u"\u73a9\u5bb6\u9009\u62e9\u5668", None)) + self.label_24.setText(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u5668\u6a21\u5f0f", None)) + self.label_19.setText(QCoreApplication.translate("MainWindow", u"bdx\u4f5c\u8005\u540d\u79f0", None)) + self.label_23.setText( + QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u547d\u4ee4\u683c\u5f0f\u7248\u672c", None)) + self.checkBox_2.setText( + QCoreApplication.translate("MainWindow", u"\u662f\u5426\u542f\u7528\u8fdb\u5ea6\u6761", None)) + self.checkBox.setText( + QCoreApplication.translate("MainWindow", u"\u662f\u5426\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761", None)) + self.label_22.setText( + QCoreApplication.translate("MainWindow", u"\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761\u5185\u5bb9\uff1a", None)) + self.label_25.setText( + QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u8f6c\u6362\u7b97\u6cd5\u7248\u672c", None)) + self.label_26.setText(QCoreApplication.translate("MainWindow", u"\u9009\u62e9\u5bfc\u51fa\u6a21\u5f0f", None)) self.tabO.setTabText(self.tabO.indexOf(self.tab_2), QCoreApplication.translate("MainWindow", u"Tab 2", None)) self.tabO.setTabText(self.tabO.indexOf(self.tab_3), QCoreApplication.translate("MainWindow", u"\u9875", None)) self.tabO.setTabText(self.tabO.indexOf(self.tab_4), QCoreApplication.translate("MainWindow", u"\u9875", None))