139 lines
7.4 KiB
Python
139 lines
7.4 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'resources/_ui/tntdialog.ui'
|
||
|
#
|
||
|
# Created by: PyQt5 UI code generator 5.12.3
|
||
|
#
|
||
|
# WARNING! All changes made in this file will be lost!
|
||
|
|
||
|
|
||
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||
|
|
||
|
|
||
|
class Ui_tntdialog(object):
|
||
|
def setupUi(self, tntdialog):
|
||
|
tntdialog.setObjectName("tntdialog")
|
||
|
tntdialog.resize(373, 482)
|
||
|
self.gridLayout = QtWidgets.QGridLayout(tntdialog)
|
||
|
self.gridLayout.setObjectName("gridLayout")
|
||
|
self.widget_3 = QDelayWidget(tntdialog)
|
||
|
self.widget_3.setObjectName("widget_3")
|
||
|
self.gridLayout.addWidget(self.widget_3, 3, 1, 1, 2)
|
||
|
self.label_3 = QtWidgets.QLabel(tntdialog)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
|
||
|
self.label_3.setSizePolicy(sizePolicy)
|
||
|
self.label_3.setObjectName("label_3")
|
||
|
self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1)
|
||
|
self.widget = QDelayWidget(tntdialog)
|
||
|
self.widget.setObjectName("widget")
|
||
|
self.gridLayout.addWidget(self.widget, 1, 1, 1, 2)
|
||
|
self.label_2 = QtWidgets.QLabel(tntdialog)
|
||
|
self.label_2.setObjectName("label_2")
|
||
|
self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
|
||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
||
|
self.gridLayout.addItem(spacerItem, 6, 1, 1, 1)
|
||
|
self.widget_2 = QDelayWidget(tntdialog)
|
||
|
self.widget_2.setObjectName("widget_2")
|
||
|
self.gridLayout.addWidget(self.widget_2, 2, 1, 1, 2)
|
||
|
self.buttonBox = QtWidgets.QDialogButtonBox(tntdialog)
|
||
|
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
||
|
self.buttonBox.setObjectName("buttonBox")
|
||
|
self.gridLayout.addWidget(self.buttonBox, 9, 1, 1, 2)
|
||
|
self.frame = QtWidgets.QFrame(tntdialog)
|
||
|
self.frame.setObjectName("frame")
|
||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.frame)
|
||
|
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
|
||
|
self.gridLayout_2.setSpacing(0)
|
||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||
|
self.checkBox_2 = QtWidgets.QCheckBox(self.frame)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.checkBox_2.sizePolicy().hasHeightForWidth())
|
||
|
self.checkBox_2.setSizePolicy(sizePolicy)
|
||
|
self.checkBox_2.setObjectName("checkBox_2")
|
||
|
self.gridLayout_2.addWidget(self.checkBox_2, 3, 0, 1, 1)
|
||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||
|
self.label_5 = QtWidgets.QLabel(self.frame)
|
||
|
self.label_5.setObjectName("label_5")
|
||
|
self.horizontalLayout_2.addWidget(self.label_5)
|
||
|
self.start_lineedit = QtWidgets.QLineEdit(self.frame)
|
||
|
self.start_lineedit.setObjectName("start_lineedit")
|
||
|
self.horizontalLayout_2.addWidget(self.start_lineedit)
|
||
|
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||
|
self.horizontalLayout_2.addItem(spacerItem1)
|
||
|
self.label_6 = QtWidgets.QLabel(self.frame)
|
||
|
self.label_6.setObjectName("label_6")
|
||
|
self.horizontalLayout_2.addWidget(self.label_6)
|
||
|
self.end_lineedit = QtWidgets.QLineEdit(self.frame)
|
||
|
self.end_lineedit.setFrame(True)
|
||
|
self.end_lineedit.setObjectName("end_lineedit")
|
||
|
self.horizontalLayout_2.addWidget(self.end_lineedit)
|
||
|
self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 2)
|
||
|
self.label = QtWidgets.QLabel(self.frame)
|
||
|
self.label.setObjectName("label")
|
||
|
self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
|
||
|
self.lineEdit = QtWidgets.QLineEdit(self.frame)
|
||
|
self.lineEdit.setObjectName("lineEdit")
|
||
|
self.gridLayout_2.addWidget(self.lineEdit, 0, 1, 1, 1)
|
||
|
self.spinBox = QtWidgets.QSpinBox(self.frame)
|
||
|
self.spinBox.setObjectName("spinBox")
|
||
|
self.gridLayout_2.addWidget(self.spinBox, 3, 1, 1, 1)
|
||
|
self.checkBox = QtWidgets.QCheckBox(self.frame)
|
||
|
self.checkBox.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||
|
self.checkBox.setObjectName("checkBox")
|
||
|
self.gridLayout_2.addWidget(self.checkBox, 4, 0, 1, 1)
|
||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||
|
self.horizontalLayout.setContentsMargins(25, -1, -1, -1)
|
||
|
self.horizontalLayout.setSpacing(0)
|
||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||
|
self.pushButton = QtWidgets.QPushButton(self.frame)
|
||
|
self.pushButton.setObjectName("pushButton")
|
||
|
self.horizontalLayout.addWidget(self.pushButton)
|
||
|
self.pushButton_2 = QtWidgets.QPushButton(self.frame)
|
||
|
self.pushButton_2.setObjectName("pushButton_2")
|
||
|
self.horizontalLayout.addWidget(self.pushButton_2)
|
||
|
self.gridLayout_2.addLayout(self.horizontalLayout, 4, 1, 1, 1)
|
||
|
self.gridLayout.addWidget(self.frame, 8, 1, 1, 2)
|
||
|
self.frame_2 = QtWidgets.QFrame(tntdialog)
|
||
|
self.frame_2.setObjectName("frame_2")
|
||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_2)
|
||
|
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||
|
self.label_4 = QtWidgets.QLabel(self.frame_2)
|
||
|
self.label_4.setObjectName("label_4")
|
||
|
self.horizontalLayout_3.addWidget(self.label_4)
|
||
|
self.unknown_delay_combobox = QtWidgets.QComboBox(self.frame_2)
|
||
|
self.unknown_delay_combobox.setObjectName("unknown_delay_combobox")
|
||
|
self.horizontalLayout_3.addWidget(self.unknown_delay_combobox)
|
||
|
self.gridLayout.addWidget(self.frame_2, 4, 1, 1, 2)
|
||
|
|
||
|
self.retranslateUi(tntdialog)
|
||
|
self.buttonBox.accepted.connect(tntdialog.accept)
|
||
|
self.buttonBox.rejected.connect(tntdialog.reject)
|
||
|
QtCore.QMetaObject.connectSlotsByName(tntdialog)
|
||
|
|
||
|
def retranslateUi(self, tntdialog):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
tntdialog.setWindowTitle(_translate("tntdialog", "Read tnt file"))
|
||
|
self.label_3.setText(_translate("tntdialog", "TextLabel"))
|
||
|
self.label_2.setText(_translate("tntdialog", "Dimensions"))
|
||
|
self.checkBox_2.setText(_translate("tntdialog", "Staggered range"))
|
||
|
self.label_5.setText(_translate("tntdialog", "Start"))
|
||
|
self.start_lineedit.setPlaceholderText(_translate("tntdialog", "0"))
|
||
|
self.label_6.setText(_translate("tntdialog", "End"))
|
||
|
self.end_lineedit.setPlaceholderText(_translate("tntdialog", "1"))
|
||
|
self.label.setText(_translate("tntdialog", "Name"))
|
||
|
self.checkBox.setToolTip(_translate("tntdialog", "NOTE: There is no inspection if start and end are valid values."))
|
||
|
self.checkBox.setText(_translate("tntdialog", "Logarithmic scale"))
|
||
|
self.pushButton.setText(_translate("tntdialog", "Apply"))
|
||
|
self.pushButton_2.setText(_translate("tntdialog", "Cancel"))
|
||
|
self.label_4.setText(_translate("tntdialog", "Unassigned lists"))
|
||
|
from widgets.subwidgets import QDelayWidget
|