129 lines
5.5 KiB
Python
129 lines
5.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
################################################################################
|
|
## Form generated from reading UI file 'settings_dialog.ui'
|
|
##
|
|
## Created by: Qt User Interface Compiler version 6.11.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 (QAbstractButton, QApplication, QComboBox, QDialog,
|
|
QDialogButtonBox, QFormLayout, QHBoxLayout, QLabel,
|
|
QListView, QPushButton, QSizePolicy, QSpacerItem,
|
|
QSpinBox, QTabWidget, QVBoxLayout, QWidget)
|
|
|
|
class Ui_Settings(object):
|
|
def setupUi(self, Settings):
|
|
if not Settings.objectName():
|
|
Settings.setObjectName(u"Settings")
|
|
Settings.resize(400, 230)
|
|
self.verticalLayout = QVBoxLayout(Settings)
|
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
self.tabWidget = QTabWidget(Settings)
|
|
self.tabWidget.setObjectName(u"tabWidget")
|
|
self.General = QWidget()
|
|
self.General.setObjectName(u"General")
|
|
self.formLayout = QFormLayout(self.General)
|
|
self.formLayout.setObjectName(u"formLayout")
|
|
self.logLevel = QComboBox(self.General)
|
|
self.logLevel.addItem("")
|
|
self.logLevel.addItem("")
|
|
self.logLevel.addItem("")
|
|
self.logLevel.addItem("")
|
|
self.logLevel.setObjectName(u"logLevel")
|
|
|
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.logLevel)
|
|
|
|
self.lableLogLevel = QLabel(self.General)
|
|
self.lableLogLevel.setObjectName(u"lableLogLevel")
|
|
|
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.lableLogLevel)
|
|
|
|
self.labelSnapToGridSize = QLabel(self.General)
|
|
self.labelSnapToGridSize.setObjectName(u"labelSnapToGridSize")
|
|
|
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.labelSnapToGridSize)
|
|
|
|
self.snapToGridSize = QSpinBox(self.General)
|
|
self.snapToGridSize.setObjectName(u"snapToGridSize")
|
|
self.snapToGridSize.setMinimum(1)
|
|
self.snapToGridSize.setMaximum(256)
|
|
self.snapToGridSize.setValue(4)
|
|
|
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.FieldRole, self.snapToGridSize)
|
|
|
|
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
|
|
|
self.formLayout.setItem(2, QFormLayout.ItemRole.FieldRole, self.verticalSpacer)
|
|
|
|
self.tabWidget.addTab(self.General, "")
|
|
self.Libraries = QWidget()
|
|
self.Libraries.setObjectName(u"Libraries")
|
|
self.verticalLayout_2 = QVBoxLayout(self.Libraries)
|
|
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
|
self.listView = QListView(self.Libraries)
|
|
self.listView.setObjectName(u"listView")
|
|
|
|
self.verticalLayout_2.addWidget(self.listView)
|
|
|
|
self.horizontalLayout = QHBoxLayout()
|
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
|
self.addLibButton = QPushButton(self.Libraries)
|
|
self.addLibButton.setObjectName(u"addLibButton")
|
|
|
|
self.horizontalLayout.addWidget(self.addLibButton)
|
|
|
|
self.addDirButton = QPushButton(self.Libraries)
|
|
self.addDirButton.setObjectName(u"addDirButton")
|
|
|
|
self.horizontalLayout.addWidget(self.addDirButton)
|
|
|
|
|
|
self.verticalLayout_2.addLayout(self.horizontalLayout)
|
|
|
|
self.tabWidget.addTab(self.Libraries, "")
|
|
|
|
self.verticalLayout.addWidget(self.tabWidget)
|
|
|
|
self.buttonBox = QDialogButtonBox(Settings)
|
|
self.buttonBox.setObjectName(u"buttonBox")
|
|
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
|
|
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
|
|
|
|
self.verticalLayout.addWidget(self.buttonBox)
|
|
|
|
|
|
self.retranslateUi(Settings)
|
|
self.buttonBox.accepted.connect(Settings.accept)
|
|
self.buttonBox.rejected.connect(Settings.reject)
|
|
|
|
self.tabWidget.setCurrentIndex(1)
|
|
|
|
|
|
QMetaObject.connectSlotsByName(Settings)
|
|
# setupUi
|
|
|
|
def retranslateUi(self, Settings):
|
|
Settings.setWindowTitle(QCoreApplication.translate("Settings", u"Settings", None))
|
|
self.logLevel.setItemText(0, QCoreApplication.translate("Settings", u"Debug", None))
|
|
self.logLevel.setItemText(1, QCoreApplication.translate("Settings", u"Info", None))
|
|
self.logLevel.setItemText(2, QCoreApplication.translate("Settings", u"Warning", None))
|
|
self.logLevel.setItemText(3, QCoreApplication.translate("Settings", u"Error", None))
|
|
|
|
self.lableLogLevel.setText(QCoreApplication.translate("Settings", u"Log level:", None))
|
|
self.labelSnapToGridSize.setText(QCoreApplication.translate("Settings", u"Snap-to-grid size:", None))
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.General), QCoreApplication.translate("Settings", u"General", None))
|
|
self.addLibButton.setText(QCoreApplication.translate("Settings", u"Add library", None))
|
|
self.addDirButton.setText(QCoreApplication.translate("Settings", u"Add directory", None))
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.Libraries), QCoreApplication.translate("Settings", u"Libraries", None))
|
|
# retranslateUi
|
|
|