forked from IPKM/nmreval
227 lines
13 KiB
Python
227 lines
13 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'src/resources/_ui/setbyfunction_dialog.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.15.7
|
|
#
|
|
# 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
|
|
|
|
|
|
class Ui_NewCurveDialog(object):
|
|
def setupUi(self, NewCurveDialog):
|
|
NewCurveDialog.setObjectName("NewCurveDialog")
|
|
NewCurveDialog.resize(648, 578)
|
|
self.gridLayout_4 = QtWidgets.QGridLayout(NewCurveDialog)
|
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
|
self.groupBox_2 = QtWidgets.QGroupBox(NewCurveDialog)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
|
|
self.groupBox_2.setSizePolicy(sizePolicy)
|
|
self.groupBox_2.setObjectName("groupBox_2")
|
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
|
|
self.gridLayout_2.setContentsMargins(2, 2, 2, 2)
|
|
self.gridLayout_2.setSpacing(2)
|
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
|
self.lineEdit_3 = QtWidgets.QLineEdit(self.groupBox_2)
|
|
self.lineEdit_3.setPlaceholderText("")
|
|
self.lineEdit_3.setObjectName("lineEdit_3")
|
|
self.gridLayout_2.addWidget(self.lineEdit_3, 0, 1, 1, 1)
|
|
self.lineEdit_5 = QtWidgets.QLineEdit(self.groupBox_2)
|
|
self.lineEdit_5.setObjectName("lineEdit_5")
|
|
self.gridLayout_2.addWidget(self.lineEdit_5, 0, 6, 1, 1)
|
|
self.label_5 = QtWidgets.QLabel(self.groupBox_2)
|
|
self.label_5.setObjectName("label_5")
|
|
self.gridLayout_2.addWidget(self.label_5, 0, 3, 1, 1)
|
|
self.lineEdit_4 = QtWidgets.QLineEdit(self.groupBox_2)
|
|
self.lineEdit_4.setObjectName("lineEdit_4")
|
|
self.gridLayout_2.addWidget(self.lineEdit_4, 0, 4, 1, 1)
|
|
self.label_4 = QtWidgets.QLabel(self.groupBox_2)
|
|
self.label_4.setObjectName("label_4")
|
|
self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
|
|
self.label_6 = QtWidgets.QLabel(self.groupBox_2)
|
|
self.label_6.setObjectName("label_6")
|
|
self.gridLayout_2.addWidget(self.label_6, 0, 5, 1, 1)
|
|
self.checkBox = QtWidgets.QCheckBox(self.groupBox_2)
|
|
self.checkBox.setLayoutDirection(QtCore.Qt.RightToLeft)
|
|
self.checkBox.setObjectName("checkBox")
|
|
self.gridLayout_2.addWidget(self.checkBox, 0, 7, 1, 1)
|
|
self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1)
|
|
self.groupBox = QtWidgets.QGroupBox(NewCurveDialog)
|
|
self.groupBox.setObjectName("groupBox")
|
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
|
|
self.gridLayout_3.setContentsMargins(3, 3, 3, 3)
|
|
self.gridLayout_3.setSpacing(2)
|
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
|
self.lineEdit_2 = QtWidgets.QLineEdit(self.groupBox)
|
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
|
self.gridLayout_3.addWidget(self.lineEdit_2, 1, 2, 1, 1)
|
|
self.comboBox_6 = QtWidgets.QComboBox(self.groupBox)
|
|
self.comboBox_6.setObjectName("comboBox_6")
|
|
self.gridLayout_3.addWidget(self.comboBox_6, 2, 0, 1, 1)
|
|
self.pushButton = QtWidgets.QPushButton(self.groupBox)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
|
|
self.pushButton.setSizePolicy(sizePolicy)
|
|
self.pushButton.setObjectName("pushButton")
|
|
self.gridLayout_3.addWidget(self.pushButton, 4, 0, 1, 1)
|
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.gridLayout_3.addLayout(self.verticalLayout, 3, 0, 1, 1)
|
|
self.comboBox_7 = QtWidgets.QComboBox(self.groupBox)
|
|
self.comboBox_7.setObjectName("comboBox_7")
|
|
self.gridLayout_3.addWidget(self.comboBox_7, 2, 2, 1, 1)
|
|
self.lineEdit = QtWidgets.QLineEdit(self.groupBox)
|
|
self.lineEdit.setObjectName("lineEdit")
|
|
self.gridLayout_3.addWidget(self.lineEdit, 1, 0, 1, 1)
|
|
self.label = QtWidgets.QLabel(self.groupBox)
|
|
self.label.setObjectName("label")
|
|
self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
self.gridLayout_3.addLayout(self.verticalLayout_2, 3, 2, 1, 1)
|
|
self.label_2 = QtWidgets.QLabel(self.groupBox)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
|
|
self.label_2.setSizePolicy(sizePolicy)
|
|
self.label_2.setObjectName("label_2")
|
|
self.gridLayout_3.addWidget(self.label_2, 0, 2, 1, 1)
|
|
self.line_2 = QtWidgets.QFrame(self.groupBox)
|
|
self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
|
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
self.line_2.setObjectName("line_2")
|
|
self.gridLayout_3.addWidget(self.line_2, 0, 1, 4, 1)
|
|
self.gridLayout_4.addWidget(self.groupBox, 1, 0, 1, 1)
|
|
self.groupBox_3 = QtWidgets.QGroupBox(NewCurveDialog)
|
|
self.groupBox_3.setObjectName("groupBox_3")
|
|
self.gridLayout = QtWidgets.QGridLayout(self.groupBox_3)
|
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
|
self.gridLayout.setSpacing(2)
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
self.doubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox_3)
|
|
self.doubleSpinBox.setDecimals(1)
|
|
self.doubleSpinBox.setMaximum(20.0)
|
|
self.doubleSpinBox.setSingleStep(0.5)
|
|
self.doubleSpinBox.setProperty("value", 1.0)
|
|
self.doubleSpinBox.setObjectName("doubleSpinBox")
|
|
self.gridLayout.addWidget(self.doubleSpinBox, 3, 4, 1, 1)
|
|
self.line = QtWidgets.QFrame(self.groupBox_3)
|
|
self.line.setFrameShape(QtWidgets.QFrame.VLine)
|
|
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
self.line.setObjectName("line")
|
|
self.gridLayout.addWidget(self.line, 0, 2, 4, 1)
|
|
self.spinBox = QtWidgets.QSpinBox(self.groupBox_3)
|
|
self.spinBox.setMaximum(100)
|
|
self.spinBox.setProperty("value", 10)
|
|
self.spinBox.setObjectName("spinBox")
|
|
self.gridLayout.addWidget(self.spinBox, 3, 1, 1, 1)
|
|
self.label_8 = QtWidgets.QLabel(self.groupBox_3)
|
|
self.label_8.setObjectName("label_8")
|
|
self.gridLayout.addWidget(self.label_8, 0, 4, 1, 1)
|
|
self.comboBox = SymbolStyleEditor(self.groupBox_3)
|
|
self.comboBox.setObjectName("comboBox")
|
|
self.gridLayout.addWidget(self.comboBox, 1, 1, 1, 1)
|
|
self.comboBox_2 = LineStyleEditor(self.groupBox_3)
|
|
self.comboBox_2.setObjectName("comboBox_2")
|
|
self.gridLayout.addWidget(self.comboBox_2, 1, 4, 1, 1)
|
|
self.label_7 = QtWidgets.QLabel(self.groupBox_3)
|
|
self.label_7.setObjectName("label_7")
|
|
self.gridLayout.addWidget(self.label_7, 0, 1, 1, 1)
|
|
self.comboBox_4 = ColorListEditor(self.groupBox_3)
|
|
self.comboBox_4.setObjectName("comboBox_4")
|
|
self.gridLayout.addWidget(self.comboBox_4, 2, 4, 1, 1)
|
|
self.comboBox_5 = ColorListEditor(self.groupBox_3)
|
|
self.comboBox_5.setObjectName("comboBox_5")
|
|
self.gridLayout.addWidget(self.comboBox_5, 2, 1, 1, 1)
|
|
self.gridLayout_4.addWidget(self.groupBox_3, 2, 0, 1, 1)
|
|
self.groupBox_21 = QtWidgets.QGroupBox(NewCurveDialog)
|
|
self.groupBox_21.setObjectName("groupBox_21")
|
|
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_21)
|
|
self.gridLayout_5.setObjectName("gridLayout_5")
|
|
self.label_3 = QtWidgets.QLabel(self.groupBox_21)
|
|
self.label_3.setObjectName("label_3")
|
|
self.gridLayout_5.addWidget(self.label_3, 0, 0, 1, 1)
|
|
self.lineEdit_6 = QtWidgets.QLineEdit(self.groupBox_21)
|
|
self.lineEdit_6.setObjectName("lineEdit_6")
|
|
self.gridLayout_5.addWidget(self.lineEdit_6, 0, 1, 1, 1)
|
|
self.label_10 = QtWidgets.QLabel(self.groupBox_21)
|
|
self.label_10.setObjectName("label_10")
|
|
self.gridLayout_5.addWidget(self.label_10, 0, 2, 1, 1)
|
|
self.comboBox_3 = QtWidgets.QComboBox(self.groupBox_21)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.comboBox_3.sizePolicy().hasHeightForWidth())
|
|
self.comboBox_3.setSizePolicy(sizePolicy)
|
|
self.comboBox_3.setObjectName("comboBox_3")
|
|
self.gridLayout_5.addWidget(self.comboBox_3, 0, 3, 1, 1)
|
|
self.gridLayout_4.addWidget(self.groupBox_21, 3, 0, 1, 1)
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(NewCurveDialog)
|
|
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
|
self.buttonBox.setObjectName("buttonBox")
|
|
self.gridLayout_4.addWidget(self.buttonBox, 5, 0, 1, 1)
|
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
self.gridLayout_4.addItem(spacerItem, 4, 0, 1, 1)
|
|
self.label_5.setBuddy(self.lineEdit_4)
|
|
self.label_4.setBuddy(self.lineEdit_3)
|
|
self.label_6.setBuddy(self.lineEdit_5)
|
|
self.label.setBuddy(self.lineEdit)
|
|
self.label_2.setBuddy(self.lineEdit_2)
|
|
self.label_8.setBuddy(self.comboBox_2)
|
|
self.label_7.setBuddy(self.comboBox)
|
|
self.label_3.setBuddy(self.lineEdit_6)
|
|
self.label_10.setBuddy(self.comboBox_3)
|
|
|
|
self.retranslateUi(NewCurveDialog)
|
|
self.comboBox.setCurrentIndex(-1)
|
|
self.comboBox_2.setCurrentIndex(-1)
|
|
self.buttonBox.accepted.connect(NewCurveDialog.accept) # type: ignore
|
|
self.buttonBox.rejected.connect(NewCurveDialog.reject) # type: ignore
|
|
QtCore.QMetaObject.connectSlotsByName(NewCurveDialog)
|
|
NewCurveDialog.setTabOrder(self.lineEdit_3, self.lineEdit_4)
|
|
NewCurveDialog.setTabOrder(self.lineEdit_4, self.lineEdit_5)
|
|
NewCurveDialog.setTabOrder(self.lineEdit_5, self.checkBox)
|
|
NewCurveDialog.setTabOrder(self.checkBox, self.lineEdit)
|
|
NewCurveDialog.setTabOrder(self.lineEdit, self.comboBox)
|
|
NewCurveDialog.setTabOrder(self.comboBox, self.spinBox)
|
|
NewCurveDialog.setTabOrder(self.spinBox, self.comboBox_2)
|
|
NewCurveDialog.setTabOrder(self.comboBox_2, self.doubleSpinBox)
|
|
NewCurveDialog.setTabOrder(self.doubleSpinBox, self.lineEdit_6)
|
|
NewCurveDialog.setTabOrder(self.lineEdit_6, self.comboBox_3)
|
|
NewCurveDialog.setTabOrder(self.comboBox_3, self.buttonBox)
|
|
|
|
def retranslateUi(self, NewCurveDialog):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
NewCurveDialog.setWindowTitle(_translate("NewCurveDialog", "Create new data by function"))
|
|
self.groupBox_2.setTitle(_translate("NewCurveDialog", "Control variable i"))
|
|
self.lineEdit_3.setText(_translate("NewCurveDialog", "0"))
|
|
self.lineEdit_5.setText(_translate("NewCurveDialog", "10"))
|
|
self.label_5.setText(_translate("NewCurveDialog", "Stop at"))
|
|
self.lineEdit_4.setText(_translate("NewCurveDialog", "1"))
|
|
self.label_4.setText(_translate("NewCurveDialog", "Start at"))
|
|
self.label_6.setText(_translate("NewCurveDialog", "# points"))
|
|
self.checkBox.setText(_translate("NewCurveDialog", "Logarithmic?"))
|
|
self.groupBox.setTitle(_translate("NewCurveDialog", "Expressions"))
|
|
self.lineEdit_2.setText(_translate("NewCurveDialog", "x**2"))
|
|
self.pushButton.setText(_translate("NewCurveDialog", "Check"))
|
|
self.lineEdit.setText(_translate("NewCurveDialog", "i"))
|
|
self.label.setText(_translate("NewCurveDialog", " x = "))
|
|
self.label_2.setText(_translate("NewCurveDialog", " y = "))
|
|
self.groupBox_3.setTitle(_translate("NewCurveDialog", "Look"))
|
|
self.label_8.setText(_translate("NewCurveDialog", "Line"))
|
|
self.label_7.setText(_translate("NewCurveDialog", "Symbol"))
|
|
self.groupBox_21.setTitle(_translate("NewCurveDialog", "Designation"))
|
|
self.label_3.setText(_translate("NewCurveDialog", "Name"))
|
|
self.label_10.setText(_translate("NewCurveDialog", "Graph"))
|
|
from ..lib.delegates import ColorListEditor, LineStyleEditor, SymbolStyleEditor
|