forked from IPKM/nmreval
8d148b639b
change to src layout
117 lines
6.2 KiB
Python
117 lines
6.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'resources/_ui/fitfunctionwidget.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_Form(object):
|
|
def setupUi(self, Form):
|
|
Form.setObjectName("Form")
|
|
Form.resize(382, 375)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
|
|
Form.setSizePolicy(sizePolicy)
|
|
self.gridLayout = QtWidgets.QGridLayout(Form)
|
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
|
self.gridLayout.setSpacing(3)
|
|
self.gridLayout.setObjectName("gridLayout")
|
|
self.typecomboBox = QtWidgets.QComboBox(Form)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.typecomboBox.sizePolicy().hasHeightForWidth())
|
|
self.typecomboBox.setSizePolicy(sizePolicy)
|
|
self.typecomboBox.setObjectName("typecomboBox")
|
|
self.gridLayout.addWidget(self.typecomboBox, 0, 0, 1, 2)
|
|
self.complex_widget = QtWidgets.QWidget(Form)
|
|
self.complex_widget.setObjectName("complex_widget")
|
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.complex_widget)
|
|
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
|
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
|
self.label_2 = QtWidgets.QLabel(self.complex_widget)
|
|
self.label_2.setObjectName("label_2")
|
|
self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
|
|
self.complex_comboBox = QtWidgets.QComboBox(self.complex_widget)
|
|
self.complex_comboBox.setObjectName("complex_comboBox")
|
|
self.complex_comboBox.addItem("")
|
|
self.complex_comboBox.addItem("")
|
|
self.complex_comboBox.addItem("")
|
|
self.gridLayout_2.addWidget(self.complex_comboBox, 1, 1, 1, 1)
|
|
self.label = QtWidgets.QLabel(self.complex_widget)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
|
self.label.setSizePolicy(sizePolicy)
|
|
self.label.setObjectName("label")
|
|
self.gridLayout_2.addWidget(self.label, 0, 0, 1, 2)
|
|
self.gridLayout.addWidget(self.complex_widget, 6, 0, 1, 2)
|
|
self.fitcomboBox = QtWidgets.QComboBox(Form)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.fitcomboBox.sizePolicy().hasHeightForWidth())
|
|
self.fitcomboBox.setSizePolicy(sizePolicy)
|
|
self.fitcomboBox.setObjectName("fitcomboBox")
|
|
self.gridLayout.addWidget(self.fitcomboBox, 1, 0, 1, 2)
|
|
self.use_function_button = QtWidgets.QToolButton(Form)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Maximum)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.use_function_button.sizePolicy().hasHeightForWidth())
|
|
self.use_function_button.setSizePolicy(sizePolicy)
|
|
self.use_function_button.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
|
|
self.use_function_button.setAutoRaise(False)
|
|
self.use_function_button.setArrowType(QtCore.Qt.RightArrow)
|
|
self.use_function_button.setObjectName("use_function_button")
|
|
self.gridLayout.addWidget(self.use_function_button, 3, 1, 1, 1)
|
|
self.operator_combobox = QtWidgets.QComboBox(Form)
|
|
self.operator_combobox.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
|
|
self.operator_combobox.setFrame(True)
|
|
self.operator_combobox.setObjectName("operator_combobox")
|
|
self.operator_combobox.addItem("")
|
|
self.operator_combobox.addItem("")
|
|
self.operator_combobox.addItem("")
|
|
self.operator_combobox.addItem("")
|
|
self.gridLayout.addWidget(self.operator_combobox, 3, 0, 1, 1)
|
|
self.functree = FitModelTree(Form)
|
|
self.functree.setObjectName("functree")
|
|
self.functree.headerItem().setText(0, "1")
|
|
self.gridLayout.addWidget(self.functree, 5, 0, 1, 2)
|
|
self.fitequation = QtWidgets.QLabel(Form)
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(self.fitequation.sizePolicy().hasHeightForWidth())
|
|
self.fitequation.setSizePolicy(sizePolicy)
|
|
self.fitequation.setWordWrap(True)
|
|
self.fitequation.setObjectName("fitequation")
|
|
self.gridLayout.addWidget(self.fitequation, 2, 0, 1, 2)
|
|
|
|
self.retranslateUi(Form)
|
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
|
|
|
def retranslateUi(self, Form):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
Form.setWindowTitle(_translate("Form", "Form"))
|
|
self.label_2.setText(_translate("Form", "Select part to fit"))
|
|
self.complex_comboBox.setItemText(0, _translate("Form", "Complex"))
|
|
self.complex_comboBox.setItemText(1, _translate("Form", "Real"))
|
|
self.complex_comboBox.setItemText(2, _translate("Form", "Imaginary"))
|
|
self.label.setText(_translate("Form", "Complex function found"))
|
|
self.use_function_button.setText(_translate("Form", "Use"))
|
|
self.operator_combobox.setItemText(0, _translate("Form", "Add"))
|
|
self.operator_combobox.setItemText(1, _translate("Form", "Multiply"))
|
|
self.operator_combobox.setItemText(2, _translate("Form", "Subtract"))
|
|
self.operator_combobox.setItemText(3, _translate("Form", "Divide by"))
|
|
self.fitequation.setText(_translate("Form", "Equation"))
|
|
from ..fit.fit_forms import FitModelTree
|