forked from IPKM/nmreval
136 lines
7.4 KiB
Python
136 lines
7.4 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'resources/_ui/fitmodelwidget.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_FitParameter(object):
|
||
|
def setupUi(self, FitParameter):
|
||
|
FitParameter.setObjectName("FitParameter")
|
||
|
FitParameter.resize(365, 78)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(FitParameter.sizePolicy().hasHeightForWidth())
|
||
|
FitParameter.setSizePolicy(sizePolicy)
|
||
|
self.verticalLayout = QtWidgets.QVBoxLayout(FitParameter)
|
||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.verticalLayout.setSpacing(1)
|
||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||
|
self.horizontalLayout_2.setSpacing(3)
|
||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||
|
self.parametername = QtWidgets.QLabel(FitParameter)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.parametername.sizePolicy().hasHeightForWidth())
|
||
|
self.parametername.setSizePolicy(sizePolicy)
|
||
|
self.parametername.setMinimumSize(QtCore.QSize(28, 0))
|
||
|
self.parametername.setObjectName("parametername")
|
||
|
self.horizontalLayout_2.addWidget(self.parametername)
|
||
|
self.parameter_line = LineEdit(FitParameter)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.parameter_line.sizePolicy().hasHeightForWidth())
|
||
|
self.parameter_line.setSizePolicy(sizePolicy)
|
||
|
self.parameter_line.setText("")
|
||
|
self.parameter_line.setObjectName("parameter_line")
|
||
|
self.horizontalLayout_2.addWidget(self.parameter_line)
|
||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||
|
self.horizontalLayout_2.addItem(spacerItem)
|
||
|
self.fixed_check = QtWidgets.QCheckBox(FitParameter)
|
||
|
self.fixed_check.setObjectName("fixed_check")
|
||
|
self.horizontalLayout_2.addWidget(self.fixed_check)
|
||
|
self.global_checkbox = QtWidgets.QCheckBox(FitParameter)
|
||
|
self.global_checkbox.setObjectName("global_checkbox")
|
||
|
self.horizontalLayout_2.addWidget(self.global_checkbox)
|
||
|
self.toolButton = QtWidgets.QToolButton(FitParameter)
|
||
|
self.toolButton.setText("")
|
||
|
self.toolButton.setPopupMode(QtWidgets.QToolButton.InstantPopup)
|
||
|
self.toolButton.setArrowType(QtCore.Qt.RightArrow)
|
||
|
self.toolButton.setObjectName("toolButton")
|
||
|
self.horizontalLayout_2.addWidget(self.toolButton)
|
||
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||
|
self.frame = QtWidgets.QFrame(FitParameter)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
|
||
|
self.frame.setSizePolicy(sizePolicy)
|
||
|
self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Plain)
|
||
|
self.frame.setObjectName("frame")
|
||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
|
||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.horizontalLayout.setSpacing(3)
|
||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||
|
self.checkBox = QtWidgets.QCheckBox(self.frame)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.checkBox.sizePolicy().hasHeightForWidth())
|
||
|
self.checkBox.setSizePolicy(sizePolicy)
|
||
|
self.checkBox.setLayoutDirection(QtCore.Qt.RightToLeft)
|
||
|
self.checkBox.setText("")
|
||
|
self.checkBox.setObjectName("checkBox")
|
||
|
self.horizontalLayout.addWidget(self.checkBox)
|
||
|
self.lineEdit = QtWidgets.QLineEdit(self.frame)
|
||
|
self.lineEdit.setEnabled(False)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
|
||
|
self.lineEdit.setSizePolicy(sizePolicy)
|
||
|
self.lineEdit.setText("")
|
||
|
self.lineEdit.setFrame(True)
|
||
|
self.lineEdit.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||
|
self.lineEdit.setObjectName("lineEdit")
|
||
|
self.horizontalLayout.addWidget(self.lineEdit)
|
||
|
self.label_3 = QtWidgets.QLabel(self.frame)
|
||
|
self.label_3.setEnabled(True)
|
||
|
self.label_3.setTextFormat(QtCore.Qt.RichText)
|
||
|
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
|
||
|
self.label_3.setObjectName("label_3")
|
||
|
self.horizontalLayout.addWidget(self.label_3)
|
||
|
self.lineEdit_2 = QtWidgets.QLineEdit(self.frame)
|
||
|
self.lineEdit_2.setEnabled(False)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.lineEdit_2.sizePolicy().hasHeightForWidth())
|
||
|
self.lineEdit_2.setSizePolicy(sizePolicy)
|
||
|
self.lineEdit_2.setText("")
|
||
|
self.lineEdit_2.setFrame(True)
|
||
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
||
|
self.horizontalLayout.addWidget(self.lineEdit_2)
|
||
|
self.verticalLayout.addWidget(self.frame)
|
||
|
self.line = QtWidgets.QFrame(FitParameter)
|
||
|
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
||
|
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||
|
self.line.setObjectName("line")
|
||
|
self.verticalLayout.addWidget(self.line)
|
||
|
|
||
|
self.retranslateUi(FitParameter)
|
||
|
QtCore.QMetaObject.connectSlotsByName(FitParameter)
|
||
|
|
||
|
def retranslateUi(self, FitParameter):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
FitParameter.setWindowTitle(_translate("FitParameter", "Form"))
|
||
|
self.parametername.setText(_translate("FitParameter", "A"))
|
||
|
self.parameter_line.setToolTip(_translate("FitParameter", "Initial values"))
|
||
|
self.parameter_line.setPlaceholderText(_translate("FitParameter", "0"))
|
||
|
self.fixed_check.setText(_translate("FitParameter", "Fix"))
|
||
|
self.global_checkbox.setText(_translate("FitParameter", "Global"))
|
||
|
self.lineEdit.setToolTip(_translate("FitParameter", "<html><head/><body><p>Lower bound. Same bound is used for all data. Leave empty for no boundary condition.</p></body></html>"))
|
||
|
self.label_3.setText(_translate("FitParameter", "Textlabel"))
|
||
|
self.lineEdit_2.setToolTip(_translate("FitParameter", "<html><head/><body><p>Upper bound. Same bound is used for all data. Leave empty for no boundary condition.</p></body></html>"))
|
||
|
from ..lib.forms import LineEdit
|