mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-07-01 12:26:26 +00:00
wip: settings
This commit is contained in:
40
ui/designer/components/settings/resettableItem.ui
Normal file
40
ui/designer/components/settings/resettableItem.ui
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ResettableItem</class>
|
||||
<widget class="QWidget" name="ResettableItem">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>559</width>
|
||||
<height>42</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string notr="true">ResettableItem</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QPushButton" name="resetButton">
|
||||
<property name="text">
|
||||
<string>resetButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
45
ui/designer/components/settings/resettableItem_ui.py
Normal file
45
ui/designer/components/settings/resettableItem_ui.py
Normal file
@ -0,0 +1,45 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
################################################################################
|
||||
## Form generated from reading UI file 'resettableItem.ui'
|
||||
##
|
||||
## Created by: Qt User Interface Compiler version 6.5.1
|
||||
##
|
||||
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
################################################################################
|
||||
|
||||
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||
QMetaObject, QObject, QPoint, QRect,
|
||||
QSize, QTime, QUrl, Qt)
|
||||
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QHBoxLayout, QPushButton, QSizePolicy,
|
||||
QWidget)
|
||||
|
||||
class Ui_ResettableItem(object):
|
||||
def setupUi(self, ResettableItem):
|
||||
if not ResettableItem.objectName():
|
||||
ResettableItem.setObjectName(u"ResettableItem")
|
||||
ResettableItem.resize(559, 42)
|
||||
ResettableItem.setWindowTitle(u"ResettableItem")
|
||||
self.horizontalLayout = QHBoxLayout(ResettableItem)
|
||||
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||
self.resetButton = QPushButton(ResettableItem)
|
||||
self.resetButton.setObjectName(u"resetButton")
|
||||
|
||||
self.horizontalLayout.addWidget(self.resetButton)
|
||||
|
||||
|
||||
self.retranslateUi(ResettableItem)
|
||||
|
||||
QMetaObject.connectSlotsByName(ResettableItem)
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, ResettableItem):
|
||||
self.resetButton.setText(QCoreApplication.translate("ResettableItem", u"resetButton", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
@ -13,56 +13,17 @@
|
||||
<property name="windowTitle">
|
||||
<string notr="true">SettingsDefault</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<property name="fieldGrowthPolicy">
|
||||
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
||||
</property>
|
||||
<property name="rowWrapPolicy">
|
||||
<enum>QFormLayout::DontWrapRows</enum>
|
||||
</property>
|
||||
<property name="labelAlignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>devicesJsonFile</string>
|
||||
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1,0">
|
||||
<item row="1" column="1">
|
||||
<widget class="DevicesComboBox" name="devicesComboBox">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="FileSelector" name="devicesJsonFileSelector" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="devicesJsonFileResetButton">
|
||||
<property name="text">
|
||||
<string>devicesJsonPath.resetButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="sizePolicy">
|
||||
@ -74,36 +35,12 @@
|
||||
<property name="text">
|
||||
<string>deviceUuid</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="DevicesComboBox" name="devicesComboBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="deviceUuidResetButton">
|
||||
<property name="text">
|
||||
<string>defaultDevice.resetButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
|
||||
@ -114,15 +51,15 @@
|
||||
<property name="text">
|
||||
<string>tesseractFile</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<item row="2" column="1">
|
||||
<widget class="FileSelector" name="tesseractFileSelector" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
@ -132,6 +69,53 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="FileSelector" name="devicesJsonFileSelector" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>devicesJsonFile</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QPushButton" name="deviceUuidResetButton">
|
||||
<property name="text">
|
||||
<string>resetButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>knnModelFile</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="devicesJsonFileResetButton">
|
||||
<property name="text">
|
||||
<string>resetButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
@ -148,6 +132,19 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>siftDatabaseFile</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="FileSelector" name="knnModelFileSelector" native="true"/>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="FileSelector" name="siftDatabaseFileSelector" native="true"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
|
@ -15,8 +15,8 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||
QFont, QFontDatabase, QGradient, QIcon,
|
||||
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||
from PySide6.QtWidgets import (QApplication, QFormLayout, QHBoxLayout, QLabel,
|
||||
QPushButton, QSizePolicy, QSpacerItem, QWidget)
|
||||
from PySide6.QtWidgets import (QApplication, QGridLayout, QLabel, QPushButton,
|
||||
QSizePolicy, QSpacerItem, QWidget)
|
||||
|
||||
from ui.implements.components.devicesComboBox import DevicesComboBox
|
||||
from ui.implements.components.fileSelector import FileSelector
|
||||
@ -27,92 +27,89 @@ class Ui_SettingsDefault(object):
|
||||
SettingsDefault.setObjectName(u"SettingsDefault")
|
||||
SettingsDefault.resize(682, 493)
|
||||
SettingsDefault.setWindowTitle(u"SettingsDefault")
|
||||
self.formLayout = QFormLayout(SettingsDefault)
|
||||
self.formLayout.setObjectName(u"formLayout")
|
||||
self.formLayout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)
|
||||
self.formLayout.setRowWrapPolicy(QFormLayout.DontWrapRows)
|
||||
self.formLayout.setLabelAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
self.label_2 = QLabel(SettingsDefault)
|
||||
self.label_2.setObjectName(u"label_2")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.MinimumExpanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
|
||||
self.label_2.setSizePolicy(sizePolicy)
|
||||
self.gridLayout = QGridLayout(SettingsDefault)
|
||||
self.gridLayout.setObjectName(u"gridLayout")
|
||||
self.devicesComboBox = DevicesComboBox(SettingsDefault)
|
||||
self.devicesComboBox.setObjectName(u"devicesComboBox")
|
||||
self.devicesComboBox.setMinimumSize(QSize(200, 0))
|
||||
|
||||
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label_2)
|
||||
|
||||
self.horizontalLayout_2 = QHBoxLayout()
|
||||
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
||||
self.devicesJsonFileSelector = FileSelector(SettingsDefault)
|
||||
self.devicesJsonFileSelector.setObjectName(u"devicesJsonFileSelector")
|
||||
sizePolicy1 = QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Preferred)
|
||||
sizePolicy1.setHorizontalStretch(0)
|
||||
sizePolicy1.setVerticalStretch(0)
|
||||
sizePolicy1.setHeightForWidth(self.devicesJsonFileSelector.sizePolicy().hasHeightForWidth())
|
||||
self.devicesJsonFileSelector.setSizePolicy(sizePolicy1)
|
||||
self.devicesJsonFileSelector.setMinimumSize(QSize(200, 0))
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.devicesJsonFileSelector)
|
||||
|
||||
self.devicesJsonFileResetButton = QPushButton(SettingsDefault)
|
||||
self.devicesJsonFileResetButton.setObjectName(u"devicesJsonFileResetButton")
|
||||
|
||||
self.horizontalLayout_2.addWidget(self.devicesJsonFileResetButton)
|
||||
|
||||
|
||||
self.formLayout.setLayout(0, QFormLayout.FieldRole, self.horizontalLayout_2)
|
||||
self.gridLayout.addWidget(self.devicesComboBox, 1, 1, 1, 1)
|
||||
|
||||
self.label_3 = QLabel(SettingsDefault)
|
||||
self.label_3.setObjectName(u"label_3")
|
||||
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.MinimumExpanding)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
|
||||
self.label_3.setSizePolicy(sizePolicy)
|
||||
self.label_3.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_3)
|
||||
|
||||
self.horizontalLayout = QHBoxLayout()
|
||||
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
||||
self.devicesComboBox = DevicesComboBox(SettingsDefault)
|
||||
self.devicesComboBox.setObjectName(u"devicesComboBox")
|
||||
sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
|
||||
sizePolicy2.setHorizontalStretch(0)
|
||||
sizePolicy2.setVerticalStretch(0)
|
||||
sizePolicy2.setHeightForWidth(self.devicesComboBox.sizePolicy().hasHeightForWidth())
|
||||
self.devicesComboBox.setSizePolicy(sizePolicy2)
|
||||
self.devicesComboBox.setMinimumSize(QSize(200, 0))
|
||||
|
||||
self.horizontalLayout.addWidget(self.devicesComboBox)
|
||||
|
||||
self.deviceUuidResetButton = QPushButton(SettingsDefault)
|
||||
self.deviceUuidResetButton.setObjectName(u"deviceUuidResetButton")
|
||||
|
||||
self.horizontalLayout.addWidget(self.deviceUuidResetButton)
|
||||
|
||||
|
||||
self.formLayout.setLayout(1, QFormLayout.FieldRole, self.horizontalLayout)
|
||||
self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
|
||||
|
||||
self.label_4 = QLabel(SettingsDefault)
|
||||
self.label_4.setObjectName(u"label_4")
|
||||
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
||||
self.label_4.setSizePolicy(sizePolicy)
|
||||
self.label_4.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_4)
|
||||
self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
|
||||
|
||||
self.tesseractFileSelector = FileSelector(SettingsDefault)
|
||||
self.tesseractFileSelector.setObjectName(u"tesseractFileSelector")
|
||||
sizePolicy3 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred)
|
||||
sizePolicy3.setHorizontalStretch(0)
|
||||
sizePolicy3.setVerticalStretch(0)
|
||||
sizePolicy3.setHeightForWidth(self.tesseractFileSelector.sizePolicy().hasHeightForWidth())
|
||||
self.tesseractFileSelector.setSizePolicy(sizePolicy3)
|
||||
self.tesseractFileSelector.setEnabled(False)
|
||||
self.tesseractFileSelector.setMinimumSize(QSize(200, 0))
|
||||
|
||||
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.tesseractFileSelector)
|
||||
self.gridLayout.addWidget(self.tesseractFileSelector, 2, 1, 1, 1)
|
||||
|
||||
self.devicesJsonFileSelector = FileSelector(SettingsDefault)
|
||||
self.devicesJsonFileSelector.setObjectName(u"devicesJsonFileSelector")
|
||||
self.devicesJsonFileSelector.setMinimumSize(QSize(200, 0))
|
||||
|
||||
self.gridLayout.addWidget(self.devicesJsonFileSelector, 0, 1, 1, 1)
|
||||
|
||||
self.label_2 = QLabel(SettingsDefault)
|
||||
self.label_2.setObjectName(u"label_2")
|
||||
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
|
||||
self.label_2.setSizePolicy(sizePolicy)
|
||||
self.label_2.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
|
||||
|
||||
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
|
||||
|
||||
self.deviceUuidResetButton = QPushButton(SettingsDefault)
|
||||
self.deviceUuidResetButton.setObjectName(u"deviceUuidResetButton")
|
||||
|
||||
self.gridLayout.addWidget(self.deviceUuidResetButton, 1, 2, 1, 1)
|
||||
|
||||
self.label = QLabel(SettingsDefault)
|
||||
self.label.setObjectName(u"label")
|
||||
|
||||
self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
|
||||
|
||||
self.devicesJsonFileResetButton = QPushButton(SettingsDefault)
|
||||
self.devicesJsonFileResetButton.setObjectName(u"devicesJsonFileResetButton")
|
||||
|
||||
self.gridLayout.addWidget(self.devicesJsonFileResetButton, 0, 2, 1, 1)
|
||||
|
||||
self.verticalSpacer = QSpacerItem(20, 500000, QSizePolicy.Minimum, QSizePolicy.Expanding)
|
||||
|
||||
self.formLayout.setItem(5, QFormLayout.FieldRole, self.verticalSpacer)
|
||||
self.gridLayout.addItem(self.verticalSpacer, 5, 1, 1, 1)
|
||||
|
||||
self.label_5 = QLabel(SettingsDefault)
|
||||
self.label_5.setObjectName(u"label_5")
|
||||
|
||||
self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1)
|
||||
|
||||
self.knnModelFileSelector = FileSelector(SettingsDefault)
|
||||
self.knnModelFileSelector.setObjectName(u"knnModelFileSelector")
|
||||
|
||||
self.gridLayout.addWidget(self.knnModelFileSelector, 3, 1, 1, 1)
|
||||
|
||||
self.siftDatabaseFileSelector = FileSelector(SettingsDefault)
|
||||
self.siftDatabaseFileSelector.setObjectName(u"siftDatabaseFileSelector")
|
||||
|
||||
self.gridLayout.addWidget(self.siftDatabaseFileSelector, 4, 1, 1, 1)
|
||||
|
||||
self.gridLayout.setColumnStretch(1, 1)
|
||||
|
||||
self.retranslateUi(SettingsDefault)
|
||||
|
||||
@ -120,11 +117,13 @@ class Ui_SettingsDefault(object):
|
||||
# setupUi
|
||||
|
||||
def retranslateUi(self, SettingsDefault):
|
||||
self.label_2.setText(QCoreApplication.translate("SettingsDefault", u"devicesJsonFile", None))
|
||||
self.devicesJsonFileResetButton.setText(QCoreApplication.translate("SettingsDefault", u"devicesJsonPath.resetButton", None))
|
||||
self.label_3.setText(QCoreApplication.translate("SettingsDefault", u"deviceUuid", None))
|
||||
self.deviceUuidResetButton.setText(QCoreApplication.translate("SettingsDefault", u"defaultDevice.resetButton", None))
|
||||
self.label_4.setText(QCoreApplication.translate("SettingsDefault", u"tesseractFile", None))
|
||||
self.label_2.setText(QCoreApplication.translate("SettingsDefault", u"devicesJsonFile", None))
|
||||
self.deviceUuidResetButton.setText(QCoreApplication.translate("SettingsDefault", u"resetButton", None))
|
||||
self.label.setText(QCoreApplication.translate("SettingsDefault", u"knnModelFile", None))
|
||||
self.devicesJsonFileResetButton.setText(QCoreApplication.translate("SettingsDefault", u"resetButton", None))
|
||||
self.label_5.setText(QCoreApplication.translate("SettingsDefault", u"siftDatabaseFile", None))
|
||||
pass
|
||||
# retranslateUi
|
||||
|
||||
|
Reference in New Issue
Block a user