first try to motion to PyQt6
This commit is contained in:
parent
837ea2504c
commit
7c83b6e1ca
@ -15,6 +15,7 @@ script:
|
|||||||
- cp src/resources/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
- cp src/resources/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
||||||
# set current date as version info
|
# set current date as version info
|
||||||
- sed -i "s/CURRENT_DATE/$(date +'%Y-%m-%d')/" $TARGET_APPDIR/usr/src/nmreval/version.py
|
- sed -i "s/CURRENT_DATE/$(date +'%Y-%m-%d')/" $TARGET_APPDIR/usr/src/nmreval/version.py
|
||||||
|
- python3 -m pip install --ignore-installed --prefix=/usr --root=$TARGET_APPDIR -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
AppDir:
|
AppDir:
|
||||||
@ -40,30 +41,31 @@ AppDir:
|
|||||||
# - dash
|
# - dash
|
||||||
# - zsync
|
# - zsync
|
||||||
# - hicolor-icon-theme
|
# - hicolor-icon-theme
|
||||||
- libatlas3-base
|
# - libatlas3-base
|
||||||
- gnuplot-nox
|
- gnuplot-nox
|
||||||
- python3-minimal
|
- python3-minimal
|
||||||
- python3-numpy
|
- libpython3-stdlib
|
||||||
- python3-scipy
|
# - python3-numpy
|
||||||
- python3-bsddb3
|
# - python3-scipy
|
||||||
- python3-h5py
|
# - python3-bsddb3
|
||||||
- python3-pyqt5
|
# - python3-h5py
|
||||||
- python3-pyqtgraph
|
# - python3-pyqt6
|
||||||
exclude:
|
# - python3-pyqtgraph
|
||||||
# lots of qt stuff we do not use
|
# exclude:
|
||||||
- libqt5designer5
|
# # lots of qt stuff we do not use
|
||||||
- libqt5help5
|
# - libqt5designer5
|
||||||
- libqt5network5
|
# - libqt5help5
|
||||||
- libqt5sql5
|
# - libqt5network5
|
||||||
- libqt5test5
|
# - libqt5sql5
|
||||||
- libqt5xml5
|
# - libqt5test5
|
||||||
- qtbase5-dev-tools
|
# - libqt5xml5
|
||||||
- pyqt5-dev-tools
|
# - qtbase5-dev-tools
|
||||||
- libavahi-client3
|
# - pyqt5-dev-tools
|
||||||
- libavahi-common-data
|
# - libavahi-client3
|
||||||
- libavahi-common3
|
# - libavahi-common-data
|
||||||
- libwacom2
|
# - libavahi-common3
|
||||||
- libwacom-common
|
# - libwacom2
|
||||||
|
# - libwacom-common
|
||||||
|
|
||||||
files:
|
files:
|
||||||
exclude:
|
exclude:
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
matplotlib
|
#matplotlib
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
PyQt5
|
PyQt6
|
||||||
h5py
|
h5py
|
||||||
pyqtgraph
|
pyqtgraph
|
||||||
bsddb3
|
|
||||||
requests
|
|
||||||
|
322
src/gui_qt/_py/agroptiondialog.py
Normal file
322
src/gui_qt/_py/agroptiondialog.py
Normal file
@ -0,0 +1,322 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/agroptiondialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(513, 466)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=Dialog)
|
||||||
|
self.tabWidget.setTabShape(QtWidgets.QTabWidget.TabShape.Rounded)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.tabWidgetPage1 = QtWidgets.QWidget()
|
||||||
|
self.tabWidgetPage1.setObjectName("tabWidgetPage1")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.tabWidgetPage1)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.frame_2 = QtWidgets.QFrame(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
|
||||||
|
self.frame_2.setSizePolicy(sizePolicy)
|
||||||
|
self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.Panel)
|
||||||
|
self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.frame_2.setLineWidth(3)
|
||||||
|
self.frame_2.setMidLineWidth(5)
|
||||||
|
self.frame_2.setObjectName("frame_2")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.frame_2)
|
||||||
|
self.gridLayout_4.setSpacing(3)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.bottomMarginDoubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.bottomMarginDoubleSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.bottomMarginDoubleSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.bottomMarginDoubleSpinBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.bottomMarginDoubleSpinBox.setObjectName("bottomMarginDoubleSpinBox")
|
||||||
|
self.gridLayout_4.addWidget(self.bottomMarginDoubleSpinBox, 5, 2, 1, 1)
|
||||||
|
self.bottomMarginLabel = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
self.bottomMarginLabel.setObjectName("bottomMarginLabel")
|
||||||
|
self.gridLayout_4.addWidget(self.bottomMarginLabel, 5, 1, 1, 1)
|
||||||
|
self.rightMarginLabel = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
self.rightMarginLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||||||
|
self.rightMarginLabel.setObjectName("rightMarginLabel")
|
||||||
|
self.gridLayout_4.addWidget(self.rightMarginLabel, 2, 3, 1, 1)
|
||||||
|
self.rightMarginDoubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.rightMarginDoubleSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.rightMarginDoubleSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.rightMarginDoubleSpinBox.setObjectName("rightMarginDoubleSpinBox")
|
||||||
|
self.gridLayout_4.addWidget(self.rightMarginDoubleSpinBox, 3, 3, 1, 1)
|
||||||
|
self.leftMarginDoubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.leftMarginDoubleSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.leftMarginDoubleSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.leftMarginDoubleSpinBox.setObjectName("leftMarginDoubleSpinBox")
|
||||||
|
self.gridLayout_4.addWidget(self.leftMarginDoubleSpinBox, 3, 0, 1, 1)
|
||||||
|
self.leftMarginLabel = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.leftMarginLabel.sizePolicy().hasHeightForWidth())
|
||||||
|
self.leftMarginLabel.setSizePolicy(sizePolicy)
|
||||||
|
self.leftMarginLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||||||
|
self.leftMarginLabel.setObjectName("leftMarginLabel")
|
||||||
|
self.gridLayout_4.addWidget(self.leftMarginLabel, 2, 0, 1, 1)
|
||||||
|
self.topMarginLabel = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.topMarginLabel.sizePolicy().hasHeightForWidth())
|
||||||
|
self.topMarginLabel.setSizePolicy(sizePolicy)
|
||||||
|
self.topMarginLabel.setObjectName("topMarginLabel")
|
||||||
|
self.gridLayout_4.addWidget(self.topMarginLabel, 0, 1, 1, 1)
|
||||||
|
self.topMarginDoubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.topMarginDoubleSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.topMarginDoubleSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.topMarginDoubleSpinBox.setObjectName("topMarginDoubleSpinBox")
|
||||||
|
self.gridLayout_4.addWidget(self.topMarginDoubleSpinBox, 0, 2, 1, 1)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=self.frame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
|
||||||
|
self.frame.setSizePolicy(sizePolicy)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.WinPanel)
|
||||||
|
self.frame.setMidLineWidth(0)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.gridLayout_4.addWidget(self.frame, 1, 1, 4, 2)
|
||||||
|
self.gridLayout_2.addWidget(self.frame_2, 1, 0, 2, 2)
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_3.addItem(spacerItem)
|
||||||
|
self.heightLabel = QtWidgets.QLabel(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.heightLabel.sizePolicy().hasHeightForWidth())
|
||||||
|
self.heightLabel.setSizePolicy(sizePolicy)
|
||||||
|
self.heightLabel.setObjectName("heightLabel")
|
||||||
|
self.verticalLayout_3.addWidget(self.heightLabel)
|
||||||
|
self.heightDoubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.heightDoubleSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.heightDoubleSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.heightDoubleSpinBox.setObjectName("heightDoubleSpinBox")
|
||||||
|
self.verticalLayout_3.addWidget(self.heightDoubleSpinBox)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_3.addItem(spacerItem1)
|
||||||
|
self.gridLayout_2.addLayout(self.verticalLayout_3, 1, 2, 2, 1)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem2)
|
||||||
|
self.widthLabel = QtWidgets.QLabel(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.widthLabel.sizePolicy().hasHeightForWidth())
|
||||||
|
self.widthLabel.setSizePolicy(sizePolicy)
|
||||||
|
self.widthLabel.setObjectName("widthLabel")
|
||||||
|
self.horizontalLayout.addWidget(self.widthLabel)
|
||||||
|
self.widthDoubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.widthDoubleSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.widthDoubleSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.widthDoubleSpinBox.setObjectName("widthDoubleSpinBox")
|
||||||
|
self.horizontalLayout.addWidget(self.widthDoubleSpinBox)
|
||||||
|
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem3)
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 2)
|
||||||
|
self.tabWidget.addTab(self.tabWidgetPage1, "")
|
||||||
|
self.tab = QtWidgets.QWidget()
|
||||||
|
self.tab.setObjectName("tab")
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.label_11 = QtWidgets.QLabel(parent=self.tab)
|
||||||
|
self.label_11.setObjectName("label_11")
|
||||||
|
self.verticalLayout_4.addWidget(self.label_11)
|
||||||
|
self.spinBox_2 = QtWidgets.QSpinBox(parent=self.tab)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.spinBox_2.sizePolicy().hasHeightForWidth())
|
||||||
|
self.spinBox_2.setSizePolicy(sizePolicy)
|
||||||
|
self.spinBox_2.setMaximum(1000)
|
||||||
|
self.spinBox_2.setProperty("value", 100)
|
||||||
|
self.spinBox_2.setObjectName("spinBox_2")
|
||||||
|
self.verticalLayout_4.addWidget(self.spinBox_2)
|
||||||
|
self.legendLabel = QtWidgets.QLabel(parent=self.tab)
|
||||||
|
self.legendLabel.setObjectName("legendLabel")
|
||||||
|
self.verticalLayout_4.addWidget(self.legendLabel)
|
||||||
|
self.spinBox = QtWidgets.QSpinBox(parent=self.tab)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.spinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.spinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.spinBox.setMaximum(1000)
|
||||||
|
self.spinBox.setProperty("value", 100)
|
||||||
|
self.spinBox.setObjectName("spinBox")
|
||||||
|
self.verticalLayout_4.addWidget(self.spinBox)
|
||||||
|
self.groupBox_4 = QtWidgets.QGroupBox(parent=self.tab)
|
||||||
|
self.groupBox_4.setObjectName("groupBox_4")
|
||||||
|
self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox_4)
|
||||||
|
self.formLayout_2.setObjectName("formLayout_2")
|
||||||
|
self.verticalAxisTickLabel = QtWidgets.QLabel(parent=self.groupBox_4)
|
||||||
|
self.verticalAxisTickLabel.setObjectName("verticalAxisTickLabel")
|
||||||
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.verticalAxisTickLabel)
|
||||||
|
self.spinBox_5 = QtWidgets.QSpinBox(parent=self.groupBox_4)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.spinBox_5.sizePolicy().hasHeightForWidth())
|
||||||
|
self.spinBox_5.setSizePolicy(sizePolicy)
|
||||||
|
self.spinBox_5.setMaximum(1000)
|
||||||
|
self.spinBox_5.setProperty("value", 100)
|
||||||
|
self.spinBox_5.setObjectName("spinBox_5")
|
||||||
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.spinBox_5)
|
||||||
|
self.verticalAxisLabelSpinBox = QtWidgets.QSpinBox(parent=self.groupBox_4)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.verticalAxisLabelSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.verticalAxisLabelSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.verticalAxisLabelSpinBox.setMaximum(1000)
|
||||||
|
self.verticalAxisLabelSpinBox.setProperty("value", 100)
|
||||||
|
self.verticalAxisLabelSpinBox.setObjectName("verticalAxisLabelSpinBox")
|
||||||
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.verticalAxisLabelSpinBox)
|
||||||
|
self.verticalAxisLabelLabel = QtWidgets.QLabel(parent=self.groupBox_4)
|
||||||
|
self.verticalAxisLabelLabel.setObjectName("verticalAxisLabelLabel")
|
||||||
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.verticalAxisLabelLabel)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_4)
|
||||||
|
self.groupBox_3 = QtWidgets.QGroupBox(parent=self.tab)
|
||||||
|
self.groupBox_3.setObjectName("groupBox_3")
|
||||||
|
self.formLayout = QtWidgets.QFormLayout(self.groupBox_3)
|
||||||
|
self.formLayout.setObjectName("formLayout")
|
||||||
|
self.spinBox_4 = QtWidgets.QSpinBox(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.spinBox_4.sizePolicy().hasHeightForWidth())
|
||||||
|
self.spinBox_4.setSizePolicy(sizePolicy)
|
||||||
|
self.spinBox_4.setMaximum(1000)
|
||||||
|
self.spinBox_4.setProperty("value", 100)
|
||||||
|
self.spinBox_4.setObjectName("spinBox_4")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.spinBox_4)
|
||||||
|
self.spinBox_3 = QtWidgets.QSpinBox(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.spinBox_3.sizePolicy().hasHeightForWidth())
|
||||||
|
self.spinBox_3.setSizePolicy(sizePolicy)
|
||||||
|
self.spinBox_3.setMaximum(1000)
|
||||||
|
self.spinBox_3.setProperty("value", 100)
|
||||||
|
self.spinBox_3.setObjectName("spinBox_3")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.spinBox_3)
|
||||||
|
self.label_10 = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_10.setSizePolicy(sizePolicy)
|
||||||
|
self.label_10.setObjectName("label_10")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_10)
|
||||||
|
self.label_12 = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
self.label_12.setObjectName("label_12")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_12)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_3)
|
||||||
|
spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_4.addItem(spacerItem4)
|
||||||
|
self.tabWidget.addTab(self.tab, "")
|
||||||
|
self.tab_2 = QtWidgets.QWidget()
|
||||||
|
self.tab_2.setObjectName("tab_2")
|
||||||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_2)
|
||||||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||||||
|
self.spinBox_6 = QtWidgets.QSpinBox(parent=self.tab_2)
|
||||||
|
self.spinBox_6.setMaximum(1000)
|
||||||
|
self.spinBox_6.setProperty("value", 100)
|
||||||
|
self.spinBox_6.setObjectName("spinBox_6")
|
||||||
|
self.gridLayout_3.addWidget(self.spinBox_6, 0, 1, 1, 1)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.tab_2)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1)
|
||||||
|
spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout_3.addItem(spacerItem5, 2, 1, 1, 1)
|
||||||
|
self.doubleSpinBox_7 = QtWidgets.QDoubleSpinBox(parent=self.tab_2)
|
||||||
|
self.doubleSpinBox_7.setDecimals(1)
|
||||||
|
self.doubleSpinBox_7.setMaximum(20.0)
|
||||||
|
self.doubleSpinBox_7.setSingleStep(0.5)
|
||||||
|
self.doubleSpinBox_7.setProperty("value", 1.0)
|
||||||
|
self.doubleSpinBox_7.setObjectName("doubleSpinBox_7")
|
||||||
|
self.gridLayout_3.addWidget(self.doubleSpinBox_7, 1, 1, 1, 1)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.tab_2)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.gridLayout_3.addWidget(self.label_4, 1, 0, 1, 1)
|
||||||
|
self.tabWidget.addTab(self.tab_2, "")
|
||||||
|
self.verticalLayout.addWidget(self.tabWidget)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.tabWidget.setCurrentIndex(0)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Grace settings"))
|
||||||
|
self.bottomMarginDoubleSpinBox.setSuffix(_translate("Dialog", " cm"))
|
||||||
|
self.bottomMarginLabel.setText(_translate("Dialog", "Bottom margin"))
|
||||||
|
self.rightMarginLabel.setText(_translate("Dialog", "Right margin"))
|
||||||
|
self.rightMarginDoubleSpinBox.setSuffix(_translate("Dialog", " cm"))
|
||||||
|
self.leftMarginDoubleSpinBox.setSuffix(_translate("Dialog", " cm"))
|
||||||
|
self.leftMarginLabel.setText(_translate("Dialog", "Left margin"))
|
||||||
|
self.topMarginLabel.setText(_translate("Dialog", "Top margin"))
|
||||||
|
self.topMarginDoubleSpinBox.setSuffix(_translate("Dialog", " cm"))
|
||||||
|
self.heightLabel.setText(_translate("Dialog", "Paper height"))
|
||||||
|
self.heightDoubleSpinBox.setSuffix(_translate("Dialog", " cm"))
|
||||||
|
self.widthLabel.setText(_translate("Dialog", "Paper width"))
|
||||||
|
self.widthDoubleSpinBox.setSuffix(_translate("Dialog", " cm"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage1), _translate("Dialog", "Dimensions"))
|
||||||
|
self.label_11.setText(_translate("Dialog", "Title"))
|
||||||
|
self.legendLabel.setText(_translate("Dialog", "Legend"))
|
||||||
|
self.groupBox_4.setTitle(_translate("Dialog", "Vertical axis"))
|
||||||
|
self.verticalAxisTickLabel.setText(_translate("Dialog", "tick"))
|
||||||
|
self.verticalAxisLabelLabel.setText(_translate("Dialog", "label"))
|
||||||
|
self.groupBox_3.setTitle(_translate("Dialog", "Horizontal axis"))
|
||||||
|
self.label_10.setText(_translate("Dialog", "tick"))
|
||||||
|
self.label_12.setText(_translate("Dialog", "label"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Dialog", "Fonts"))
|
||||||
|
self.label_3.setText(_translate("Dialog", "Default symbol size"))
|
||||||
|
self.label_4.setText(_translate("Dialog", "Default line size"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Dialog", "Symbol/Line"))
|
234
src/gui_qt/_py/apod_dialog.py
Normal file
234
src/gui_qt/_py/apod_dialog.py
Normal file
@ -0,0 +1,234 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/apod_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_ApodEdit(object):
|
||||||
|
def setupUi(self, ApodEdit):
|
||||||
|
ApodEdit.setObjectName("ApodEdit")
|
||||||
|
ApodEdit.resize(1144, 655)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(ApodEdit.sizePolicy().hasHeightForWidth())
|
||||||
|
ApodEdit.setSizePolicy(sizePolicy)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(ApodEdit)
|
||||||
|
self.gridLayout.setContentsMargins(9, 9, 9, 9)
|
||||||
|
self.gridLayout.setSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.freq_graph = NMRPlotWidget(parent=ApodEdit)
|
||||||
|
self.freq_graph.setObjectName("freq_graph")
|
||||||
|
self.gridLayout.addWidget(self.freq_graph, 2, 2, 1, 1)
|
||||||
|
self.time_graph = NMRPlotWidget(parent=ApodEdit)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.time_graph.sizePolicy().hasHeightForWidth())
|
||||||
|
self.time_graph.setSizePolicy(sizePolicy)
|
||||||
|
self.time_graph.setObjectName("time_graph")
|
||||||
|
self.gridLayout.addWidget(self.time_graph, 2, 1, 1, 1)
|
||||||
|
self.widget = QtWidgets.QWidget(parent=ApodEdit)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.widget.setSizePolicy(sizePolicy)
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.baseline_box = QtWidgets.QCheckBox(parent=self.widget)
|
||||||
|
self.baseline_box.setObjectName("baseline_box")
|
||||||
|
self.verticalLayout.addWidget(self.baseline_box)
|
||||||
|
self.shift_box = QtWidgets.QGroupBox(parent=self.widget)
|
||||||
|
self.shift_box.setFlat(True)
|
||||||
|
self.shift_box.setCheckable(True)
|
||||||
|
self.shift_box.setChecked(False)
|
||||||
|
self.shift_box.setObjectName("shift_box")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.shift_box)
|
||||||
|
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_4.setSpacing(3)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.ls_lineedit = QtWidgets.QLineEdit(parent=self.shift_box)
|
||||||
|
self.ls_lineedit.setObjectName("ls_lineedit")
|
||||||
|
self.gridLayout_4.addWidget(self.ls_lineedit, 1, 1, 1, 1)
|
||||||
|
self.ls_spinbox = QtWidgets.QSpinBox(parent=self.shift_box)
|
||||||
|
self.ls_spinbox.setMaximum(999999)
|
||||||
|
self.ls_spinbox.setObjectName("ls_spinbox")
|
||||||
|
self.gridLayout_4.addWidget(self.ls_spinbox, 0, 1, 1, 1)
|
||||||
|
self.ls_combobox = QtWidgets.QComboBox(parent=self.shift_box)
|
||||||
|
self.ls_combobox.setObjectName("ls_combobox")
|
||||||
|
self.ls_combobox.addItem("")
|
||||||
|
self.ls_combobox.addItem("")
|
||||||
|
self.gridLayout_4.addWidget(self.ls_combobox, 0, 0, 2, 1)
|
||||||
|
self.verticalLayout.addWidget(self.shift_box)
|
||||||
|
self.apod_box = QtWidgets.QGroupBox(parent=self.widget)
|
||||||
|
self.apod_box.setFlat(True)
|
||||||
|
self.apod_box.setCheckable(True)
|
||||||
|
self.apod_box.setChecked(False)
|
||||||
|
self.apod_box.setObjectName("apod_box")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.apod_box)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.apodcombobox = QtWidgets.QComboBox(parent=self.apod_box)
|
||||||
|
self.apodcombobox.setObjectName("apodcombobox")
|
||||||
|
self.verticalLayout_2.addWidget(self.apodcombobox)
|
||||||
|
self.eqn_label = QtWidgets.QLabel(parent=self.apod_box)
|
||||||
|
self.eqn_label.setIndent(3)
|
||||||
|
self.eqn_label.setObjectName("eqn_label")
|
||||||
|
self.verticalLayout_2.addWidget(self.eqn_label)
|
||||||
|
self.widget_layout = QtWidgets.QHBoxLayout()
|
||||||
|
self.widget_layout.setContentsMargins(-1, 6, -1, -1)
|
||||||
|
self.widget_layout.setSpacing(20)
|
||||||
|
self.widget_layout.setObjectName("widget_layout")
|
||||||
|
self.verticalLayout_2.addLayout(self.widget_layout)
|
||||||
|
self.verticalLayout.addWidget(self.apod_box)
|
||||||
|
self.zerofill_box = QtWidgets.QGroupBox(parent=self.widget)
|
||||||
|
self.zerofill_box.setFlat(True)
|
||||||
|
self.zerofill_box.setCheckable(True)
|
||||||
|
self.zerofill_box.setChecked(False)
|
||||||
|
self.zerofill_box.setObjectName("zerofill_box")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.zerofill_box)
|
||||||
|
self.horizontalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.zerofill_box)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout.addWidget(self.label)
|
||||||
|
self.zf_spinbox = QtWidgets.QSpinBox(parent=self.zerofill_box)
|
||||||
|
self.zf_spinbox.setMinimum(1)
|
||||||
|
self.zf_spinbox.setMaximum(3)
|
||||||
|
self.zf_spinbox.setObjectName("zf_spinbox")
|
||||||
|
self.horizontalLayout.addWidget(self.zf_spinbox)
|
||||||
|
self.verticalLayout.addWidget(self.zerofill_box)
|
||||||
|
self.phase_box = QtWidgets.QGroupBox(parent=self.widget)
|
||||||
|
self.phase_box.setFlat(True)
|
||||||
|
self.phase_box.setCheckable(True)
|
||||||
|
self.phase_box.setChecked(False)
|
||||||
|
self.phase_box.setObjectName("phase_box")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.phase_box)
|
||||||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_2.setSpacing(3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.phase_box)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.phase_box)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
|
||||||
|
self.ph0_spinbox = QtWidgets.QDoubleSpinBox(parent=self.phase_box)
|
||||||
|
self.ph0_spinbox.setWrapping(True)
|
||||||
|
self.ph0_spinbox.setDecimals(1)
|
||||||
|
self.ph0_spinbox.setMinimum(-180.0)
|
||||||
|
self.ph0_spinbox.setMaximum(180.0)
|
||||||
|
self.ph0_spinbox.setSingleStep(0.5)
|
||||||
|
self.ph0_spinbox.setObjectName("ph0_spinbox")
|
||||||
|
self.gridLayout_2.addWidget(self.ph0_spinbox, 0, 1, 1, 1)
|
||||||
|
self.pivot_lineedit = QtWidgets.QLineEdit(parent=self.phase_box)
|
||||||
|
self.pivot_lineedit.setObjectName("pivot_lineedit")
|
||||||
|
self.gridLayout_2.addWidget(self.pivot_lineedit, 2, 1, 1, 1)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.phase_box)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
|
||||||
|
self.ph1_spinbox = QtWidgets.QDoubleSpinBox(parent=self.phase_box)
|
||||||
|
self.ph1_spinbox.setWrapping(True)
|
||||||
|
self.ph1_spinbox.setDecimals(2)
|
||||||
|
self.ph1_spinbox.setMinimum(-720.0)
|
||||||
|
self.ph1_spinbox.setMaximum(720.0)
|
||||||
|
self.ph1_spinbox.setSingleStep(0.05)
|
||||||
|
self.ph1_spinbox.setObjectName("ph1_spinbox")
|
||||||
|
self.gridLayout_2.addWidget(self.ph1_spinbox, 1, 1, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.phase_box)
|
||||||
|
self.ft_box = QtWidgets.QGroupBox(parent=self.widget)
|
||||||
|
self.ft_box.setCheckable(True)
|
||||||
|
self.ft_box.setChecked(False)
|
||||||
|
self.ft_box.setObjectName("ft_box")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.ft_box)
|
||||||
|
self.verticalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_3.setSpacing(3)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.phase_before_button = QtWidgets.QRadioButton(parent=self.ft_box)
|
||||||
|
self.phase_before_button.setChecked(True)
|
||||||
|
self.phase_before_button.setObjectName("phase_before_button")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(ApodEdit)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.phase_before_button)
|
||||||
|
self.verticalLayout_3.addWidget(self.phase_before_button)
|
||||||
|
self.phase_after_button = QtWidgets.QRadioButton(parent=self.ft_box)
|
||||||
|
self.phase_after_button.setObjectName("phase_after_button")
|
||||||
|
self.buttonGroup.addButton(self.phase_after_button)
|
||||||
|
self.verticalLayout_3.addWidget(self.phase_after_button)
|
||||||
|
self.verticalLayout.addWidget(self.ft_box)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout.addItem(spacerItem)
|
||||||
|
self.gridLayout.addWidget(self.widget, 2, 0, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=ApodEdit)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 4, 1, 1, 2)
|
||||||
|
self.log_freq_widget = QtWidgets.QWidget(parent=ApodEdit)
|
||||||
|
self.log_freq_widget.setObjectName("log_freq_widget")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.log_freq_widget)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_3.addItem(spacerItem1)
|
||||||
|
self.logx_freq = QtWidgets.QCheckBox(parent=self.log_freq_widget)
|
||||||
|
self.logx_freq.setObjectName("logx_freq")
|
||||||
|
self.horizontalLayout_3.addWidget(self.logx_freq)
|
||||||
|
self.logy_freq = QtWidgets.QCheckBox(parent=self.log_freq_widget)
|
||||||
|
self.logy_freq.setObjectName("logy_freq")
|
||||||
|
self.horizontalLayout_3.addWidget(self.logy_freq)
|
||||||
|
self.gridLayout.addWidget(self.log_freq_widget, 3, 2, 1, 1)
|
||||||
|
self.logtime_widget = QtWidgets.QWidget(parent=ApodEdit)
|
||||||
|
self.logtime_widget.setObjectName("logtime_widget")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.logtime_widget)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(-1, 1, -1, -1)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_2.addItem(spacerItem2)
|
||||||
|
self.logx_time = QtWidgets.QCheckBox(parent=self.logtime_widget)
|
||||||
|
self.logx_time.setObjectName("logx_time")
|
||||||
|
self.horizontalLayout_2.addWidget(self.logx_time)
|
||||||
|
self.logy_time = QtWidgets.QCheckBox(parent=self.logtime_widget)
|
||||||
|
self.logy_time.setObjectName("logy_time")
|
||||||
|
self.horizontalLayout_2.addWidget(self.logy_time)
|
||||||
|
self.gridLayout.addWidget(self.logtime_widget, 3, 1, 1, 1)
|
||||||
|
|
||||||
|
self.retranslateUi(ApodEdit)
|
||||||
|
self.buttonBox.accepted.connect(ApodEdit.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(ApodEdit.close) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(ApodEdit)
|
||||||
|
|
||||||
|
def retranslateUi(self, ApodEdit):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
ApodEdit.setWindowTitle(_translate("ApodEdit", "Apodization"))
|
||||||
|
self.baseline_box.setText(_translate("ApodEdit", "Baseline"))
|
||||||
|
self.shift_box.setTitle(_translate("ApodEdit", "Shift"))
|
||||||
|
self.ls_lineedit.setText(_translate("ApodEdit", "0"))
|
||||||
|
self.ls_combobox.setItemText(0, _translate("ApodEdit", "Points"))
|
||||||
|
self.ls_combobox.setItemText(1, _translate("ApodEdit", "Seconds"))
|
||||||
|
self.apod_box.setTitle(_translate("ApodEdit", "Apodization"))
|
||||||
|
self.eqn_label.setText(_translate("ApodEdit", "TextLabel"))
|
||||||
|
self.zerofill_box.setTitle(_translate("ApodEdit", "Zero fill"))
|
||||||
|
self.label.setText(_translate("ApodEdit", "Double length"))
|
||||||
|
self.zf_spinbox.setSuffix(_translate("ApodEdit", "x"))
|
||||||
|
self.phase_box.setTitle(_translate("ApodEdit", "Phase correction"))
|
||||||
|
self.label_3.setText(_translate("ApodEdit", "Phase 1"))
|
||||||
|
self.label_4.setText(_translate("ApodEdit", "Pivot"))
|
||||||
|
self.pivot_lineedit.setText(_translate("ApodEdit", "0"))
|
||||||
|
self.label_2.setText(_translate("ApodEdit", "Phase 0"))
|
||||||
|
self.ft_box.setTitle(_translate("ApodEdit", "Fourier transform"))
|
||||||
|
self.phase_before_button.setText(_translate("ApodEdit", "before phase correction"))
|
||||||
|
self.phase_after_button.setText(_translate("ApodEdit", "after phase correction"))
|
||||||
|
self.logx_freq.setText(_translate("ApodEdit", "Log X"))
|
||||||
|
self.logy_freq.setText(_translate("ApodEdit", "Log Y"))
|
||||||
|
self.logx_time.setText(_translate("ApodEdit", "Log X"))
|
||||||
|
self.logy_time.setText(_translate("ApodEdit", "Log Y"))
|
||||||
|
from ..lib.graph_items import NMRPlotWidget
|
376
src/gui_qt/_py/asciidialog.py
Normal file
376
src/gui_qt/_py/asciidialog.py
Normal file
@ -0,0 +1,376 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/asciidialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_ascii_reader(object):
|
||||||
|
def setupUi(self, ascii_reader):
|
||||||
|
ascii_reader.setObjectName("ascii_reader")
|
||||||
|
ascii_reader.resize(665, 904)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(ascii_reader)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=ascii_reader)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.tabWidgetPage1 = QtWidgets.QWidget()
|
||||||
|
self.tabWidgetPage1.setObjectName("tabWidgetPage1")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tabWidgetPage1)
|
||||||
|
self.verticalLayout_3.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.header_widget = ExpandableWidget(parent=self.tabWidgetPage1)
|
||||||
|
self.header_widget.setObjectName("header_widget")
|
||||||
|
self.verticalLayout_3.addWidget(self.header_widget)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.groupBox.setSizePolicy(sizePolicy)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox)
|
||||||
|
self.horizontalLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||||
|
self.verticalLayout_6 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_6.setObjectName("verticalLayout_6")
|
||||||
|
self.column_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.column_checkBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.column_checkBox.setSizePolicy(sizePolicy)
|
||||||
|
self.column_checkBox.setObjectName("column_checkBox")
|
||||||
|
self.verticalLayout_6.addWidget(self.column_checkBox)
|
||||||
|
self.line_spinBox = QtWidgets.QSpinBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.line_spinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.line_spinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.line_spinBox.setMinimum(1)
|
||||||
|
self.line_spinBox.setObjectName("line_spinBox")
|
||||||
|
self.verticalLayout_6.addWidget(self.line_spinBox)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.verticalLayout_6.addWidget(self.label_6)
|
||||||
|
self.preview_spinBox = QtWidgets.QSpinBox(parent=self.groupBox)
|
||||||
|
self.preview_spinBox.setMinimum(1)
|
||||||
|
self.preview_spinBox.setProperty("value", 10)
|
||||||
|
self.preview_spinBox.setObjectName("preview_spinBox")
|
||||||
|
self.verticalLayout_6.addWidget(self.preview_spinBox)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_6.addItem(spacerItem)
|
||||||
|
self.horizontalLayout_4.addLayout(self.verticalLayout_6)
|
||||||
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label.setSizePolicy(sizePolicy)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.verticalLayout_5.addWidget(self.label)
|
||||||
|
self.pts_radioButton = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.pts_radioButton.setChecked(True)
|
||||||
|
self.pts_radioButton.setAutoExclusive(True)
|
||||||
|
self.pts_radioButton.setObjectName("pts_radioButton")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(ascii_reader)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.pts_radioButton)
|
||||||
|
self.verticalLayout_5.addWidget(self.pts_radioButton)
|
||||||
|
self.dsc_radioButton = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.dsc_radioButton.setObjectName("dsc_radioButton")
|
||||||
|
self.buttonGroup.addButton(self.dsc_radioButton)
|
||||||
|
self.verticalLayout_5.addWidget(self.dsc_radioButton)
|
||||||
|
self.FID_radioButton = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.FID_radioButton.setAutoExclusive(True)
|
||||||
|
self.FID_radioButton.setObjectName("FID_radioButton")
|
||||||
|
self.buttonGroup.addButton(self.FID_radioButton)
|
||||||
|
self.verticalLayout_5.addWidget(self.FID_radioButton)
|
||||||
|
self.spectrum_radioButton = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.spectrum_radioButton.setObjectName("spectrum_radioButton")
|
||||||
|
self.buttonGroup.addButton(self.spectrum_radioButton)
|
||||||
|
self.verticalLayout_5.addWidget(self.spectrum_radioButton)
|
||||||
|
self.bds_radioButton = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.bds_radioButton.setObjectName("bds_radioButton")
|
||||||
|
self.buttonGroup.addButton(self.bds_radioButton)
|
||||||
|
self.verticalLayout_5.addWidget(self.bds_radioButton)
|
||||||
|
self.horizontalLayout_4.addLayout(self.verticalLayout_5)
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout()
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.deltay_lineEdit = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.deltay_lineEdit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.deltay_lineEdit.setSizePolicy(sizePolicy)
|
||||||
|
self.deltay_lineEdit.setObjectName("deltay_lineEdit")
|
||||||
|
self.gridLayout_2.addWidget(self.deltay_lineEdit, 3, 1, 1, 1)
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_7.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_7.setSizePolicy(sizePolicy)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 2)
|
||||||
|
self.y_lineedit = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.y_lineedit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.y_lineedit.setSizePolicy(sizePolicy)
|
||||||
|
self.y_lineedit.setInputMethodHints(QtCore.Qt.InputMethodHint.ImhFormattedNumbersOnly|QtCore.Qt.InputMethodHint.ImhPreferNumbers)
|
||||||
|
self.y_lineedit.setObjectName("y_lineedit")
|
||||||
|
self.gridLayout_2.addWidget(self.y_lineedit, 2, 1, 1, 1)
|
||||||
|
self.y_label = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.y_label.setObjectName("y_label")
|
||||||
|
self.gridLayout_2.addWidget(self.y_label, 2, 0, 1, 1)
|
||||||
|
self.x_lineedit = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.x_lineedit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.x_lineedit.setSizePolicy(sizePolicy)
|
||||||
|
self.x_lineedit.setInputMethodHints(QtCore.Qt.InputMethodHint.ImhFormattedNumbersOnly|QtCore.Qt.InputMethodHint.ImhPreferNumbers)
|
||||||
|
self.x_lineedit.setObjectName("x_lineedit")
|
||||||
|
self.gridLayout_2.addWidget(self.x_lineedit, 1, 1, 1, 1)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.gridLayout_2.addWidget(self.label_5, 3, 0, 1, 1)
|
||||||
|
self.x_label = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.x_label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.x_label.setSizePolicy(sizePolicy)
|
||||||
|
self.x_label.setObjectName("x_label")
|
||||||
|
self.gridLayout_2.addWidget(self.x_label, 1, 0, 1, 1)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout_2.addItem(spacerItem1, 4, 1, 1, 1)
|
||||||
|
self.horizontalLayout_4.addLayout(self.gridLayout_2)
|
||||||
|
self.verticalLayout_3.addWidget(self.groupBox)
|
||||||
|
self.dsdfsf = QtWidgets.QLabel(parent=self.tabWidgetPage1)
|
||||||
|
self.dsdfsf.setObjectName("dsdfsf")
|
||||||
|
self.verticalLayout_3.addWidget(self.dsdfsf)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout()
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.re_match_index = QtWidgets.QSpinBox(parent=self.tabWidgetPage1)
|
||||||
|
self.re_match_index.setMinimum(1)
|
||||||
|
self.re_match_index.setObjectName("re_match_index")
|
||||||
|
self.gridLayout.addWidget(self.re_match_index, 1, 3, 1, 1)
|
||||||
|
self.label_9 = QtWidgets.QLabel(parent=self.tabWidgetPage1)
|
||||||
|
self.label_9.setObjectName("label_9")
|
||||||
|
self.gridLayout.addWidget(self.label_9, 1, 2, 1, 1)
|
||||||
|
self.regex_input = QtWidgets.QLineEdit(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.regex_input.sizePolicy().hasHeightForWidth())
|
||||||
|
self.regex_input.setSizePolicy(sizePolicy)
|
||||||
|
self.regex_input.setObjectName("regex_input")
|
||||||
|
self.gridLayout.addWidget(self.regex_input, 1, 1, 1, 1)
|
||||||
|
self.re_button = QtWidgets.QRadioButton(parent=self.tabWidgetPage1)
|
||||||
|
self.re_button.setChecked(True)
|
||||||
|
self.re_button.setObjectName("re_button")
|
||||||
|
self.buttonGroup_2 = QtWidgets.QButtonGroup(ascii_reader)
|
||||||
|
self.buttonGroup_2.setObjectName("buttonGroup_2")
|
||||||
|
self.buttonGroup_2.addButton(self.re_button)
|
||||||
|
self.gridLayout.addWidget(self.re_button, 1, 0, 1, 1)
|
||||||
|
self.custom_input = QtWidgets.QLineEdit(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.custom_input.sizePolicy().hasHeightForWidth())
|
||||||
|
self.custom_input.setSizePolicy(sizePolicy)
|
||||||
|
self.custom_input.setObjectName("custom_input")
|
||||||
|
self.gridLayout.addWidget(self.custom_input, 2, 1, 1, 1)
|
||||||
|
self.custom_button = QtWidgets.QRadioButton(parent=self.tabWidgetPage1)
|
||||||
|
self.custom_button.setObjectName("custom_button")
|
||||||
|
self.buttonGroup_2.addButton(self.custom_button)
|
||||||
|
self.gridLayout.addWidget(self.custom_button, 2, 0, 1, 1)
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=self.tabWidgetPage1)
|
||||||
|
self.label_8.setWordWrap(True)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.gridLayout.addWidget(self.label_8, 0, 0, 1, 4)
|
||||||
|
self.verticalLayout_3.addLayout(self.gridLayout)
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=self.tabWidgetPage1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
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.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.ascii_table = QtWidgets.QTableWidget(parent=self.groupBox_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.ascii_table.sizePolicy().hasHeightForWidth())
|
||||||
|
self.ascii_table.setSizePolicy(sizePolicy)
|
||||||
|
self.ascii_table.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded)
|
||||||
|
self.ascii_table.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.ascii_table.setAlternatingRowColors(True)
|
||||||
|
self.ascii_table.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||||
|
self.ascii_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectColumns)
|
||||||
|
self.ascii_table.setObjectName("ascii_table")
|
||||||
|
self.ascii_table.setColumnCount(0)
|
||||||
|
self.ascii_table.setRowCount(0)
|
||||||
|
self.ascii_table.horizontalHeader().setMinimumSectionSize(1)
|
||||||
|
self.verticalLayout_2.addWidget(self.ascii_table)
|
||||||
|
self.verticalLayout_3.addWidget(self.groupBox_2)
|
||||||
|
self.tabWidget.addTab(self.tabWidgetPage1, "")
|
||||||
|
self.tabWidgetPage2 = QtWidgets.QWidget()
|
||||||
|
self.tabWidgetPage2.setObjectName("tabWidgetPage2")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tabWidgetPage2)
|
||||||
|
self.horizontalLayout_3.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.delay_textfield = QtWidgets.QPlainTextEdit(parent=self.tabWidgetPage2)
|
||||||
|
self.delay_textfield.setObjectName("delay_textfield")
|
||||||
|
self.horizontalLayout_3.addWidget(self.delay_textfield)
|
||||||
|
self.formLayout = QtWidgets.QFormLayout()
|
||||||
|
self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
|
||||||
|
self.formLayout.setContentsMargins(0, -1, -1, -1)
|
||||||
|
self.formLayout.setObjectName("formLayout")
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.tabWidgetPage2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.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.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
||||||
|
self.delay_lineedit = QtWidgets.QLineEdit(parent=self.tabWidgetPage2)
|
||||||
|
self.delay_lineedit.setObjectName("delay_lineedit")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.delay_lineedit)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.tabWidgetPage2)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
|
||||||
|
self.start_lineedit = QtWidgets.QLineEdit(parent=self.tabWidgetPage2)
|
||||||
|
self.start_lineedit.setObjectName("start_lineedit")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.start_lineedit)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.tabWidgetPage2)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
|
||||||
|
self.end_lineedit = QtWidgets.QLineEdit(parent=self.tabWidgetPage2)
|
||||||
|
self.end_lineedit.setObjectName("end_lineedit")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.end_lineedit)
|
||||||
|
self.log_checkBox = QtWidgets.QCheckBox(parent=self.tabWidgetPage2)
|
||||||
|
self.log_checkBox.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||||||
|
self.log_checkBox.setObjectName("log_checkBox")
|
||||||
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.log_checkBox)
|
||||||
|
self.staggered_checkBox = QtWidgets.QCheckBox(parent=self.tabWidgetPage2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.staggered_checkBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.staggered_checkBox.setSizePolicy(sizePolicy)
|
||||||
|
self.staggered_checkBox.setObjectName("staggered_checkBox")
|
||||||
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.staggered_checkBox)
|
||||||
|
self.stag_lineEdit = QtWidgets.QLineEdit(parent=self.tabWidgetPage2)
|
||||||
|
self.stag_lineEdit.setEnabled(True)
|
||||||
|
self.stag_lineEdit.setObjectName("stag_lineEdit")
|
||||||
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.stag_lineEdit)
|
||||||
|
self.pushButton = QtWidgets.QPushButton(parent=self.tabWidgetPage2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.pushButton.sizePolicy().hasHeightForWidth())
|
||||||
|
self.pushButton.setSizePolicy(sizePolicy)
|
||||||
|
self.pushButton.setObjectName("pushButton")
|
||||||
|
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.pushButton)
|
||||||
|
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.formLayout.setItem(6, QtWidgets.QFormLayout.ItemRole.FieldRole, spacerItem2)
|
||||||
|
self.horizontalLayout_3.addLayout(self.formLayout)
|
||||||
|
self.tabWidget.addTab(self.tabWidgetPage2, "")
|
||||||
|
self.verticalLayout.addWidget(self.tabWidget)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_2.addItem(spacerItem3)
|
||||||
|
self.skippy_checkbox = QtWidgets.QCheckBox(parent=ascii_reader)
|
||||||
|
self.skippy_checkbox.setObjectName("skippy_checkbox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.skippy_checkbox)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||||||
|
self.buttonbox = QtWidgets.QDialogButtonBox(parent=ascii_reader)
|
||||||
|
self.buttonbox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonbox.setObjectName("buttonbox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonbox)
|
||||||
|
|
||||||
|
self.retranslateUi(ascii_reader)
|
||||||
|
self.tabWidget.setCurrentIndex(0)
|
||||||
|
self.buttonbox.rejected.connect(ascii_reader.close) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(ascii_reader)
|
||||||
|
ascii_reader.setTabOrder(self.tabWidget, self.column_checkBox)
|
||||||
|
ascii_reader.setTabOrder(self.column_checkBox, self.line_spinBox)
|
||||||
|
ascii_reader.setTabOrder(self.line_spinBox, self.preview_spinBox)
|
||||||
|
ascii_reader.setTabOrder(self.preview_spinBox, self.pts_radioButton)
|
||||||
|
ascii_reader.setTabOrder(self.pts_radioButton, self.dsc_radioButton)
|
||||||
|
ascii_reader.setTabOrder(self.dsc_radioButton, self.FID_radioButton)
|
||||||
|
ascii_reader.setTabOrder(self.FID_radioButton, self.spectrum_radioButton)
|
||||||
|
ascii_reader.setTabOrder(self.spectrum_radioButton, self.bds_radioButton)
|
||||||
|
ascii_reader.setTabOrder(self.bds_radioButton, self.x_lineedit)
|
||||||
|
ascii_reader.setTabOrder(self.x_lineedit, self.y_lineedit)
|
||||||
|
ascii_reader.setTabOrder(self.y_lineedit, self.deltay_lineEdit)
|
||||||
|
ascii_reader.setTabOrder(self.deltay_lineEdit, self.re_button)
|
||||||
|
ascii_reader.setTabOrder(self.re_button, self.regex_input)
|
||||||
|
ascii_reader.setTabOrder(self.regex_input, self.re_match_index)
|
||||||
|
ascii_reader.setTabOrder(self.re_match_index, self.custom_button)
|
||||||
|
ascii_reader.setTabOrder(self.custom_button, self.custom_input)
|
||||||
|
ascii_reader.setTabOrder(self.custom_input, self.ascii_table)
|
||||||
|
ascii_reader.setTabOrder(self.ascii_table, self.delay_textfield)
|
||||||
|
ascii_reader.setTabOrder(self.delay_textfield, self.delay_lineedit)
|
||||||
|
ascii_reader.setTabOrder(self.delay_lineedit, self.start_lineedit)
|
||||||
|
ascii_reader.setTabOrder(self.start_lineedit, self.end_lineedit)
|
||||||
|
ascii_reader.setTabOrder(self.end_lineedit, self.log_checkBox)
|
||||||
|
ascii_reader.setTabOrder(self.log_checkBox, self.staggered_checkBox)
|
||||||
|
ascii_reader.setTabOrder(self.staggered_checkBox, self.stag_lineEdit)
|
||||||
|
ascii_reader.setTabOrder(self.stag_lineEdit, self.pushButton)
|
||||||
|
ascii_reader.setTabOrder(self.pushButton, self.skippy_checkbox)
|
||||||
|
|
||||||
|
def retranslateUi(self, ascii_reader):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
ascii_reader.setWindowTitle(_translate("ascii_reader", "Read text file"))
|
||||||
|
self.groupBox.setTitle(_translate("ascii_reader", "Options"))
|
||||||
|
self.column_checkBox.setText(_translate("ascii_reader", "Column name"))
|
||||||
|
self.line_spinBox.setPrefix(_translate("ascii_reader", "header line "))
|
||||||
|
self.label_6.setText(_translate("ascii_reader", "Preview length"))
|
||||||
|
self.label.setText(_translate("ascii_reader", "Import as"))
|
||||||
|
self.pts_radioButton.setText(_translate("ascii_reader", "Points"))
|
||||||
|
self.dsc_radioButton.setText(_translate("ascii_reader", "DSC"))
|
||||||
|
self.FID_radioButton.setText(_translate("ascii_reader", "FID"))
|
||||||
|
self.spectrum_radioButton.setText(_translate("ascii_reader", "Spectrum"))
|
||||||
|
self.bds_radioButton.setText(_translate("ascii_reader", "BDS"))
|
||||||
|
self.label_7.setText(_translate("ascii_reader", "Use columns as"))
|
||||||
|
self.y_lineedit.setToolTip(_translate("ascii_reader", "<html><head/><body><p>Specify which columns are used for y values.</p><p>- \'Points\': Every number creates a new data set;<br/>- \'FID\'/\'Spectrum\': Numbers at even positions are used for real parts, at odd positions for imaginary parts.</p></body></html>"))
|
||||||
|
self.y_label.setText(_translate("ascii_reader", "y"))
|
||||||
|
self.x_lineedit.setToolTip(_translate("ascii_reader", "<html><head/><body><p>Specify which column is used for x values, write <span style=\" font-style:italic;\">index</span> to use row numbers (starting with 0). </p></body></html>"))
|
||||||
|
self.label_5.setText(_translate("ascii_reader", "<html><head/><body><p>Δy</p></body></html>"))
|
||||||
|
self.x_label.setText(_translate("ascii_reader", "x"))
|
||||||
|
self.dsdfsf.setText(_translate("ascii_reader", "Numerical value"))
|
||||||
|
self.label_9.setText(_translate("ascii_reader", "Match index"))
|
||||||
|
self.regex_input.setToolTip(_translate("ascii_reader", "<html><head/><body><p>Token:<br/>[abc]: Matches any of a, b, or c<br/>[a-z]: Matches any digit in the range a-z<br/>\\d: Matches any digit in the range 0-9 (equal to [0-9}</p><p>Quantifiers:<br/>a*: 0 or more of a<br/>a*: 1 or more of a<br/>a?: 0 or 1 of a</p></body></html>"))
|
||||||
|
self.re_button.setText(_translate("ascii_reader", "Regex"))
|
||||||
|
self.custom_button.setText(_translate("ascii_reader", "Custom value"))
|
||||||
|
self.label_8.setText(_translate("ascii_reader", "Filename"))
|
||||||
|
self.groupBox_2.setTitle(_translate("ascii_reader", "Preview"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage1), _translate("ascii_reader", "Data"))
|
||||||
|
self.label_2.setText(_translate("ascii_reader", "Number of delays"))
|
||||||
|
self.label_3.setText(_translate("ascii_reader", "Start value"))
|
||||||
|
self.label_4.setText(_translate("ascii_reader", "End value"))
|
||||||
|
self.log_checkBox.setText(_translate("ascii_reader", "Logarithmic scale"))
|
||||||
|
self.staggered_checkBox.setText(_translate("ascii_reader", "Staggered range"))
|
||||||
|
self.pushButton.setText(_translate("ascii_reader", "Calculate delays"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage2), _translate("ascii_reader", "Delays"))
|
||||||
|
self.skippy_checkbox.setToolTip(_translate("ascii_reader", "Use selection for next files. Deletes possible delay values."))
|
||||||
|
self.skippy_checkbox.setText(_translate("ascii_reader", "Skip next dialogues?"))
|
||||||
|
from ..lib.expandablewidget import ExpandableWidget
|
63
src/gui_qt/_py/baseline_dialog.py
Normal file
63
src/gui_qt/_py/baseline_dialog.py
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/baseline_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_SignalEdit(object):
|
||||||
|
def setupUi(self, SignalEdit):
|
||||||
|
SignalEdit.setObjectName("SignalEdit")
|
||||||
|
SignalEdit.resize(919, 595)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(SignalEdit.sizePolicy().hasHeightForWidth())
|
||||||
|
SignalEdit.setSizePolicy(sizePolicy)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(SignalEdit)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.groupBox = QtWidgets.QWidget(parent=SignalEdit)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.groupBox.setSizePolicy(sizePolicy)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.listWidget = QtWidgets.QListWidget(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.verticalLayout.addWidget(self.listWidget)
|
||||||
|
self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=SignalEdit)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 3)
|
||||||
|
self.graphicsView = NMRPlotWidget(parent=SignalEdit)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
|
||||||
|
self.graphicsView.setSizePolicy(sizePolicy)
|
||||||
|
self.graphicsView.setObjectName("graphicsView")
|
||||||
|
self.gridLayout.addWidget(self.graphicsView, 0, 2, 1, 1)
|
||||||
|
|
||||||
|
self.retranslateUi(SignalEdit)
|
||||||
|
self.buttonBox.accepted.connect(SignalEdit.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(SignalEdit.close) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(SignalEdit)
|
||||||
|
|
||||||
|
def retranslateUi(self, SignalEdit):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
SignalEdit.setWindowTitle(_translate("SignalEdit", "Dialog"))
|
||||||
|
from ..lib.graph_items import NMRPlotWidget
|
660
src/gui_qt/_py/basewindow.py
Normal file
660
src/gui_qt/_py/basewindow.py
Normal file
@ -0,0 +1,660 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/basewindow.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_BaseWindow(object):
|
||||||
|
def setupUi(self, BaseWindow):
|
||||||
|
BaseWindow.setObjectName("BaseWindow")
|
||||||
|
BaseWindow.resize(1386, 827)
|
||||||
|
icon = QtGui.QIcon()
|
||||||
|
icon.addPixmap(QtGui.QPixmap(":/logo.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
BaseWindow.setWindowIcon(icon)
|
||||||
|
BaseWindow.setDockOptions(QtWidgets.QMainWindow.DockOption.AllowTabbedDocks|QtWidgets.QMainWindow.DockOption.AnimatedDocks|QtWidgets.QMainWindow.DockOption.ForceTabbedDocks|QtWidgets.QMainWindow.DockOption.VerticalTabs)
|
||||||
|
self.centralwidget = QtWidgets.QWidget(parent=BaseWindow)
|
||||||
|
self.centralwidget.setObjectName("centralwidget")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
|
||||||
|
self.horizontalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=self.centralwidget)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=self.splitter)
|
||||||
|
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.TabPosition.West)
|
||||||
|
self.tabWidget.setTabShape(QtWidgets.QTabWidget.TabShape.Rounded)
|
||||||
|
self.tabWidget.setElideMode(QtCore.Qt.TextElideMode.ElideRight)
|
||||||
|
self.tabWidget.setTabsClosable(True)
|
||||||
|
self.tabWidget.setMovable(False)
|
||||||
|
self.tabWidget.setTabBarAutoHide(True)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.datawidget = DataWidget()
|
||||||
|
self.datawidget.setObjectName("datawidget")
|
||||||
|
self.tabWidget.addTab(self.datawidget, "")
|
||||||
|
self.valuewidget = ValueEditWidget()
|
||||||
|
self.valuewidget.setObjectName("valuewidget")
|
||||||
|
icon1 = QtGui.QIcon()
|
||||||
|
icon1.addPixmap(QtGui.QPixmap(":/value_dock"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.tabWidget.addTab(self.valuewidget, icon1, "")
|
||||||
|
self.fit_dialog = QFitDialog()
|
||||||
|
self.fit_dialog.setObjectName("fit_dialog")
|
||||||
|
icon2 = QtGui.QIcon()
|
||||||
|
icon2.addPixmap(QtGui.QPixmap(":/fit_dock"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.tabWidget.addTab(self.fit_dialog, icon2, "")
|
||||||
|
self.editsignalwidget = EditSignalWidget()
|
||||||
|
self.editsignalwidget.setObjectName("editsignalwidget")
|
||||||
|
icon3 = QtGui.QIcon()
|
||||||
|
icon3.addPixmap(QtGui.QPixmap(":/signal_dock"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.tabWidget.addTab(self.editsignalwidget, icon3, "")
|
||||||
|
self.ptsselectwidget = PointSelectWidget()
|
||||||
|
self.ptsselectwidget.setObjectName("ptsselectwidget")
|
||||||
|
icon4 = QtGui.QIcon()
|
||||||
|
icon4.addPixmap(QtGui.QPixmap(":/peakpick_dock"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.tabWidget.addTab(self.ptsselectwidget, icon4, "")
|
||||||
|
self.t1tauwidget = QT1Widget()
|
||||||
|
self.t1tauwidget.setObjectName("t1tauwidget")
|
||||||
|
icon5 = QtGui.QIcon()
|
||||||
|
icon5.addPixmap(QtGui.QPixmap(":/eval_t1_dock"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.tabWidget.addTab(self.t1tauwidget, icon5, "")
|
||||||
|
self.drawingswidget = DrawingsWidget()
|
||||||
|
self.drawingswidget.setObjectName("drawingswidget")
|
||||||
|
self.tabWidget.addTab(self.drawingswidget, "")
|
||||||
|
self.integralwidget = IntegralWidget()
|
||||||
|
self.integralwidget.setObjectName("integralwidget")
|
||||||
|
self.tabWidget.addTab(self.integralwidget, "")
|
||||||
|
self.area = MdiAreaTile(parent=self.splitter)
|
||||||
|
self.area.setObjectName("area")
|
||||||
|
self.horizontalLayout.addWidget(self.splitter)
|
||||||
|
BaseWindow.setCentralWidget(self.centralwidget)
|
||||||
|
self.menubar = QtWidgets.QMenuBar(parent=BaseWindow)
|
||||||
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 1386, 20))
|
||||||
|
self.menubar.setObjectName("menubar")
|
||||||
|
self.menuFile = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuFile.setObjectName("menuFile")
|
||||||
|
self.menuSave = QtWidgets.QMenu(parent=self.menuFile)
|
||||||
|
icon6 = QtGui.QIcon()
|
||||||
|
icon6.addPixmap(QtGui.QPixmap(":/Daleks.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.menuSave.setIcon(icon6)
|
||||||
|
self.menuSave.setSeparatorsCollapsible(True)
|
||||||
|
self.menuSave.setObjectName("menuSave")
|
||||||
|
self.menuData = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuData.setObjectName("menuData")
|
||||||
|
self.menuCut_to_visible_range = QtWidgets.QMenu(parent=self.menuData)
|
||||||
|
self.menuCut_to_visible_range.setObjectName("menuCut_to_visible_range")
|
||||||
|
self.menuHelp = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuHelp.setObjectName("menuHelp")
|
||||||
|
self.menuExtra = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuExtra.setObjectName("menuExtra")
|
||||||
|
self.menuNormalize = QtWidgets.QMenu(parent=self.menuExtra)
|
||||||
|
icon7 = QtGui.QIcon()
|
||||||
|
icon7.addPixmap(QtGui.QPixmap(":/normal.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
|
||||||
|
self.menuNormalize.setIcon(icon7)
|
||||||
|
self.menuNormalize.setObjectName("menuNormalize")
|
||||||
|
self.menuFit = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuFit.setObjectName("menuFit")
|
||||||
|
self.menuMethod = QtWidgets.QMenu(parent=self.menuFit)
|
||||||
|
self.menuMethod.setObjectName("menuMethod")
|
||||||
|
self.menuLimits = QtWidgets.QMenu(parent=self.menuFit)
|
||||||
|
self.menuLimits.setObjectName("menuLimits")
|
||||||
|
self.menuOptions = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuOptions.setObjectName("menuOptions")
|
||||||
|
self.menuWindow = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuWindow.setObjectName("menuWindow")
|
||||||
|
self.menuView = QtWidgets.QMenu(parent=self.menuWindow)
|
||||||
|
self.menuView.setObjectName("menuView")
|
||||||
|
self.menuNMR = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuNMR.setObjectName("menuNMR")
|
||||||
|
self.menuBDS = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuBDS.setObjectName("menuBDS")
|
||||||
|
self.menuSpectrum = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuSpectrum.setObjectName("menuSpectrum")
|
||||||
|
self.menuStuff = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuStuff.setTitle("")
|
||||||
|
self.menuStuff.setObjectName("menuStuff")
|
||||||
|
self.menuDSC = QtWidgets.QMenu(parent=self.menubar)
|
||||||
|
self.menuDSC.setObjectName("menuDSC")
|
||||||
|
BaseWindow.setMenuBar(self.menubar)
|
||||||
|
self.toolBar = QtWidgets.QToolBar(parent=BaseWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.toolBar.sizePolicy().hasHeightForWidth())
|
||||||
|
self.toolBar.setSizePolicy(sizePolicy)
|
||||||
|
self.toolBar.setAllowedAreas(QtCore.Qt.ToolBarArea.AllToolBarAreas)
|
||||||
|
self.toolBar.setIconSize(QtCore.QSize(24, 24))
|
||||||
|
self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonIconOnly)
|
||||||
|
self.toolBar.setObjectName("toolBar")
|
||||||
|
BaseWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea, self.toolBar)
|
||||||
|
self.toolbar_edit = QtWidgets.QToolBar(parent=BaseWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.toolbar_edit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.toolbar_edit.setSizePolicy(sizePolicy)
|
||||||
|
self.toolbar_edit.setIconSize(QtCore.QSize(24, 24))
|
||||||
|
self.toolbar_edit.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonIconOnly)
|
||||||
|
self.toolbar_edit.setObjectName("toolbar_edit")
|
||||||
|
BaseWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea, self.toolbar_edit)
|
||||||
|
self.statusBar = QtWidgets.QStatusBar(parent=BaseWindow)
|
||||||
|
self.statusBar.setObjectName("statusBar")
|
||||||
|
BaseWindow.setStatusBar(self.statusBar)
|
||||||
|
self.toolBar_nmr = QtWidgets.QToolBar(parent=BaseWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.toolBar_nmr.sizePolicy().hasHeightForWidth())
|
||||||
|
self.toolBar_nmr.setSizePolicy(sizePolicy)
|
||||||
|
self.toolBar_nmr.setIconSize(QtCore.QSize(24, 24))
|
||||||
|
self.toolBar_nmr.setObjectName("toolBar_nmr")
|
||||||
|
BaseWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea, self.toolBar_nmr)
|
||||||
|
self.toolBar_spectrum = QtWidgets.QToolBar(parent=BaseWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.toolBar_spectrum.sizePolicy().hasHeightForWidth())
|
||||||
|
self.toolBar_spectrum.setSizePolicy(sizePolicy)
|
||||||
|
self.toolBar_spectrum.setIconSize(QtCore.QSize(24, 24))
|
||||||
|
self.toolBar_spectrum.setObjectName("toolBar_spectrum")
|
||||||
|
BaseWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea, self.toolBar_spectrum)
|
||||||
|
self.toolBar_data = QtWidgets.QToolBar(parent=BaseWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.toolBar_data.sizePolicy().hasHeightForWidth())
|
||||||
|
self.toolBar_data.setSizePolicy(sizePolicy)
|
||||||
|
self.toolBar_data.setIconSize(QtCore.QSize(24, 24))
|
||||||
|
self.toolBar_data.setObjectName("toolBar_data")
|
||||||
|
BaseWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea, self.toolBar_data)
|
||||||
|
self.action_close = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_close.setObjectName("action_close")
|
||||||
|
self.actionExportGraphic = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionExportGraphic.setObjectName("actionExportGraphic")
|
||||||
|
self.action_open = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_open.setObjectName("action_open")
|
||||||
|
self.actionExportData = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionExportData.setObjectName("actionExportData")
|
||||||
|
self.action_calc = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_calc.setObjectName("action_calc")
|
||||||
|
self.action_delete_sets = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_delete_sets.setObjectName("action_delete_sets")
|
||||||
|
self.action_save_fit_parameter = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_save_fit_parameter.setObjectName("action_save_fit_parameter")
|
||||||
|
self.action_sort_pts = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_sort_pts.setObjectName("action_sort_pts")
|
||||||
|
self.action_reset = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_reset.setObjectName("action_reset")
|
||||||
|
self.actionDocumentation = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionDocumentation.setObjectName("actionDocumentation")
|
||||||
|
self.action_FitWidget = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_FitWidget.setObjectName("action_FitWidget")
|
||||||
|
self.action_norm_max = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_norm_max.setObjectName("action_norm_max")
|
||||||
|
self.action_norm_first = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_norm_first.setObjectName("action_norm_first")
|
||||||
|
self.action_norm_area = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_norm_area.setObjectName("action_norm_area")
|
||||||
|
self.action_norm_max_abs = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_norm_max_abs.setObjectName("action_norm_max_abs")
|
||||||
|
self.action_norm_last = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_norm_last.setObjectName("action_norm_last")
|
||||||
|
self.actionSave = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionSave.setObjectName("actionSave")
|
||||||
|
self.actiontoolbar_display = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actiontoolbar_display.setCheckable(True)
|
||||||
|
self.actiontoolbar_display.setObjectName("actiontoolbar_display")
|
||||||
|
self.actionEdit_toolbars = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionEdit_toolbars.setCheckable(True)
|
||||||
|
self.actionEdit_toolbars.setObjectName("actionEdit_toolbars")
|
||||||
|
self.actionAddlines = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionAddlines.setObjectName("actionAddlines")
|
||||||
|
self.actionColors = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionColors.setObjectName("actionColors")
|
||||||
|
self.actionConcatenate_sets = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionConcatenate_sets.setObjectName("actionConcatenate_sets")
|
||||||
|
self.actionShift = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionShift.setObjectName("actionShift")
|
||||||
|
self.actionShow_log = QtGui.QAction(parent=BaseWindow)
|
||||||
|
icon = QtGui.QIcon.fromTheme("dialog-information")
|
||||||
|
self.actionShow_log.setIcon(icon)
|
||||||
|
self.actionShow_log.setObjectName("actionShow_log")
|
||||||
|
self.action_create_fit_function = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_create_fit_function.setObjectName("action_create_fit_function")
|
||||||
|
self.action_colorcycle = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_colorcycle.setObjectName("action_colorcycle")
|
||||||
|
self.actionSave_session = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionSave_session.setObjectName("actionSave_session")
|
||||||
|
self.actionMouse_behaviour = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionMouse_behaviour.setCheckable(True)
|
||||||
|
self.actionMouse_behaviour.setObjectName("actionMouse_behaviour")
|
||||||
|
self.actionConfiguration = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionConfiguration.setObjectName("actionConfiguration")
|
||||||
|
self.actionRefresh = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionRefresh.setObjectName("actionRefresh")
|
||||||
|
self.actionInterpolation = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionInterpolation.setObjectName("actionInterpolation")
|
||||||
|
self.actionRunning_values = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionRunning_values.setObjectName("actionRunning_values")
|
||||||
|
self.actionFit_parameter_saving = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionFit_parameter_saving.setObjectName("actionFit_parameter_saving")
|
||||||
|
self.actionShow_fit_parameter = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionShow_fit_parameter.setObjectName("actionShow_fit_parameter")
|
||||||
|
self.actionSkip_points = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionSkip_points.setObjectName("actionSkip_points")
|
||||||
|
self.actionGuide_lines = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionGuide_lines.setObjectName("actionGuide_lines")
|
||||||
|
self.actionMaximize = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionMaximize.setCheckable(True)
|
||||||
|
self.actionMaximize.setVisible(False)
|
||||||
|
self.actionMaximize.setObjectName("actionMaximize")
|
||||||
|
self.actionTile = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionTile.setObjectName("actionTile")
|
||||||
|
self.actionTileVertical = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionTileVertical.setObjectName("actionTileVertical")
|
||||||
|
self.actionTileHorizontal = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionTileHorizontal.setObjectName("actionTileHorizontal")
|
||||||
|
self.actionMinimize = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionMinimize.setCheckable(True)
|
||||||
|
self.actionMinimize.setVisible(False)
|
||||||
|
self.actionMinimize.setObjectName("actionMinimize")
|
||||||
|
self.actionNew_window = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionNew_window.setObjectName("actionNew_window")
|
||||||
|
self.actionDelete_window = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionDelete_window.setObjectName("actionDelete_window")
|
||||||
|
self.actionCascade_windows = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionCascade_windows.setObjectName("actionCascade_windows")
|
||||||
|
self.actionNext_window = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionNext_window.setObjectName("actionNext_window")
|
||||||
|
self.actionPrevious = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionPrevious.setObjectName("actionPrevious")
|
||||||
|
self.t1action = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.t1action.setObjectName("t1action")
|
||||||
|
self.t1tau = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.t1tau.setObjectName("t1tau")
|
||||||
|
self.action_coup_calc = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_coup_calc.setObjectName("action_coup_calc")
|
||||||
|
self.action_calc_eps_derivative = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_calc_eps_derivative.setObjectName("action_calc_eps_derivative")
|
||||||
|
self.actionOpen_FC = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionOpen_FC.setObjectName("actionOpen_FC")
|
||||||
|
self.action_mean_t1 = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_mean_t1.setObjectName("action_mean_t1")
|
||||||
|
self.actionFilon = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionFilon.setObjectName("actionFilon")
|
||||||
|
self.action_new_set = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_new_set.setObjectName("action_new_set")
|
||||||
|
self.action_magnitude = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_magnitude.setObjectName("action_magnitude")
|
||||||
|
self.actionCenterMax = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionCenterMax.setObjectName("actionCenterMax")
|
||||||
|
self.action_depake = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_depake.setObjectName("action_depake")
|
||||||
|
self.action_edit = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_edit.setObjectName("action_edit")
|
||||||
|
self.actionPick_position = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionPick_position.setObjectName("actionPick_position")
|
||||||
|
self.actionIntegrate = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionIntegrate.setObjectName("actionIntegrate")
|
||||||
|
self.actionDerivation = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionDerivation.setObjectName("actionDerivation")
|
||||||
|
self.actionIntegration = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionIntegration.setObjectName("actionIntegration")
|
||||||
|
self.actionMove_between_plots = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionMove_between_plots.setObjectName("actionMove_between_plots")
|
||||||
|
self.actionBaseline = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionBaseline.setObjectName("actionBaseline")
|
||||||
|
self.actionCalculateT1 = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionCalculateT1.setObjectName("actionCalculateT1")
|
||||||
|
self.actionChange_datatypes = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionChange_datatypes.setObjectName("actionChange_datatypes")
|
||||||
|
self.actionPrint = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionPrint.setObjectName("actionPrint")
|
||||||
|
self.action_lm_fit = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_lm_fit.setCheckable(True)
|
||||||
|
self.action_lm_fit.setChecked(True)
|
||||||
|
self.action_lm_fit.setObjectName("action_lm_fit")
|
||||||
|
self.action_nm_fit = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_nm_fit.setCheckable(True)
|
||||||
|
self.action_nm_fit.setObjectName("action_nm_fit")
|
||||||
|
self.action_odr_fit = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_odr_fit.setCheckable(True)
|
||||||
|
self.action_odr_fit.setObjectName("action_odr_fit")
|
||||||
|
self.action_no_range = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_no_range.setCheckable(True)
|
||||||
|
self.action_no_range.setChecked(False)
|
||||||
|
self.action_no_range.setObjectName("action_no_range")
|
||||||
|
self.action_x_range = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_x_range.setCheckable(True)
|
||||||
|
self.action_x_range.setChecked(True)
|
||||||
|
self.action_x_range.setObjectName("action_x_range")
|
||||||
|
self.action_custom_range = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_custom_range.setCheckable(True)
|
||||||
|
self.action_custom_range.setObjectName("action_custom_range")
|
||||||
|
self.actionSnake = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionSnake.setObjectName("actionSnake")
|
||||||
|
self.actionFunction_editor = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionFunction_editor.setObjectName("actionFunction_editor")
|
||||||
|
self.actionLife = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionLife.setObjectName("actionLife")
|
||||||
|
self.actionTetris = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionTetris.setObjectName("actionTetris")
|
||||||
|
self.actionUpdate = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionUpdate.setObjectName("actionUpdate")
|
||||||
|
self.actionMine = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionMine.setObjectName("actionMine")
|
||||||
|
self.action_draw_object = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_draw_object.setObjectName("action_draw_object")
|
||||||
|
self.actionBugs = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionBugs.setObjectName("actionBugs")
|
||||||
|
self.actionShow_error_log = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionShow_error_log.setObjectName("actionShow_error_log")
|
||||||
|
self.actionCreate_starter = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionCreate_starter.setObjectName("actionCreate_starter")
|
||||||
|
self.actionAbout = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionAbout.setObjectName("actionAbout")
|
||||||
|
self.actionTNMH_model = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionTNMH_model.setObjectName("actionTNMH_model")
|
||||||
|
self.actionBinning = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionBinning.setObjectName("actionBinning")
|
||||||
|
self.actionTNMH = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionTNMH.setObjectName("actionTNMH")
|
||||||
|
self.actionExclude_region = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionExclude_region.setCheckable(True)
|
||||||
|
self.actionExclude_region.setObjectName("actionExclude_region")
|
||||||
|
self.action_cut_xaxis = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_cut_xaxis.setObjectName("action_cut_xaxis")
|
||||||
|
self.action_cut_yaxis = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.action_cut_yaxis.setObjectName("action_cut_yaxis")
|
||||||
|
self.actionUse_script = QtGui.QAction(parent=BaseWindow)
|
||||||
|
self.actionUse_script.setObjectName("actionUse_script")
|
||||||
|
self.menuSave.addAction(self.actionSave)
|
||||||
|
self.menuSave.addAction(self.actionExportGraphic)
|
||||||
|
self.menuSave.addAction(self.action_save_fit_parameter)
|
||||||
|
self.menuFile.addAction(self.action_open)
|
||||||
|
self.menuFile.addAction(self.actionOpen_FC)
|
||||||
|
self.menuFile.addAction(self.menuSave.menuAction())
|
||||||
|
self.menuFile.addSeparator()
|
||||||
|
self.menuFile.addAction(self.actionPrint)
|
||||||
|
self.menuFile.addAction(self.action_reset)
|
||||||
|
self.menuFile.addSeparator()
|
||||||
|
self.menuFile.addAction(self.action_close)
|
||||||
|
self.menuFile.addSeparator()
|
||||||
|
self.menuCut_to_visible_range.addSeparator()
|
||||||
|
self.menuCut_to_visible_range.addAction(self.action_cut_xaxis)
|
||||||
|
self.menuCut_to_visible_range.addAction(self.action_cut_yaxis)
|
||||||
|
self.menuData.addAction(self.action_new_set)
|
||||||
|
self.menuData.addAction(self.action_delete_sets)
|
||||||
|
self.menuData.addAction(self.actionMove_between_plots)
|
||||||
|
self.menuData.addAction(self.actionConcatenate_sets)
|
||||||
|
self.menuData.addAction(self.actionAddlines)
|
||||||
|
self.menuData.addSeparator()
|
||||||
|
self.menuData.addAction(self.action_sort_pts)
|
||||||
|
self.menuData.addAction(self.actionSkip_points)
|
||||||
|
self.menuData.addSeparator()
|
||||||
|
self.menuData.addAction(self.menuCut_to_visible_range.menuAction())
|
||||||
|
self.menuData.addSeparator()
|
||||||
|
self.menuData.addAction(self.actionChange_datatypes)
|
||||||
|
self.menuData.addAction(self.actionUse_script)
|
||||||
|
self.menuHelp.addAction(self.actionShow_error_log)
|
||||||
|
self.menuHelp.addAction(self.actionUpdate)
|
||||||
|
self.menuHelp.addAction(self.actionBugs)
|
||||||
|
self.menuHelp.addAction(self.actionAbout)
|
||||||
|
self.menuNormalize.addAction(self.action_norm_max)
|
||||||
|
self.menuNormalize.addAction(self.action_norm_max_abs)
|
||||||
|
self.menuNormalize.addSeparator()
|
||||||
|
self.menuNormalize.addAction(self.action_norm_first)
|
||||||
|
self.menuNormalize.addAction(self.action_norm_last)
|
||||||
|
self.menuNormalize.addSeparator()
|
||||||
|
self.menuNormalize.addAction(self.action_norm_area)
|
||||||
|
self.menuExtra.addAction(self.action_mean_t1)
|
||||||
|
self.menuExtra.addSeparator()
|
||||||
|
self.menuExtra.addAction(self.actionFilon)
|
||||||
|
self.menuExtra.addAction(self.actionDerivation)
|
||||||
|
self.menuExtra.addAction(self.actionIntegration)
|
||||||
|
self.menuExtra.addSeparator()
|
||||||
|
self.menuExtra.addAction(self.menuNormalize.menuAction())
|
||||||
|
self.menuExtra.addAction(self.actionInterpolation)
|
||||||
|
self.menuExtra.addAction(self.actionBinning)
|
||||||
|
self.menuExtra.addAction(self.actionRunning_values)
|
||||||
|
self.menuExtra.addAction(self.actionShift)
|
||||||
|
self.menuExtra.addSeparator()
|
||||||
|
self.menuExtra.addAction(self.action_calc)
|
||||||
|
self.menuMethod.addAction(self.action_lm_fit)
|
||||||
|
self.menuMethod.addAction(self.action_nm_fit)
|
||||||
|
self.menuMethod.addAction(self.action_odr_fit)
|
||||||
|
self.menuLimits.addAction(self.action_no_range)
|
||||||
|
self.menuLimits.addAction(self.action_x_range)
|
||||||
|
self.menuLimits.addAction(self.action_custom_range)
|
||||||
|
self.menuLimits.addAction(self.actionExclude_region)
|
||||||
|
self.menuFit.addAction(self.action_FitWidget)
|
||||||
|
self.menuFit.addSeparator()
|
||||||
|
self.menuFit.addAction(self.action_create_fit_function)
|
||||||
|
self.menuFit.addAction(self.actionFunction_editor)
|
||||||
|
self.menuFit.addSeparator()
|
||||||
|
self.menuFit.addAction(self.menuMethod.menuAction())
|
||||||
|
self.menuFit.addAction(self.menuLimits.menuAction())
|
||||||
|
self.menuOptions.addAction(self.actionMouse_behaviour)
|
||||||
|
self.menuOptions.addSeparator()
|
||||||
|
self.menuOptions.addAction(self.action_colorcycle)
|
||||||
|
self.menuOptions.addAction(self.actionConfiguration)
|
||||||
|
self.menuOptions.addAction(self.actionCreate_starter)
|
||||||
|
self.menuView.addAction(self.actionTile)
|
||||||
|
self.menuView.addAction(self.actionTileVertical)
|
||||||
|
self.menuView.addAction(self.actionTileHorizontal)
|
||||||
|
self.menuView.addAction(self.actionCascade_windows)
|
||||||
|
self.menuWindow.addAction(self.actionNew_window)
|
||||||
|
self.menuWindow.addAction(self.actionDelete_window)
|
||||||
|
self.menuWindow.addSeparator()
|
||||||
|
self.menuWindow.addAction(self.actionNext_window)
|
||||||
|
self.menuWindow.addAction(self.actionPrevious)
|
||||||
|
self.menuWindow.addAction(self.actionMaximize)
|
||||||
|
self.menuWindow.addAction(self.actionMinimize)
|
||||||
|
self.menuWindow.addAction(self.menuView.menuAction())
|
||||||
|
self.menuWindow.addSeparator()
|
||||||
|
self.menuWindow.addAction(self.actionRefresh)
|
||||||
|
self.menuWindow.addSeparator()
|
||||||
|
self.menuWindow.addAction(self.action_draw_object)
|
||||||
|
self.menuNMR.addAction(self.t1action)
|
||||||
|
self.menuNMR.addAction(self.actionCalculateT1)
|
||||||
|
self.menuNMR.addAction(self.action_coup_calc)
|
||||||
|
self.menuBDS.addAction(self.action_calc_eps_derivative)
|
||||||
|
self.menuSpectrum.addAction(self.action_magnitude)
|
||||||
|
self.menuSpectrum.addAction(self.actionCenterMax)
|
||||||
|
self.menuSpectrum.addAction(self.action_depake)
|
||||||
|
self.menuSpectrum.addSeparator()
|
||||||
|
self.menuSpectrum.addAction(self.action_edit)
|
||||||
|
self.menuSpectrum.addAction(self.actionBaseline)
|
||||||
|
self.menuSpectrum.addAction(self.actionPick_position)
|
||||||
|
self.menuStuff.addAction(self.actionSnake)
|
||||||
|
self.menuStuff.addAction(self.actionLife)
|
||||||
|
self.menuStuff.addAction(self.actionTetris)
|
||||||
|
self.menuStuff.addAction(self.actionMine)
|
||||||
|
self.menuDSC.addAction(self.actionTNMH_model)
|
||||||
|
self.menubar.addAction(self.menuFile.menuAction())
|
||||||
|
self.menubar.addAction(self.menuWindow.menuAction())
|
||||||
|
self.menubar.addAction(self.menuData.menuAction())
|
||||||
|
self.menubar.addAction(self.menuExtra.menuAction())
|
||||||
|
self.menubar.addAction(self.menuSpectrum.menuAction())
|
||||||
|
self.menubar.addAction(self.menuFit.menuAction())
|
||||||
|
self.menubar.addAction(self.menuNMR.menuAction())
|
||||||
|
self.menubar.addAction(self.menuBDS.menuAction())
|
||||||
|
self.menubar.addAction(self.menuDSC.menuAction())
|
||||||
|
self.menubar.addAction(self.menuOptions.menuAction())
|
||||||
|
self.menubar.addAction(self.menuHelp.menuAction())
|
||||||
|
self.menubar.addAction(self.menuStuff.menuAction())
|
||||||
|
self.toolBar.addAction(self.action_open)
|
||||||
|
self.toolBar.addAction(self.actionSave)
|
||||||
|
self.toolBar.addSeparator()
|
||||||
|
self.toolBar.addAction(self.actionMouse_behaviour)
|
||||||
|
self.toolBar.addSeparator()
|
||||||
|
self.toolBar.addAction(self.actionPrevious)
|
||||||
|
self.toolBar.addAction(self.actionNext_window)
|
||||||
|
self.toolbar_edit.addAction(self.action_calc)
|
||||||
|
self.toolbar_edit.addAction(self.action_mean_t1)
|
||||||
|
self.toolbar_edit.addAction(self.actionShift)
|
||||||
|
self.toolBar_nmr.addAction(self.t1action)
|
||||||
|
self.toolBar_nmr.addAction(self.actionCalculateT1)
|
||||||
|
self.toolBar_spectrum.addAction(self.action_edit)
|
||||||
|
self.toolBar_spectrum.addAction(self.actionPick_position)
|
||||||
|
self.toolBar_data.addAction(self.actionConcatenate_sets)
|
||||||
|
self.toolBar_data.addAction(self.action_sort_pts)
|
||||||
|
|
||||||
|
self.retranslateUi(BaseWindow)
|
||||||
|
self.tabWidget.setCurrentIndex(0)
|
||||||
|
self.action_close.triggered.connect(BaseWindow.close) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(BaseWindow)
|
||||||
|
|
||||||
|
def retranslateUi(self, BaseWindow):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
BaseWindow.setWindowTitle(_translate("BaseWindow", "Mr. Godot told me to tell you he won\'t come this evening but surely tomorrow."))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.datawidget), _translate("BaseWindow", "Data"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.valuewidget), _translate("BaseWindow", "Values"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.fit_dialog), _translate("BaseWindow", "Fit"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.editsignalwidget), _translate("BaseWindow", "Signals"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.ptsselectwidget), _translate("BaseWindow", "Pick points"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t1tauwidget), _translate("BaseWindow", "SLR"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.drawingswidget), _translate("BaseWindow", "Drawings"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.integralwidget), _translate("BaseWindow", "Integrate"))
|
||||||
|
self.menuFile.setTitle(_translate("BaseWindow", "&File"))
|
||||||
|
self.menuSave.setTitle(_translate("BaseWindow", "&Save..."))
|
||||||
|
self.menuData.setTitle(_translate("BaseWindow", "&Data"))
|
||||||
|
self.menuCut_to_visible_range.setTitle(_translate("BaseWindow", "Cut to visible range"))
|
||||||
|
self.menuHelp.setTitle(_translate("BaseWindow", "&Help"))
|
||||||
|
self.menuExtra.setTitle(_translate("BaseWindow", "Math"))
|
||||||
|
self.menuNormalize.setTitle(_translate("BaseWindow", "&Normalize"))
|
||||||
|
self.menuFit.setTitle(_translate("BaseWindow", "F&it"))
|
||||||
|
self.menuMethod.setTitle(_translate("BaseWindow", "Method"))
|
||||||
|
self.menuLimits.setTitle(_translate("BaseWindow", "Limits"))
|
||||||
|
self.menuOptions.setTitle(_translate("BaseWindow", "Options"))
|
||||||
|
self.menuWindow.setTitle(_translate("BaseWindow", "Plots"))
|
||||||
|
self.menuView.setTitle(_translate("BaseWindow", "View"))
|
||||||
|
self.menuNMR.setTitle(_translate("BaseWindow", "NMR"))
|
||||||
|
self.menuBDS.setTitle(_translate("BaseWindow", "BDS"))
|
||||||
|
self.menuSpectrum.setTitle(_translate("BaseWindow", "Spectrum"))
|
||||||
|
self.menuDSC.setTitle(_translate("BaseWindow", "DSC"))
|
||||||
|
self.toolBar.setWindowTitle(_translate("BaseWindow", "Main"))
|
||||||
|
self.toolbar_edit.setWindowTitle(_translate("BaseWindow", "Math"))
|
||||||
|
self.toolBar_nmr.setWindowTitle(_translate("BaseWindow", "NMR"))
|
||||||
|
self.toolBar_spectrum.setWindowTitle(_translate("BaseWindow", "Spectrum"))
|
||||||
|
self.toolBar_data.setWindowTitle(_translate("BaseWindow", "Data"))
|
||||||
|
self.action_close.setText(_translate("BaseWindow", "&Quit"))
|
||||||
|
self.action_close.setShortcut(_translate("BaseWindow", "Ctrl+Q"))
|
||||||
|
self.actionExportGraphic.setText(_translate("BaseWindow", "Export graphic..."))
|
||||||
|
self.actionExportGraphic.setShortcut(_translate("BaseWindow", "Ctrl+Shift+S"))
|
||||||
|
self.action_open.setText(_translate("BaseWindow", "&Open..."))
|
||||||
|
self.action_open.setShortcut(_translate("BaseWindow", "Ctrl+O"))
|
||||||
|
self.actionExportData.setText(_translate("BaseWindow", "Export data..."))
|
||||||
|
self.actionExportData.setShortcut(_translate("BaseWindow", "Ctrl+Shift+S"))
|
||||||
|
self.action_calc.setText(_translate("BaseWindow", "&Evaluate expression..."))
|
||||||
|
self.action_delete_sets.setText(_translate("BaseWindow", "&Delete Set"))
|
||||||
|
self.action_delete_sets.setShortcut(_translate("BaseWindow", "Ctrl+Del"))
|
||||||
|
self.action_save_fit_parameter.setText(_translate("BaseWindow", "Save fit ¶meter..."))
|
||||||
|
self.action_sort_pts.setText(_translate("BaseWindow", "Sort &points"))
|
||||||
|
self.action_reset.setText(_translate("BaseWindow", "&Reset"))
|
||||||
|
self.action_reset.setShortcut(_translate("BaseWindow", "Ctrl+R"))
|
||||||
|
self.actionDocumentation.setText(_translate("BaseWindow", "&Documentation"))
|
||||||
|
self.actionDocumentation.setShortcut(_translate("BaseWindow", "F1"))
|
||||||
|
self.action_FitWidget.setText(_translate("BaseWindow", "Open &Fit"))
|
||||||
|
self.action_FitWidget.setShortcut(_translate("BaseWindow", "Ctrl+F"))
|
||||||
|
self.action_norm_max.setText(_translate("BaseWindow", "&Max"))
|
||||||
|
self.action_norm_first.setText(_translate("BaseWindow", "&First point"))
|
||||||
|
self.action_norm_area.setText(_translate("BaseWindow", "&Area"))
|
||||||
|
self.action_norm_max_abs.setText(_translate("BaseWindow", "Ma&x(Abs)"))
|
||||||
|
self.action_norm_last.setText(_translate("BaseWindow", "&Last point"))
|
||||||
|
self.actionSave.setText(_translate("BaseWindow", "S&ave..."))
|
||||||
|
self.actionSave.setShortcut(_translate("BaseWindow", "Ctrl+S"))
|
||||||
|
self.actiontoolbar_display.setText(_translate("BaseWindow", "&Views"))
|
||||||
|
self.actionEdit_toolbars.setText(_translate("BaseWindow", "&Edit"))
|
||||||
|
self.actionAddlines.setText(_translate("BaseWindow", "Set by function..."))
|
||||||
|
self.actionColors.setText(_translate("BaseWindow", "&Reset color"))
|
||||||
|
self.actionConcatenate_sets.setText(_translate("BaseWindow", "Join sets"))
|
||||||
|
self.actionShift.setText(_translate("BaseWindow", "&Shift/scale..."))
|
||||||
|
self.actionShow_log.setText(_translate("BaseWindow", "&Show log..."))
|
||||||
|
self.action_create_fit_function.setText(_translate("BaseWindow", "&Create fit function..."))
|
||||||
|
self.action_colorcycle.setText(_translate("BaseWindow", "Color cycles..."))
|
||||||
|
self.actionSave_session.setText(_translate("BaseWindow", "Update session"))
|
||||||
|
self.actionMouse_behaviour.setText(_translate("BaseWindow", "Mouse behaviour"))
|
||||||
|
self.actionMouse_behaviour.setToolTip(_translate("BaseWindow", "Switch between zoom and pan in graph."))
|
||||||
|
self.actionConfiguration.setText(_translate("BaseWindow", "Configuration..."))
|
||||||
|
self.actionRefresh.setText(_translate("BaseWindow", "Refresh"))
|
||||||
|
self.actionRefresh.setShortcut(_translate("BaseWindow", "F5"))
|
||||||
|
self.actionInterpolation.setText(_translate("BaseWindow", "Interpolation..."))
|
||||||
|
self.actionRunning_values.setText(_translate("BaseWindow", "Smoothing..."))
|
||||||
|
self.actionFit_parameter_saving.setText(_translate("BaseWindow", "Fit parameter saving..."))
|
||||||
|
self.actionShow_fit_parameter.setText(_translate("BaseWindow", "Parameter..."))
|
||||||
|
self.actionSkip_points.setText(_translate("BaseWindow", "Skip points..."))
|
||||||
|
self.actionGuide_lines.setText(_translate("BaseWindow", "Draw lines..."))
|
||||||
|
self.actionMaximize.setText(_translate("BaseWindow", "Maximize"))
|
||||||
|
self.actionTile.setText(_translate("BaseWindow", "Tile windows"))
|
||||||
|
self.actionTileVertical.setText(_translate("BaseWindow", "Tile windows vertically"))
|
||||||
|
self.actionTileHorizontal.setText(_translate("BaseWindow", "Tile windows horizontally"))
|
||||||
|
self.actionMinimize.setText(_translate("BaseWindow", "Minimize"))
|
||||||
|
self.actionNew_window.setText(_translate("BaseWindow", "New graph"))
|
||||||
|
self.actionDelete_window.setText(_translate("BaseWindow", "Delete graph"))
|
||||||
|
self.actionCascade_windows.setText(_translate("BaseWindow", "Cascade windows"))
|
||||||
|
self.actionNext_window.setText(_translate("BaseWindow", "Next"))
|
||||||
|
self.actionNext_window.setShortcut(_translate("BaseWindow", "Alt+Right"))
|
||||||
|
self.actionPrevious.setText(_translate("BaseWindow", "Previous"))
|
||||||
|
self.actionPrevious.setShortcut(_translate("BaseWindow", "Alt+Left"))
|
||||||
|
self.t1action.setText(_translate("BaseWindow", "Evaluate T1 minimum..."))
|
||||||
|
self.t1tau.setText(_translate("BaseWindow", "Calculate T1..."))
|
||||||
|
self.action_coup_calc.setText(_translate("BaseWindow", "Coupling values..."))
|
||||||
|
self.action_calc_eps_derivative.setText(_translate("BaseWindow", "Calculate derivative loss"))
|
||||||
|
self.actionOpen_FC.setText(_translate("BaseWindow", "Read FC data..."))
|
||||||
|
self.action_mean_t1.setText(_translate("BaseWindow", "Convert mean values..."))
|
||||||
|
self.actionFilon.setText(_translate("BaseWindow", "Log FT..."))
|
||||||
|
self.action_new_set.setText(_translate("BaseWindow", "New set"))
|
||||||
|
self.action_magnitude.setText(_translate("BaseWindow", "Calculate magnitude"))
|
||||||
|
self.actionCenterMax.setText(_translate("BaseWindow", "Center on max"))
|
||||||
|
self.action_depake.setText(_translate("BaseWindow", "De-paked spectrum"))
|
||||||
|
self.action_edit.setText(_translate("BaseWindow", "Edit signals..."))
|
||||||
|
self.actionPick_position.setText(_translate("BaseWindow", "Pick points..."))
|
||||||
|
self.actionIntegrate.setText(_translate("BaseWindow", "Integrate"))
|
||||||
|
self.actionDerivation.setText(_translate("BaseWindow", "Differentiation..."))
|
||||||
|
self.actionIntegration.setText(_translate("BaseWindow", "Integration..."))
|
||||||
|
self.actionMove_between_plots.setText(_translate("BaseWindow", "Move sets..."))
|
||||||
|
self.actionBaseline.setText(_translate("BaseWindow", "Baseline..."))
|
||||||
|
self.actionCalculateT1.setText(_translate("BaseWindow", "Calculate relaxation..."))
|
||||||
|
self.actionChange_datatypes.setText(_translate("BaseWindow", "Change datatypes..."))
|
||||||
|
self.actionPrint.setText(_translate("BaseWindow", "Print..."))
|
||||||
|
self.actionPrint.setShortcut(_translate("BaseWindow", "Ctrl+P"))
|
||||||
|
self.action_lm_fit.setText(_translate("BaseWindow", "Default stuff"))
|
||||||
|
self.action_nm_fit.setText(_translate("BaseWindow", "Nelder-Mead"))
|
||||||
|
self.action_odr_fit.setText(_translate("BaseWindow", "ODR"))
|
||||||
|
self.action_no_range.setText(_translate("BaseWindow", "None"))
|
||||||
|
self.action_x_range.setText(_translate("BaseWindow", "Visible x range"))
|
||||||
|
self.action_custom_range.setText(_translate("BaseWindow", "Custom"))
|
||||||
|
self.actionSnake.setText(_translate("BaseWindow", "Worm"))
|
||||||
|
self.actionFunction_editor.setText(_translate("BaseWindow", "Function editor..."))
|
||||||
|
self.actionLife.setText(_translate("BaseWindow", "Life..."))
|
||||||
|
self.actionTetris.setText(_translate("BaseWindow", "Not Tetris"))
|
||||||
|
self.actionUpdate.setText(_translate("BaseWindow", "Look for updates"))
|
||||||
|
self.actionMine.setText(_translate("BaseWindow", "Mine"))
|
||||||
|
self.action_draw_object.setText(_translate("BaseWindow", "Draw objects..."))
|
||||||
|
self.actionBugs.setText(_translate("BaseWindow", "Bugs! Problems! Wishes!"))
|
||||||
|
self.actionShow_error_log.setText(_translate("BaseWindow", "Show error log"))
|
||||||
|
self.actionCreate_starter.setText(_translate("BaseWindow", "Create starter.."))
|
||||||
|
self.actionAbout.setText(_translate("BaseWindow", "About..."))
|
||||||
|
self.actionTNMH_model.setText(_translate("BaseWindow", "Tg , Hodge, TNMH,,,"))
|
||||||
|
self.actionBinning.setText(_translate("BaseWindow", "Binning..."))
|
||||||
|
self.actionTNMH.setText(_translate("BaseWindow", "TNMH..."))
|
||||||
|
self.actionExclude_region.setText(_translate("BaseWindow", "Exclude region"))
|
||||||
|
self.action_cut_xaxis.setText(_translate("BaseWindow", "x axis"))
|
||||||
|
self.action_cut_xaxis.setToolTip(_translate("BaseWindow", "Remove data points outside visible x range."))
|
||||||
|
self.action_cut_yaxis.setText(_translate("BaseWindow", "y axis"))
|
||||||
|
self.action_cut_yaxis.setToolTip(_translate("BaseWindow", "Remove data points outside visible y range. Uses real part of points."))
|
||||||
|
self.actionUse_script.setText(_translate("BaseWindow", "Use script..."))
|
||||||
|
from ..data.datawidget.datawidget import DataWidget
|
||||||
|
from ..data.integral_widget import IntegralWidget
|
||||||
|
from ..data.point_select import PointSelectWidget
|
||||||
|
from ..data.signaledit.editsignalwidget import EditSignalWidget
|
||||||
|
from ..data.valueeditwidget import ValueEditWidget
|
||||||
|
from ..fit.fitwindow import QFitDialog
|
||||||
|
from ..graphs.drawings import DrawingsWidget
|
||||||
|
from ..lib.mdiarea import MdiAreaTile
|
||||||
|
from ..nmr.t1widget import QT1Widget
|
122
src/gui_qt/_py/bdsdialog.py
Normal file
122
src/gui_qt/_py/bdsdialog.py
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/bdsdialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(544, 443)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.listWidget = QListWidgetSelect(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.gridLayout.addWidget(self.listWidget, 1, 0, 2, 1)
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=Dialog)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
||||||
|
self.verticalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_3.setSpacing(3)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.freq_button = QtWidgets.QRadioButton(parent=self.groupBox_2)
|
||||||
|
self.freq_button.setChecked(True)
|
||||||
|
self.freq_button.setObjectName("freq_button")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(Dialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.freq_button)
|
||||||
|
self.verticalLayout_3.addWidget(self.freq_button)
|
||||||
|
self.temp_button = QtWidgets.QRadioButton(parent=self.groupBox_2)
|
||||||
|
self.temp_button.setObjectName("temp_button")
|
||||||
|
self.buttonGroup.addButton(self.temp_button)
|
||||||
|
self.verticalLayout_3.addWidget(self.temp_button)
|
||||||
|
self.gridLayout.addWidget(self.groupBox_2, 1, 1, 1, 1)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=Dialog)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.eps_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.eps_checkBox.setChecked(True)
|
||||||
|
self.eps_checkBox.setObjectName("eps_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.eps_checkBox)
|
||||||
|
self.modul_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.modul_checkBox.setObjectName("modul_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.modul_checkBox)
|
||||||
|
self.cond_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.cond_checkBox.setObjectName("cond_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.cond_checkBox)
|
||||||
|
self.loss_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.loss_checkBox.setObjectName("loss_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.loss_checkBox)
|
||||||
|
self.line = QtWidgets.QFrame(parent=self.groupBox)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.verticalLayout_2.addWidget(self.line)
|
||||||
|
self.cap_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.cap_checkBox.setObjectName("cap_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.cap_checkBox)
|
||||||
|
self.temp_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.temp_checkBox.setObjectName("temp_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.temp_checkBox)
|
||||||
|
self.time_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.time_checkBox.setObjectName("time_checkBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.time_checkBox)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_2.addItem(spacerItem)
|
||||||
|
self.gridLayout.addWidget(self.groupBox, 2, 1, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 3, 0, 1, 2)
|
||||||
|
self.label = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label.setSizePolicy(sizePolicy)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
Dialog.setTabOrder(self.freq_button, self.temp_button)
|
||||||
|
Dialog.setTabOrder(self.temp_button, self.eps_checkBox)
|
||||||
|
Dialog.setTabOrder(self.eps_checkBox, self.modul_checkBox)
|
||||||
|
Dialog.setTabOrder(self.modul_checkBox, self.cond_checkBox)
|
||||||
|
Dialog.setTabOrder(self.cond_checkBox, self.listWidget)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Read BDS data"))
|
||||||
|
self.groupBox_2.setTitle(_translate("Dialog", "X Axis"))
|
||||||
|
self.freq_button.setText(_translate("Dialog", "Frequency"))
|
||||||
|
self.temp_button.setText(_translate("Dialog", "Temperature"))
|
||||||
|
self.groupBox.setTitle(_translate("Dialog", "Y Axis"))
|
||||||
|
self.eps_checkBox.setText(_translate("Dialog", "Permittivity ε"))
|
||||||
|
self.modul_checkBox.setText(_translate("Dialog", "Modulus 1/ε"))
|
||||||
|
self.cond_checkBox.setText(_translate("Dialog", "Conductivity iεω"))
|
||||||
|
self.loss_checkBox.setText(_translate("Dialog", "Loss factor tan(δ)"))
|
||||||
|
self.cap_checkBox.setText(_translate("Dialog", "Capacity"))
|
||||||
|
self.temp_checkBox.setText(_translate("Dialog", "Meas. temperature"))
|
||||||
|
self.time_checkBox.setText(_translate("Dialog", "Meas. time"))
|
||||||
|
self.label.setText(_translate("Dialog", "Found entries"))
|
||||||
|
from ..lib.listwidget import QListWidgetSelect
|
103
src/gui_qt/_py/color_palette.py
Normal file
103
src/gui_qt/_py/color_palette.py
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/color_palette.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(390, 409)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.palette_combobox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.palette_combobox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.palette_combobox.setSizePolicy(sizePolicy)
|
||||||
|
self.palette_combobox.setObjectName("palette_combobox")
|
||||||
|
self.gridLayout.addWidget(self.palette_combobox, 0, 1, 1, 2)
|
||||||
|
self.add_color_button = QtWidgets.QPushButton(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.add_color_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.add_color_button.setSizePolicy(sizePolicy)
|
||||||
|
self.add_color_button.setObjectName("add_color_button")
|
||||||
|
self.gridLayout.addWidget(self.add_color_button, 3, 2, 1, 1)
|
||||||
|
self.colorlist = QtWidgets.QListWidget(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.colorlist.sizePolicy().hasHeightForWidth())
|
||||||
|
self.colorlist.setSizePolicy(sizePolicy)
|
||||||
|
self.colorlist.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.InternalMove)
|
||||||
|
self.colorlist.setObjectName("colorlist")
|
||||||
|
self.gridLayout.addWidget(self.colorlist, 4, 1, 1, 2)
|
||||||
|
self.add_palette_button = QtWidgets.QPushButton(parent=Dialog)
|
||||||
|
self.add_palette_button.setObjectName("add_palette_button")
|
||||||
|
self.gridLayout.addWidget(self.add_palette_button, 1, 1, 1, 1)
|
||||||
|
self.new_name_edit = QtWidgets.QLineEdit(parent=Dialog)
|
||||||
|
self.new_name_edit.setObjectName("new_name_edit")
|
||||||
|
self.gridLayout.addWidget(self.new_name_edit, 6, 1, 1, 2)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 7, 0, 1, 3)
|
||||||
|
self.color_combobox = ColorListEditor(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.color_combobox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.color_combobox.setSizePolicy(sizePolicy)
|
||||||
|
self.color_combobox.setObjectName("color_combobox")
|
||||||
|
self.gridLayout.addWidget(self.color_combobox, 3, 1, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=Dialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 2, 0, 1, 3)
|
||||||
|
self.save_button = QtWidgets.QPushButton(parent=Dialog)
|
||||||
|
self.save_button.setObjectName("save_button")
|
||||||
|
self.gridLayout.addWidget(self.save_button, 6, 0, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||||
|
self.append_palette_button = QtWidgets.QPushButton(parent=Dialog)
|
||||||
|
self.append_palette_button.setObjectName("append_palette_button")
|
||||||
|
self.gridLayout.addWidget(self.append_palette_button, 1, 2, 1, 1)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=Dialog)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.gridLayout.addWidget(self.line_2, 5, 0, 1, 3)
|
||||||
|
self.label.setBuddy(self.palette_combobox)
|
||||||
|
self.label_2.setBuddy(self.color_combobox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Color cycles"))
|
||||||
|
self.add_color_button.setText(_translate("Dialog", "Add color"))
|
||||||
|
self.add_palette_button.setText(_translate("Dialog", "Load"))
|
||||||
|
self.save_button.setText(_translate("Dialog", "Save as new list"))
|
||||||
|
self.label.setText(_translate("Dialog", "Color cycles"))
|
||||||
|
self.append_palette_button.setText(_translate("Dialog", "Append"))
|
||||||
|
self.label_2.setText(_translate("Dialog", "Available color"))
|
||||||
|
from ..lib.delegates import ColorListEditor
|
56
src/gui_qt/_py/coupling_calculator.py
Normal file
56
src/gui_qt/_py/coupling_calculator.py
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/coupling_calculator.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_coupling_calc_dialog(object):
|
||||||
|
def setupUi(self, coupling_calc_dialog):
|
||||||
|
coupling_calc_dialog.setObjectName("coupling_calc_dialog")
|
||||||
|
coupling_calc_dialog.resize(400, 280)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(coupling_calc_dialog)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.comboBox = QtWidgets.QComboBox(parent=coupling_calc_dialog)
|
||||||
|
self.comboBox.setObjectName("comboBox")
|
||||||
|
self.verticalLayout.addWidget(self.comboBox)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=coupling_calc_dialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.verticalLayout.addWidget(self.label_2)
|
||||||
|
self.verticalFrame = QtWidgets.QFrame(parent=coupling_calc_dialog)
|
||||||
|
self.verticalFrame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.verticalFrame.setObjectName("verticalFrame")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalFrame)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.verticalLayout.addWidget(self.verticalFrame)
|
||||||
|
self.label = QtWidgets.QLabel(parent=coupling_calc_dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label.setSizePolicy(sizePolicy)
|
||||||
|
self.label.setStyleSheet("font-weight: bold")
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.verticalLayout.addWidget(self.label)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout.addItem(spacerItem)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=coupling_calc_dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(coupling_calc_dialog)
|
||||||
|
self.buttonBox.accepted.connect(coupling_calc_dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(coupling_calc_dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(coupling_calc_dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, coupling_calc_dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
coupling_calc_dialog.setWindowTitle(_translate("coupling_calc_dialog", "Calculate BPP coupling constants"))
|
||||||
|
self.label_2.setText(_translate("coupling_calc_dialog", "TextLabel"))
|
||||||
|
self.label.setText(_translate("coupling_calc_dialog", "TextLabel"))
|
69
src/gui_qt/_py/datawidget.py
Normal file
69
src/gui_qt/_py/datawidget.py
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/datawidget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_DataWidget(object):
|
||||||
|
def setupUi(self, DataWidget):
|
||||||
|
DataWidget.setObjectName("DataWidget")
|
||||||
|
DataWidget.resize(307, 847)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(DataWidget)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.verticalLayout_2.addLayout(self.verticalLayout)
|
||||||
|
self.propwidget = ExpandableWidget(parent=DataWidget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.propwidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.propwidget.setSizePolicy(sizePolicy)
|
||||||
|
self.propwidget.setObjectName("propwidget")
|
||||||
|
self.verticalLayout_2.addWidget(self.propwidget)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=DataWidget)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setSpacing(0)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.graph_toolButton = QtWidgets.QToolButton(parent=self.frame)
|
||||||
|
self.graph_toolButton.setObjectName("graph_toolButton")
|
||||||
|
self.horizontalLayout.addWidget(self.graph_toolButton)
|
||||||
|
self.empty_toolButton = QtWidgets.QToolButton(parent=self.frame)
|
||||||
|
self.empty_toolButton.setObjectName("empty_toolButton")
|
||||||
|
self.horizontalLayout.addWidget(self.empty_toolButton)
|
||||||
|
self.func_toolButton = QtWidgets.QToolButton(parent=self.frame)
|
||||||
|
self.func_toolButton.setText("")
|
||||||
|
self.func_toolButton.setObjectName("func_toolButton")
|
||||||
|
self.horizontalLayout.addWidget(self.func_toolButton)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
|
self.pokemon_toolbutton = QtWidgets.QToolButton(parent=self.frame)
|
||||||
|
self.pokemon_toolbutton.setText("")
|
||||||
|
self.pokemon_toolbutton.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextOnly)
|
||||||
|
self.pokemon_toolbutton.setAutoRaise(True)
|
||||||
|
self.pokemon_toolbutton.setObjectName("pokemon_toolbutton")
|
||||||
|
self.horizontalLayout.addWidget(self.pokemon_toolbutton)
|
||||||
|
self.verticalLayout_2.addWidget(self.frame)
|
||||||
|
|
||||||
|
self.retranslateUi(DataWidget)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(DataWidget)
|
||||||
|
|
||||||
|
def retranslateUi(self, DataWidget):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
DataWidget.setWindowTitle(_translate("DataWidget", "Data"))
|
||||||
|
self.graph_toolButton.setToolTip(_translate("DataWidget", "New graph"))
|
||||||
|
self.graph_toolButton.setText(_translate("DataWidget", "New graph"))
|
||||||
|
self.empty_toolButton.setToolTip(_translate("DataWidget", "New set"))
|
||||||
|
self.empty_toolButton.setText(_translate("DataWidget", "Empty set"))
|
||||||
|
from ..lib.expandablewidget import ExpandableWidget
|
229
src/gui_qt/_py/dscfile_dialog.py
Normal file
229
src/gui_qt/_py/dscfile_dialog.py
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/dscfile_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(1341, 799)
|
||||||
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(Dialog)
|
||||||
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=Dialog)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.splitter)
|
||||||
|
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
|
||||||
|
self.verticalLayout_4.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=self.verticalLayoutWidget)
|
||||||
|
self.groupBox.setFlat(False)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
|
||||||
|
self.verticalLayout.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.step_listWidget = QtWidgets.QListWidget(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.step_listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.step_listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.step_listWidget.setMinimumSize(QtCore.QSize(0, 0))
|
||||||
|
self.step_listWidget.setObjectName("step_listWidget")
|
||||||
|
self.verticalLayout.addWidget(self.step_listWidget)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox)
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=self.verticalLayoutWidget)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
||||||
|
self.verticalLayout_2.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.groupBox_4 = QtWidgets.QGroupBox(parent=self.groupBox_2)
|
||||||
|
self.groupBox_4.setObjectName("groupBox_4")
|
||||||
|
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_4)
|
||||||
|
self.verticalLayout_6.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout_6.setObjectName("verticalLayout_6")
|
||||||
|
self.empty_label = QtWidgets.QLabel(parent=self.groupBox_4)
|
||||||
|
self.empty_label.setObjectName("empty_label")
|
||||||
|
self.verticalLayout_6.addWidget(self.empty_label)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setSpacing(3)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.loadempty_button = QtWidgets.QPushButton(parent=self.groupBox_4)
|
||||||
|
self.loadempty_button.setObjectName("loadempty_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.loadempty_button)
|
||||||
|
self.delempty_button = QtWidgets.QPushButton(parent=self.groupBox_4)
|
||||||
|
self.delempty_button.setObjectName("delempty_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.delempty_button)
|
||||||
|
self.verticalLayout_6.addLayout(self.horizontalLayout_2)
|
||||||
|
self.verticalLayout_2.addWidget(self.groupBox_4)
|
||||||
|
self.groupBox_5 = QtWidgets.QGroupBox(parent=self.groupBox_2)
|
||||||
|
self.groupBox_5.setObjectName("groupBox_5")
|
||||||
|
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_5)
|
||||||
|
self.verticalLayout_7.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout_7.setSpacing(3)
|
||||||
|
self.verticalLayout_7.setObjectName("verticalLayout_7")
|
||||||
|
self.none_radioButton = QtWidgets.QRadioButton(parent=self.groupBox_5)
|
||||||
|
self.none_radioButton.setObjectName("none_radioButton")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(Dialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.none_radioButton)
|
||||||
|
self.verticalLayout_7.addWidget(self.none_radioButton)
|
||||||
|
self.isotherm_radioButton = QtWidgets.QRadioButton(parent=self.groupBox_5)
|
||||||
|
self.isotherm_radioButton.setChecked(True)
|
||||||
|
self.isotherm_radioButton.setObjectName("isotherm_radioButton")
|
||||||
|
self.buttonGroup.addButton(self.isotherm_radioButton)
|
||||||
|
self.verticalLayout_7.addWidget(self.isotherm_radioButton)
|
||||||
|
self.slope_radioButton = QtWidgets.QRadioButton(parent=self.groupBox_5)
|
||||||
|
self.slope_radioButton.setObjectName("slope_radioButton")
|
||||||
|
self.buttonGroup.addButton(self.slope_radioButton)
|
||||||
|
self.verticalLayout_7.addWidget(self.slope_radioButton)
|
||||||
|
self.widget = QtWidgets.QWidget(parent=self.groupBox_5)
|
||||||
|
self.widget.setMinimumSize(QtCore.QSize(0, 33))
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget)
|
||||||
|
self.horizontalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.limit1_lineedit = QtWidgets.QLineEdit(parent=self.widget)
|
||||||
|
self.limit1_lineedit.setObjectName("limit1_lineedit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.limit1_lineedit)
|
||||||
|
self.limit2_lineedit = QtWidgets.QLineEdit(parent=self.widget)
|
||||||
|
self.limit2_lineedit.setText("")
|
||||||
|
self.limit2_lineedit.setObjectName("limit2_lineedit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.limit2_lineedit)
|
||||||
|
self.verticalLayout_7.addWidget(self.widget)
|
||||||
|
self.verticalLayout_2.addWidget(self.groupBox_5)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_2)
|
||||||
|
self.groupBox_3 = QtWidgets.QGroupBox(parent=self.verticalLayoutWidget)
|
||||||
|
self.groupBox_3.setObjectName("groupBox_3")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_3)
|
||||||
|
self.verticalLayout_3.setContentsMargins(6, 6, 6, 6)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.cp_checkBox = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.cp_checkBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.cp_checkBox.setSizePolicy(sizePolicy)
|
||||||
|
self.cp_checkBox.setChecked(True)
|
||||||
|
self.cp_checkBox.setObjectName("cp_checkBox")
|
||||||
|
self.verticalLayout_3.addWidget(self.cp_checkBox)
|
||||||
|
self.reference_tableWidget = QtWidgets.QTableWidget(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.reference_tableWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.reference_tableWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.reference_tableWidget.setMinimumSize(QtCore.QSize(0, 0))
|
||||||
|
self.reference_tableWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
|
||||||
|
self.reference_tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.reference_tableWidget.setColumnCount(2)
|
||||||
|
self.reference_tableWidget.setObjectName("reference_tableWidget")
|
||||||
|
self.reference_tableWidget.setRowCount(0)
|
||||||
|
self.reference_tableWidget.horizontalHeader().setVisible(False)
|
||||||
|
self.reference_tableWidget.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.reference_tableWidget.verticalHeader().setVisible(False)
|
||||||
|
self.verticalLayout_3.addWidget(self.reference_tableWidget)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.ref_add_pushButton = QtWidgets.QPushButton(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.ref_add_pushButton.sizePolicy().hasHeightForWidth())
|
||||||
|
self.ref_add_pushButton.setSizePolicy(sizePolicy)
|
||||||
|
self.ref_add_pushButton.setObjectName("ref_add_pushButton")
|
||||||
|
self.horizontalLayout.addWidget(self.ref_add_pushButton)
|
||||||
|
self.ref_remove_pushButton = QtWidgets.QPushButton(parent=self.groupBox_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.ref_remove_pushButton.sizePolicy().hasHeightForWidth())
|
||||||
|
self.ref_remove_pushButton.setSizePolicy(sizePolicy)
|
||||||
|
self.ref_remove_pushButton.setObjectName("ref_remove_pushButton")
|
||||||
|
self.horizontalLayout.addWidget(self.ref_remove_pushButton)
|
||||||
|
self.verticalLayout_3.addLayout(self.horizontalLayout)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_3)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_4.addItem(spacerItem)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=self.verticalLayoutWidget)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok|QtWidgets.QDialogButtonBox.StandardButton.Save)
|
||||||
|
self.buttonBox.setCenterButtons(True)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout_4.addWidget(self.buttonBox)
|
||||||
|
self.layoutWidget = QtWidgets.QWidget(parent=self.splitter)
|
||||||
|
self.layoutWidget.setObjectName("layoutWidget")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.raw_graph = NMRPlotWidget(parent=self.layoutWidget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.raw_graph.sizePolicy().hasHeightForWidth())
|
||||||
|
self.raw_graph.setSizePolicy(sizePolicy)
|
||||||
|
self.raw_graph.setMinimumSize(QtCore.QSize(300, 200))
|
||||||
|
self.raw_graph.setObjectName("raw_graph")
|
||||||
|
self.gridLayout.addWidget(self.raw_graph, 0, 0, 1, 1)
|
||||||
|
self.calib_graph = NMRPlotWidget(parent=self.layoutWidget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.calib_graph.sizePolicy().hasHeightForWidth())
|
||||||
|
self.calib_graph.setSizePolicy(sizePolicy)
|
||||||
|
self.calib_graph.setMinimumSize(QtCore.QSize(300, 200))
|
||||||
|
self.calib_graph.setObjectName("calib_graph")
|
||||||
|
self.gridLayout.addWidget(self.calib_graph, 1, 0, 1, 1)
|
||||||
|
self.baseline_graph = NMRPlotWidget(parent=self.layoutWidget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.baseline_graph.sizePolicy().hasHeightForWidth())
|
||||||
|
self.baseline_graph.setSizePolicy(sizePolicy)
|
||||||
|
self.baseline_graph.setMinimumSize(QtCore.QSize(300, 200))
|
||||||
|
self.baseline_graph.setObjectName("baseline_graph")
|
||||||
|
self.gridLayout.addWidget(self.baseline_graph, 0, 1, 1, 1)
|
||||||
|
self.end_graph = NMRPlotWidget(parent=self.layoutWidget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.end_graph.sizePolicy().hasHeightForWidth())
|
||||||
|
self.end_graph.setSizePolicy(sizePolicy)
|
||||||
|
self.end_graph.setMinimumSize(QtCore.QSize(0, 0))
|
||||||
|
self.end_graph.setObjectName("end_graph")
|
||||||
|
self.gridLayout.addWidget(self.end_graph, 1, 1, 1, 1)
|
||||||
|
self.verticalLayout_5.addWidget(self.splitter)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Read DSC file"))
|
||||||
|
self.groupBox.setTitle(_translate("Dialog", "Detected steps"))
|
||||||
|
self.groupBox_2.setTitle(_translate("Dialog", "Baseline corrections"))
|
||||||
|
self.groupBox_4.setTitle(_translate("Dialog", "Empty measurement"))
|
||||||
|
self.empty_label.setText(_translate("Dialog", "No emtpy measurement"))
|
||||||
|
self.loadempty_button.setText(_translate("Dialog", "Load empty"))
|
||||||
|
self.delempty_button.setText(_translate("Dialog", "Remove empty"))
|
||||||
|
self.groupBox_5.setTitle(_translate("Dialog", "Slope correction"))
|
||||||
|
self.none_radioButton.setText(_translate("Dialog", "None"))
|
||||||
|
self.isotherm_radioButton.setText(_translate("Dialog", "Isotherms"))
|
||||||
|
self.slope_radioButton.setText(_translate("Dialog", "Curve slope"))
|
||||||
|
self.limit1_lineedit.setPlaceholderText(_translate("Dialog", "start (in min)"))
|
||||||
|
self.limit2_lineedit.setPlaceholderText(_translate("Dialog", "stop (in min)"))
|
||||||
|
self.groupBox_3.setTitle(_translate("Dialog", "References"))
|
||||||
|
self.cp_checkBox.setText(_translate("Dialog", "Use reference to convert to heat capacity"))
|
||||||
|
self.ref_add_pushButton.setText(_translate("Dialog", "Add reference"))
|
||||||
|
self.ref_remove_pushButton.setText(_translate("Dialog", "Remove reference"))
|
||||||
|
from ..lib.graph_items import NMRPlotWidget
|
202
src/gui_qt/_py/editsignalwidget.py
Normal file
202
src/gui_qt/_py/editsignalwidget.py
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/editsignalwidget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(328, 732)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.baseline_box = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.baseline_box.setObjectName("baseline_box")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.baseline_box)
|
||||||
|
self.horizontalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.baselinebutton = QtWidgets.QPushButton(parent=self.baseline_box)
|
||||||
|
self.baselinebutton.setObjectName("baselinebutton")
|
||||||
|
self.horizontalLayout_3.addWidget(self.baselinebutton)
|
||||||
|
self.verticalLayout.addWidget(self.baseline_box)
|
||||||
|
self.leftshift_box = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.leftshift_box.setObjectName("leftshift_box")
|
||||||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.leftshift_box)
|
||||||
|
self.gridLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||||||
|
self.leftshiftbutton = QtWidgets.QPushButton(parent=self.leftshift_box)
|
||||||
|
self.leftshiftbutton.setObjectName("leftshiftbutton")
|
||||||
|
self.gridLayout_3.addWidget(self.leftshiftbutton, 1, 0, 1, 2)
|
||||||
|
self.leftshift_comboBox = QtWidgets.QComboBox(parent=self.leftshift_box)
|
||||||
|
self.leftshift_comboBox.setObjectName("leftshift_comboBox")
|
||||||
|
self.leftshift_comboBox.addItem("")
|
||||||
|
self.leftshift_comboBox.addItem("")
|
||||||
|
self.gridLayout_3.addWidget(self.leftshift_comboBox, 0, 0, 1, 1)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.ls_spinBox = QtWidgets.QSpinBox(parent=self.leftshift_box)
|
||||||
|
self.ls_spinBox.setMaximum(9999)
|
||||||
|
self.ls_spinBox.setObjectName("ls_spinBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.ls_spinBox)
|
||||||
|
self.ls_lineEdit = QtWidgets.QLineEdit(parent=self.leftshift_box)
|
||||||
|
self.ls_lineEdit.setObjectName("ls_lineEdit")
|
||||||
|
self.verticalLayout_2.addWidget(self.ls_lineEdit)
|
||||||
|
self.gridLayout_3.addLayout(self.verticalLayout_2, 0, 1, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.leftshift_box)
|
||||||
|
self.zerofill_box = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.zerofill_box.setFlat(False)
|
||||||
|
self.zerofill_box.setObjectName("zerofill_box")
|
||||||
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.zerofill_box)
|
||||||
|
self.horizontalLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||||
|
self.zfbutton = QtWidgets.QPushButton(parent=self.zerofill_box)
|
||||||
|
self.zfbutton.setObjectName("zfbutton")
|
||||||
|
self.horizontalLayout_4.addWidget(self.zfbutton)
|
||||||
|
self.verticalLayout.addWidget(self.zerofill_box)
|
||||||
|
self.phase_box = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.phase_box.setFlat(False)
|
||||||
|
self.phase_box.setObjectName("phase_box")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.phase_box)
|
||||||
|
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_4.setVerticalSpacing(0)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=self.phase_box)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.gridLayout_4.addWidget(self.label_8, 7, 0, 1, 1)
|
||||||
|
self.phase_prev_button = QtWidgets.QPushButton(parent=self.phase_box)
|
||||||
|
self.phase_prev_button.setObjectName("phase_prev_button")
|
||||||
|
self.gridLayout_4.addWidget(self.phase_prev_button, 9, 0, 1, 1)
|
||||||
|
self.ph0slider = QtWidgets.QDoubleSpinBox(parent=self.phase_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.ph0slider.sizePolicy().hasHeightForWidth())
|
||||||
|
self.ph0slider.setSizePolicy(sizePolicy)
|
||||||
|
self.ph0slider.setWrapping(True)
|
||||||
|
self.ph0slider.setMinimum(-180.0)
|
||||||
|
self.ph0slider.setMaximum(180.0)
|
||||||
|
self.ph0slider.setObjectName("ph0slider")
|
||||||
|
self.gridLayout_4.addWidget(self.ph0slider, 2, 1, 1, 1)
|
||||||
|
self.ph1slider = QtWidgets.QDoubleSpinBox(parent=self.phase_box)
|
||||||
|
self.ph1slider.setWrapping(True)
|
||||||
|
self.ph1slider.setMinimum(-360.0)
|
||||||
|
self.ph1slider.setMaximum(360.0)
|
||||||
|
self.ph1slider.setObjectName("ph1slider")
|
||||||
|
self.gridLayout_4.addWidget(self.ph1slider, 5, 1, 1, 1)
|
||||||
|
self.phasebutton = QtWidgets.QPushButton(parent=self.phase_box)
|
||||||
|
self.phasebutton.setObjectName("phasebutton")
|
||||||
|
self.gridLayout_4.addWidget(self.phasebutton, 9, 1, 1, 1)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.phase_box)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.gridLayout_4.addWidget(self.label_6, 4, 0, 3, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.phase_box)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout_4.addWidget(self.label, 1, 0, 3, 1)
|
||||||
|
self.pivot_lineedit = QtWidgets.QLineEdit(parent=self.phase_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Ignored, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.pivot_lineedit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.pivot_lineedit.setSizePolicy(sizePolicy)
|
||||||
|
self.pivot_lineedit.setInputMethodHints(QtCore.Qt.InputMethodHint.ImhDigitsOnly)
|
||||||
|
self.pivot_lineedit.setObjectName("pivot_lineedit")
|
||||||
|
self.gridLayout_4.addWidget(self.pivot_lineedit, 7, 1, 1, 1)
|
||||||
|
self.autophase_check = QtWidgets.QCheckBox(parent=self.phase_box)
|
||||||
|
self.autophase_check.setObjectName("autophase_check")
|
||||||
|
self.gridLayout_4.addWidget(self.autophase_check, 8, 0, 1, 2)
|
||||||
|
self.verticalLayout.addWidget(self.phase_box)
|
||||||
|
self.apod_box = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.apod_box.sizePolicy().hasHeightForWidth())
|
||||||
|
self.apod_box.setSizePolicy(sizePolicy)
|
||||||
|
self.apod_box.setObjectName("apod_box")
|
||||||
|
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.apod_box)
|
||||||
|
self.verticalLayout_7.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_7.setObjectName("verticalLayout_7")
|
||||||
|
self.apodcombobox = QtWidgets.QComboBox(parent=self.apod_box)
|
||||||
|
self.apodcombobox.setObjectName("apodcombobox")
|
||||||
|
self.verticalLayout_7.addWidget(self.apodcombobox)
|
||||||
|
self.apod_name_label = QtWidgets.QLabel(parent=self.apod_box)
|
||||||
|
self.apod_name_label.setIndent(3)
|
||||||
|
self.apod_name_label.setObjectName("apod_name_label")
|
||||||
|
self.verticalLayout_7.addWidget(self.apod_name_label)
|
||||||
|
self.apod_layout = QtWidgets.QVBoxLayout()
|
||||||
|
self.apod_layout.setSpacing(0)
|
||||||
|
self.apod_layout.setObjectName("apod_layout")
|
||||||
|
self.verticalLayout_7.addLayout(self.apod_layout)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.apod_prev_button = QtWidgets.QPushButton(parent=self.apod_box)
|
||||||
|
self.apod_prev_button.setObjectName("apod_prev_button")
|
||||||
|
self.horizontalLayout.addWidget(self.apod_prev_button)
|
||||||
|
self.apodbutton = QtWidgets.QPushButton(parent=self.apod_box)
|
||||||
|
self.apodbutton.setObjectName("apodbutton")
|
||||||
|
self.horizontalLayout.addWidget(self.apodbutton)
|
||||||
|
self.verticalLayout_7.addLayout(self.horizontalLayout)
|
||||||
|
self.verticalLayout.addWidget(self.apod_box)
|
||||||
|
self.fft_box = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.fft_box.setObjectName("fft_box")
|
||||||
|
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.fft_box)
|
||||||
|
self.horizontalLayout_5.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
||||||
|
self.fourierutton = QtWidgets.QPushButton(parent=self.fft_box)
|
||||||
|
self.fourierutton.setObjectName("fourierutton")
|
||||||
|
self.horizontalLayout_5.addWidget(self.fourierutton)
|
||||||
|
self.verticalLayout.addWidget(self.fft_box)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout.addItem(spacerItem)
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
|
Form.setTabOrder(self.baselinebutton, self.leftshift_comboBox)
|
||||||
|
Form.setTabOrder(self.leftshift_comboBox, self.ls_spinBox)
|
||||||
|
Form.setTabOrder(self.ls_spinBox, self.ls_lineEdit)
|
||||||
|
Form.setTabOrder(self.ls_lineEdit, self.leftshiftbutton)
|
||||||
|
Form.setTabOrder(self.leftshiftbutton, self.zfbutton)
|
||||||
|
Form.setTabOrder(self.zfbutton, self.ph0slider)
|
||||||
|
Form.setTabOrder(self.ph0slider, self.ph1slider)
|
||||||
|
Form.setTabOrder(self.ph1slider, self.pivot_lineedit)
|
||||||
|
Form.setTabOrder(self.pivot_lineedit, self.autophase_check)
|
||||||
|
Form.setTabOrder(self.autophase_check, self.phase_prev_button)
|
||||||
|
Form.setTabOrder(self.phase_prev_button, self.phasebutton)
|
||||||
|
Form.setTabOrder(self.phasebutton, self.apodcombobox)
|
||||||
|
Form.setTabOrder(self.apodcombobox, self.apod_prev_button)
|
||||||
|
Form.setTabOrder(self.apod_prev_button, self.apodbutton)
|
||||||
|
Form.setTabOrder(self.apodbutton, self.fourierutton)
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Form.setWindowTitle(_translate("Form", "Form"))
|
||||||
|
self.baseline_box.setTitle(_translate("Form", "Baseline correction"))
|
||||||
|
self.baselinebutton.setText(_translate("Form", "Apply"))
|
||||||
|
self.leftshift_box.setTitle(_translate("Form", "Left shift"))
|
||||||
|
self.leftshiftbutton.setText(_translate("Form", "Apply"))
|
||||||
|
self.leftshift_comboBox.setItemText(0, _translate("Form", "Points"))
|
||||||
|
self.leftshift_comboBox.setItemText(1, _translate("Form", "Seconds"))
|
||||||
|
self.zerofill_box.setTitle(_translate("Form", "Zerofilling"))
|
||||||
|
self.zfbutton.setText(_translate("Form", "Apply"))
|
||||||
|
self.phase_box.setTitle(_translate("Form", "Phase correction"))
|
||||||
|
self.label_8.setText(_translate("Form", "Pivot"))
|
||||||
|
self.phase_prev_button.setText(_translate("Form", "Preview"))
|
||||||
|
self.phasebutton.setText(_translate("Form", "Apply"))
|
||||||
|
self.label_6.setText(_translate("Form", "Phase 1"))
|
||||||
|
self.label.setText(_translate("Form", "Phase 0"))
|
||||||
|
self.pivot_lineedit.setText(_translate("Form", "0"))
|
||||||
|
self.autophase_check.setText(_translate("Form", "Autophase at pivot point"))
|
||||||
|
self.apod_box.setTitle(_translate("Form", "Apodization"))
|
||||||
|
self.apod_name_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.apod_prev_button.setText(_translate("Form", "Preview"))
|
||||||
|
self.apodbutton.setText(_translate("Form", "Apply"))
|
||||||
|
self.fft_box.setTitle(_translate("Form", "FFT"))
|
||||||
|
self.fourierutton.setText(_translate("Form", "Apply"))
|
240
src/gui_qt/_py/eval_expr_dialog.py
Normal file
240
src/gui_qt/_py/eval_expr_dialog.py
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/eval_expr_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_CalcDialog(object):
|
||||||
|
def setupUi(self, CalcDialog):
|
||||||
|
CalcDialog.setObjectName("CalcDialog")
|
||||||
|
CalcDialog.setWindowModality(QtCore.Qt.WindowModality.WindowModal)
|
||||||
|
CalcDialog.resize(804, 627)
|
||||||
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(CalcDialog)
|
||||||
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||||
|
self.splitter_2 = QtWidgets.QSplitter(parent=CalcDialog)
|
||||||
|
self.splitter_2.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.splitter_2.setObjectName("splitter_2")
|
||||||
|
self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.splitter_2)
|
||||||
|
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
|
||||||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.stackedWidget = QtWidgets.QStackedWidget(parent=self.verticalLayoutWidget)
|
||||||
|
self.stackedWidget.setObjectName("stackedWidget")
|
||||||
|
self.page = QtWidgets.QWidget()
|
||||||
|
self.page.setObjectName("page")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.page)
|
||||||
|
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.page)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.verticalLayout_2.addWidget(self.label_2)
|
||||||
|
self.listWidget = QListWidgetSelect(parent=self.page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.verticalLayout_2.addWidget(self.listWidget)
|
||||||
|
self.overwrite_checkbox = QtWidgets.QCheckBox(parent=self.page)
|
||||||
|
self.overwrite_checkbox.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||||||
|
self.overwrite_checkbox.setObjectName("overwrite_checkbox")
|
||||||
|
self.verticalLayout_2.addWidget(self.overwrite_checkbox)
|
||||||
|
self.stackedWidget.addWidget(self.page)
|
||||||
|
self.page_2 = QtWidgets.QWidget()
|
||||||
|
self.page_2.setObjectName("page_2")
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.page_2)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=self.page_2)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.formLayout_3 = QtWidgets.QFormLayout(self.groupBox_2)
|
||||||
|
self.formLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.formLayout_3.setHorizontalSpacing(3)
|
||||||
|
self.formLayout_3.setObjectName("formLayout_3")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.groupBox_2)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
|
||||||
|
self.label_lineEdit = QtWidgets.QLineEdit(parent=self.groupBox_2)
|
||||||
|
self.label_lineEdit.setObjectName("label_lineEdit")
|
||||||
|
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.label_lineEdit)
|
||||||
|
self.label_9 = QtWidgets.QLabel(parent=self.groupBox_2)
|
||||||
|
self.label_9.setObjectName("label_9")
|
||||||
|
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_9)
|
||||||
|
self.value_lineEdit = QtWidgets.QLineEdit(parent=self.groupBox_2)
|
||||||
|
self.value_lineEdit.setObjectName("value_lineEdit")
|
||||||
|
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.value_lineEdit)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.groupBox_2)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_6)
|
||||||
|
self.dtype_comboBox = QtWidgets.QComboBox(parent=self.groupBox_2)
|
||||||
|
self.dtype_comboBox.setObjectName("dtype_comboBox")
|
||||||
|
self.dtype_comboBox.addItem("")
|
||||||
|
self.dtype_comboBox.addItem("")
|
||||||
|
self.dtype_comboBox.addItem("")
|
||||||
|
self.dtype_comboBox.addItem("")
|
||||||
|
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.dtype_comboBox)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_2)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=self.page_2)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox)
|
||||||
|
self.formLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.formLayout_2.setSpacing(3)
|
||||||
|
self.formLayout_2.setObjectName("formLayout_2")
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
|
||||||
|
self.symcolor_comboBox = ColorListEditor(parent=self.groupBox)
|
||||||
|
self.symcolor_comboBox.setObjectName("symcolor_comboBox")
|
||||||
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.symcolor_comboBox)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_5)
|
||||||
|
self.symbol_spinBox = QtWidgets.QSpinBox(parent=self.groupBox)
|
||||||
|
self.symbol_spinBox.setProperty("value", 10)
|
||||||
|
self.symbol_spinBox.setObjectName("symbol_spinBox")
|
||||||
|
self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.symbol_spinBox)
|
||||||
|
self.symbol_comboBox = SymbolStyleEditor(parent=self.groupBox)
|
||||||
|
self.symbol_comboBox.setObjectName("symbol_comboBox")
|
||||||
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.symbol_comboBox)
|
||||||
|
self.label_10 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_10.setObjectName("label_10")
|
||||||
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_10)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox)
|
||||||
|
self.groupBox_3 = QtWidgets.QGroupBox(parent=self.page_2)
|
||||||
|
self.groupBox_3.setObjectName("groupBox_3")
|
||||||
|
self.formLayout = QtWidgets.QFormLayout(self.groupBox_3)
|
||||||
|
self.formLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.formLayout.setSpacing(3)
|
||||||
|
self.formLayout.setObjectName("formLayout")
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_7)
|
||||||
|
self.linecolor_comboBox = ColorListEditor(parent=self.groupBox_3)
|
||||||
|
self.linecolor_comboBox.setObjectName("linecolor_comboBox")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.linecolor_comboBox)
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_8)
|
||||||
|
self.line_doubleSpinBox = QtWidgets.QDoubleSpinBox(parent=self.groupBox_3)
|
||||||
|
self.line_doubleSpinBox.setProperty("value", 1.0)
|
||||||
|
self.line_doubleSpinBox.setObjectName("line_doubleSpinBox")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.line_doubleSpinBox)
|
||||||
|
self.linestyle_comboBox = LineStyleEditor(parent=self.groupBox_3)
|
||||||
|
self.linestyle_comboBox.setObjectName("linestyle_comboBox")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.linestyle_comboBox)
|
||||||
|
self.label_11 = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
self.label_11.setObjectName("label_11")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_11)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_3)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_4.addItem(spacerItem)
|
||||||
|
self.graph_comboBox = QtWidgets.QComboBox(parent=self.page_2)
|
||||||
|
self.graph_comboBox.setObjectName("graph_comboBox")
|
||||||
|
self.verticalLayout_4.addWidget(self.graph_comboBox)
|
||||||
|
self.groupBox.raise_()
|
||||||
|
self.groupBox_2.raise_()
|
||||||
|
self.groupBox_3.raise_()
|
||||||
|
self.graph_comboBox.raise_()
|
||||||
|
self.stackedWidget.addWidget(self.page_2)
|
||||||
|
self.page_3 = QtWidgets.QWidget()
|
||||||
|
self.page_3.setObjectName("page_3")
|
||||||
|
self.stackedWidget.addWidget(self.page_3)
|
||||||
|
self.verticalLayout.addWidget(self.stackedWidget)
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=self.splitter_2)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Vertical)
|
||||||
|
self.splitter.setChildrenCollapsible(False)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.verticalLayoutWidget_2 = QtWidgets.QWidget(parent=self.splitter)
|
||||||
|
self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2")
|
||||||
|
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2)
|
||||||
|
self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_6.setObjectName("verticalLayout_6")
|
||||||
|
self.namespace_widget = QNamespaceWidget(parent=self.verticalLayoutWidget_2)
|
||||||
|
self.namespace_widget.setObjectName("namespace_widget")
|
||||||
|
self.verticalLayout_6.addWidget(self.namespace_widget)
|
||||||
|
self.verticalLayoutWidget_3 = QtWidgets.QWidget(parent=self.splitter)
|
||||||
|
self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_3)
|
||||||
|
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=self.verticalLayoutWidget_3)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.verticalLayout_3.addWidget(self.line_2)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.verticalLayoutWidget_3)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setBold(True)
|
||||||
|
font.setWeight(75)
|
||||||
|
self.label.setFont(font)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.verticalLayout_3.addWidget(self.label)
|
||||||
|
self.calc_edit = QtWidgets.QPlainTextEdit(parent=self.verticalLayoutWidget_3)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.calc_edit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.calc_edit.setSizePolicy(sizePolicy)
|
||||||
|
self.calc_edit.setObjectName("calc_edit")
|
||||||
|
self.verticalLayout_3.addWidget(self.calc_edit)
|
||||||
|
self.verticalLayout_5.addWidget(self.splitter_2)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=CalcDialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout_5.addWidget(self.buttonBox)
|
||||||
|
self.label_3.setBuddy(self.label_lineEdit)
|
||||||
|
self.label_9.setBuddy(self.value_lineEdit)
|
||||||
|
self.label_6.setBuddy(self.dtype_comboBox)
|
||||||
|
self.label_4.setBuddy(self.symcolor_comboBox)
|
||||||
|
self.label_5.setBuddy(self.symbol_spinBox)
|
||||||
|
self.label_7.setBuddy(self.linecolor_comboBox)
|
||||||
|
self.label_8.setBuddy(self.line_doubleSpinBox)
|
||||||
|
|
||||||
|
self.retranslateUi(CalcDialog)
|
||||||
|
self.stackedWidget.setCurrentIndex(0)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(CalcDialog)
|
||||||
|
CalcDialog.setTabOrder(self.calc_edit, self.listWidget)
|
||||||
|
CalcDialog.setTabOrder(self.listWidget, self.overwrite_checkbox)
|
||||||
|
CalcDialog.setTabOrder(self.overwrite_checkbox, self.label_lineEdit)
|
||||||
|
CalcDialog.setTabOrder(self.label_lineEdit, self.value_lineEdit)
|
||||||
|
CalcDialog.setTabOrder(self.value_lineEdit, self.dtype_comboBox)
|
||||||
|
CalcDialog.setTabOrder(self.dtype_comboBox, self.symcolor_comboBox)
|
||||||
|
CalcDialog.setTabOrder(self.symcolor_comboBox, self.symbol_spinBox)
|
||||||
|
CalcDialog.setTabOrder(self.symbol_spinBox, self.linecolor_comboBox)
|
||||||
|
CalcDialog.setTabOrder(self.linecolor_comboBox, self.line_doubleSpinBox)
|
||||||
|
|
||||||
|
def retranslateUi(self, CalcDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
CalcDialog.setWindowTitle(_translate("CalcDialog", "Evaluate stuff"))
|
||||||
|
self.label_2.setText(_translate("CalcDialog", "Select sets for evaluation"))
|
||||||
|
self.overwrite_checkbox.setText(_translate("CalcDialog", "Overwrite values"))
|
||||||
|
self.groupBox_2.setTitle(_translate("CalcDialog", "GroupBox"))
|
||||||
|
self.label_3.setText(_translate("CalcDialog", "Label"))
|
||||||
|
self.label_9.setText(_translate("CalcDialog", "Value"))
|
||||||
|
self.label_6.setText(_translate("CalcDialog", "Datatype"))
|
||||||
|
self.dtype_comboBox.setItemText(0, _translate("CalcDialog", "Points"))
|
||||||
|
self.dtype_comboBox.setItemText(1, _translate("CalcDialog", "Timesignal"))
|
||||||
|
self.dtype_comboBox.setItemText(2, _translate("CalcDialog", "Spectrum"))
|
||||||
|
self.dtype_comboBox.setItemText(3, _translate("CalcDialog", "BDS"))
|
||||||
|
self.groupBox.setTitle(_translate("CalcDialog", "Symbol"))
|
||||||
|
self.label_4.setText(_translate("CalcDialog", "Color"))
|
||||||
|
self.label_5.setText(_translate("CalcDialog", "Size"))
|
||||||
|
self.label_10.setText(_translate("CalcDialog", "Style"))
|
||||||
|
self.groupBox_3.setTitle(_translate("CalcDialog", "Line"))
|
||||||
|
self.label_7.setText(_translate("CalcDialog", "Color"))
|
||||||
|
self.label_8.setText(_translate("CalcDialog", "Width"))
|
||||||
|
self.label_11.setText(_translate("CalcDialog", "Style"))
|
||||||
|
self.label.setText(_translate("CalcDialog", "Expressions are evaluated line by line and change previous values"))
|
||||||
|
from ..lib.delegates import ColorListEditor, LineStyleEditor, SymbolStyleEditor
|
||||||
|
from ..lib.listwidget import QListWidgetSelect
|
||||||
|
from ..lib.namespace import QNamespaceWidget
|
197
src/gui_qt/_py/fcreader.py
Normal file
197
src/gui_qt/_py/fcreader.py
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fcreader.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_FCEval_dialog(object):
|
||||||
|
def setupUi(self, FCEval_dialog):
|
||||||
|
FCEval_dialog.setObjectName("FCEval_dialog")
|
||||||
|
FCEval_dialog.resize(457, 697)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(FCEval_dialog)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.input_box = QtWidgets.QGroupBox(parent=FCEval_dialog)
|
||||||
|
self.input_box.setObjectName("input_box")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.input_box)
|
||||||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_2.setSpacing(3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.file_pushbutton = QtWidgets.QPushButton(parent=self.input_box)
|
||||||
|
self.file_pushbutton.setChecked(False)
|
||||||
|
self.file_pushbutton.setObjectName("file_pushbutton")
|
||||||
|
self.gridLayout_2.addWidget(self.file_pushbutton, 0, 0, 1, 1)
|
||||||
|
self.dir_pushbutton = QtWidgets.QPushButton(parent=self.input_box)
|
||||||
|
self.dir_pushbutton.setObjectName("dir_pushbutton")
|
||||||
|
self.gridLayout_2.addWidget(self.dir_pushbutton, 0, 1, 1, 1)
|
||||||
|
self.listWidget = QtWidgets.QListWidget(parent=self.input_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
|
||||||
|
self.listWidget.setTextElideMode(QtCore.Qt.TextElideMode.ElideLeft)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.gridLayout_2.addWidget(self.listWidget, 1, 0, 1, 3)
|
||||||
|
self.overwrite_cb = QtWidgets.QCheckBox(parent=self.input_box)
|
||||||
|
self.overwrite_cb.setObjectName("overwrite_cb")
|
||||||
|
self.gridLayout_2.addWidget(self.overwrite_cb, 0, 2, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.input_box)
|
||||||
|
self.region_box = QtWidgets.QGroupBox(parent=FCEval_dialog)
|
||||||
|
self.region_box.setCheckable(True)
|
||||||
|
self.region_box.setChecked(False)
|
||||||
|
self.region_box.setObjectName("region_box")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.region_box)
|
||||||
|
self.horizontalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.start_lineedit = QtWidgets.QLineEdit(parent=self.region_box)
|
||||||
|
self.start_lineedit.setObjectName("start_lineedit")
|
||||||
|
self.horizontalLayout.addWidget(self.start_lineedit)
|
||||||
|
self.stop_lineedit = QtWidgets.QLineEdit(parent=self.region_box)
|
||||||
|
self.stop_lineedit.setObjectName("stop_lineedit")
|
||||||
|
self.horizontalLayout.addWidget(self.stop_lineedit)
|
||||||
|
self.verticalLayout.addWidget(self.region_box)
|
||||||
|
self.fit_box = QtWidgets.QGroupBox(parent=FCEval_dialog)
|
||||||
|
self.fit_box.setObjectName("fit_box")
|
||||||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.fit_box)
|
||||||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||||||
|
self.label_12 = QtWidgets.QLabel(parent=self.fit_box)
|
||||||
|
self.label_12.setObjectName("label_12")
|
||||||
|
self.gridLayout_3.addWidget(self.label_12, 0, 0, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.gridLayout_3.addItem(spacerItem, 0, 1, 1, 1)
|
||||||
|
self.kww_checkbox = QtWidgets.QCheckBox(parent=self.fit_box)
|
||||||
|
self.kww_checkbox.setChecked(True)
|
||||||
|
self.kww_checkbox.setObjectName("kww_checkbox")
|
||||||
|
self.gridLayout_3.addWidget(self.kww_checkbox, 0, 2, 1, 1)
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_3.setSpacing(2)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.fit_box)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_3)
|
||||||
|
self.t1_cb = QtWidgets.QCheckBox(parent=self.fit_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.t1_cb.sizePolicy().hasHeightForWidth())
|
||||||
|
self.t1_cb.setSizePolicy(sizePolicy)
|
||||||
|
self.t1_cb.setText("")
|
||||||
|
self.t1_cb.setChecked(True)
|
||||||
|
self.t1_cb.setObjectName("t1_cb")
|
||||||
|
self.horizontalLayout_3.addWidget(self.t1_cb)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.fit_box)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_4)
|
||||||
|
self.beta_cb = QtWidgets.QCheckBox(parent=self.fit_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.beta_cb.sizePolicy().hasHeightForWidth())
|
||||||
|
self.beta_cb.setSizePolicy(sizePolicy)
|
||||||
|
self.beta_cb.setChecked(True)
|
||||||
|
self.beta_cb.setObjectName("beta_cb")
|
||||||
|
self.horizontalLayout_3.addWidget(self.beta_cb)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.fit_box)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_5)
|
||||||
|
self.m0_cb = QtWidgets.QCheckBox(parent=self.fit_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.m0_cb.sizePolicy().hasHeightForWidth())
|
||||||
|
self.m0_cb.setSizePolicy(sizePolicy)
|
||||||
|
self.m0_cb.setText("")
|
||||||
|
self.m0_cb.setObjectName("m0_cb")
|
||||||
|
self.horizontalLayout_3.addWidget(self.m0_cb)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.fit_box)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_6)
|
||||||
|
self.off_cb = QtWidgets.QCheckBox(parent=self.fit_box)
|
||||||
|
self.off_cb.setObjectName("off_cb")
|
||||||
|
self.horizontalLayout_3.addWidget(self.off_cb)
|
||||||
|
self.gridLayout_3.addLayout(self.horizontalLayout_3, 1, 0, 1, 3)
|
||||||
|
self.verticalLayout.addWidget(self.fit_box)
|
||||||
|
self.out_box = QtWidgets.QGroupBox(parent=FCEval_dialog)
|
||||||
|
self.out_box.setObjectName("out_box")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.out_box)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.savebutton = QtWidgets.QPushButton(parent=self.out_box)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.savebutton.sizePolicy().hasHeightForWidth())
|
||||||
|
self.savebutton.setSizePolicy(sizePolicy)
|
||||||
|
self.savebutton.setObjectName("savebutton")
|
||||||
|
self.gridLayout.addWidget(self.savebutton, 0, 1, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=self.out_box)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 2, 0, 1, 2)
|
||||||
|
self.graph_comboBox = QtWidgets.QComboBox(parent=self.out_box)
|
||||||
|
self.graph_comboBox.setEnabled(False)
|
||||||
|
self.graph_comboBox.setObjectName("graph_comboBox")
|
||||||
|
self.gridLayout.addWidget(self.graph_comboBox, 3, 1, 1, 1)
|
||||||
|
self.graph_checkbox = QtWidgets.QCheckBox(parent=self.out_box)
|
||||||
|
self.graph_checkbox.setChecked(True)
|
||||||
|
self.graph_checkbox.setObjectName("graph_checkbox")
|
||||||
|
self.gridLayout.addWidget(self.graph_checkbox, 3, 0, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.out_box)
|
||||||
|
self.label.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
||||||
|
self.label.setText("")
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 1, 0, 1, 2)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.out_box)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.out_box)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout.addItem(spacerItem1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=FCEval_dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
self.label_12.setBuddy(self.kww_checkbox)
|
||||||
|
self.label_4.setBuddy(self.t1_cb)
|
||||||
|
self.label_5.setBuddy(self.beta_cb)
|
||||||
|
self.label_6.setBuddy(self.m0_cb)
|
||||||
|
|
||||||
|
self.retranslateUi(FCEval_dialog)
|
||||||
|
self.buttonBox.accepted.connect(FCEval_dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(FCEval_dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(FCEval_dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, FCEval_dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
FCEval_dialog.setWindowTitle(_translate("FCEval_dialog", "FC evaluation"))
|
||||||
|
self.input_box.setTitle(_translate("FCEval_dialog", "Input"))
|
||||||
|
self.file_pushbutton.setText(_translate("FCEval_dialog", "Add HDF files..."))
|
||||||
|
self.dir_pushbutton.setText(_translate("FCEval_dialog", "Add directory..."))
|
||||||
|
self.overwrite_cb.setText(_translate("FCEval_dialog", "Overwrite prev. data"))
|
||||||
|
self.region_box.setTitle(_translate("FCEval_dialog", "Evaluate region (empty values default to values of the script)"))
|
||||||
|
self.start_lineedit.setPlaceholderText(_translate("FCEval_dialog", "start pos in µs"))
|
||||||
|
self.stop_lineedit.setPlaceholderText(_translate("FCEval_dialog", "end pos in µs"))
|
||||||
|
self.fit_box.setTitle(_translate("FCEval_dialog", "Fit equation"))
|
||||||
|
self.label_12.setText(_translate("FCEval_dialog", "y = M<sub>0</sub> exp[-(x/T<sub>1</sub>)<sup>β</sup>] + Off"))
|
||||||
|
self.kww_checkbox.setToolTip(_translate("FCEval_dialog", "Check to fit a stretched exponential instead of exponential function."))
|
||||||
|
self.kww_checkbox.setText(_translate("FCEval_dialog", "Stretched exponential"))
|
||||||
|
self.label_3.setText(_translate("FCEval_dialog", "Plot:"))
|
||||||
|
self.label_4.setText(_translate("FCEval_dialog", "T<sub>1</sub>"))
|
||||||
|
self.label_5.setText(_translate("FCEval_dialog", "β"))
|
||||||
|
self.label_6.setText(_translate("FCEval_dialog", "M<sub>0</sub>"))
|
||||||
|
self.off_cb.setText(_translate("FCEval_dialog", "Offset"))
|
||||||
|
self.out_box.setTitle(_translate("FCEval_dialog", "Output"))
|
||||||
|
self.savebutton.setText(_translate("FCEval_dialog", "Change directory..."))
|
||||||
|
self.graph_checkbox.setText(_translate("FCEval_dialog", "New graph"))
|
||||||
|
self.label_2.setText(_translate("FCEval_dialog", "Save location"))
|
74
src/gui_qt/_py/fitcreationdialog.py
Normal file
74
src/gui_qt/_py/fitcreationdialog.py
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fitcreationdialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(773, 633)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth())
|
||||||
|
Dialog.setSizePolicy(sizePolicy)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=Dialog)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Vertical)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=self.splitter)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.description_box = QtWidgets.QWidget()
|
||||||
|
self.description_box.setObjectName("description_box")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.description_box)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.tabWidget.addTab(self.description_box, "")
|
||||||
|
self.args_box = QtWidgets.QWidget()
|
||||||
|
self.args_box.setObjectName("args_box")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.args_box)
|
||||||
|
self.verticalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_3.setSpacing(0)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.tabWidget.addTab(self.args_box, "")
|
||||||
|
self.kwargs_box = QtWidgets.QWidget()
|
||||||
|
self.kwargs_box.setObjectName("kwargs_box")
|
||||||
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.kwargs_box)
|
||||||
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||||
|
self.tabWidget.addTab(self.kwargs_box, "")
|
||||||
|
self.namespace_box = QtWidgets.QWidget()
|
||||||
|
self.namespace_box.setObjectName("namespace_box")
|
||||||
|
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.namespace_box)
|
||||||
|
self.verticalLayout_6.setObjectName("verticalLayout_6")
|
||||||
|
self.tabWidget.addTab(self.namespace_box, "")
|
||||||
|
self.editor = EditorWidget(parent=self.splitter)
|
||||||
|
self.editor.setObjectName("editor")
|
||||||
|
self.verticalLayout.addWidget(self.splitter)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.tabWidget.setCurrentIndex(0)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Create fit function"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.description_box), _translate("Dialog", "Description"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.args_box), _translate("Dialog", "Variables"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.kwargs_box), _translate("Dialog", "Multiple choice"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.namespace_box), _translate("Dialog", "Available Functions"))
|
||||||
|
from ..editors.codeeditor import EditorWidget
|
158
src/gui_qt/_py/fitdialog.py
Normal file
158
src/gui_qt/_py/fitdialog.py
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fitdialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_FitDialog(object):
|
||||||
|
def setupUi(self, FitDialog):
|
||||||
|
FitDialog.setObjectName("FitDialog")
|
||||||
|
FitDialog.resize(347, 710)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(FitDialog)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.scrollArea = QtWidgets.QScrollArea(parent=FitDialog)
|
||||||
|
self.scrollArea.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
|
||||||
|
self.scrollArea.setWidgetResizable(True)
|
||||||
|
self.scrollArea.setObjectName("scrollArea")
|
||||||
|
self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
|
||||||
|
self.scrollAreaWidgetContents_2.setGeometry(QtCore.QRect(0, 0, 341, 665))
|
||||||
|
self.scrollAreaWidgetContents_2.setObjectName("scrollAreaWidgetContents_2")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents_2)
|
||||||
|
self.gridLayout_2.setContentsMargins(0, 0, 0, -1)
|
||||||
|
self.gridLayout_2.setSpacing(3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.weight_combobox = QtWidgets.QComboBox(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
self.weight_combobox.setObjectName("weight_combobox")
|
||||||
|
self.weight_combobox.addItem("")
|
||||||
|
self.weight_combobox.addItem("")
|
||||||
|
self.weight_combobox.addItem("")
|
||||||
|
self.weight_combobox.addItem("")
|
||||||
|
self.weight_combobox.addItem("")
|
||||||
|
self.gridLayout_2.addWidget(self.weight_combobox, 6, 1, 1, 1)
|
||||||
|
self.newmodel_button = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
self.newmodel_button.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.newmodel_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.newmodel_button.setSizePolicy(sizePolicy)
|
||||||
|
self.newmodel_button.setObjectName("newmodel_button")
|
||||||
|
self.gridLayout_2.addWidget(self.newmodel_button, 2, 0, 1, 1)
|
||||||
|
self.deletemodel_button = QtWidgets.QPushButton(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
self.deletemodel_button.setEnabled(False)
|
||||||
|
self.deletemodel_button.setObjectName("deletemodel_button")
|
||||||
|
self.gridLayout_2.addWidget(self.deletemodel_button, 2, 1, 1, 1)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.gridLayout_2.addWidget(self.label_3, 6, 0, 1, 1)
|
||||||
|
self.stackedWidget = QtWidgets.QStackedWidget(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.stackedWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.stackedWidget.setObjectName("stackedWidget")
|
||||||
|
self.page = QtWidgets.QWidget()
|
||||||
|
self.page.setObjectName("page")
|
||||||
|
self.stackedWidget.addWidget(self.page)
|
||||||
|
self.gridLayout_2.addWidget(self.stackedWidget, 1, 0, 1, 2)
|
||||||
|
self.functionwidget = QFunctionWidget(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
self.functionwidget.setObjectName("functionwidget")
|
||||||
|
self.gridLayout_2.addWidget(self.functionwidget, 0, 0, 1, 2)
|
||||||
|
self.model_frame = QtWidgets.QFrame(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.model_frame.sizePolicy().hasHeightForWidth())
|
||||||
|
self.model_frame.setSizePolicy(sizePolicy)
|
||||||
|
self.model_frame.setObjectName("model_frame")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.model_frame)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setHorizontalSpacing(0)
|
||||||
|
self.gridLayout.setVerticalSpacing(1)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.show_combobox = QtWidgets.QComboBox(parent=self.model_frame)
|
||||||
|
self.show_combobox.setObjectName("show_combobox")
|
||||||
|
self.show_combobox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.show_combobox, 1, 1, 1, 1)
|
||||||
|
self.default_combobox = QtWidgets.QComboBox(parent=self.model_frame)
|
||||||
|
self.default_combobox.setObjectName("default_combobox")
|
||||||
|
self.default_combobox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.default_combobox, 0, 1, 1, 1)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.model_frame)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.model_frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label.setSizePolicy(sizePolicy)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||||
|
self.gridLayout_2.addWidget(self.model_frame, 3, 0, 1, 2)
|
||||||
|
self.data_widget = ExpandableWidget(parent=self.scrollAreaWidgetContents_2)
|
||||||
|
self.data_widget.setMinimumSize(QtCore.QSize(0, 24))
|
||||||
|
self.data_widget.setObjectName("data_widget")
|
||||||
|
self.gridLayout_2.addWidget(self.data_widget, 5, 0, 1, 2)
|
||||||
|
self.scrollArea.setWidget(self.scrollAreaWidgetContents_2)
|
||||||
|
self.verticalLayout.addWidget(self.scrollArea)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.fit_button = QtWidgets.QPushButton(parent=FitDialog)
|
||||||
|
self.fit_button.setStyleSheet("font-weight: bold")
|
||||||
|
self.fit_button.setObjectName("fit_button")
|
||||||
|
self.horizontalLayout.addWidget(self.fit_button)
|
||||||
|
self.abort_button = QtWidgets.QPushButton(parent=FitDialog)
|
||||||
|
self.abort_button.setStyleSheet("font-weight: bold")
|
||||||
|
self.abort_button.setObjectName("abort_button")
|
||||||
|
self.horizontalLayout.addWidget(self.abort_button)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
|
self.preview_checkbox = QtWidgets.QCheckBox(parent=FitDialog)
|
||||||
|
self.preview_checkbox.setObjectName("preview_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.preview_checkbox)
|
||||||
|
self.preview_button = QtWidgets.QPushButton(parent=FitDialog)
|
||||||
|
self.preview_button.setCheckable(False)
|
||||||
|
self.preview_button.setChecked(False)
|
||||||
|
self.preview_button.setFlat(False)
|
||||||
|
self.preview_button.setObjectName("preview_button")
|
||||||
|
self.horizontalLayout.addWidget(self.preview_button)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
|
|
||||||
|
self.retranslateUi(FitDialog)
|
||||||
|
self.stackedWidget.setCurrentIndex(0)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(FitDialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, FitDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
FitDialog.setWindowTitle(_translate("FitDialog", "Form"))
|
||||||
|
self.weight_combobox.setItemText(0, _translate("FitDialog", "None"))
|
||||||
|
self.weight_combobox.setItemText(1, _translate("FitDialog", "y"))
|
||||||
|
self.weight_combobox.setItemText(2, _translate("FitDialog", "y²"))
|
||||||
|
self.weight_combobox.setItemText(3, _translate("FitDialog", "Δy"))
|
||||||
|
self.weight_combobox.setItemText(4, _translate("FitDialog", "log(y)"))
|
||||||
|
self.newmodel_button.setText(_translate("FitDialog", "New model"))
|
||||||
|
self.deletemodel_button.setText(_translate("FitDialog", "Delete model"))
|
||||||
|
self.label_3.setText(_translate("FitDialog", "Weight"))
|
||||||
|
self.show_combobox.setItemText(0, _translate("FitDialog", "Model a"))
|
||||||
|
self.default_combobox.setItemText(0, _translate("FitDialog", "Model a"))
|
||||||
|
self.label_2.setText(_translate("FitDialog", "Show model"))
|
||||||
|
self.label.setText(_translate("FitDialog", "Default"))
|
||||||
|
self.fit_button.setText(_translate("FitDialog", "Run fit!!!"))
|
||||||
|
self.abort_button.setText(_translate("FitDialog", "Abort"))
|
||||||
|
self.preview_checkbox.setText(_translate("FitDialog", "Preview"))
|
||||||
|
self.preview_button.setText(_translate("FitDialog", "Update"))
|
||||||
|
from ..fit.fitfunction import QFunctionWidget
|
||||||
|
from ..lib.expandablewidget import ExpandableWidget
|
115
src/gui_qt/_py/fitfunctionwidget.py
Normal file
115
src/gui_qt/_py/fitfunctionwidget.py
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fitfunctionwidget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(382, 375)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.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(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.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(parent=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(parent=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(parent=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(parent=self.complex_widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.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(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.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(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.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.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.use_function_button.setAutoRaise(False)
|
||||||
|
self.use_function_button.setArrowType(QtCore.Qt.ArrowType.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(parent=Form)
|
||||||
|
self.operator_combobox.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.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(parent=Form)
|
||||||
|
self.functree.setObjectName("functree")
|
||||||
|
self.functree.headerItem().setText(0, "1")
|
||||||
|
self.gridLayout.addWidget(self.functree, 5, 0, 1, 2)
|
||||||
|
self.fitequation = QtWidgets.QLabel(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.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
|
80
src/gui_qt/_py/fitfuncwidget.py
Normal file
80
src/gui_qt/_py/fitfuncwidget.py
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fitfuncwidget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_FormFit(object):
|
||||||
|
def setupUi(self, FormFit):
|
||||||
|
FormFit.setObjectName("FormFit")
|
||||||
|
FormFit.resize(308, 477)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(FormFit.sizePolicy().hasHeightForWidth())
|
||||||
|
FormFit.setSizePolicy(sizePolicy)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(FormFit)
|
||||||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=FormFit)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.general_tab = QtWidgets.QWidget()
|
||||||
|
self.general_tab.setObjectName("general_tab")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.general_tab)
|
||||||
|
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.scrollArea = QtWidgets.QScrollArea(parent=self.general_tab)
|
||||||
|
self.scrollArea.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.scrollArea.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustToContents)
|
||||||
|
self.scrollArea.setWidgetResizable(True)
|
||||||
|
self.scrollArea.setObjectName("scrollArea")
|
||||||
|
self.scrollwidget = QtWidgets.QWidget()
|
||||||
|
self.scrollwidget.setGeometry(QtCore.QRect(0, 0, 304, 444))
|
||||||
|
self.scrollwidget.setObjectName("scrollwidget")
|
||||||
|
self.scrollArea.setWidget(self.scrollwidget)
|
||||||
|
self.verticalLayout_2.addWidget(self.scrollArea)
|
||||||
|
self.tabWidget.addTab(self.general_tab, "")
|
||||||
|
self.data_tab = QtWidgets.QWidget()
|
||||||
|
self.data_tab.setObjectName("data_tab")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.data_tab)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.comboBox = QtWidgets.QComboBox(parent=self.data_tab)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.comboBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.comboBox.setSizePolicy(sizePolicy)
|
||||||
|
self.comboBox.setMaximumSize(QtCore.QSize(288, 16777215))
|
||||||
|
self.comboBox.setObjectName("comboBox")
|
||||||
|
self.verticalLayout_3.addWidget(self.comboBox)
|
||||||
|
self.scrollArea2 = QtWidgets.QScrollArea(parent=self.data_tab)
|
||||||
|
self.scrollArea2.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.scrollArea2.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.scrollArea2.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustToContents)
|
||||||
|
self.scrollArea2.setWidgetResizable(True)
|
||||||
|
self.scrollArea2.setObjectName("scrollArea2")
|
||||||
|
self.scrollwidget2 = QtWidgets.QWidget()
|
||||||
|
self.scrollwidget2.setGeometry(QtCore.QRect(0, 0, 286, 393))
|
||||||
|
self.scrollwidget2.setObjectName("scrollwidget2")
|
||||||
|
self.scrollArea2.setWidget(self.scrollwidget2)
|
||||||
|
self.verticalLayout_3.addWidget(self.scrollArea2)
|
||||||
|
self.tabWidget.addTab(self.data_tab, "")
|
||||||
|
self.verticalLayout.addWidget(self.tabWidget)
|
||||||
|
|
||||||
|
self.retranslateUi(FormFit)
|
||||||
|
self.tabWidget.setCurrentIndex(0)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(FormFit)
|
||||||
|
|
||||||
|
def retranslateUi(self, FormFit):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
FormFit.setWindowTitle(_translate("FormFit", "Form"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.general_tab), _translate("FormFit", "General settings"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.data_tab), _translate("FormFit", "Data parameter"))
|
133
src/gui_qt/_py/fitmodelwidget.py
Normal file
133
src/gui_qt/_py/fitmodelwidget.py
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fitmodelwidget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_FitParameter(object):
|
||||||
|
def setupUi(self, FitParameter):
|
||||||
|
FitParameter.setObjectName("FitParameter")
|
||||||
|
FitParameter.resize(365, 66)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.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(parent=FitParameter)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.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(parent=FitParameter)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.parameter_line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.parameter_line.setSizePolicy(sizePolicy)
|
||||||
|
self.parameter_line.setMaximumSize(QtCore.QSize(160, 16777215))
|
||||||
|
self.parameter_line.setText("")
|
||||||
|
self.parameter_line.setObjectName("parameter_line")
|
||||||
|
self.horizontalLayout_2.addWidget(self.parameter_line)
|
||||||
|
self.fixed_check = QtWidgets.QCheckBox(parent=FitParameter)
|
||||||
|
self.fixed_check.setObjectName("fixed_check")
|
||||||
|
self.horizontalLayout_2.addWidget(self.fixed_check)
|
||||||
|
self.global_checkbox = QtWidgets.QCheckBox(parent=FitParameter)
|
||||||
|
self.global_checkbox.setObjectName("global_checkbox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.global_checkbox)
|
||||||
|
self.reset_button = QtWidgets.QPushButton(parent=FitParameter)
|
||||||
|
self.reset_button.setObjectName("reset_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.reset_button)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=FitParameter)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
|
||||||
|
self.frame.setSizePolicy(sizePolicy)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.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(parent=self.frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.checkBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.checkBox.setSizePolicy(sizePolicy)
|
||||||
|
self.checkBox.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
|
||||||
|
self.checkBox.setText("")
|
||||||
|
self.checkBox.setObjectName("checkBox")
|
||||||
|
self.horizontalLayout.addWidget(self.checkBox)
|
||||||
|
self.lineEdit = QtWidgets.QLineEdit(parent=self.frame)
|
||||||
|
self.lineEdit.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.lineEdit.setSizePolicy(sizePolicy)
|
||||||
|
self.lineEdit.setMaximumSize(QtCore.QSize(100, 16777215))
|
||||||
|
self.lineEdit.setText("")
|
||||||
|
self.lineEdit.setFrame(True)
|
||||||
|
self.lineEdit.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.lineEdit.setObjectName("lineEdit")
|
||||||
|
self.horizontalLayout.addWidget(self.lineEdit)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.frame)
|
||||||
|
self.label_3.setEnabled(True)
|
||||||
|
self.label_3.setTextFormat(QtCore.Qt.TextFormat.RichText)
|
||||||
|
self.label_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.horizontalLayout.addWidget(self.label_3)
|
||||||
|
self.lineEdit_2 = QtWidgets.QLineEdit(parent=self.frame)
|
||||||
|
self.lineEdit_2.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.lineEdit_2.sizePolicy().hasHeightForWidth())
|
||||||
|
self.lineEdit_2.setSizePolicy(sizePolicy)
|
||||||
|
self.lineEdit_2.setMaximumSize(QtCore.QSize(100, 16777215))
|
||||||
|
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(parent=FitParameter)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.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.reset_button.setText(_translate("FitParameter", "Use 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
|
291
src/gui_qt/_py/fitresult.py
Normal file
291
src/gui_qt/_py/fitresult.py
Normal file
@ -0,0 +1,291 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/fitresult.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(969, 974)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.stack = QtWidgets.QTabWidget(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.stack.sizePolicy().hasHeightForWidth())
|
||||||
|
self.stack.setSizePolicy(sizePolicy)
|
||||||
|
self.stack.setObjectName("stack")
|
||||||
|
self.stackPage1 = QtWidgets.QWidget()
|
||||||
|
self.stackPage1.setObjectName("stackPage1")
|
||||||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.stackPage1)
|
||||||
|
self.gridLayout_3.setContentsMargins(6, 3, 6, 3)
|
||||||
|
self.gridLayout_3.setSpacing(3)
|
||||||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.gridLayout_3.addItem(spacerItem, 2, 3, 1, 1)
|
||||||
|
self.autoscale_box = QtWidgets.QToolButton(parent=self.stackPage1)
|
||||||
|
self.autoscale_box.setObjectName("autoscale_box")
|
||||||
|
self.gridLayout_3.addWidget(self.autoscale_box, 2, 4, 1, 1)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.gridLayout_3.addItem(spacerItem1, 2, 1, 1, 1)
|
||||||
|
self.verticalGroupBox_2 = QtWidgets.QGroupBox(parent=self.stackPage1)
|
||||||
|
self.verticalGroupBox_2.setObjectName("verticalGroupBox_2")
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalGroupBox_2)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.logx_box = QtWidgets.QCheckBox(parent=self.verticalGroupBox_2)
|
||||||
|
self.logx_box.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||||||
|
self.logx_box.setObjectName("logx_box")
|
||||||
|
self.verticalLayout_4.addWidget(self.logx_box)
|
||||||
|
self.logy_box = QtWidgets.QCheckBox(parent=self.verticalGroupBox_2)
|
||||||
|
self.logy_box.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||||||
|
self.logy_box.setObjectName("logy_box")
|
||||||
|
self.verticalLayout_4.addWidget(self.logy_box)
|
||||||
|
self.gridLayout_3.addWidget(self.verticalGroupBox_2, 2, 2, 1, 1)
|
||||||
|
self.verticalGroupBox = QtWidgets.QGroupBox(parent=self.stackPage1)
|
||||||
|
self.verticalGroupBox.setObjectName("verticalGroupBox")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalGroupBox)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.rel_dev_button = QtWidgets.QRadioButton(parent=self.verticalGroupBox)
|
||||||
|
self.rel_dev_button.setObjectName("rel_dev_button")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(Dialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.rel_dev_button)
|
||||||
|
self.verticalLayout.addWidget(self.rel_dev_button)
|
||||||
|
self.abs_dev_button = QtWidgets.QRadioButton(parent=self.verticalGroupBox)
|
||||||
|
self.abs_dev_button.setChecked(True)
|
||||||
|
self.abs_dev_button.setObjectName("abs_dev_button")
|
||||||
|
self.buttonGroup.addButton(self.abs_dev_button)
|
||||||
|
self.verticalLayout.addWidget(self.abs_dev_button)
|
||||||
|
self.gridLayout_3.addWidget(self.verticalGroupBox, 2, 0, 1, 1)
|
||||||
|
self.graphicsView = GraphicsLayoutWidget(parent=self.stackPage1)
|
||||||
|
self.graphicsView.setObjectName("graphicsView")
|
||||||
|
self.gridLayout_3.addWidget(self.graphicsView, 0, 0, 1, 5)
|
||||||
|
self.stack.addTab(self.stackPage1, "")
|
||||||
|
self.stackPage2 = QtWidgets.QWidget()
|
||||||
|
self.stackPage2.setObjectName("stackPage2")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.stackPage2)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.stats_tableWidget = QtWidgets.QTableWidget(parent=self.stackPage2)
|
||||||
|
self.stats_tableWidget.setFrameShape(QtWidgets.QFrame.Shape.Box)
|
||||||
|
self.stats_tableWidget.setGridStyle(QtCore.Qt.PenStyle.NoPen)
|
||||||
|
self.stats_tableWidget.setColumnCount(1)
|
||||||
|
self.stats_tableWidget.setObjectName("stats_tableWidget")
|
||||||
|
self.stats_tableWidget.setRowCount(0)
|
||||||
|
self.stats_tableWidget.horizontalHeader().setVisible(False)
|
||||||
|
self.stats_tableWidget.horizontalHeader().setSortIndicatorShown(True)
|
||||||
|
self.verticalLayout_2.addWidget(self.stats_tableWidget)
|
||||||
|
self.stack.addTab(self.stackPage2, "")
|
||||||
|
self.stackPage3 = QtWidgets.QWidget()
|
||||||
|
self.stackPage3.setObjectName("stackPage3")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.stackPage3)
|
||||||
|
self.verticalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_3.setSpacing(3)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.corr_tableWidget = QtWidgets.QTableWidget(parent=self.stackPage3)
|
||||||
|
self.corr_tableWidget.setFrameShape(QtWidgets.QFrame.Shape.Box)
|
||||||
|
self.corr_tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.corr_tableWidget.setGridStyle(QtCore.Qt.PenStyle.NoPen)
|
||||||
|
self.corr_tableWidget.setObjectName("corr_tableWidget")
|
||||||
|
self.corr_tableWidget.setColumnCount(4)
|
||||||
|
self.corr_tableWidget.setRowCount(0)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.corr_tableWidget.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.corr_tableWidget.setHorizontalHeaderItem(1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.corr_tableWidget.setHorizontalHeaderItem(2, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.corr_tableWidget.setHorizontalHeaderItem(3, item)
|
||||||
|
self.corr_tableWidget.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.corr_tableWidget.verticalHeader().setVisible(False)
|
||||||
|
self.verticalLayout_3.addWidget(self.corr_tableWidget)
|
||||||
|
self.stack.addTab(self.stackPage3, "")
|
||||||
|
self.gridLayout.addWidget(self.stack, 0, 1, 5, 1)
|
||||||
|
self.param_tableWidget = QtWidgets.QTableWidget(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.param_tableWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.param_tableWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.param_tableWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded)
|
||||||
|
self.param_tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.SizeAdjustPolicy.AdjustIgnored)
|
||||||
|
self.param_tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.param_tableWidget.setAlternatingRowColors(True)
|
||||||
|
self.param_tableWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.NoSelection)
|
||||||
|
self.param_tableWidget.setColumnCount(1)
|
||||||
|
self.param_tableWidget.setObjectName("param_tableWidget")
|
||||||
|
self.param_tableWidget.setRowCount(0)
|
||||||
|
self.param_tableWidget.horizontalHeader().setVisible(False)
|
||||||
|
self.param_tableWidget.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.gridLayout.addWidget(self.param_tableWidget, 1, 0, 1, 1)
|
||||||
|
self.del_prev_checkBox = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.del_prev_checkBox.setObjectName("del_prev_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.del_prev_checkBox, 3, 0, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=Dialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 5, 0, 1, 2)
|
||||||
|
self.sets_comboBox = ElideComboBox(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.sets_comboBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.sets_comboBox.setSizePolicy(sizePolicy)
|
||||||
|
self.sets_comboBox.setMaximumSize(QtCore.QSize(400, 16777215))
|
||||||
|
self.sets_comboBox.setBaseSize(QtCore.QSize(200, 0))
|
||||||
|
self.sets_comboBox.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLength)
|
||||||
|
self.sets_comboBox.setObjectName("sets_comboBox")
|
||||||
|
self.gridLayout.addWidget(self.sets_comboBox, 0, 0, 1, 1)
|
||||||
|
self.reject_fit_checkBox = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.reject_fit_checkBox.setObjectName("reject_fit_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.reject_fit_checkBox, 2, 0, 1, 1)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=Dialog)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
|
||||||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_2.setSpacing(3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.graph_comboBox = QtWidgets.QComboBox(parent=self.groupBox)
|
||||||
|
self.graph_comboBox.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.graph_comboBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.graph_comboBox.setSizePolicy(sizePolicy)
|
||||||
|
self.graph_comboBox.setObjectName("graph_comboBox")
|
||||||
|
self.gridLayout_2.addWidget(self.graph_comboBox, 1, 7, 1, 1)
|
||||||
|
self.minx_line = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
self.minx_line.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.minx_line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.minx_line.setSizePolicy(sizePolicy)
|
||||||
|
self.minx_line.setObjectName("minx_line")
|
||||||
|
self.gridLayout_2.addWidget(self.minx_line, 1, 1, 1, 1)
|
||||||
|
self.extrapolate_box = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.extrapolate_box.setObjectName("extrapolate_box")
|
||||||
|
self.gridLayout_2.addWidget(self.extrapolate_box, 1, 0, 1, 1)
|
||||||
|
self.numx_line = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
self.numx_line.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.numx_line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.numx_line.setSizePolicy(sizePolicy)
|
||||||
|
self.numx_line.setObjectName("numx_line")
|
||||||
|
self.gridLayout_2.addWidget(self.numx_line, 1, 3, 1, 1)
|
||||||
|
self.graph_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.graph_checkBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.graph_checkBox.setSizePolicy(sizePolicy)
|
||||||
|
self.graph_checkBox.setChecked(True)
|
||||||
|
self.graph_checkBox.setObjectName("graph_checkBox")
|
||||||
|
self.gridLayout_2.addWidget(self.graph_checkBox, 1, 6, 1, 1)
|
||||||
|
self.maxx_line = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
self.maxx_line.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.maxx_line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.maxx_line.setSizePolicy(sizePolicy)
|
||||||
|
self.maxx_line.setObjectName("maxx_line")
|
||||||
|
self.gridLayout_2.addWidget(self.maxx_line, 1, 2, 1, 1)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=self.groupBox)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.VLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.gridLayout_2.addWidget(self.line_2, 0, 5, 2, 1)
|
||||||
|
self.newx_log_checkbox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
self.newx_log_checkbox.setEnabled(False)
|
||||||
|
self.newx_log_checkbox.setObjectName("newx_log_checkbox")
|
||||||
|
self.gridLayout_2.addWidget(self.newx_log_checkbox, 1, 4, 1, 1)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.curve_checkbox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.curve_checkbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.curve_checkbox.setSizePolicy(sizePolicy)
|
||||||
|
self.curve_checkbox.setChecked(True)
|
||||||
|
self.curve_checkbox.setObjectName("curve_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.curve_checkbox)
|
||||||
|
self.partial_checkBox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.partial_checkBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.partial_checkBox.setSizePolicy(sizePolicy)
|
||||||
|
self.partial_checkBox.setObjectName("partial_checkBox")
|
||||||
|
self.horizontalLayout.addWidget(self.partial_checkBox)
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 5)
|
||||||
|
self.parameter_checkbox = QtWidgets.QCheckBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.parameter_checkbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.parameter_checkbox.setSizePolicy(sizePolicy)
|
||||||
|
self.parameter_checkbox.setObjectName("parameter_checkbox")
|
||||||
|
self.gridLayout_2.addWidget(self.parameter_checkbox, 0, 6, 1, 2)
|
||||||
|
self.gridLayout.addWidget(self.groupBox, 7, 0, 1, 2)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok|QtWidgets.QDialogButtonBox.StandardButton.Retry)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 8, 0, 1, 2)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.stack.setCurrentIndex(0)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Fit results"))
|
||||||
|
self.autoscale_box.setToolTip(_translate("Dialog", "Auto-scale graph for all sets"))
|
||||||
|
self.autoscale_box.setText(_translate("Dialog", "Autoscale all sets"))
|
||||||
|
self.verticalGroupBox_2.setTitle(_translate("Dialog", "Logarithmic axes"))
|
||||||
|
self.logx_box.setText(_translate("Dialog", "x axis"))
|
||||||
|
self.logy_box.setText(_translate("Dialog", "y axis"))
|
||||||
|
self.verticalGroupBox.setTitle(_translate("Dialog", "Residuals"))
|
||||||
|
self.rel_dev_button.setText(_translate("Dialog", "relative deviation"))
|
||||||
|
self.abs_dev_button.setText(_translate("Dialog", "absolute deviation"))
|
||||||
|
self.stack.setTabText(self.stack.indexOf(self.stackPage1), _translate("Dialog", "Plot"))
|
||||||
|
self.stack.setTabText(self.stack.indexOf(self.stackPage2), _translate("Dialog", "Statistics"))
|
||||||
|
item = self.corr_tableWidget.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("Dialog", "Parameter 1"))
|
||||||
|
item = self.corr_tableWidget.horizontalHeaderItem(1)
|
||||||
|
item.setText(_translate("Dialog", "Parameter 2"))
|
||||||
|
item = self.corr_tableWidget.horizontalHeaderItem(2)
|
||||||
|
item.setText(_translate("Dialog", "Corr."))
|
||||||
|
item = self.corr_tableWidget.horizontalHeaderItem(3)
|
||||||
|
item.setText(_translate("Dialog", "Partial Corr."))
|
||||||
|
self.stack.setTabText(self.stack.indexOf(self.stackPage3), _translate("Dialog", "Correlations"))
|
||||||
|
self.del_prev_checkBox.setText(_translate("Dialog", "Delete previous fits of this set"))
|
||||||
|
self.reject_fit_checkBox.setText(_translate("Dialog", "Reject this fit"))
|
||||||
|
self.groupBox.setTitle(_translate("Dialog", "Output"))
|
||||||
|
self.minx_line.setToolTip(_translate("Dialog", "Leave empty to start at lowest point"))
|
||||||
|
self.minx_line.setPlaceholderText(_translate("Dialog", "min x"))
|
||||||
|
self.extrapolate_box.setToolTip(_translate("Dialog", "Extrapolates only main function"))
|
||||||
|
self.extrapolate_box.setText(_translate("Dialog", "Extrapolate curves"))
|
||||||
|
self.numx_line.setPlaceholderText(_translate("Dialog", "# pts"))
|
||||||
|
self.graph_checkBox.setText(_translate("Dialog", "New graph for parameter"))
|
||||||
|
self.maxx_line.setToolTip(_translate("Dialog", "Leave empty to start at highest point"))
|
||||||
|
self.maxx_line.setPlaceholderText(_translate("Dialog", "max x"))
|
||||||
|
self.newx_log_checkbox.setText(_translate("Dialog", "log-spaced?"))
|
||||||
|
self.curve_checkbox.setText(_translate("Dialog", "Plot fit curve"))
|
||||||
|
self.partial_checkBox.setText(_translate("Dialog", "Plot partial functions"))
|
||||||
|
self.parameter_checkbox.setText(_translate("Dialog", "Plot parameter"))
|
||||||
|
from ..lib.forms import ElideComboBox
|
||||||
|
from pyqtgraph import GraphicsLayoutWidget
|
275
src/gui_qt/_py/gol.py
Normal file
275
src/gui_qt/_py/gol.py
Normal file
@ -0,0 +1,275 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/gol.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(883, 732)
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(Form)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.widget = QtWidgets.QWidget(parent=Form)
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget)
|
||||||
|
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.vanish_shadow = QtWidgets.QRadioButton(parent=self.widget)
|
||||||
|
self.vanish_shadow.setChecked(True)
|
||||||
|
self.vanish_shadow.setObjectName("vanish_shadow")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(Form)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.vanish_shadow)
|
||||||
|
self.verticalLayout_3.addWidget(self.vanish_shadow)
|
||||||
|
self.full_shadow = QtWidgets.QRadioButton(parent=self.widget)
|
||||||
|
self.full_shadow.setObjectName("full_shadow")
|
||||||
|
self.buttonGroup.addButton(self.full_shadow)
|
||||||
|
self.verticalLayout_3.addWidget(self.full_shadow)
|
||||||
|
self.radioButton = QtWidgets.QRadioButton(parent=self.widget)
|
||||||
|
self.radioButton.setObjectName("radioButton")
|
||||||
|
self.buttonGroup.addButton(self.radioButton)
|
||||||
|
self.verticalLayout_3.addWidget(self.radioButton)
|
||||||
|
self.line = QtWidgets.QFrame(parent=self.widget)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.verticalLayout_3.addWidget(self.line)
|
||||||
|
self.faster_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.faster_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.faster_button.setSizePolicy(sizePolicy)
|
||||||
|
self.faster_button.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.faster_button.setArrowType(QtCore.Qt.ArrowType.RightArrow)
|
||||||
|
self.faster_button.setObjectName("faster_button")
|
||||||
|
self.verticalLayout_3.addWidget(self.faster_button)
|
||||||
|
self.velocity_label = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.velocity_label.setObjectName("velocity_label")
|
||||||
|
self.verticalLayout_3.addWidget(self.velocity_label)
|
||||||
|
self.slower_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.slower_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.slower_button.setSizePolicy(sizePolicy)
|
||||||
|
self.slower_button.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.slower_button.setArrowType(QtCore.Qt.ArrowType.LeftArrow)
|
||||||
|
self.slower_button.setObjectName("slower_button")
|
||||||
|
self.verticalLayout_3.addWidget(self.slower_button)
|
||||||
|
self.current_step = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.current_step.sizePolicy().hasHeightForWidth())
|
||||||
|
self.current_step.setSizePolicy(sizePolicy)
|
||||||
|
self.current_step.setObjectName("current_step")
|
||||||
|
self.verticalLayout_3.addWidget(self.current_step)
|
||||||
|
self.pause_button = QtWidgets.QPushButton(parent=self.widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Ignored, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.pause_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.pause_button.setSizePolicy(sizePolicy)
|
||||||
|
self.pause_button.setCheckable(True)
|
||||||
|
self.pause_button.setObjectName("pause_button")
|
||||||
|
self.verticalLayout_3.addWidget(self.pause_button)
|
||||||
|
self.line_3 = QtWidgets.QFrame(parent=self.widget)
|
||||||
|
self.line_3.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_3.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_3.setObjectName("line_3")
|
||||||
|
self.verticalLayout_3.addWidget(self.line_3)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.verticalLayout_3.addWidget(self.label_6)
|
||||||
|
self.cover_label = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.cover_label.setText("")
|
||||||
|
self.cover_label.setObjectName("cover_label")
|
||||||
|
self.verticalLayout_3.addWidget(self.cover_label)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_3.addItem(spacerItem)
|
||||||
|
self.gridLayout_2.addWidget(self.widget, 0, 0, 1, 1)
|
||||||
|
self.view = QtWidgets.QGraphicsView(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.view.sizePolicy().hasHeightForWidth())
|
||||||
|
self.view.setSizePolicy(sizePolicy)
|
||||||
|
self.view.setStyleSheet("background-color: transparent")
|
||||||
|
self.view.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.view.setObjectName("view")
|
||||||
|
self.gridLayout_2.addWidget(self.view, 0, 1, 1, 1)
|
||||||
|
self.option_frame = QtWidgets.QFrame(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.option_frame.sizePolicy().hasHeightForWidth())
|
||||||
|
self.option_frame.setSizePolicy(sizePolicy)
|
||||||
|
self.option_frame.setFrameShape(QtWidgets.QFrame.Shape.Box)
|
||||||
|
self.option_frame.setObjectName("option_frame")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.option_frame)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setHorizontalSpacing(6)
|
||||||
|
self.gridLayout.setVerticalSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.rule_label = QtWidgets.QLabel(parent=self.option_frame)
|
||||||
|
self.rule_label.setObjectName("rule_label")
|
||||||
|
self.horizontalLayout_2.addWidget(self.rule_label)
|
||||||
|
self.rule_cb = QtWidgets.QComboBox(parent=self.option_frame)
|
||||||
|
self.rule_cb.setObjectName("rule_cb")
|
||||||
|
self.horizontalLayout_2.addWidget(self.rule_cb)
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout_2, 3, 0, 1, 1)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=self.option_frame)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.gridLayout.addWidget(self.line_2, 2, 0, 1, 1)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_2.setContentsMargins(-1, 0, -1, 0)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.object_widget = QtWidgets.QWidget(parent=self.option_frame)
|
||||||
|
self.object_widget.setObjectName("object_widget")
|
||||||
|
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.object_widget)
|
||||||
|
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_6.setSpacing(3)
|
||||||
|
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.object_widget)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.horizontalLayout_6.addWidget(self.label_5)
|
||||||
|
self.object_size = QtWidgets.QSpinBox(parent=self.object_widget)
|
||||||
|
self.object_size.setMinimum(1)
|
||||||
|
self.object_size.setMaximum(600)
|
||||||
|
self.object_size.setObjectName("object_size")
|
||||||
|
self.horizontalLayout_6.addWidget(self.object_size)
|
||||||
|
self.verticalLayout_2.addWidget(self.object_widget)
|
||||||
|
self.rand_button_wdgt = QtWidgets.QWidget(parent=self.option_frame)
|
||||||
|
self.rand_button_wdgt.setObjectName("rand_button_wdgt")
|
||||||
|
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.rand_button_wdgt)
|
||||||
|
self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_7.setSpacing(3)
|
||||||
|
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
|
||||||
|
self.add_random_button = QtWidgets.QPushButton(parent=self.rand_button_wdgt)
|
||||||
|
self.add_random_button.setObjectName("add_random_button")
|
||||||
|
self.horizontalLayout_7.addWidget(self.add_random_button)
|
||||||
|
self.remove_random_button = QtWidgets.QPushButton(parent=self.rand_button_wdgt)
|
||||||
|
self.remove_random_button.setObjectName("remove_random_button")
|
||||||
|
self.horizontalLayout_7.addWidget(self.remove_random_button)
|
||||||
|
self.verticalLayout_2.addWidget(self.rand_button_wdgt)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.verticalLayout_2.addLayout(self.verticalLayout)
|
||||||
|
self.gridLayout.addLayout(self.verticalLayout_2, 2, 1, 4, 1)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.option_frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
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.horizontalLayout.addWidget(self.label_3)
|
||||||
|
self.survival_line = QtWidgets.QLineEdit(parent=self.option_frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.survival_line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.survival_line.setSizePolicy(sizePolicy)
|
||||||
|
self.survival_line.setObjectName("survival_line")
|
||||||
|
self.horizontalLayout.addWidget(self.survival_line)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.option_frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_4.setSizePolicy(sizePolicy)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.horizontalLayout.addWidget(self.label_4)
|
||||||
|
self.birth_line = QtWidgets.QLineEdit(parent=self.option_frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.birth_line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.birth_line.setSizePolicy(sizePolicy)
|
||||||
|
self.birth_line.setObjectName("birth_line")
|
||||||
|
self.horizontalLayout.addWidget(self.birth_line)
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout, 4, 0, 1, 1)
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.option_frame)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label)
|
||||||
|
self.width_box = QtWidgets.QSpinBox(parent=self.option_frame)
|
||||||
|
self.width_box.setMaximum(600)
|
||||||
|
self.width_box.setProperty("value", 100)
|
||||||
|
self.width_box.setObjectName("width_box")
|
||||||
|
self.horizontalLayout_3.addWidget(self.width_box)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.option_frame)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_2)
|
||||||
|
self.height_box = QtWidgets.QSpinBox(parent=self.option_frame)
|
||||||
|
self.height_box.setMaximum(600)
|
||||||
|
self.height_box.setProperty("value", 100)
|
||||||
|
self.height_box.setObjectName("height_box")
|
||||||
|
self.horizontalLayout_3.addWidget(self.height_box)
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
|
||||||
|
self.object_combobox = QtWidgets.QComboBox(parent=self.option_frame)
|
||||||
|
self.object_combobox.setObjectName("object_combobox")
|
||||||
|
self.object_combobox.addItem("")
|
||||||
|
self.object_combobox.addItem("")
|
||||||
|
self.object_combobox.addItem("")
|
||||||
|
self.object_combobox.addItem("")
|
||||||
|
self.object_combobox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.object_combobox, 1, 1, 1, 1)
|
||||||
|
self.start_button = QtWidgets.QPushButton(parent=self.option_frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Ignored, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.start_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.start_button.setSizePolicy(sizePolicy)
|
||||||
|
self.start_button.setObjectName("start_button")
|
||||||
|
self.gridLayout.addWidget(self.start_button, 0, 0, 1, 2)
|
||||||
|
self.gridLayout_2.addWidget(self.option_frame, 1, 1, 1, 1)
|
||||||
|
self.hide_button = QtWidgets.QCheckBox(parent=Form)
|
||||||
|
self.hide_button.setObjectName("hide_button")
|
||||||
|
self.gridLayout_2.addWidget(self.hide_button, 1, 0, 1, 1)
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Form.setWindowTitle(_translate("Form", "Game Of Life"))
|
||||||
|
self.vanish_shadow.setText(_translate("Form", "Motion blur"))
|
||||||
|
self.full_shadow.setText(_translate("Form", "Scorched earth"))
|
||||||
|
self.radioButton.setText(_translate("Form", "Nothing"))
|
||||||
|
self.faster_button.setText(_translate("Form", "Faster"))
|
||||||
|
self.velocity_label.setText(_translate("Form", "10 steps / s"))
|
||||||
|
self.slower_button.setText(_translate("Form", "Slower"))
|
||||||
|
self.current_step.setText(_translate("Form", "0 step"))
|
||||||
|
self.pause_button.setText(_translate("Form", "Pause"))
|
||||||
|
self.label_6.setText(_translate("Form", "Coverage:"))
|
||||||
|
self.rule_label.setText(_translate("Form", "Rule"))
|
||||||
|
self.label_5.setText(_translate("Form", "Size"))
|
||||||
|
self.add_random_button.setText(_translate("Form", "Add Random"))
|
||||||
|
self.remove_random_button.setText(_translate("Form", "Remove Random"))
|
||||||
|
self.label_3.setText(_translate("Form", "Survival"))
|
||||||
|
self.label_4.setText(_translate("Form", " Birth"))
|
||||||
|
self.label.setText(_translate("Form", "Width"))
|
||||||
|
self.label_2.setText(_translate("Form", "Height"))
|
||||||
|
self.object_combobox.setItemText(0, _translate("Form", "Random"))
|
||||||
|
self.object_combobox.setItemText(1, _translate("Form", "Circle"))
|
||||||
|
self.object_combobox.setItemText(2, _translate("Form", "Square"))
|
||||||
|
self.object_combobox.setItemText(3, _translate("Form", "Diamond"))
|
||||||
|
self.object_combobox.setItemText(4, _translate("Form", "Plus"))
|
||||||
|
self.start_button.setText(_translate("Form", "Start"))
|
||||||
|
self.hide_button.setText(_translate("Form", "Hide options"))
|
91
src/gui_qt/_py/gracereader.py
Normal file
91
src/gui_qt/_py/gracereader.py
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/gracereader.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(400, 613)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.verticalLayout.addWidget(self.label)
|
||||||
|
self.treeWidget = QtWidgets.QTreeWidget(parent=Dialog)
|
||||||
|
self.treeWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||||
|
self.treeWidget.setObjectName("treeWidget")
|
||||||
|
self.treeWidget.headerItem().setText(0, "1")
|
||||||
|
self.treeWidget.header().setVisible(False)
|
||||||
|
self.verticalLayout.addWidget(self.treeWidget)
|
||||||
|
self.tableWidget = QtWidgets.QTableWidget(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.tableWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.tableWidget.setGridStyle(QtCore.Qt.PenStyle.NoPen)
|
||||||
|
self.tableWidget.setRowCount(4)
|
||||||
|
self.tableWidget.setColumnCount(2)
|
||||||
|
self.tableWidget.setObjectName("tableWidget")
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(0, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(0, 1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(1, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(1, 1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(2, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(2, 1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsSelectable|QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(3, 0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
item.setFlags(QtCore.Qt.ItemFlag.ItemIsEnabled)
|
||||||
|
self.tableWidget.setItem(3, 1, item)
|
||||||
|
self.tableWidget.horizontalHeader().setVisible(False)
|
||||||
|
self.tableWidget.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.tableWidget.verticalHeader().setVisible(False)
|
||||||
|
self.verticalLayout.addWidget(self.tableWidget)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Load data from agr"))
|
||||||
|
self.label.setText(_translate("Dialog", "Only data will be loaded, no line and symbol properties!"))
|
||||||
|
__sortingEnabled = self.tableWidget.isSortingEnabled()
|
||||||
|
self.tableWidget.setSortingEnabled(False)
|
||||||
|
item = self.tableWidget.item(0, 0)
|
||||||
|
item.setText(_translate("Dialog", "Symbol"))
|
||||||
|
item = self.tableWidget.item(1, 0)
|
||||||
|
item.setText(_translate("Dialog", "Symbol color"))
|
||||||
|
item = self.tableWidget.item(2, 0)
|
||||||
|
item.setText(_translate("Dialog", "Linestyle"))
|
||||||
|
item = self.tableWidget.item(3, 0)
|
||||||
|
item.setText(_translate("Dialog", "Line color"))
|
||||||
|
self.tableWidget.setSortingEnabled(__sortingEnabled)
|
279
src/gui_qt/_py/graph.py
Normal file
279
src/gui_qt/_py/graph.py
Normal file
@ -0,0 +1,279 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/graph.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_GraphWindow(object):
|
||||||
|
def setupUi(self, GraphWindow):
|
||||||
|
GraphWindow.setObjectName("GraphWindow")
|
||||||
|
GraphWindow.resize(680, 520)
|
||||||
|
GraphWindow.setBaseSize(QtCore.QSize(300, 10))
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(GraphWindow)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.widget = QtWidgets.QWidget(parent=GraphWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.widget.setSizePolicy(sizePolicy)
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setSpacing(1)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.logx_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.logx_button.setIconSize(QtCore.QSize(16, 16))
|
||||||
|
self.logx_button.setCheckable(True)
|
||||||
|
self.logx_button.setAutoRaise(True)
|
||||||
|
self.logx_button.setObjectName("logx_button")
|
||||||
|
self.horizontalLayout.addWidget(self.logx_button)
|
||||||
|
self.logy_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.logy_button.setIconSize(QtCore.QSize(16, 16))
|
||||||
|
self.logy_button.setCheckable(True)
|
||||||
|
self.logy_button.setAutoRaise(True)
|
||||||
|
self.logy_button.setObjectName("logy_button")
|
||||||
|
self.horizontalLayout.addWidget(self.logy_button)
|
||||||
|
self.line = QtWidgets.QFrame(parent=self.widget)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.VLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.horizontalLayout.addWidget(self.line)
|
||||||
|
self.gridbutton = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.gridbutton.setCheckable(True)
|
||||||
|
self.gridbutton.setAutoRaise(True)
|
||||||
|
self.gridbutton.setObjectName("gridbutton")
|
||||||
|
self.horizontalLayout.addWidget(self.gridbutton)
|
||||||
|
self.bwbutton = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.bwbutton.setCheckable(True)
|
||||||
|
self.bwbutton.setAutoRaise(True)
|
||||||
|
self.bwbutton.setObjectName("bwbutton")
|
||||||
|
self.horizontalLayout.addWidget(self.bwbutton)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=self.widget)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.VLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.horizontalLayout.addWidget(self.line_2)
|
||||||
|
self.legend_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.legend_button.setIconSize(QtCore.QSize(16, 16))
|
||||||
|
self.legend_button.setCheckable(True)
|
||||||
|
self.legend_button.setAutoRaise(True)
|
||||||
|
self.legend_button.setObjectName("legend_button")
|
||||||
|
self.horizontalLayout.addWidget(self.legend_button)
|
||||||
|
self.imag_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.imag_button.setIconSize(QtCore.QSize(16, 16))
|
||||||
|
self.imag_button.setCheckable(True)
|
||||||
|
self.imag_button.setChecked(True)
|
||||||
|
self.imag_button.setAutoRaise(True)
|
||||||
|
self.imag_button.setObjectName("imag_button")
|
||||||
|
self.horizontalLayout.addWidget(self.imag_button)
|
||||||
|
self.real_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.real_button.setIconSize(QtCore.QSize(16, 16))
|
||||||
|
self.real_button.setCheckable(True)
|
||||||
|
self.real_button.setChecked(True)
|
||||||
|
self.real_button.setAutoRaise(True)
|
||||||
|
self.real_button.setObjectName("real_button")
|
||||||
|
self.horizontalLayout.addWidget(self.real_button)
|
||||||
|
self.error_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.error_button.setIconSize(QtCore.QSize(16, 16))
|
||||||
|
self.error_button.setCheckable(True)
|
||||||
|
self.error_button.setAutoRaise(True)
|
||||||
|
self.error_button.setObjectName("error_button")
|
||||||
|
self.horizontalLayout.addWidget(self.error_button)
|
||||||
|
self.line_3 = QtWidgets.QFrame(parent=self.widget)
|
||||||
|
self.line_3.setFrameShape(QtWidgets.QFrame.Shape.VLine)
|
||||||
|
self.line_3.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_3.setObjectName("line_3")
|
||||||
|
self.horizontalLayout.addWidget(self.line_3)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
|
self.limit_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.limit_button.setCheckable(True)
|
||||||
|
self.limit_button.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.limit_button.setAutoRaise(True)
|
||||||
|
self.limit_button.setArrowType(QtCore.Qt.ArrowType.RightArrow)
|
||||||
|
self.limit_button.setObjectName("limit_button")
|
||||||
|
self.horizontalLayout.addWidget(self.limit_button)
|
||||||
|
self.label_button = QtWidgets.QToolButton(parent=self.widget)
|
||||||
|
self.label_button.setCheckable(True)
|
||||||
|
self.label_button.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.label_button.setAutoRaise(True)
|
||||||
|
self.label_button.setArrowType(QtCore.Qt.ArrowType.RightArrow)
|
||||||
|
self.label_button.setObjectName("label_button")
|
||||||
|
self.horizontalLayout.addWidget(self.label_button)
|
||||||
|
self.verticalLayout.addWidget(self.widget)
|
||||||
|
self.line_4 = QtWidgets.QFrame(parent=GraphWindow)
|
||||||
|
self.line_4.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_4.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_4.setObjectName("line_4")
|
||||||
|
self.verticalLayout.addWidget(self.line_4)
|
||||||
|
self.limit_widget = QtWidgets.QWidget(parent=GraphWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.limit_widget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.limit_widget.setSizePolicy(sizePolicy)
|
||||||
|
self.limit_widget.setObjectName("limit_widget")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.limit_widget)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(1, 1, 1, 1)
|
||||||
|
self.horizontalLayout_2.setSpacing(2)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.limit_widget)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label)
|
||||||
|
self.xmin_lineedit = QtWidgets.QLineEdit(parent=self.limit_widget)
|
||||||
|
self.xmin_lineedit.setObjectName("xmin_lineedit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.xmin_lineedit)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.limit_widget)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_2)
|
||||||
|
self.xmax_lineedit = QtWidgets.QLineEdit(parent=self.limit_widget)
|
||||||
|
self.xmax_lineedit.setObjectName("xmax_lineedit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.xmax_lineedit)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_2.addItem(spacerItem1)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.limit_widget)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_3)
|
||||||
|
self.ymin_lineedit = QtWidgets.QLineEdit(parent=self.limit_widget)
|
||||||
|
self.ymin_lineedit.setObjectName("ymin_lineedit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.ymin_lineedit)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.limit_widget)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_4)
|
||||||
|
self.ymax_lineedit = QtWidgets.QLineEdit(parent=self.limit_widget)
|
||||||
|
self.ymax_lineedit.setObjectName("ymax_lineedit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.ymax_lineedit)
|
||||||
|
self.apply_button = QtWidgets.QPushButton(parent=self.limit_widget)
|
||||||
|
icon = QtGui.QIcon.fromTheme("dialog-ok")
|
||||||
|
self.apply_button.setIcon(icon)
|
||||||
|
self.apply_button.setObjectName("apply_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.apply_button)
|
||||||
|
self.verticalLayout.addWidget(self.limit_widget)
|
||||||
|
self.label_widget = QtWidgets.QWidget(parent=GraphWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_widget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_widget.setSizePolicy(sizePolicy)
|
||||||
|
self.label_widget.setObjectName("label_widget")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.label_widget)
|
||||||
|
self.horizontalLayout_3.setContentsMargins(1, 1, 1, 1)
|
||||||
|
self.horizontalLayout_3.setSpacing(2)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.label_widget)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_5)
|
||||||
|
self.title_lineedit = QtWidgets.QLineEdit(parent=self.label_widget)
|
||||||
|
self.title_lineedit.setObjectName("title_lineedit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.title_lineedit)
|
||||||
|
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_3.addItem(spacerItem2)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.label_widget)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_6)
|
||||||
|
self.xaxis_linedit = QtWidgets.QLineEdit(parent=self.label_widget)
|
||||||
|
self.xaxis_linedit.setObjectName("xaxis_linedit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.xaxis_linedit)
|
||||||
|
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_3.addItem(spacerItem3)
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.label_widget)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_7)
|
||||||
|
self.yaxis_linedit = QtWidgets.QLineEdit(parent=self.label_widget)
|
||||||
|
self.yaxis_linedit.setObjectName("yaxis_linedit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.yaxis_linedit)
|
||||||
|
self.verticalLayout.addWidget(self.label_widget)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout()
|
||||||
|
self.gridLayout.setHorizontalSpacing(3)
|
||||||
|
self.gridLayout.setVerticalSpacing(0)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.listWidget = QListWidgetSelect(parent=GraphWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.gridLayout.addWidget(self.listWidget, 1, 1, 1, 1)
|
||||||
|
self.checkBox = QtWidgets.QCheckBox(parent=GraphWindow)
|
||||||
|
self.checkBox.setChecked(True)
|
||||||
|
self.checkBox.setObjectName("checkBox")
|
||||||
|
self.gridLayout.addWidget(self.checkBox, 0, 1, 1, 1)
|
||||||
|
self.graphic = NMRPlotWidget(parent=GraphWindow)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.graphic.sizePolicy().hasHeightForWidth())
|
||||||
|
self.graphic.setSizePolicy(sizePolicy)
|
||||||
|
self.graphic.setObjectName("graphic")
|
||||||
|
self.gridLayout.addWidget(self.graphic, 0, 0, 2, 1)
|
||||||
|
self.verticalLayout.addLayout(self.gridLayout)
|
||||||
|
self.label.setBuddy(self.xmin_lineedit)
|
||||||
|
self.label_2.setBuddy(self.xmax_lineedit)
|
||||||
|
self.label_3.setBuddy(self.ymin_lineedit)
|
||||||
|
self.label_4.setBuddy(self.ymax_lineedit)
|
||||||
|
self.label_5.setBuddy(self.title_lineedit)
|
||||||
|
self.label_6.setBuddy(self.xaxis_linedit)
|
||||||
|
self.label_7.setBuddy(self.yaxis_linedit)
|
||||||
|
|
||||||
|
self.retranslateUi(GraphWindow)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(GraphWindow)
|
||||||
|
GraphWindow.setTabOrder(self.logx_button, self.logy_button)
|
||||||
|
GraphWindow.setTabOrder(self.logy_button, self.gridbutton)
|
||||||
|
GraphWindow.setTabOrder(self.gridbutton, self.legend_button)
|
||||||
|
GraphWindow.setTabOrder(self.legend_button, self.imag_button)
|
||||||
|
GraphWindow.setTabOrder(self.imag_button, self.error_button)
|
||||||
|
GraphWindow.setTabOrder(self.error_button, self.limit_button)
|
||||||
|
GraphWindow.setTabOrder(self.limit_button, self.label_button)
|
||||||
|
GraphWindow.setTabOrder(self.label_button, self.xmin_lineedit)
|
||||||
|
GraphWindow.setTabOrder(self.xmin_lineedit, self.xmax_lineedit)
|
||||||
|
GraphWindow.setTabOrder(self.xmax_lineedit, self.ymin_lineedit)
|
||||||
|
GraphWindow.setTabOrder(self.ymin_lineedit, self.ymax_lineedit)
|
||||||
|
GraphWindow.setTabOrder(self.ymax_lineedit, self.title_lineedit)
|
||||||
|
GraphWindow.setTabOrder(self.title_lineedit, self.xaxis_linedit)
|
||||||
|
GraphWindow.setTabOrder(self.xaxis_linedit, self.yaxis_linedit)
|
||||||
|
|
||||||
|
def retranslateUi(self, GraphWindow):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
GraphWindow.setWindowTitle(_translate("GraphWindow", "Form"))
|
||||||
|
self.logx_button.setToolTip(_translate("GraphWindow", "Change x axis linear <-> logarithmic"))
|
||||||
|
self.logx_button.setText(_translate("GraphWindow", "Log X"))
|
||||||
|
self.logy_button.setToolTip(_translate("GraphWindow", "Change y axis linear <-> logarithmic"))
|
||||||
|
self.logy_button.setText(_translate("GraphWindow", "Log Y"))
|
||||||
|
self.gridbutton.setToolTip(_translate("GraphWindow", "Show/hide grid"))
|
||||||
|
self.gridbutton.setText(_translate("GraphWindow", "Grid"))
|
||||||
|
self.bwbutton.setToolTip(_translate("GraphWindow", "Change background"))
|
||||||
|
self.bwbutton.setText(_translate("GraphWindow", "Black/white"))
|
||||||
|
self.legend_button.setToolTip(_translate("GraphWindow", "Change legend"))
|
||||||
|
self.legend_button.setText(_translate("GraphWindow", "Legend"))
|
||||||
|
self.imag_button.setToolTip(_translate("GraphWindow", "Show/hide imaginary part"))
|
||||||
|
self.imag_button.setText(_translate("GraphWindow", "Imaginary"))
|
||||||
|
self.real_button.setToolTip(_translate("GraphWindow", "Show/hide real part"))
|
||||||
|
self.real_button.setText(_translate("GraphWindow", "Real"))
|
||||||
|
self.error_button.setToolTip(_translate("GraphWindow", "Show/hide errorbars"))
|
||||||
|
self.error_button.setText(_translate("GraphWindow", "Errorbars"))
|
||||||
|
self.limit_button.setText(_translate("GraphWindow", "Limits"))
|
||||||
|
self.label_button.setText(_translate("GraphWindow", "Labels"))
|
||||||
|
self.label.setText(_translate("GraphWindow", "X: "))
|
||||||
|
self.label_2.setText(_translate("GraphWindow", "---"))
|
||||||
|
self.label_3.setText(_translate("GraphWindow", "Y: "))
|
||||||
|
self.label_4.setText(_translate("GraphWindow", "---"))
|
||||||
|
self.apply_button.setText(_translate("GraphWindow", "Apply"))
|
||||||
|
self.label_5.setText(_translate("GraphWindow", "Title"))
|
||||||
|
self.title_lineedit.setToolTip(_translate("GraphWindow", "<html><head/><body><p>Uses simple latex syntax, does not support italic/math environment. Sub-/superscripts need curly brackets.<br/></p><p>Example: \\alpha^{123}</p></body></html>"))
|
||||||
|
self.label_6.setText(_translate("GraphWindow", "X Axis"))
|
||||||
|
self.xaxis_linedit.setToolTip(_translate("GraphWindow", "<html><head/><body><p>Uses simple latex syntax, does not support italic/math environment. Sub-/superscripts need curly brackets.<br/></p><p>Example: \\alpha^{123}</p></body></html>"))
|
||||||
|
self.label_7.setText(_translate("GraphWindow", "Y Axis"))
|
||||||
|
self.yaxis_linedit.setToolTip(_translate("GraphWindow", "<html><head/><body><p>Uses simple latex syntax, does not support italic/math environment. Sub-/superscripts need curly brackets.<br/></p><p>Example: \\alpha^{123}</p></body></html>"))
|
||||||
|
self.checkBox.setText(_translate("GraphWindow", "Show legend"))
|
||||||
|
from ..lib.graph_items import NMRPlotWidget
|
||||||
|
from ..lib.listwidget import QListWidgetSelect
|
184
src/gui_qt/_py/guidelinewidget.py
Normal file
184
src/gui_qt/_py/guidelinewidget.py
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/guidelinewidget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(459, 830)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(Form)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.graph_comboBox = QtWidgets.QComboBox(parent=Form)
|
||||||
|
self.graph_comboBox.setObjectName("graph_comboBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.graph_comboBox)
|
||||||
|
self.listWidget_2 = QtWidgets.QListWidget(parent=Form)
|
||||||
|
self.listWidget_2.setObjectName("listWidget_2")
|
||||||
|
self.verticalLayout_2.addWidget(self.listWidget_2)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.pushButton = QtWidgets.QPushButton(parent=Form)
|
||||||
|
self.pushButton.setObjectName("pushButton")
|
||||||
|
self.horizontalLayout.addWidget(self.pushButton)
|
||||||
|
self.pushButton_2 = QtWidgets.QPushButton(parent=Form)
|
||||||
|
self.pushButton_2.setObjectName("pushButton_2")
|
||||||
|
self.horizontalLayout.addWidget(self.pushButton_2)
|
||||||
|
self.pushButton_3 = QtWidgets.QPushButton(parent=Form)
|
||||||
|
self.pushButton_3.setObjectName("pushButton_3")
|
||||||
|
self.horizontalLayout.addWidget(self.pushButton_3)
|
||||||
|
self.verticalLayout_2.addLayout(self.horizontalLayout)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=Form)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
|
||||||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.formLayout = QtWidgets.QFormLayout(self.frame)
|
||||||
|
self.formLayout.setObjectName("formLayout")
|
||||||
|
self.mode_comboBox = QtWidgets.QComboBox(parent=self.frame)
|
||||||
|
self.mode_comboBox.setObjectName("mode_comboBox")
|
||||||
|
self.mode_comboBox.addItem("")
|
||||||
|
self.mode_comboBox.addItem("")
|
||||||
|
self.mode_comboBox.addItem("")
|
||||||
|
self.mode_comboBox.addItem("")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.mode_comboBox)
|
||||||
|
self.label_12 = QtWidgets.QLabel(parent=self.frame)
|
||||||
|
self.label_12.setObjectName("label_12")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_12)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.frame)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_6)
|
||||||
|
self.comment_lineEdit = QtWidgets.QLineEdit(parent=self.frame)
|
||||||
|
self.comment_lineEdit.setObjectName("comment_lineEdit")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.comment_lineEdit)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.frame)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
||||||
|
self.color_comboBox = ColorListEditor(parent=self.frame)
|
||||||
|
self.color_comboBox.setObjectName("color_comboBox")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.color_comboBox)
|
||||||
|
self.stackedWidget = QtWidgets.QStackedWidget(parent=self.frame)
|
||||||
|
self.stackedWidget.setObjectName("stackedWidget")
|
||||||
|
self.page = QtWidgets.QWidget()
|
||||||
|
self.page.setObjectName("page")
|
||||||
|
self.formLayout_2 = QtWidgets.QFormLayout(self.page)
|
||||||
|
self.formLayout_2.setObjectName("formLayout_2")
|
||||||
|
self.label_13 = QtWidgets.QLabel(parent=self.page)
|
||||||
|
self.label_13.setObjectName("label_13")
|
||||||
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_13)
|
||||||
|
self.lineEdit_8 = QtWidgets.QLineEdit(parent=self.page)
|
||||||
|
self.lineEdit_8.setObjectName("lineEdit_8")
|
||||||
|
self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_8)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.page)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
|
||||||
|
self.infiniteline_angle_spinbox = QtWidgets.QSpinBox(parent=self.page)
|
||||||
|
self.infiniteline_angle_spinbox.setWrapping(True)
|
||||||
|
self.infiniteline_angle_spinbox.setMaximum(179)
|
||||||
|
self.infiniteline_angle_spinbox.setObjectName("infiniteline_angle_spinbox")
|
||||||
|
self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.infiniteline_angle_spinbox)
|
||||||
|
self.stackedWidget.addWidget(self.page)
|
||||||
|
self.page_2 = QtWidgets.QWidget()
|
||||||
|
self.page_2.setObjectName("page_2")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.page_2)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.listWidget = QtWidgets.QListWidget(parent=self.page_2)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.verticalLayout.addWidget(self.listWidget)
|
||||||
|
self.stackedWidget.addWidget(self.page_2)
|
||||||
|
self.page_3 = QtWidgets.QWidget()
|
||||||
|
self.page_3.setObjectName("page_3")
|
||||||
|
self.formLayout_3 = QtWidgets.QFormLayout(self.page_3)
|
||||||
|
self.formLayout_3.setObjectName("formLayout_3")
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.page_3)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_5)
|
||||||
|
self.lineEdit = QtWidgets.QLineEdit(parent=self.page_3)
|
||||||
|
self.lineEdit.setObjectName("lineEdit")
|
||||||
|
self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.page_3)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
|
||||||
|
self.lineEdit_2 = QtWidgets.QLineEdit(parent=self.page_3)
|
||||||
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
||||||
|
self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_2)
|
||||||
|
self.label_9 = QtWidgets.QLabel(parent=self.page_3)
|
||||||
|
self.label_9.setObjectName("label_9")
|
||||||
|
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_9)
|
||||||
|
self.lineEdit_3 = QtWidgets.QLineEdit(parent=self.page_3)
|
||||||
|
self.lineEdit_3.setObjectName("lineEdit_3")
|
||||||
|
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_3)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.page_3)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
|
||||||
|
self.spinBox = QtWidgets.QSpinBox(parent=self.page_3)
|
||||||
|
self.spinBox.setObjectName("spinBox")
|
||||||
|
self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.spinBox)
|
||||||
|
self.stackedWidget.addWidget(self.page_3)
|
||||||
|
self.page_4 = QtWidgets.QWidget()
|
||||||
|
self.page_4.setObjectName("page_4")
|
||||||
|
self.formLayout_4 = QtWidgets.QFormLayout(self.page_4)
|
||||||
|
self.formLayout_4.setObjectName("formLayout_4")
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.page_4)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_7)
|
||||||
|
self.lineEdit_4 = QtWidgets.QLineEdit(parent=self.page_4)
|
||||||
|
self.lineEdit_4.setObjectName("lineEdit_4")
|
||||||
|
self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_4)
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=self.page_4)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_8)
|
||||||
|
self.lineEdit_5 = QtWidgets.QLineEdit(parent=self.page_4)
|
||||||
|
self.lineEdit_5.setObjectName("lineEdit_5")
|
||||||
|
self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_5)
|
||||||
|
self.label_10 = QtWidgets.QLabel(parent=self.page_4)
|
||||||
|
self.label_10.setObjectName("label_10")
|
||||||
|
self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_10)
|
||||||
|
self.lineEdit_6 = QtWidgets.QLineEdit(parent=self.page_4)
|
||||||
|
self.lineEdit_6.setObjectName("lineEdit_6")
|
||||||
|
self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_6)
|
||||||
|
self.label_11 = QtWidgets.QLabel(parent=self.page_4)
|
||||||
|
self.label_11.setObjectName("label_11")
|
||||||
|
self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_11)
|
||||||
|
self.lineEdit_7 = QtWidgets.QLineEdit(parent=self.page_4)
|
||||||
|
self.lineEdit_7.setObjectName("lineEdit_7")
|
||||||
|
self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_7)
|
||||||
|
self.stackedWidget.addWidget(self.page_4)
|
||||||
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.stackedWidget)
|
||||||
|
self.verticalLayout_2.addWidget(self.frame)
|
||||||
|
self.label_6.setBuddy(self.comment_lineEdit)
|
||||||
|
self.label_2.setBuddy(self.color_comboBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
self.stackedWidget.setCurrentIndex(3)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Form.setWindowTitle(_translate("Form", "Form"))
|
||||||
|
self.pushButton.setText(_translate("Form", "New object"))
|
||||||
|
self.pushButton_2.setText(_translate("Form", "Edit"))
|
||||||
|
self.pushButton_3.setText(_translate("Form", "Delete"))
|
||||||
|
self.mode_comboBox.setItemText(0, _translate("Form", "Infinite Line"))
|
||||||
|
self.mode_comboBox.setItemText(1, _translate("Form", "Multiple points"))
|
||||||
|
self.mode_comboBox.setItemText(2, _translate("Form", "Rectangle"))
|
||||||
|
self.mode_comboBox.setItemText(3, _translate("Form", "Ellipse"))
|
||||||
|
self.label_12.setText(_translate("Form", "Type"))
|
||||||
|
self.label_6.setText(_translate("Form", "Comment"))
|
||||||
|
self.label_2.setText(_translate("Form", "Color"))
|
||||||
|
self.label_13.setText(_translate("Form", "Position"))
|
||||||
|
self.label.setText(_translate("Form", "Angle"))
|
||||||
|
self.infiniteline_angle_spinbox.setSuffix(_translate("Form", "°"))
|
||||||
|
self.label_5.setText(_translate("Form", "Lower left"))
|
||||||
|
self.label_3.setText(_translate("Form", "Width"))
|
||||||
|
self.label_9.setText(_translate("Form", "Height"))
|
||||||
|
self.label_4.setText(_translate("Form", "Angle"))
|
||||||
|
self.label_7.setText(_translate("Form", "Centre"))
|
||||||
|
self.label_8.setText(_translate("Form", "Axis"))
|
||||||
|
self.label_10.setText(_translate("Form", "Axis"))
|
||||||
|
self.label_11.setText(_translate("Form", "Angle"))
|
||||||
|
from ..lib.delegates import ColorListEditor
|
78
src/gui_qt/_py/hdftree.py
Normal file
78
src/gui_qt/_py/hdftree.py
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/hdftree.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Hdf_Dialog(object):
|
||||||
|
def setupUi(self, Hdf_Dialog):
|
||||||
|
Hdf_Dialog.setObjectName("Hdf_Dialog")
|
||||||
|
Hdf_Dialog.resize(460, 772)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(Hdf_Dialog)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=Hdf_Dialog)
|
||||||
|
self.label_3.setTextFormat(QtCore.Qt.TextFormat.RichText)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.verticalLayout_2.addWidget(self.label_3)
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=Hdf_Dialog)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Vertical)
|
||||||
|
self.splitter.setChildrenCollapsible(False)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.horizontalLayoutWidget = QtWidgets.QWidget(parent=self.splitter)
|
||||||
|
self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.horizontalLayoutWidget)
|
||||||
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout.setSpacing(0)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.verticalLayout.addLayout(self.verticalLayout_3)
|
||||||
|
self.widget = QtWidgets.QWidget(parent=self.horizontalLayoutWidget)
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.widget)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setSpacing(2)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||||
|
self.comboBox_2 = QtWidgets.QComboBox(parent=self.widget)
|
||||||
|
self.comboBox_2.setObjectName("comboBox_2")
|
||||||
|
self.gridLayout.addWidget(self.comboBox_2, 1, 1, 1, 1)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||||
|
self.comboBox = QtWidgets.QComboBox(parent=self.widget)
|
||||||
|
self.comboBox.setObjectName("comboBox")
|
||||||
|
self.gridLayout.addWidget(self.comboBox, 0, 1, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.widget)
|
||||||
|
self.widget_2 = ExpandableWidget(parent=self.splitter)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.widget_2.sizePolicy().hasHeightForWidth())
|
||||||
|
self.widget_2.setSizePolicy(sizePolicy)
|
||||||
|
self.widget_2.setObjectName("widget_2")
|
||||||
|
self.verticalLayout_2.addWidget(self.splitter)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Hdf_Dialog)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Hdf_Dialog)
|
||||||
|
self.buttonBox.rejected.connect(Hdf_Dialog.close) # type: ignore
|
||||||
|
self.buttonBox.accepted.connect(Hdf_Dialog.accept) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Hdf_Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Hdf_Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Hdf_Dialog.setWindowTitle(_translate("Hdf_Dialog", "View HDF file"))
|
||||||
|
self.label_3.setText(_translate("Hdf_Dialog", "<html><head/><body><p><span style=\" color:#000000;\">Colors: </span><span style=\" color:#1f77b4;\">Time signals and spectra</span><span style=\" color:#000000;\">, </span><span style=\" color:#ff7f0e;\">accumulations</span></p></body></html>"))
|
||||||
|
self.label.setText(_translate("Hdf_Dialog", "Label"))
|
||||||
|
self.label_2.setText(_translate("Hdf_Dialog", "Group"))
|
||||||
|
from ..lib.expandablewidget import ExpandableWidget
|
51
src/gui_qt/_py/integral_widget.py
Normal file
51
src/gui_qt/_py/integral_widget.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/integral_widget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(397, 681)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.verticalLayout.addWidget(self.label_2)
|
||||||
|
self.set_combobox = QtWidgets.QComboBox(parent=Form)
|
||||||
|
self.set_combobox.setObjectName("set_combobox")
|
||||||
|
self.verticalLayout.addWidget(self.set_combobox)
|
||||||
|
self.treeWidget = QtWidgets.QTreeWidget(parent=Form)
|
||||||
|
self.treeWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.treeWidget.setHeaderHidden(True)
|
||||||
|
self.treeWidget.setObjectName("treeWidget")
|
||||||
|
self.treeWidget.headerItem().setText(0, "1")
|
||||||
|
self.verticalLayout.addWidget(self.treeWidget)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout.addWidget(self.label)
|
||||||
|
self.pushButton = QtWidgets.QPushButton(parent=Form)
|
||||||
|
self.pushButton.setObjectName("pushButton")
|
||||||
|
self.horizontalLayout.addWidget(self.pushButton)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
|
|
||||||
|
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", "TextLabel"))
|
||||||
|
self.label.setText(_translate("Form", "Save area as datasets"))
|
||||||
|
self.pushButton.setText(_translate("Form", "Apply"))
|
86
src/gui_qt/_py/integratederive_dialog.py
Normal file
86
src/gui_qt/_py/integratederive_dialog.py
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/integratederive_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(400, 375)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.listWidget = QtWidgets.QListWidget(parent=Dialog)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.verticalLayout.addWidget(self.listWidget)
|
||||||
|
self.widget = QtWidgets.QWidget(parent=Dialog)
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.widget)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout.addWidget(self.label)
|
||||||
|
self.start_lineedit = QtWidgets.QLineEdit(parent=self.widget)
|
||||||
|
self.start_lineedit.setEnabled(False)
|
||||||
|
self.start_lineedit.setObjectName("start_lineedit")
|
||||||
|
self.horizontalLayout.addWidget(self.start_lineedit)
|
||||||
|
self.stop_lineedit = QtWidgets.QLineEdit(parent=self.widget)
|
||||||
|
self.stop_lineedit.setEnabled(False)
|
||||||
|
self.stop_lineedit.setObjectName("stop_lineedit")
|
||||||
|
self.horizontalLayout.addWidget(self.stop_lineedit)
|
||||||
|
self.range_checkbox = QtWidgets.QCheckBox(parent=self.widget)
|
||||||
|
self.range_checkbox.setChecked(True)
|
||||||
|
self.range_checkbox.setObjectName("range_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.range_checkbox)
|
||||||
|
self.verticalLayout.addWidget(self.widget)
|
||||||
|
self.ft_comboBox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.ft_comboBox.setObjectName("ft_comboBox")
|
||||||
|
self.ft_comboBox.addItem("")
|
||||||
|
self.ft_comboBox.addItem("")
|
||||||
|
self.ft_comboBox.addItem("")
|
||||||
|
self.verticalLayout.addWidget(self.ft_comboBox)
|
||||||
|
self.log_checkbox = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.log_checkbox.setObjectName("log_checkbox")
|
||||||
|
self.verticalLayout.addWidget(self.log_checkbox)
|
||||||
|
self.freq_box = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.freq_box.setObjectName("freq_box")
|
||||||
|
self.verticalLayout.addWidget(self.freq_box)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout_2.setSpacing(3)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.newgraph_checkbox = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.newgraph_checkbox.setObjectName("newgraph_checkbox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.newgraph_checkbox)
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.graph_combobox)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
|
||||||
|
self.label.setText(_translate("Dialog", "Limits"))
|
||||||
|
self.range_checkbox.setText(_translate("Dialog", "Full"))
|
||||||
|
self.ft_comboBox.setItemText(0, _translate("Dialog", "Real"))
|
||||||
|
self.ft_comboBox.setItemText(1, _translate("Dialog", "Imag"))
|
||||||
|
self.ft_comboBox.setItemText(2, _translate("Dialog", "Complex"))
|
||||||
|
self.log_checkbox.setText(_translate("Dialog", "use logarithmic x axis"))
|
||||||
|
self.freq_box.setText(_translate("Dialog", "return x axis as f, not omega"))
|
||||||
|
self.newgraph_checkbox.setText(_translate("Dialog", "New graph"))
|
165
src/gui_qt/_py/interpol_dialog.py
Normal file
165
src/gui_qt/_py/interpol_dialog.py
Normal file
@ -0,0 +1,165 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/interpol_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(416, 494)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.src_widget = QtWidgets.QWidget(parent=Dialog)
|
||||||
|
self.src_widget.setObjectName("src_widget")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.src_widget)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=self.src_widget)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.horizontalLayout.addWidget(self.graph_combobox)
|
||||||
|
self.set_combobox = QtWidgets.QComboBox(parent=self.src_widget)
|
||||||
|
self.set_combobox.setObjectName("set_combobox")
|
||||||
|
self.horizontalLayout.addWidget(self.set_combobox)
|
||||||
|
self.gridLayout.addWidget(self.src_widget, 8, 0, 1, 2)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label.setToolTip("")
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=Dialog)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.gridLayout.addWidget(self.line_2, 5, 0, 1, 2)
|
||||||
|
self.ylog_checkBox = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.ylog_checkBox.setObjectName("ylog_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.ylog_checkBox, 2, 1, 1, 1)
|
||||||
|
self.interp_comboBox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.interp_comboBox.setToolTip("")
|
||||||
|
self.interp_comboBox.setObjectName("interp_comboBox")
|
||||||
|
self.interp_comboBox.addItem("")
|
||||||
|
self.interp_comboBox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.interp_comboBox, 4, 1, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 12, 0, 1, 2)
|
||||||
|
self.line = QtWidgets.QFrame(parent=Dialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 3, 0, 1, 2)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 6, 0, 1, 1)
|
||||||
|
self.listWidget = QListWidgetSelect(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.MultiSelection)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.gridLayout.addWidget(self.listWidget, 1, 0, 1, 2)
|
||||||
|
self.sampling_widget = QtWidgets.QWidget(parent=Dialog)
|
||||||
|
self.sampling_widget.setObjectName("sampling_widget")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.sampling_widget)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_2.setSpacing(3)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.sampling_widget)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_4)
|
||||||
|
self.start_lineEdit = QtWidgets.QLineEdit(parent=self.sampling_widget)
|
||||||
|
self.start_lineEdit.setObjectName("start_lineEdit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.start_lineEdit)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.sampling_widget)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_5)
|
||||||
|
self.stop_lineEdit = QtWidgets.QLineEdit(parent=self.sampling_widget)
|
||||||
|
self.stop_lineEdit.setObjectName("stop_lineEdit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.stop_lineEdit)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.sampling_widget)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_6)
|
||||||
|
self.step_lineEdit = QtWidgets.QLineEdit(parent=self.sampling_widget)
|
||||||
|
self.step_lineEdit.setObjectName("step_lineEdit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.step_lineEdit)
|
||||||
|
self.logspace_checkBox = QtWidgets.QCheckBox(parent=self.sampling_widget)
|
||||||
|
self.logspace_checkBox.setObjectName("logspace_checkBox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.logspace_checkBox)
|
||||||
|
self.gridLayout.addWidget(self.sampling_widget, 7, 0, 1, 2)
|
||||||
|
self.xaxis_comboBox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.xaxis_comboBox.setObjectName("xaxis_comboBox")
|
||||||
|
self.xaxis_comboBox.addItem("")
|
||||||
|
self.xaxis_comboBox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.xaxis_comboBox, 6, 1, 1, 1)
|
||||||
|
self.line_3 = QtWidgets.QFrame(parent=Dialog)
|
||||||
|
self.line_3.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_3.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_3.setObjectName("line_3")
|
||||||
|
self.gridLayout.addWidget(self.line_3, 9, 0, 1, 2)
|
||||||
|
self.dest_combobox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.dest_combobox.setObjectName("dest_combobox")
|
||||||
|
self.gridLayout.addWidget(self.dest_combobox, 10, 1, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout.addItem(spacerItem, 11, 0, 1, 1)
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.gridLayout.addWidget(self.label_8, 10, 0, 1, 1)
|
||||||
|
self.xlog_checkBox = QtWidgets.QCheckBox(parent=Dialog)
|
||||||
|
self.xlog_checkBox.setObjectName("xlog_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.xlog_checkBox, 2, 0, 1, 1)
|
||||||
|
self.label.setBuddy(self.interp_comboBox)
|
||||||
|
self.label_2.setBuddy(self.xaxis_comboBox)
|
||||||
|
self.label_4.setBuddy(self.start_lineEdit)
|
||||||
|
self.label_5.setBuddy(self.stop_lineEdit)
|
||||||
|
self.label_6.setBuddy(self.step_lineEdit)
|
||||||
|
self.label_8.setBuddy(self.dest_combobox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
Dialog.setTabOrder(self.listWidget, self.ylog_checkBox)
|
||||||
|
Dialog.setTabOrder(self.ylog_checkBox, self.interp_comboBox)
|
||||||
|
Dialog.setTabOrder(self.interp_comboBox, self.xaxis_comboBox)
|
||||||
|
Dialog.setTabOrder(self.xaxis_comboBox, self.start_lineEdit)
|
||||||
|
Dialog.setTabOrder(self.start_lineEdit, self.stop_lineEdit)
|
||||||
|
Dialog.setTabOrder(self.stop_lineEdit, self.step_lineEdit)
|
||||||
|
Dialog.setTabOrder(self.step_lineEdit, self.logspace_checkBox)
|
||||||
|
Dialog.setTabOrder(self.logspace_checkBox, self.graph_combobox)
|
||||||
|
Dialog.setTabOrder(self.graph_combobox, self.set_combobox)
|
||||||
|
Dialog.setTabOrder(self.set_combobox, self.dest_combobox)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Data interpolation"))
|
||||||
|
self.label_3.setText(_translate("Dialog", "Source data"))
|
||||||
|
self.label.setText(_translate("Dialog", "Spline"))
|
||||||
|
self.ylog_checkBox.setToolTip(_translate("Dialog", "If your data is on a logarithmic scale in y, check this box"))
|
||||||
|
self.ylog_checkBox.setText(_translate("Dialog", "use log(y)"))
|
||||||
|
self.interp_comboBox.setItemText(0, _translate("Dialog", "Cubic"))
|
||||||
|
self.interp_comboBox.setItemText(1, _translate("Dialog", "Linear"))
|
||||||
|
self.buttonBox.setToolTip(_translate("Dialog", "Accept to create new data sets."))
|
||||||
|
self.label_2.setText(_translate("Dialog", "New x axis"))
|
||||||
|
self.listWidget.setToolTip(_translate("Dialog", "Select sets that shall be interpolated. No selection will create interpolations of all visible sets."))
|
||||||
|
self.label_4.setText(_translate("Dialog", "Start"))
|
||||||
|
self.label_5.setText(_translate("Dialog", "Stop"))
|
||||||
|
self.label_6.setText(_translate("Dialog", "Steps"))
|
||||||
|
self.logspace_checkBox.setText(_translate("Dialog", "log-spaced?"))
|
||||||
|
self.xaxis_comboBox.setItemText(0, _translate("Dialog", "new values"))
|
||||||
|
self.xaxis_comboBox.setItemText(1, _translate("Dialog", "from data"))
|
||||||
|
self.label_8.setText(_translate("Dialog", "Add interpolated data to"))
|
||||||
|
self.xlog_checkBox.setText(_translate("Dialog", "use log(x)"))
|
||||||
|
from ..lib.listwidget import QListWidgetSelect
|
61
src/gui_qt/_py/mean_form.py
Normal file
61
src/gui_qt/_py/mean_form.py
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/mean_form.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_mean_form(object):
|
||||||
|
def setupUi(self, mean_form):
|
||||||
|
mean_form.setObjectName("mean_form")
|
||||||
|
mean_form.resize(712, 34)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(mean_form)
|
||||||
|
self.horizontalLayout.setContentsMargins(1, 1, 1, 1)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=mean_form)
|
||||||
|
self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout.addWidget(self.label)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
|
self.digit_checkbox = QtWidgets.QCheckBox(parent=mean_form)
|
||||||
|
self.digit_checkbox.setChecked(True)
|
||||||
|
self.digit_checkbox.setObjectName("digit_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.digit_checkbox)
|
||||||
|
self.lineEdit = QtWidgets.QLineEdit(parent=mean_form)
|
||||||
|
self.lineEdit.setObjectName("lineEdit")
|
||||||
|
self.horizontalLayout.addWidget(self.lineEdit)
|
||||||
|
self.data_checkbox = QtWidgets.QCheckBox(parent=mean_form)
|
||||||
|
self.data_checkbox.setObjectName("data_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.data_checkbox)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=mean_form)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_2.setSpacing(2)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=self.frame)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.graph_combobox)
|
||||||
|
self.set_combobox = QtWidgets.QComboBox(parent=self.frame)
|
||||||
|
self.set_combobox.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents)
|
||||||
|
self.set_combobox.setObjectName("set_combobox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.set_combobox)
|
||||||
|
self.horizontalLayout.addWidget(self.frame)
|
||||||
|
|
||||||
|
self.retranslateUi(mean_form)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(mean_form)
|
||||||
|
|
||||||
|
def retranslateUi(self, mean_form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
mean_form.setWindowTitle(_translate("mean_form", "Form"))
|
||||||
|
self.label.setText(_translate("mean_form", "TextLabel"))
|
||||||
|
self.digit_checkbox.setText(_translate("mean_form", "Digit"))
|
||||||
|
self.lineEdit.setText(_translate("mean_form", "1"))
|
||||||
|
self.data_checkbox.setText(_translate("mean_form", "Data"))
|
95
src/gui_qt/_py/meandialog.py
Normal file
95
src/gui_qt/_py/meandialog.py
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/meandialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_calc_means_dialog(object):
|
||||||
|
def setupUi(self, calc_means_dialog):
|
||||||
|
calc_means_dialog.setObjectName("calc_means_dialog")
|
||||||
|
calc_means_dialog.resize(481, 322)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(calc_means_dialog)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.dist_combobox = QtWidgets.QComboBox(parent=calc_means_dialog)
|
||||||
|
self.dist_combobox.setObjectName("dist_combobox")
|
||||||
|
self.verticalLayout_2.addWidget(self.dist_combobox)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.verticalLayout_2.addLayout(self.verticalLayout)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.from_combobox = QtWidgets.QComboBox(parent=calc_means_dialog)
|
||||||
|
self.from_combobox.setObjectName("from_combobox")
|
||||||
|
self.from_combobox.addItem("")
|
||||||
|
self.from_combobox.addItem("")
|
||||||
|
self.from_combobox.addItem("")
|
||||||
|
self.from_combobox.addItem("")
|
||||||
|
self.horizontalLayout.addWidget(self.from_combobox)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=calc_means_dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_4.setSizePolicy(sizePolicy)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setPointSize(20)
|
||||||
|
self.label_4.setFont(font)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.horizontalLayout.addWidget(self.label_4)
|
||||||
|
self.to_combobox = QtWidgets.QComboBox(parent=calc_means_dialog)
|
||||||
|
self.to_combobox.setObjectName("to_combobox")
|
||||||
|
self.to_combobox.addItem("")
|
||||||
|
self.to_combobox.addItem("")
|
||||||
|
self.to_combobox.addItem("")
|
||||||
|
self.to_combobox.addItem("")
|
||||||
|
self.horizontalLayout.addWidget(self.to_combobox)
|
||||||
|
self.verticalLayout_2.addLayout(self.horizontalLayout)
|
||||||
|
self.line = QtWidgets.QFrame(parent=calc_means_dialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.verticalLayout_2.addWidget(self.line)
|
||||||
|
self.label = QtWidgets.QLabel(parent=calc_means_dialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.verticalLayout_2.addWidget(self.label)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_2.addItem(spacerItem)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.checkBox = QtWidgets.QCheckBox(parent=calc_means_dialog)
|
||||||
|
self.checkBox.setObjectName("checkBox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.checkBox)
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=calc_means_dialog)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.graph_combobox)
|
||||||
|
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=calc_means_dialog)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(calc_means_dialog)
|
||||||
|
self.to_combobox.setCurrentIndex(1)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(calc_means_dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, calc_means_dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
calc_means_dialog.setWindowTitle(_translate("calc_means_dialog", "Mean times"))
|
||||||
|
self.from_combobox.setItemText(0, _translate("calc_means_dialog", "Function value: τ"))
|
||||||
|
self.from_combobox.setItemText(1, _translate("calc_means_dialog", "Peak time: τₚ"))
|
||||||
|
self.from_combobox.setItemText(2, _translate("calc_means_dialog", "Arithmetic mean: ⟨τ⟩"))
|
||||||
|
self.from_combobox.setItemText(3, _translate("calc_means_dialog", "Geometric mean: exp( ⟨ln(τ)⟩ )"))
|
||||||
|
self.label_4.setText(_translate("calc_means_dialog", " ➝ "))
|
||||||
|
self.to_combobox.setItemText(0, _translate("calc_means_dialog", "Function value: τ"))
|
||||||
|
self.to_combobox.setItemText(1, _translate("calc_means_dialog", "Peak time: τₚ"))
|
||||||
|
self.to_combobox.setItemText(2, _translate("calc_means_dialog", "Arithmetic mean: ⟨τ⟩"))
|
||||||
|
self.to_combobox.setItemText(3, _translate("calc_means_dialog", "Geometric mean: exp( ⟨ln(τ)⟩ )"))
|
||||||
|
self.label.setText(_translate("calc_means_dialog", "TextLabel"))
|
||||||
|
self.checkBox.setText(_translate("calc_means_dialog", "New graph"))
|
86
src/gui_qt/_py/move_dialog.py
Normal file
86
src/gui_qt/_py/move_dialog.py
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/move_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_MoveDialog(object):
|
||||||
|
def setupUi(self, MoveDialog):
|
||||||
|
MoveDialog.setObjectName("MoveDialog")
|
||||||
|
MoveDialog.resize(395, 345)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(MoveDialog)
|
||||||
|
self.gridLayout.setVerticalSpacing(1)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.tocomboBox = QtWidgets.QComboBox(parent=MoveDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.tocomboBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.tocomboBox.setSizePolicy(sizePolicy)
|
||||||
|
self.tocomboBox.setObjectName("tocomboBox")
|
||||||
|
self.gridLayout.addWidget(self.tocomboBox, 3, 1, 1, 1)
|
||||||
|
self.fromcomboBox = QtWidgets.QComboBox(parent=MoveDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.fromcomboBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.fromcomboBox.setSizePolicy(sizePolicy)
|
||||||
|
self.fromcomboBox.setObjectName("fromcomboBox")
|
||||||
|
self.gridLayout.addWidget(self.fromcomboBox, 0, 1, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=MoveDialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 6, 0, 1, 2)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=MoveDialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=MoveDialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 4, 0, 1, 2)
|
||||||
|
self.label = QtWidgets.QLabel(parent=MoveDialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.copy_button = QtWidgets.QRadioButton(parent=MoveDialog)
|
||||||
|
self.copy_button.setObjectName("copy_button")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(MoveDialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.copy_button)
|
||||||
|
self.horizontalLayout.addWidget(self.copy_button)
|
||||||
|
self.move_button = QtWidgets.QRadioButton(parent=MoveDialog)
|
||||||
|
self.move_button.setChecked(True)
|
||||||
|
self.move_button.setObjectName("move_button")
|
||||||
|
self.buttonGroup.addButton(self.move_button)
|
||||||
|
self.horizontalLayout.addWidget(self.move_button)
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout, 5, 0, 1, 2)
|
||||||
|
self.listWidget = QtWidgets.QListWidget(parent=MoveDialog)
|
||||||
|
self.listWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.MultiSelection)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.gridLayout.addWidget(self.listWidget, 1, 1, 1, 1)
|
||||||
|
self.label_2.setBuddy(self.tocomboBox)
|
||||||
|
self.label.setBuddy(self.fromcomboBox)
|
||||||
|
|
||||||
|
self.retranslateUi(MoveDialog)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(MoveDialog)
|
||||||
|
MoveDialog.setTabOrder(self.fromcomboBox, self.listWidget)
|
||||||
|
MoveDialog.setTabOrder(self.listWidget, self.tocomboBox)
|
||||||
|
MoveDialog.setTabOrder(self.tocomboBox, self.buttonBox)
|
||||||
|
|
||||||
|
def retranslateUi(self, MoveDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
MoveDialog.setWindowTitle(_translate("MoveDialog", "Insert Reel 2 Real song."))
|
||||||
|
self.label_2.setText(_translate("MoveDialog", "To"))
|
||||||
|
self.label.setText(_translate("MoveDialog", "From"))
|
||||||
|
self.copy_button.setText(_translate("MoveDialog", "Copy"))
|
||||||
|
self.move_button.setText(_translate("MoveDialog", "Move"))
|
8
src/gui_qt/_py/movedialog.py
Normal file
8
src/gui_qt/_py/movedialog.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/movedialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
70
src/gui_qt/_py/namespace_widget.py
Normal file
70
src/gui_qt/_py/namespace_widget.py
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/namespace_widget.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(400, 300)
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(Form)
|
||||||
|
self.gridLayout_2.setContentsMargins(1, 1, 1, 1)
|
||||||
|
self.gridLayout_2.setSpacing(3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.groups_comboBox = QtWidgets.QComboBox(parent=Form)
|
||||||
|
self.groups_comboBox.setObjectName("groups_comboBox")
|
||||||
|
self.gridLayout_2.addWidget(self.groups_comboBox, 0, 0, 1, 1)
|
||||||
|
self.subgroups_comboBox = QtWidgets.QComboBox(parent=Form)
|
||||||
|
self.subgroups_comboBox.setObjectName("subgroups_comboBox")
|
||||||
|
self.gridLayout_2.addWidget(self.subgroups_comboBox, 0, 1, 1, 1)
|
||||||
|
self.namespace_table = QtWidgets.QTableWidget(parent=Form)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.namespace_table.sizePolicy().hasHeightForWidth())
|
||||||
|
self.namespace_table.setSizePolicy(sizePolicy)
|
||||||
|
self.namespace_table.setMinimumSize(QtCore.QSize(0, 0))
|
||||||
|
self.namespace_table.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.namespace_table.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
|
||||||
|
self.namespace_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.namespace_table.setTextElideMode(QtCore.Qt.TextElideMode.ElideNone)
|
||||||
|
self.namespace_table.setColumnCount(2)
|
||||||
|
self.namespace_table.setObjectName("namespace_table")
|
||||||
|
self.namespace_table.setRowCount(5)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.namespace_table.setVerticalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.namespace_table.setVerticalHeaderItem(1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.namespace_table.setVerticalHeaderItem(2, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.namespace_table.setVerticalHeaderItem(3, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.namespace_table.setVerticalHeaderItem(4, item)
|
||||||
|
self.namespace_table.horizontalHeader().setVisible(False)
|
||||||
|
self.namespace_table.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.namespace_table.verticalHeader().setVisible(False)
|
||||||
|
self.gridLayout_2.addWidget(self.namespace_table, 1, 0, 1, 2)
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Form.setWindowTitle(_translate("Form", "Form"))
|
||||||
|
item = self.namespace_table.verticalHeaderItem(0)
|
||||||
|
item.setText(_translate("Form", "Neue Zeile"))
|
||||||
|
item = self.namespace_table.verticalHeaderItem(1)
|
||||||
|
item.setText(_translate("Form", "Neue Zeile"))
|
||||||
|
item = self.namespace_table.verticalHeaderItem(2)
|
||||||
|
item.setText(_translate("Form", "Neue Zeile"))
|
||||||
|
item = self.namespace_table.verticalHeaderItem(3)
|
||||||
|
item.setText(_translate("Form", "Neue Zeile"))
|
||||||
|
item = self.namespace_table.verticalHeaderItem(4)
|
||||||
|
item.setText(_translate("Form", "Neue Zeile"))
|
258
src/gui_qt/_py/pokeentry.py
Normal file
258
src/gui_qt/_py/pokeentry.py
Normal file
@ -0,0 +1,258 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/pokeentry.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(640, 642)
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(Form)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.artwork_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.artwork_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
|
||||||
|
self.artwork_label.setObjectName("artwork_label")
|
||||||
|
self.verticalLayout_4.addWidget(self.artwork_label)
|
||||||
|
self.formLayout = QtWidgets.QFormLayout()
|
||||||
|
self.formLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.formLayout.setVerticalSpacing(12)
|
||||||
|
self.formLayout.setObjectName("formLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
|
||||||
|
self.nationaldex_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.nationaldex_label.setObjectName("nationaldex_label")
|
||||||
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.nationaldex_label)
|
||||||
|
self.label_1 = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label_1.setObjectName("label_1")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_1)
|
||||||
|
self.species_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.species_label.setObjectName("species_label")
|
||||||
|
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.species_label)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label_4.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_4)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.type1_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.type1_label.setObjectName("type1_label")
|
||||||
|
self.verticalLayout_2.addWidget(self.type1_label)
|
||||||
|
self.type2_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.type2_label.setObjectName("type2_label")
|
||||||
|
self.verticalLayout_2.addWidget(self.type2_label)
|
||||||
|
self.formLayout.setLayout(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.verticalLayout_2)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label_5.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_5)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.ability1_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.ability1_label.setObjectName("ability1_label")
|
||||||
|
self.verticalLayout.addWidget(self.ability1_label)
|
||||||
|
self.ability2_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.ability2_label.setObjectName("ability2_label")
|
||||||
|
self.verticalLayout.addWidget(self.ability2_label)
|
||||||
|
self.ability3_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.ability3_label.setObjectName("ability3_label")
|
||||||
|
self.verticalLayout.addWidget(self.ability3_label)
|
||||||
|
self.formLayout.setLayout(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.verticalLayout)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
|
||||||
|
self.height_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.height_label.setObjectName("height_label")
|
||||||
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.height_label)
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3)
|
||||||
|
self.weight_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.weight_label.setObjectName("weight_label")
|
||||||
|
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.weight_label)
|
||||||
|
self.gender_label = QtWidgets.QLabel(parent=Form)
|
||||||
|
self.gender_label.setObjectName("gender_label")
|
||||||
|
self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.gender_label)
|
||||||
|
self.verticalLayout_4.addLayout(self.formLayout)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.groupBox.setFlat(True)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox)
|
||||||
|
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.spec_attack_bar = QtWidgets.QProgressBar(parent=self.groupBox)
|
||||||
|
self.spec_attack_bar.setStyleSheet("QProgressBar{\n"
|
||||||
|
" border: none;\n"
|
||||||
|
" background-color: transparent;\n"
|
||||||
|
" text-align: center;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QProgressBar::chunk {\n"
|
||||||
|
" background-color: #009cda;\n"
|
||||||
|
" border-radius: 3px;\n"
|
||||||
|
"}")
|
||||||
|
self.spec_attack_bar.setMaximum(194)
|
||||||
|
self.spec_attack_bar.setProperty("value", 24)
|
||||||
|
self.spec_attack_bar.setObjectName("spec_attack_bar")
|
||||||
|
self.gridLayout_4.addWidget(self.spec_attack_bar, 0, 3, 1, 1)
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.gridLayout_4.addWidget(self.label_8, 0, 2, 1, 1)
|
||||||
|
self.spec_defense_bar = QtWidgets.QProgressBar(parent=self.groupBox)
|
||||||
|
self.spec_defense_bar.setStyleSheet("QProgressBar{\n"
|
||||||
|
" border: none;\n"
|
||||||
|
" background-color: transparent;\n"
|
||||||
|
" text-align: center;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QProgressBar::chunk {\n"
|
||||||
|
" background-color: #009cda;\n"
|
||||||
|
" border-radius: 3px;\n"
|
||||||
|
"}")
|
||||||
|
self.spec_defense_bar.setMaximum(250)
|
||||||
|
self.spec_defense_bar.setProperty("value", 24)
|
||||||
|
self.spec_defense_bar.setObjectName("spec_defense_bar")
|
||||||
|
self.gridLayout_4.addWidget(self.spec_defense_bar, 1, 3, 1, 1)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_6.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.gridLayout_4.addWidget(self.label_6, 0, 0, 1, 1)
|
||||||
|
self.hp_bar = QtWidgets.QProgressBar(parent=self.groupBox)
|
||||||
|
self.hp_bar.setStyleSheet("QProgressBar{\n"
|
||||||
|
" border: none;\n"
|
||||||
|
" background-color: transparent;\n"
|
||||||
|
" text-align: center;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QProgressBar::chunk {\n"
|
||||||
|
" background-color: #009cda;\n"
|
||||||
|
" border-radius: 3px;\n"
|
||||||
|
"}")
|
||||||
|
self.hp_bar.setMaximum(255)
|
||||||
|
self.hp_bar.setProperty("value", 24)
|
||||||
|
self.hp_bar.setObjectName("hp_bar")
|
||||||
|
self.gridLayout_4.addWidget(self.hp_bar, 0, 1, 1, 1)
|
||||||
|
self.speed_bar = QtWidgets.QProgressBar(parent=self.groupBox)
|
||||||
|
self.speed_bar.setStyleSheet("QProgressBar{\n"
|
||||||
|
" border: none;\n"
|
||||||
|
" background-color: transparent;\n"
|
||||||
|
" text-align: center;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QProgressBar::chunk {\n"
|
||||||
|
" background-color: #009cda;\n"
|
||||||
|
" border-radius: 3px;\n"
|
||||||
|
"}")
|
||||||
|
self.speed_bar.setMaximum(200)
|
||||||
|
self.speed_bar.setProperty("value", 24)
|
||||||
|
self.speed_bar.setObjectName("speed_bar")
|
||||||
|
self.gridLayout_4.addWidget(self.speed_bar, 2, 3, 1, 1)
|
||||||
|
self.label_11 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_11.setObjectName("label_11")
|
||||||
|
self.gridLayout_4.addWidget(self.label_11, 2, 2, 1, 1)
|
||||||
|
self.label_10 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_10.setObjectName("label_10")
|
||||||
|
self.gridLayout_4.addWidget(self.label_10, 1, 2, 1, 1)
|
||||||
|
self.defense_bar = QtWidgets.QProgressBar(parent=self.groupBox)
|
||||||
|
self.defense_bar.setStyleSheet("QProgressBar{\n"
|
||||||
|
" border: none;\n"
|
||||||
|
" background-color: transparent;\n"
|
||||||
|
" text-align: center;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QProgressBar::chunk {\n"
|
||||||
|
" background-color: #009cda;\n"
|
||||||
|
" border-radius: 3px;\n"
|
||||||
|
"}")
|
||||||
|
self.defense_bar.setMaximum(250)
|
||||||
|
self.defense_bar.setProperty("value", 24)
|
||||||
|
self.defense_bar.setObjectName("defense_bar")
|
||||||
|
self.gridLayout_4.addWidget(self.defense_bar, 2, 1, 1, 1)
|
||||||
|
self.attack_bar = QtWidgets.QProgressBar(parent=self.groupBox)
|
||||||
|
self.attack_bar.setStyleSheet("QProgressBar{\n"
|
||||||
|
" border: none;\n"
|
||||||
|
" background-color: transparent;\n"
|
||||||
|
" text-align: center;\n"
|
||||||
|
"}\n"
|
||||||
|
"\n"
|
||||||
|
"QProgressBar::chunk {\n"
|
||||||
|
" background-color: #009cda;\n"
|
||||||
|
" border-radius: 3px;\n"
|
||||||
|
"}")
|
||||||
|
self.attack_bar.setMaximum(190)
|
||||||
|
self.attack_bar.setProperty("value", 24)
|
||||||
|
self.attack_bar.setObjectName("attack_bar")
|
||||||
|
self.gridLayout_4.addWidget(self.attack_bar, 1, 1, 1, 1)
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.gridLayout_4.addWidget(self.label_7, 1, 0, 1, 1)
|
||||||
|
self.label_9 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_9.setObjectName("label_9")
|
||||||
|
self.gridLayout_4.addWidget(self.label_9, 2, 0, 1, 1)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox)
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.groupBox_2.setFlat(True)
|
||||||
|
self.groupBox_2.setCheckable(False)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
||||||
|
self.verticalLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.tableWidget = QtWidgets.QTableWidget(parent=self.groupBox_2)
|
||||||
|
self.tableWidget.setStyleSheet("background-color: transparent;")
|
||||||
|
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.tableWidget.setShowGrid(False)
|
||||||
|
self.tableWidget.setGridStyle(QtCore.Qt.PenStyle.NoPen)
|
||||||
|
self.tableWidget.setWordWrap(False)
|
||||||
|
self.tableWidget.setObjectName("tableWidget")
|
||||||
|
self.tableWidget.setColumnCount(0)
|
||||||
|
self.tableWidget.setRowCount(0)
|
||||||
|
self.tableWidget.horizontalHeader().setVisible(False)
|
||||||
|
self.tableWidget.verticalHeader().setVisible(False)
|
||||||
|
self.verticalLayout_3.addWidget(self.tableWidget)
|
||||||
|
self.verticalLayout_4.addWidget(self.groupBox_2)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.verticalLayout_4.addItem(spacerItem)
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Form.setWindowTitle(_translate("Form", "Form"))
|
||||||
|
self.artwork_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.label.setText(_translate("Form", "National No."))
|
||||||
|
self.nationaldex_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.label_1.setText(_translate("Form", "Species"))
|
||||||
|
self.species_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.label_4.setText(_translate("Form", "Type"))
|
||||||
|
self.type1_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.type2_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.label_5.setText(_translate("Form", "Abilities"))
|
||||||
|
self.ability1_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.ability2_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.ability3_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.label_2.setText(_translate("Form", "Height"))
|
||||||
|
self.height_label.setText(_translate("Form", "0.0 m"))
|
||||||
|
self.label_3.setText(_translate("Form", "Weight"))
|
||||||
|
self.weight_label.setText(_translate("Form", "0.0 kg"))
|
||||||
|
self.gender_label.setText(_translate("Form", "TextLabel"))
|
||||||
|
self.groupBox.setTitle(_translate("Form", "Stats"))
|
||||||
|
self.spec_attack_bar.setFormat(_translate("Form", "%v"))
|
||||||
|
self.label_8.setText(_translate("Form", "Special Attack"))
|
||||||
|
self.spec_defense_bar.setFormat(_translate("Form", "%v"))
|
||||||
|
self.label_6.setText(_translate("Form", "HP"))
|
||||||
|
self.hp_bar.setFormat(_translate("Form", "%v"))
|
||||||
|
self.speed_bar.setFormat(_translate("Form", "%v"))
|
||||||
|
self.label_11.setText(_translate("Form", "Speed"))
|
||||||
|
self.label_10.setText(_translate("Form", "Special Defense"))
|
||||||
|
self.defense_bar.setFormat(_translate("Form", "%v"))
|
||||||
|
self.attack_bar.setFormat(_translate("Form", "%v"))
|
||||||
|
self.label_7.setText(_translate("Form", "Attack"))
|
||||||
|
self.label_9.setText(_translate("Form", "Defense"))
|
||||||
|
self.groupBox_2.setTitle(_translate("Form", "Evolution chain"))
|
129
src/gui_qt/_py/pokewindow.py
Normal file
129
src/gui_qt/_py/pokewindow.py
Normal file
@ -0,0 +1,129 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/pokewindow.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(1687, 991)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.pushButton = QtWidgets.QPushButton(parent=Dialog)
|
||||||
|
self.pushButton.setObjectName("pushButton")
|
||||||
|
self.gridLayout.addWidget(self.pushButton, 0, 2, 1, 1)
|
||||||
|
self.comboBox_2 = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.comboBox_2.setObjectName("comboBox_2")
|
||||||
|
self.gridLayout.addWidget(self.comboBox_2, 0, 0, 1, 1)
|
||||||
|
self.comboBox = QtWidgets.QComboBox(parent=Dialog)
|
||||||
|
self.comboBox.setObjectName("comboBox")
|
||||||
|
self.gridLayout.addWidget(self.comboBox, 0, 1, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.gridLayout.addItem(spacerItem, 0, 4, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.buttonBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.buttonBox.setSizePolicy(sizePolicy)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 0, 3, 1, 1)
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=Dialog)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.tableWidget_2 = QtWidgets.QTableWidget(parent=self.splitter)
|
||||||
|
self.tableWidget_2.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.tableWidget_2.setAlternatingRowColors(True)
|
||||||
|
self.tableWidget_2.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
|
||||||
|
self.tableWidget_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.tableWidget_2.setShowGrid(False)
|
||||||
|
self.tableWidget_2.setGridStyle(QtCore.Qt.PenStyle.NoPen)
|
||||||
|
self.tableWidget_2.setObjectName("tableWidget_2")
|
||||||
|
self.tableWidget_2.setColumnCount(13)
|
||||||
|
self.tableWidget_2.setRowCount(0)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(2, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(3, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(4, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(5, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(6, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(7, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(8, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(9, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(10, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(11, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.tableWidget_2.setHorizontalHeaderItem(12, item)
|
||||||
|
self.tableWidget_2.horizontalHeader().setDefaultSectionSize(80)
|
||||||
|
self.tableWidget_2.horizontalHeader().setStretchLastSection(False)
|
||||||
|
self.tableWidget_2.verticalHeader().setVisible(False)
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=self.splitter)
|
||||||
|
self.tabWidget.setMinimumSize(QtCore.QSize(418, 0))
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.gridLayout.addWidget(self.splitter, 1, 0, 1, 5)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.tabWidget.setCurrentIndex(-1)
|
||||||
|
self.buttonBox.rejected.connect(Dialog.close) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Gotta catch \'em all!"))
|
||||||
|
self.pushButton.setText(_translate("Dialog", "Random"))
|
||||||
|
self.tableWidget_2.setSortingEnabled(True)
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("Dialog", "#"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(1)
|
||||||
|
item.setText(_translate("Dialog", "Pokemon"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(2)
|
||||||
|
item.setText(_translate("Dialog", "Type"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(3)
|
||||||
|
item.setText(_translate("Dialog", "Total"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(4)
|
||||||
|
item.setText(_translate("Dialog", "HP"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Hit Points; Kraftpunkte"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(5)
|
||||||
|
item.setText(_translate("Dialog", "Attack"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Attacke"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(6)
|
||||||
|
item.setText(_translate("Dialog", "Defense"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Verteidigung"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(7)
|
||||||
|
item.setText(_translate("Dialog", "Sp. Attack"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Special Attack; Spezial-Attacke"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(8)
|
||||||
|
item.setText(_translate("Dialog", "Sp. Defense"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Special Defense; Spezial-Verteidigung"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(9)
|
||||||
|
item.setText(_translate("Dialog", "Speed"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Initiative"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(10)
|
||||||
|
item.setText(_translate("Dialog", "Height"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Größe"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(11)
|
||||||
|
item.setText(_translate("Dialog", "Weight"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Gewicht"))
|
||||||
|
item = self.tableWidget_2.horizontalHeaderItem(12)
|
||||||
|
item.setText(_translate("Dialog", "BMI"))
|
||||||
|
item.setToolTip(_translate("Dialog", "Body-Mass-Index"))
|
134
src/gui_qt/_py/ptstab.py
Normal file
134
src/gui_qt/_py/ptstab.py
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/ptstab.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Form(object):
|
||||||
|
def setupUi(self, Form):
|
||||||
|
Form.setObjectName("Form")
|
||||||
|
Form.resize(316, 747)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.peaktable = QtWidgets.QListWidget(parent=Form)
|
||||||
|
self.peaktable.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked|QtWidgets.QAbstractItemView.EditTrigger.EditKeyPressed)
|
||||||
|
self.peaktable.setObjectName("peaktable")
|
||||||
|
self.verticalLayout.addWidget(self.peaktable)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
|
||||||
|
self.horizontalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout.setSpacing(3)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.left_pt = QtWidgets.QSpinBox(parent=self.groupBox)
|
||||||
|
self.left_pt.setMaximum(999)
|
||||||
|
self.left_pt.setObjectName("left_pt")
|
||||||
|
self.horizontalLayout.addWidget(self.left_pt)
|
||||||
|
self.right_pt = QtWidgets.QSpinBox(parent=self.groupBox)
|
||||||
|
self.right_pt.setMaximum(999)
|
||||||
|
self.right_pt.setObjectName("right_pt")
|
||||||
|
self.horizontalLayout.addWidget(self.right_pt)
|
||||||
|
self.average_combobox = QtWidgets.QComboBox(parent=self.groupBox)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.average_combobox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.average_combobox.setSizePolicy(sizePolicy)
|
||||||
|
self.average_combobox.setObjectName("average_combobox")
|
||||||
|
self.average_combobox.addItem("")
|
||||||
|
self.average_combobox.addItem("")
|
||||||
|
self.average_combobox.addItem("")
|
||||||
|
self.average_combobox.addItem("")
|
||||||
|
self.horizontalLayout.addWidget(self.average_combobox)
|
||||||
|
self.verticalLayout.addWidget(self.groupBox)
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.groupBox_2.setCheckable(True)
|
||||||
|
self.groupBox_2.setChecked(False)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_2)
|
||||||
|
self.horizontalLayout_5.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.horizontalLayout_5.setSpacing(2)
|
||||||
|
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
||||||
|
self.special_comboBox = QtWidgets.QComboBox(parent=self.groupBox_2)
|
||||||
|
self.special_comboBox.setObjectName("special_comboBox")
|
||||||
|
self.special_comboBox.addItem("")
|
||||||
|
self.special_comboBox.addItem("")
|
||||||
|
self.special_comboBox.addItem("")
|
||||||
|
self.special_comboBox.addItem("")
|
||||||
|
self.horizontalLayout_5.addWidget(self.special_comboBox)
|
||||||
|
self.verticalLayout.addWidget(self.groupBox_2)
|
||||||
|
self.groupBox_3 = QtWidgets.QGroupBox(parent=Form)
|
||||||
|
self.groupBox_3.setObjectName("groupBox_3")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.groupBox_3)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.xbutton = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
self.xbutton.setObjectName("xbutton")
|
||||||
|
self.gridLayout.addWidget(self.xbutton, 0, 0, 1, 1)
|
||||||
|
self.ybutton = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
self.ybutton.setChecked(True)
|
||||||
|
self.ybutton.setObjectName("ybutton")
|
||||||
|
self.gridLayout.addWidget(self.ybutton, 0, 1, 1, 1)
|
||||||
|
self.graph_checkbox = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
self.graph_checkbox.setChecked(True)
|
||||||
|
self.graph_checkbox.setObjectName("graph_checkbox")
|
||||||
|
self.gridLayout.addWidget(self.graph_checkbox, 1, 0, 1, 1)
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=self.groupBox_3)
|
||||||
|
self.graph_combobox.setEnabled(False)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.gridLayout.addWidget(self.graph_combobox, 1, 1, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.groupBox_3)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout_2.setSpacing(2)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.okButton = QtWidgets.QPushButton(parent=Form)
|
||||||
|
icon = QtGui.QIcon.fromTheme("dialog-ok")
|
||||||
|
self.okButton.setIcon(icon)
|
||||||
|
self.okButton.setObjectName("okButton")
|
||||||
|
self.horizontalLayout_2.addWidget(self.okButton)
|
||||||
|
self.deleteButton = QtWidgets.QPushButton(parent=Form)
|
||||||
|
icon = QtGui.QIcon.fromTheme("dialog-cancel")
|
||||||
|
self.deleteButton.setIcon(icon)
|
||||||
|
self.deleteButton.setObjectName("deleteButton")
|
||||||
|
self.horizontalLayout_2.addWidget(self.deleteButton)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||||||
|
|
||||||
|
self.retranslateUi(Form)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Form)
|
||||||
|
|
||||||
|
def retranslateUi(self, Form):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Form.setWindowTitle(_translate("Form", "Form"))
|
||||||
|
self.peaktable.setToolTip(_translate("Form", "Edit by entering new value: \n"
|
||||||
|
"Single number for points (e.g. 1e-6); \n"
|
||||||
|
"two numbers separated by space for regions (e.g. 1e-6 5e-6). \n"
|
||||||
|
"Changing between regions and points is NOT possible"))
|
||||||
|
self.groupBox.setTitle(_translate("Form", "Average (drop-down used for pts and regions)"))
|
||||||
|
self.left_pt.setSuffix(_translate("Form", " pts"))
|
||||||
|
self.left_pt.setPrefix(_translate("Form", "- "))
|
||||||
|
self.right_pt.setSuffix(_translate("Form", " pts"))
|
||||||
|
self.right_pt.setPrefix(_translate("Form", "+ "))
|
||||||
|
self.average_combobox.setItemText(0, _translate("Form", "Mean"))
|
||||||
|
self.average_combobox.setItemText(1, _translate("Form", "Sum"))
|
||||||
|
self.average_combobox.setItemText(2, _translate("Form", "Integral"))
|
||||||
|
self.average_combobox.setItemText(3, _translate("Form", "Std. deviation"))
|
||||||
|
self.groupBox_2.setTitle(_translate("Form", "Special value"))
|
||||||
|
self.special_comboBox.setToolTip(_translate("Form", "Automatic selection of respective points"))
|
||||||
|
self.special_comboBox.setItemText(0, _translate("Form", "max(y)"))
|
||||||
|
self.special_comboBox.setItemText(1, _translate("Form", "max(abs(y))"))
|
||||||
|
self.special_comboBox.setItemText(2, _translate("Form", "min(y)"))
|
||||||
|
self.special_comboBox.setItemText(3, _translate("Form", "min(abs(y))"))
|
||||||
|
self.groupBox_3.setTitle(_translate("Form", "Result"))
|
||||||
|
self.xbutton.setText(_translate("Form", "x"))
|
||||||
|
self.ybutton.setText(_translate("Form", "y"))
|
||||||
|
self.graph_checkbox.setText(_translate("Form", "New graph?"))
|
||||||
|
self.okButton.setText(_translate("Form", "Apply"))
|
||||||
|
self.deleteButton.setText(_translate("Form", "Delete selected"))
|
130
src/gui_qt/_py/save_fit_parameter.py
Normal file
130
src/gui_qt/_py/save_fit_parameter.py
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/save_fit_parameter.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_fitparameter_save_dialog(object):
|
||||||
|
def setupUi(self, fitparameter_save_dialog):
|
||||||
|
fitparameter_save_dialog.setObjectName("fitparameter_save_dialog")
|
||||||
|
fitparameter_save_dialog.resize(578, 537)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(fitparameter_save_dialog)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.save_path_line = QtWidgets.QLineEdit(parent=fitparameter_save_dialog)
|
||||||
|
self.save_path_line.setObjectName("save_path_line")
|
||||||
|
self.gridLayout.addWidget(self.save_path_line, 0, 1, 1, 6)
|
||||||
|
self.save_path_button = QtWidgets.QToolButton(parent=fitparameter_save_dialog)
|
||||||
|
self.save_path_button.setObjectName("save_path_button")
|
||||||
|
self.gridLayout.addWidget(self.save_path_button, 0, 0, 1, 1)
|
||||||
|
self.comment_line = QtWidgets.QLineEdit(parent=fitparameter_save_dialog)
|
||||||
|
self.comment_line.setObjectName("comment_line")
|
||||||
|
self.gridLayout.addWidget(self.comment_line, 6, 6, 1, 1)
|
||||||
|
self.prec_spinbox = QtWidgets.QSpinBox(parent=fitparameter_save_dialog)
|
||||||
|
self.prec_spinbox.setProperty("value", 8)
|
||||||
|
self.prec_spinbox.setObjectName("prec_spinbox")
|
||||||
|
self.gridLayout.addWidget(self.prec_spinbox, 6, 3, 1, 1)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=fitparameter_save_dialog)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.gridLayout.addWidget(self.line_2, 4, 0, 1, 7)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=fitparameter_save_dialog)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.col_line = QtWidgets.QLineEdit(parent=fitparameter_save_dialog)
|
||||||
|
self.col_line.setObjectName("col_line")
|
||||||
|
self.horizontalLayout.addWidget(self.col_line)
|
||||||
|
self.usage_button = QtWidgets.QToolButton(parent=fitparameter_save_dialog)
|
||||||
|
self.usage_button.setObjectName("usage_button")
|
||||||
|
self.horizontalLayout.addWidget(self.usage_button)
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout, 3, 1, 1, 6)
|
||||||
|
self.header_edit = QtWidgets.QTextEdit(parent=fitparameter_save_dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.header_edit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.header_edit.setSizePolicy(sizePolicy)
|
||||||
|
self.header_edit.setObjectName("header_edit")
|
||||||
|
self.gridLayout.addWidget(self.header_edit, 5, 1, 1, 6)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=fitparameter_save_dialog)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.gridLayout.addWidget(self.label_4, 6, 2, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=fitparameter_save_dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.line.sizePolicy().hasHeightForWidth())
|
||||||
|
self.line.setSizePolicy(sizePolicy)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 1, 0, 1, 7)
|
||||||
|
self.missing_value_line = QtWidgets.QLineEdit(parent=fitparameter_save_dialog)
|
||||||
|
self.missing_value_line.setObjectName("missing_value_line")
|
||||||
|
self.gridLayout.addWidget(self.missing_value_line, 6, 1, 1, 1)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=fitparameter_save_dialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 6, 4, 1, 1)
|
||||||
|
self.tableWidget = QtWidgets.QTableWidget(parent=fitparameter_save_dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.tableWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.tableWidget.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DragOnly)
|
||||||
|
self.tableWidget.setAlternatingRowColors(True)
|
||||||
|
self.tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.tableWidget.setColumnCount(2)
|
||||||
|
self.tableWidget.setObjectName("tableWidget")
|
||||||
|
self.tableWidget.setRowCount(0)
|
||||||
|
self.tableWidget.horizontalHeader().setVisible(False)
|
||||||
|
self.tableWidget.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.gridLayout.addWidget(self.tableWidget, 2, 0, 1, 7)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=fitparameter_save_dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 7, 0, 1, 7)
|
||||||
|
self.label = QtWidgets.QLabel(parent=fitparameter_save_dialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 6, 0, 1, 1)
|
||||||
|
self.header_checkBox = QtWidgets.QCheckBox(parent=fitparameter_save_dialog)
|
||||||
|
self.header_checkBox.setObjectName("header_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.header_checkBox, 5, 0, 1, 1)
|
||||||
|
self.label_5.setBuddy(self.col_line)
|
||||||
|
self.label_2.setBuddy(self.comment_line)
|
||||||
|
self.label.setBuddy(self.missing_value_line)
|
||||||
|
|
||||||
|
self.retranslateUi(fitparameter_save_dialog)
|
||||||
|
self.buttonBox.accepted.connect(fitparameter_save_dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(fitparameter_save_dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(fitparameter_save_dialog)
|
||||||
|
fitparameter_save_dialog.setTabOrder(self.save_path_button, self.save_path_line)
|
||||||
|
fitparameter_save_dialog.setTabOrder(self.save_path_line, self.tableWidget)
|
||||||
|
fitparameter_save_dialog.setTabOrder(self.tableWidget, self.header_edit)
|
||||||
|
fitparameter_save_dialog.setTabOrder(self.header_edit, self.missing_value_line)
|
||||||
|
fitparameter_save_dialog.setTabOrder(self.missing_value_line, self.comment_line)
|
||||||
|
|
||||||
|
def retranslateUi(self, fitparameter_save_dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
fitparameter_save_dialog.setWindowTitle(_translate("fitparameter_save_dialog", "Save parameter"))
|
||||||
|
self.save_path_button.setText(_translate("fitparameter_save_dialog", "Save path..."))
|
||||||
|
self.comment_line.setText(_translate("fitparameter_save_dialog", "#"))
|
||||||
|
self.label_5.setText(_translate("fitparameter_save_dialog", "Columns"))
|
||||||
|
self.col_line.setPlaceholderText(_translate("fitparameter_save_dialog", "e.g. x; 1000/x; mean(T_1,beta); {beta/beta_1}; M_0*x"))
|
||||||
|
self.usage_button.setText(_translate("fitparameter_save_dialog", "Usage?"))
|
||||||
|
self.header_edit.setPlaceholderText(_translate("fitparameter_save_dialog", "Header ends always with column description. Additional header lines are commented automatically"))
|
||||||
|
self.label_4.setText(_translate("fitparameter_save_dialog", "Precision"))
|
||||||
|
self.missing_value_line.setText(_translate("fitparameter_save_dialog", "1e308"))
|
||||||
|
self.label_2.setText(_translate("fitparameter_save_dialog", "Comment"))
|
||||||
|
self.buttonBox.setToolTip(_translate("fitparameter_save_dialog", "Number of significant digits."))
|
||||||
|
self.label.setText(_translate("fitparameter_save_dialog", "Missing values"))
|
||||||
|
self.header_checkBox.setText(_translate("fitparameter_save_dialog", "Header"))
|
63
src/gui_qt/_py/save_fitmodel_dialog.py
Normal file
63
src/gui_qt/_py/save_fitmodel_dialog.py
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/save_fitmodel_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_SaveDialog(object):
|
||||||
|
def setupUi(self, SaveDialog):
|
||||||
|
SaveDialog.setObjectName("SaveDialog")
|
||||||
|
SaveDialog.resize(400, 166)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(SaveDialog)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=SaveDialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=SaveDialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 3, 1, 1, 1)
|
||||||
|
self.comboBox = QtWidgets.QComboBox(parent=SaveDialog)
|
||||||
|
self.comboBox.setObjectName("comboBox")
|
||||||
|
self.gridLayout.addWidget(self.comboBox, 1, 1, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=SaveDialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
|
||||||
|
self.lineEdit = QtWidgets.QLineEdit(parent=SaveDialog)
|
||||||
|
self.lineEdit.setObjectName("lineEdit")
|
||||||
|
self.gridLayout.addWidget(self.lineEdit, 0, 1, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout.addItem(spacerItem, 4, 1, 1, 1)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=SaveDialog)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setSpacing(0)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.lineEdit_2 = QtWidgets.QLineEdit(parent=self.frame)
|
||||||
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
||||||
|
self.horizontalLayout.addWidget(self.lineEdit_2)
|
||||||
|
self.toolButton = QtWidgets.QToolButton(parent=self.frame)
|
||||||
|
self.toolButton.setObjectName("toolButton")
|
||||||
|
self.horizontalLayout.addWidget(self.toolButton)
|
||||||
|
self.gridLayout.addWidget(self.frame, 2, 1, 1, 1)
|
||||||
|
|
||||||
|
self.retranslateUi(SaveDialog)
|
||||||
|
self.buttonBox.accepted.connect(SaveDialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(SaveDialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(SaveDialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, SaveDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
SaveDialog.setWindowTitle(_translate("SaveDialog", "Dialog"))
|
||||||
|
self.label_2.setText(_translate("SaveDialog", "Group"))
|
||||||
|
self.label.setText(_translate("SaveDialog", "Name"))
|
||||||
|
self.toolButton.setText(_translate("SaveDialog", "OK"))
|
313
src/gui_qt/_py/shift_scale_dialog.py
Normal file
313
src/gui_qt/_py/shift_scale_dialog.py
Normal file
@ -0,0 +1,313 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/shift_scale_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_shift_dialog(object):
|
||||||
|
def setupUi(self, shift_dialog):
|
||||||
|
shift_dialog.setObjectName("shift_dialog")
|
||||||
|
shift_dialog.resize(959, 639)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(shift_dialog)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=shift_dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
|
||||||
|
self.splitter.setSizePolicy(sizePolicy)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.tabWidget = QtWidgets.QTabWidget(parent=self.splitter)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.tabWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.tabWidget.setObjectName("tabWidget")
|
||||||
|
self.shift_page = QtWidgets.QWidget()
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.shift_page.sizePolicy().hasHeightForWidth())
|
||||||
|
self.shift_page.setSizePolicy(sizePolicy)
|
||||||
|
self.shift_page.setObjectName("shift_page")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.shift_page)
|
||||||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.shift_page)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.shift_page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label.setSizePolicy(sizePolicy)
|
||||||
|
self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout_2.addWidget(self.label, 2, 1, 1, 1)
|
||||||
|
self.x_shift_spinbox = SciSpinBox(parent=self.shift_page)
|
||||||
|
self.x_shift_spinbox.setMinimumSize(QtCore.QSize(150, 0))
|
||||||
|
self.x_shift_spinbox.setDecimals(3)
|
||||||
|
self.x_shift_spinbox.setProperty("value", 0.0)
|
||||||
|
self.x_shift_spinbox.setObjectName("x_shift_spinbox")
|
||||||
|
self.gridLayout_2.addWidget(self.x_shift_spinbox, 2, 2, 1, 1)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.shift_page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_5.setSizePolicy(sizePolicy)
|
||||||
|
self.label_5.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.gridLayout_2.addWidget(self.label_5, 3, 1, 1, 1)
|
||||||
|
self.y_shift_spinbox = SciSpinBox(parent=self.shift_page)
|
||||||
|
self.y_shift_spinbox.setMinimumSize(QtCore.QSize(150, 0))
|
||||||
|
self.y_shift_spinbox.setDecimals(3)
|
||||||
|
self.y_shift_spinbox.setProperty("value", 0.0)
|
||||||
|
self.y_shift_spinbox.setObjectName("y_shift_spinbox")
|
||||||
|
self.gridLayout_2.addWidget(self.y_shift_spinbox, 3, 2, 1, 1)
|
||||||
|
self.shift_table = QtWidgets.QTableWidget(parent=self.shift_page)
|
||||||
|
self.shift_table.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
|
||||||
|
self.shift_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.shift_table.setColumnCount(3)
|
||||||
|
self.shift_table.setObjectName("shift_table")
|
||||||
|
self.shift_table.setRowCount(0)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.shift_table.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.shift_table.setHorizontalHeaderItem(1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.shift_table.setHorizontalHeaderItem(2, item)
|
||||||
|
self.shift_table.verticalHeader().setVisible(False)
|
||||||
|
self.gridLayout_2.addWidget(self.shift_table, 0, 0, 1, 3)
|
||||||
|
self.tabWidget.addTab(self.shift_page, "")
|
||||||
|
self.scale_page = QtWidgets.QWidget()
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.scale_page.sizePolicy().hasHeightForWidth())
|
||||||
|
self.scale_page.setSizePolicy(sizePolicy)
|
||||||
|
self.scale_page.setObjectName("scale_page")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.scale_page)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.scale_page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_3.setSizePolicy(sizePolicy)
|
||||||
|
self.label_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.gridLayout.addWidget(self.label_3, 1, 1, 1, 1)
|
||||||
|
self.x_scale_spinbox = SciSpinBox(parent=self.scale_page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.x_scale_spinbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.x_scale_spinbox.setSizePolicy(sizePolicy)
|
||||||
|
self.x_scale_spinbox.setMinimumSize(QtCore.QSize(150, 0))
|
||||||
|
self.x_scale_spinbox.setDecimals(3)
|
||||||
|
self.x_scale_spinbox.setProperty("value", 1.0)
|
||||||
|
self.x_scale_spinbox.setObjectName("x_scale_spinbox")
|
||||||
|
self.gridLayout.addWidget(self.x_scale_spinbox, 1, 2, 1, 1)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.scale_page)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.scale_page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_2.setSizePolicy(sizePolicy)
|
||||||
|
self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 2, 1, 1, 1)
|
||||||
|
self.y_scale_spinbox = SciSpinBox(parent=self.scale_page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.y_scale_spinbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.y_scale_spinbox.setSizePolicy(sizePolicy)
|
||||||
|
self.y_scale_spinbox.setMinimumSize(QtCore.QSize(150, 0))
|
||||||
|
self.y_scale_spinbox.setDecimals(3)
|
||||||
|
self.y_scale_spinbox.setProperty("value", 1.0)
|
||||||
|
self.y_scale_spinbox.setObjectName("y_scale_spinbox")
|
||||||
|
self.gridLayout.addWidget(self.y_scale_spinbox, 2, 2, 1, 1)
|
||||||
|
self.scale_table = QtWidgets.QTableWidget(parent=self.scale_page)
|
||||||
|
self.scale_table.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
|
||||||
|
self.scale_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.scale_table.setObjectName("scale_table")
|
||||||
|
self.scale_table.setColumnCount(3)
|
||||||
|
self.scale_table.setRowCount(0)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.scale_table.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.scale_table.setHorizontalHeaderItem(1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.scale_table.setHorizontalHeaderItem(2, item)
|
||||||
|
self.scale_table.verticalHeader().setVisible(False)
|
||||||
|
self.gridLayout.addWidget(self.scale_table, 0, 0, 1, 3)
|
||||||
|
self.tabWidget.addTab(self.scale_page, "")
|
||||||
|
self.verticalFrame_2 = QtWidgets.QFrame(parent=self.splitter)
|
||||||
|
self.verticalFrame_2.setObjectName("verticalFrame_2")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalFrame_2)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.graphicsView = NMRPlotWidget(parent=self.verticalFrame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
|
||||||
|
self.graphicsView.setSizePolicy(sizePolicy)
|
||||||
|
self.graphicsView.setObjectName("graphicsView")
|
||||||
|
self.verticalLayout_2.addWidget(self.graphicsView)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.verticalFrame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_4.setSizePolicy(sizePolicy)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.horizontalLayout.addWidget(self.label_4)
|
||||||
|
self.xlog_checkbox = QtWidgets.QCheckBox(parent=self.verticalFrame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.xlog_checkbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.xlog_checkbox.setSizePolicy(sizePolicy)
|
||||||
|
self.xlog_checkbox.setObjectName("xlog_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.xlog_checkbox)
|
||||||
|
self.ylog_checkbox = QtWidgets.QCheckBox(parent=self.verticalFrame_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.ylog_checkbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.ylog_checkbox.setSizePolicy(sizePolicy)
|
||||||
|
self.ylog_checkbox.setObjectName("ylog_checkbox")
|
||||||
|
self.horizontalLayout.addWidget(self.ylog_checkbox)
|
||||||
|
self.verticalLayout_2.addLayout(self.horizontalLayout)
|
||||||
|
self.verticalLayout.addWidget(self.splitter)
|
||||||
|
self.line = QtWidgets.QFrame(parent=shift_dialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.verticalLayout.addWidget(self.line)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=shift_dialog)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.frame)
|
||||||
|
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_4.setSpacing(3)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.value_checkbox = QtWidgets.QCheckBox(parent=self.frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.value_checkbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.value_checkbox.setSizePolicy(sizePolicy)
|
||||||
|
self.value_checkbox.setChecked(True)
|
||||||
|
self.value_checkbox.setObjectName("value_checkbox")
|
||||||
|
self.gridLayout_4.addWidget(self.value_checkbox, 0, 1, 1, 1)
|
||||||
|
self.overwrite_checkbox = QtWidgets.QCheckBox(parent=self.frame)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.overwrite_checkbox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.overwrite_checkbox.setSizePolicy(sizePolicy)
|
||||||
|
self.overwrite_checkbox.setObjectName("overwrite_checkbox")
|
||||||
|
self.gridLayout_4.addWidget(self.overwrite_checkbox, 0, 0, 1, 1)
|
||||||
|
self.data_newgraph = QtWidgets.QCheckBox(parent=self.frame)
|
||||||
|
self.data_newgraph.setChecked(True)
|
||||||
|
self.data_newgraph.setObjectName("data_newgraph")
|
||||||
|
self.gridLayout_4.addWidget(self.data_newgraph, 1, 0, 1, 1)
|
||||||
|
self.data_combobox = QtWidgets.QComboBox(parent=self.frame)
|
||||||
|
self.data_combobox.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.data_combobox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.data_combobox.setSizePolicy(sizePolicy)
|
||||||
|
self.data_combobox.setObjectName("data_combobox")
|
||||||
|
self.gridLayout_4.addWidget(self.data_combobox, 2, 0, 1, 1)
|
||||||
|
self.values_newgraph = QtWidgets.QCheckBox(parent=self.frame)
|
||||||
|
self.values_newgraph.setChecked(True)
|
||||||
|
self.values_newgraph.setObjectName("values_newgraph")
|
||||||
|
self.gridLayout_4.addWidget(self.values_newgraph, 1, 1, 1, 1)
|
||||||
|
self.values_combobox = QtWidgets.QComboBox(parent=self.frame)
|
||||||
|
self.values_combobox.setEnabled(False)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.values_combobox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.values_combobox.setSizePolicy(sizePolicy)
|
||||||
|
self.values_combobox.setObjectName("values_combobox")
|
||||||
|
self.gridLayout_4.addWidget(self.values_combobox, 2, 1, 1, 1)
|
||||||
|
self.verticalLayout.addWidget(self.frame)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=shift_dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
self.label.setBuddy(self.x_shift_spinbox)
|
||||||
|
self.label_5.setBuddy(self.y_shift_spinbox)
|
||||||
|
self.label_3.setBuddy(self.x_scale_spinbox)
|
||||||
|
self.label_2.setBuddy(self.y_scale_spinbox)
|
||||||
|
|
||||||
|
self.retranslateUi(shift_dialog)
|
||||||
|
self.tabWidget.setCurrentIndex(0)
|
||||||
|
self.buttonBox.accepted.connect(shift_dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(shift_dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(shift_dialog)
|
||||||
|
shift_dialog.setTabOrder(self.tabWidget, self.shift_table)
|
||||||
|
shift_dialog.setTabOrder(self.shift_table, self.x_shift_spinbox)
|
||||||
|
shift_dialog.setTabOrder(self.x_shift_spinbox, self.y_shift_spinbox)
|
||||||
|
shift_dialog.setTabOrder(self.y_shift_spinbox, self.scale_table)
|
||||||
|
shift_dialog.setTabOrder(self.scale_table, self.x_scale_spinbox)
|
||||||
|
shift_dialog.setTabOrder(self.x_scale_spinbox, self.y_scale_spinbox)
|
||||||
|
shift_dialog.setTabOrder(self.y_scale_spinbox, self.xlog_checkbox)
|
||||||
|
shift_dialog.setTabOrder(self.xlog_checkbox, self.ylog_checkbox)
|
||||||
|
shift_dialog.setTabOrder(self.ylog_checkbox, self.graphicsView)
|
||||||
|
|
||||||
|
def retranslateUi(self, shift_dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
shift_dialog.setWindowTitle(_translate("shift_dialog", "Shift + Scale"))
|
||||||
|
self.label_7.setText(_translate("shift_dialog", "Global"))
|
||||||
|
self.label.setText(_translate("shift_dialog", "<html><head/><body><p><span style=\" font-weight:600;\">x</span></p></body></html>"))
|
||||||
|
self.label_5.setText(_translate("shift_dialog", "<html><head/><body><p><span style=\" font-weight:600;\">y</span></p></body></html>"))
|
||||||
|
item = self.shift_table.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("shift_dialog", "Data"))
|
||||||
|
item = self.shift_table.horizontalHeaderItem(1)
|
||||||
|
item.setText(_translate("shift_dialog", "x"))
|
||||||
|
item = self.shift_table.horizontalHeaderItem(2)
|
||||||
|
item.setText(_translate("shift_dialog", "y"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.shift_page), _translate("shift_dialog", "Shift"))
|
||||||
|
self.label_3.setText(_translate("shift_dialog", "<html><head/><body><p><span style=\" font-weight:600;\">x</span></p></body></html>"))
|
||||||
|
self.label_6.setText(_translate("shift_dialog", "Global:"))
|
||||||
|
self.label_2.setText(_translate("shift_dialog", "<html><head/><body><p><span style=\" font-weight:600;\">y</span></p></body></html>"))
|
||||||
|
item = self.scale_table.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("shift_dialog", "Data"))
|
||||||
|
item = self.scale_table.horizontalHeaderItem(1)
|
||||||
|
item.setText(_translate("shift_dialog", "x"))
|
||||||
|
item = self.scale_table.horizontalHeaderItem(2)
|
||||||
|
item.setText(_translate("shift_dialog", "y"))
|
||||||
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.scale_page), _translate("shift_dialog", "Scale"))
|
||||||
|
self.label_4.setText(_translate("shift_dialog", "Axes:"))
|
||||||
|
self.xlog_checkbox.setText(_translate("shift_dialog", "log x"))
|
||||||
|
self.ylog_checkbox.setText(_translate("shift_dialog", "log y"))
|
||||||
|
self.value_checkbox.setText(_translate("shift_dialog", "Export shift/scale values"))
|
||||||
|
self.overwrite_checkbox.setText(_translate("shift_dialog", "Overwrite data"))
|
||||||
|
self.data_newgraph.setText(_translate("shift_dialog", "New graph"))
|
||||||
|
self.values_newgraph.setText(_translate("shift_dialog", "New graph"))
|
||||||
|
from ..lib.graph_items import NMRPlotWidget
|
||||||
|
from ..lib.spinboxes import SciSpinBox
|
94
src/gui_qt/_py/skipdialog.py
Normal file
94
src/gui_qt/_py/skipdialog.py
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/skipdialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_SkipDialog(object):
|
||||||
|
def setupUi(self, SkipDialog):
|
||||||
|
SkipDialog.setObjectName("SkipDialog")
|
||||||
|
SkipDialog.resize(448, 208)
|
||||||
|
SkipDialog.setWindowTitle("")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(SkipDialog)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=SkipDialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout.addItem(spacerItem, 3, 0, 1, 1)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=SkipDialog)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.gridLayout.addWidget(self.label_4, 0, 0, 1, 4)
|
||||||
|
self.offset_spinbox = QtWidgets.QSpinBox(parent=SkipDialog)
|
||||||
|
self.offset_spinbox.setMinimum(0)
|
||||||
|
self.offset_spinbox.setMaximum(1)
|
||||||
|
self.offset_spinbox.setProperty("value", 0)
|
||||||
|
self.offset_spinbox.setObjectName("offset_spinbox")
|
||||||
|
self.gridLayout.addWidget(self.offset_spinbox, 1, 3, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=SkipDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label.setSizePolicy(sizePolicy)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout.addWidget(self.label, 1, 2, 1, 1)
|
||||||
|
self.step_spinbox = QtWidgets.QSpinBox(parent=SkipDialog)
|
||||||
|
self.step_spinbox.setMinimum(2)
|
||||||
|
self.step_spinbox.setObjectName("step_spinbox")
|
||||||
|
self.gridLayout.addWidget(self.step_spinbox, 1, 1, 1, 1)
|
||||||
|
self.invert_check = QtWidgets.QCheckBox(parent=SkipDialog)
|
||||||
|
self.invert_check.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
|
||||||
|
self.invert_check.setObjectName("invert_check")
|
||||||
|
self.gridLayout.addWidget(self.invert_check, 1, 4, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=SkipDialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 5)
|
||||||
|
self.hide_button = QtWidgets.QRadioButton(parent=SkipDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.hide_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.hide_button.setSizePolicy(sizePolicy)
|
||||||
|
self.hide_button.setChecked(True)
|
||||||
|
self.hide_button.setObjectName("hide_button")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(SkipDialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.hide_button)
|
||||||
|
self.gridLayout.addWidget(self.hide_button, 2, 0, 1, 2)
|
||||||
|
self.delete_button = QtWidgets.QRadioButton(parent=SkipDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.delete_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.delete_button.setSizePolicy(sizePolicy)
|
||||||
|
self.delete_button.setObjectName("delete_button")
|
||||||
|
self.buttonGroup.addButton(self.delete_button)
|
||||||
|
self.gridLayout.addWidget(self.delete_button, 2, 2, 1, 3)
|
||||||
|
self.label_2.setBuddy(self.step_spinbox)
|
||||||
|
self.label.setBuddy(self.offset_spinbox)
|
||||||
|
|
||||||
|
self.retranslateUi(SkipDialog)
|
||||||
|
self.buttonBox.accepted.connect(SkipDialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(SkipDialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(SkipDialog)
|
||||||
|
SkipDialog.setTabOrder(self.step_spinbox, self.offset_spinbox)
|
||||||
|
SkipDialog.setTabOrder(self.offset_spinbox, self.invert_check)
|
||||||
|
SkipDialog.setTabOrder(self.invert_check, self.hide_button)
|
||||||
|
SkipDialog.setTabOrder(self.hide_button, self.delete_button)
|
||||||
|
|
||||||
|
def retranslateUi(self, SkipDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
self.label_2.setText(_translate("SkipDialog", "Step"))
|
||||||
|
self.label_4.setText(_translate("SkipDialog", "<html><head/><body><p>Show every <span style=\" font-style:italic;\">step</span> point, beginning with <span style=\" font-style:italic;\">offset (<step).<br/></span>Use <span style=\" font-style:italic;\">Invert </span>to hide every <span style=\" font-style:italic;\">step </span>point.</p></body></html>"))
|
||||||
|
self.label.setText(_translate("SkipDialog", "Offset"))
|
||||||
|
self.invert_check.setText(_translate("SkipDialog", "Invert"))
|
||||||
|
self.hide_button.setText(_translate("SkipDialog", "Hide skipped pts."))
|
||||||
|
self.delete_button.setText(_translate("SkipDialog", "Copy without any hidden pts."))
|
124
src/gui_qt/_py/smoothdialog.py
Normal file
124
src/gui_qt/_py/smoothdialog.py
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/smoothdialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_SmoothDialog(object):
|
||||||
|
def setupUi(self, SmoothDialog):
|
||||||
|
SmoothDialog.setObjectName("SmoothDialog")
|
||||||
|
SmoothDialog.resize(451, 220)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(SmoothDialog)
|
||||||
|
self.gridLayout.setSpacing(3)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout.addItem(spacerItem, 7, 0, 1, 1)
|
||||||
|
self.frac_label = QtWidgets.QLabel(parent=SmoothDialog)
|
||||||
|
self.frac_label.setObjectName("frac_label")
|
||||||
|
self.gridLayout.addWidget(self.frac_label, 2, 0, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=SmoothDialog)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout.addWidget(self.line, 5, 0, 1, 2)
|
||||||
|
self.widget = QtWidgets.QWidget(parent=SmoothDialog)
|
||||||
|
self.widget.setObjectName("widget")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_2.setSpacing(3)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.widget)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label)
|
||||||
|
self.polynom_spinBox = QtWidgets.QSpinBox(parent=self.widget)
|
||||||
|
self.polynom_spinBox.setMinimum(1)
|
||||||
|
self.polynom_spinBox.setMaximum(3)
|
||||||
|
self.polynom_spinBox.setObjectName("polynom_spinBox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.polynom_spinBox)
|
||||||
|
self.gridLayout.addWidget(self.widget, 3, 0, 1, 2)
|
||||||
|
self.y_checkBox = QtWidgets.QCheckBox(parent=SmoothDialog)
|
||||||
|
self.y_checkBox.setObjectName("y_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.y_checkBox, 6, 1, 1, 1)
|
||||||
|
self.x_checkBox = QtWidgets.QCheckBox(parent=SmoothDialog)
|
||||||
|
self.x_checkBox.setObjectName("x_checkBox")
|
||||||
|
self.gridLayout.addWidget(self.x_checkBox, 6, 0, 1, 1)
|
||||||
|
self.widget_2 = QtWidgets.QWidget(parent=SmoothDialog)
|
||||||
|
self.widget_2.setObjectName("widget_2")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget_2)
|
||||||
|
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_3.setSpacing(3)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.widget_2)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_3)
|
||||||
|
self.iter_spinBox = QtWidgets.QSpinBox(parent=self.widget_2)
|
||||||
|
self.iter_spinBox.setMaximum(3)
|
||||||
|
self.iter_spinBox.setSingleStep(1)
|
||||||
|
self.iter_spinBox.setProperty("value", 1)
|
||||||
|
self.iter_spinBox.setObjectName("iter_spinBox")
|
||||||
|
self.horizontalLayout_3.addWidget(self.iter_spinBox)
|
||||||
|
self.gridLayout.addWidget(self.widget_2, 4, 0, 1, 2)
|
||||||
|
self.frac_spinBox = QtWidgets.QSpinBox(parent=SmoothDialog)
|
||||||
|
self.frac_spinBox.setMinimum(1)
|
||||||
|
self.frac_spinBox.setMaximum(999)
|
||||||
|
self.frac_spinBox.setObjectName("frac_spinBox")
|
||||||
|
self.gridLayout.addWidget(self.frac_spinBox, 2, 1, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=SmoothDialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout.addWidget(self.buttonBox, 8, 0, 1, 2)
|
||||||
|
self.comboBox = QtWidgets.QComboBox(parent=SmoothDialog)
|
||||||
|
self.comboBox.setObjectName("comboBox")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.comboBox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.comboBox, 1, 0, 1, 2)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=SmoothDialog)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 2)
|
||||||
|
self.frac_label.setBuddy(self.frac_spinBox)
|
||||||
|
self.label.setBuddy(self.polynom_spinBox)
|
||||||
|
self.label_3.setBuddy(self.iter_spinBox)
|
||||||
|
|
||||||
|
self.retranslateUi(SmoothDialog)
|
||||||
|
self.buttonBox.accepted.connect(SmoothDialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(SmoothDialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(SmoothDialog)
|
||||||
|
SmoothDialog.setTabOrder(self.comboBox, self.frac_spinBox)
|
||||||
|
SmoothDialog.setTabOrder(self.frac_spinBox, self.polynom_spinBox)
|
||||||
|
SmoothDialog.setTabOrder(self.polynom_spinBox, self.iter_spinBox)
|
||||||
|
SmoothDialog.setTabOrder(self.iter_spinBox, self.x_checkBox)
|
||||||
|
SmoothDialog.setTabOrder(self.x_checkBox, self.y_checkBox)
|
||||||
|
|
||||||
|
def retranslateUi(self, SmoothDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
SmoothDialog.setWindowTitle(_translate("SmoothDialog", "1D smoothing filter"))
|
||||||
|
self.frac_label.setText(_translate("SmoothDialog", "Window length"))
|
||||||
|
self.label.setText(_translate("SmoothDialog", "Polynomial degree"))
|
||||||
|
self.polynom_spinBox.setToolTip(_translate("SmoothDialog", "Deg"))
|
||||||
|
self.y_checkBox.setText(_translate("SmoothDialog", "y log-spaced?"))
|
||||||
|
self.x_checkBox.setText(_translate("SmoothDialog", "x log-spaced?"))
|
||||||
|
self.label_3.setText(_translate("SmoothDialog", "Iterations"))
|
||||||
|
self.frac_spinBox.setToolTip(_translate("SmoothDialog", "<html><head/><body><p>Number of data points used as smoothing window.</p></body></html>"))
|
||||||
|
self.comboBox.setItemText(0, _translate("SmoothDialog", "Moving mean"))
|
||||||
|
self.comboBox.setItemText(1, _translate("SmoothDialog", "Savitzky-Golay"))
|
||||||
|
self.comboBox.setItemText(2, _translate("SmoothDialog", "Loess (slow, use for < 10000 pts)"))
|
||||||
|
self.comboBox.setItemText(3, _translate("SmoothDialog", "Moving median"))
|
||||||
|
self.comboBox.setItemText(4, _translate("SmoothDialog", "Moving standard deviation"))
|
||||||
|
self.comboBox.setItemText(5, _translate("SmoothDialog", "Moving variance"))
|
||||||
|
self.comboBox.setItemText(6, _translate("SmoothDialog", "Moving maximum"))
|
||||||
|
self.comboBox.setItemText(7, _translate("SmoothDialog", "Moving minimum"))
|
||||||
|
self.comboBox.setItemText(8, _translate("SmoothDialog", "Moving sum"))
|
||||||
|
self.label_2.setText(_translate("SmoothDialog", "<html><head/><body><p><span style=\" font-weight:600;\">Note:</span> Sets must be sorted for correct results</p></body></html>"))
|
317
src/gui_qt/_py/t1_calc_dialog.py
Normal file
317
src/gui_qt/_py/t1_calc_dialog.py
Normal file
@ -0,0 +1,317 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/t1_calc_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(582, 698)
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(Dialog)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=Dialog)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(0)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.specdens_combobox = QtWidgets.QComboBox(parent=self.groupBox_2)
|
||||||
|
self.specdens_combobox.setObjectName("specdens_combobox")
|
||||||
|
self.verticalLayout_2.addWidget(self.specdens_combobox)
|
||||||
|
self.specdens_frame = QtWidgets.QFrame(parent=self.groupBox_2)
|
||||||
|
self.specdens_frame.setObjectName("specdens_frame")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.specdens_frame)
|
||||||
|
self.verticalLayout_3.setSpacing(0)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.verticalLayout_2.addWidget(self.specdens_frame)
|
||||||
|
self.coupling_combobox = QtWidgets.QComboBox(parent=self.groupBox_2)
|
||||||
|
self.coupling_combobox.setObjectName("coupling_combobox")
|
||||||
|
self.verticalLayout_2.addWidget(self.coupling_combobox)
|
||||||
|
self.coupling_frame = QtWidgets.QFrame(parent=self.groupBox_2)
|
||||||
|
self.coupling_frame.setObjectName("coupling_frame")
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.coupling_frame)
|
||||||
|
self.verticalLayout_4.setContentsMargins(-1, -1, 1, 1)
|
||||||
|
self.verticalLayout_4.setSpacing(0)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.verticalLayout_2.addWidget(self.coupling_frame)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox_2, 1, 0, 1, 1)
|
||||||
|
self.groupBox_3 = QtWidgets.QGroupBox(parent=Dialog)
|
||||||
|
self.groupBox_3.setObjectName("groupBox_3")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
|
||||||
|
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_4.setSpacing(3)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=self.groupBox_3)
|
||||||
|
self.graph_combobox.setEnabled(False)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.gridLayout_4.addWidget(self.graph_combobox, 1, 1, 1, 1)
|
||||||
|
self.graph_checkbox = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
self.graph_checkbox.setChecked(True)
|
||||||
|
self.graph_checkbox.setObjectName("graph_checkbox")
|
||||||
|
self.gridLayout_4.addWidget(self.graph_checkbox, 1, 0, 1, 1)
|
||||||
|
self.relax_combox = QtWidgets.QComboBox(parent=self.groupBox_3)
|
||||||
|
self.relax_combox.setObjectName("relax_combox")
|
||||||
|
self.relax_combox.addItem("")
|
||||||
|
self.relax_combox.addItem("")
|
||||||
|
self.gridLayout_4.addWidget(self.relax_combox, 0, 0, 1, 2)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox_3, 2, 0, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 1)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Apply|QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.gridLayout_2.addWidget(self.buttonBox, 4, 0, 1, 1)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=Dialog)
|
||||||
|
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.second_x_lineEdit = QtWidgets.QLineEdit(parent=self.groupBox)
|
||||||
|
self.second_x_lineEdit.setObjectName("second_x_lineEdit")
|
||||||
|
self.gridLayout_3.addWidget(self.second_x_lineEdit, 10, 1, 1, 1)
|
||||||
|
self.x_input_combobox = QtWidgets.QComboBox(parent=self.groupBox)
|
||||||
|
self.x_input_combobox.setObjectName("x_input_combobox")
|
||||||
|
self.x_input_combobox.addItem("")
|
||||||
|
self.x_input_combobox.addItem("")
|
||||||
|
self.gridLayout_3.addWidget(self.x_input_combobox, 1, 1, 1, 1)
|
||||||
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_4.setSpacing(2)
|
||||||
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||||
|
self.radioButton = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.radioButton.setChecked(True)
|
||||||
|
self.radioButton.setObjectName("radioButton")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(Dialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.radioButton)
|
||||||
|
self.horizontalLayout_4.addWidget(self.radioButton)
|
||||||
|
self.radioButton_2 = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.radioButton_2.setObjectName("radioButton_2")
|
||||||
|
self.buttonGroup.addButton(self.radioButton_2)
|
||||||
|
self.horizontalLayout_4.addWidget(self.radioButton_2)
|
||||||
|
self.radioButton_4 = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.radioButton_4.setObjectName("radioButton_4")
|
||||||
|
self.buttonGroup.addButton(self.radioButton_4)
|
||||||
|
self.horizontalLayout_4.addWidget(self.radioButton_4)
|
||||||
|
self.radioButton_3 = QtWidgets.QRadioButton(parent=self.groupBox)
|
||||||
|
self.radioButton_3.setObjectName("radioButton_3")
|
||||||
|
self.buttonGroup.addButton(self.radioButton_3)
|
||||||
|
self.horizontalLayout_4.addWidget(self.radioButton_3)
|
||||||
|
self.gridLayout_3.addLayout(self.horizontalLayout_4, 0, 0, 1, 2)
|
||||||
|
self.label_7 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_7.setObjectName("label_7")
|
||||||
|
self.gridLayout_3.addWidget(self.label_7, 10, 0, 1, 1)
|
||||||
|
self.line = QtWidgets.QFrame(parent=self.groupBox)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.gridLayout_3.addWidget(self.line, 9, 0, 1, 2)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=self.groupBox)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.gridLayout_3.addWidget(self.line_2, 7, 0, 1, 2)
|
||||||
|
self.range_widget = QtWidgets.QWidget(parent=self.groupBox)
|
||||||
|
self.range_widget.setObjectName("range_widget")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.range_widget)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.gridLayout.addItem(spacerItem1, 0, 0, 1, 1)
|
||||||
|
self.stop_lineEdit = QtWidgets.QLineEdit(parent=self.range_widget)
|
||||||
|
self.stop_lineEdit.setObjectName("stop_lineEdit")
|
||||||
|
self.gridLayout.addWidget(self.stop_lineEdit, 0, 3, 1, 1)
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.range_widget)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.gridLayout.addWidget(self.label_4, 0, 2, 1, 1)
|
||||||
|
self.spinBox = QtWidgets.QSpinBox(parent=self.range_widget)
|
||||||
|
self.spinBox.setProperty("value", 50)
|
||||||
|
self.spinBox.setObjectName("spinBox")
|
||||||
|
self.gridLayout.addWidget(self.spinBox, 0, 5, 1, 1)
|
||||||
|
self.start_lineEdit = QtWidgets.QLineEdit(parent=self.range_widget)
|
||||||
|
self.start_lineEdit.setObjectName("start_lineEdit")
|
||||||
|
self.gridLayout.addWidget(self.start_lineEdit, 0, 1, 1, 1)
|
||||||
|
self.checkBox = QtWidgets.QCheckBox(parent=self.range_widget)
|
||||||
|
self.checkBox.setObjectName("checkBox")
|
||||||
|
self.gridLayout.addWidget(self.checkBox, 0, 6, 1, 1)
|
||||||
|
self.gridLayout_3.addWidget(self.range_widget, 2, 0, 1, 2)
|
||||||
|
self.data_widget = QtWidgets.QWidget(parent=self.groupBox)
|
||||||
|
self.data_widget.setObjectName("data_widget")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.data_widget)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_2.setSpacing(2)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.tau_graph_combobox = QtWidgets.QComboBox(parent=self.data_widget)
|
||||||
|
self.tau_graph_combobox.setObjectName("tau_graph_combobox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.tau_graph_combobox)
|
||||||
|
self.tau_set_combobox = QtWidgets.QComboBox(parent=self.data_widget)
|
||||||
|
self.tau_set_combobox.setObjectName("tau_set_combobox")
|
||||||
|
self.horizontalLayout_2.addWidget(self.tau_set_combobox)
|
||||||
|
self.label_10 = QtWidgets.QLabel(parent=self.data_widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_10.setSizePolicy(sizePolicy)
|
||||||
|
self.label_10.setObjectName("label_10")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_10)
|
||||||
|
self.x_radioButton = QtWidgets.QRadioButton(parent=self.data_widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.x_radioButton.sizePolicy().hasHeightForWidth())
|
||||||
|
self.x_radioButton.setSizePolicy(sizePolicy)
|
||||||
|
self.x_radioButton.setObjectName("x_radioButton")
|
||||||
|
self.buttonGroup_2 = QtWidgets.QButtonGroup(Dialog)
|
||||||
|
self.buttonGroup_2.setObjectName("buttonGroup_2")
|
||||||
|
self.buttonGroup_2.addButton(self.x_radioButton)
|
||||||
|
self.horizontalLayout_2.addWidget(self.x_radioButton)
|
||||||
|
self.y_radioButton = QtWidgets.QRadioButton(parent=self.data_widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.y_radioButton.sizePolicy().hasHeightForWidth())
|
||||||
|
self.y_radioButton.setSizePolicy(sizePolicy)
|
||||||
|
self.y_radioButton.setChecked(True)
|
||||||
|
self.y_radioButton.setObjectName("y_radioButton")
|
||||||
|
self.buttonGroup_2.addButton(self.y_radioButton)
|
||||||
|
self.horizontalLayout_2.addWidget(self.y_radioButton)
|
||||||
|
self.gridLayout_3.addWidget(self.data_widget, 3, 0, 1, 2)
|
||||||
|
self.temp_widget = QtWidgets.QWidget(parent=self.groupBox)
|
||||||
|
self.temp_widget.setObjectName("temp_widget")
|
||||||
|
self.gridLayout_5 = QtWidgets.QGridLayout(self.temp_widget)
|
||||||
|
self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout_5.setHorizontalSpacing(6)
|
||||||
|
self.gridLayout_5.setVerticalSpacing(0)
|
||||||
|
self.gridLayout_5.setObjectName("gridLayout_5")
|
||||||
|
self.arr_widget = QtWidgets.QWidget(parent=self.temp_widget)
|
||||||
|
self.arr_widget.setObjectName("arr_widget")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.arr_widget)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setSpacing(2)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem2)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.arr_widget)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout.addWidget(self.label)
|
||||||
|
self.tau0_lineEdit = QtWidgets.QLineEdit(parent=self.arr_widget)
|
||||||
|
self.tau0_lineEdit.setObjectName("tau0_lineEdit")
|
||||||
|
self.horizontalLayout.addWidget(self.tau0_lineEdit)
|
||||||
|
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem3)
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.arr_widget)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.horizontalLayout.addWidget(self.label_2)
|
||||||
|
self.ea_lineEdit = QtWidgets.QLineEdit(parent=self.arr_widget)
|
||||||
|
self.ea_lineEdit.setObjectName("ea_lineEdit")
|
||||||
|
self.horizontalLayout.addWidget(self.ea_lineEdit)
|
||||||
|
self.gridLayout_5.addWidget(self.arr_widget, 0, 1, 1, 1)
|
||||||
|
self.vft_widget = QtWidgets.QWidget(parent=self.temp_widget)
|
||||||
|
self.vft_widget.setObjectName("vft_widget")
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.vft_widget)
|
||||||
|
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_3.setSpacing(2)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.vft_widget)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_3)
|
||||||
|
self.tau0_vft_lineEdit = QtWidgets.QLineEdit(parent=self.vft_widget)
|
||||||
|
self.tau0_vft_lineEdit.setObjectName("tau0_vft_lineEdit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.tau0_vft_lineEdit)
|
||||||
|
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_3.addItem(spacerItem4)
|
||||||
|
self.label_5 = QtWidgets.QLabel(parent=self.vft_widget)
|
||||||
|
self.label_5.setObjectName("label_5")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_5)
|
||||||
|
self.b_vft_lineEdit = QtWidgets.QLineEdit(parent=self.vft_widget)
|
||||||
|
self.b_vft_lineEdit.setObjectName("b_vft_lineEdit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.b_vft_lineEdit)
|
||||||
|
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_3.addItem(spacerItem5)
|
||||||
|
self.label_6 = QtWidgets.QLabel(parent=self.vft_widget)
|
||||||
|
self.label_6.setObjectName("label_6")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_6)
|
||||||
|
self.t0_vft_lineEdit = QtWidgets.QLineEdit(parent=self.vft_widget)
|
||||||
|
self.t0_vft_lineEdit.setObjectName("t0_vft_lineEdit")
|
||||||
|
self.horizontalLayout_3.addWidget(self.t0_vft_lineEdit)
|
||||||
|
self.gridLayout_5.addWidget(self.vft_widget, 1, 1, 1, 1)
|
||||||
|
self.temp_combobox = QtWidgets.QComboBox(parent=self.temp_widget)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.temp_combobox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.temp_combobox.setSizePolicy(sizePolicy)
|
||||||
|
self.temp_combobox.setObjectName("temp_combobox")
|
||||||
|
self.temp_combobox.addItem("")
|
||||||
|
self.temp_combobox.addItem("")
|
||||||
|
self.gridLayout_5.addWidget(self.temp_combobox, 0, 0, 2, 1)
|
||||||
|
self.gridLayout_3.addWidget(self.temp_widget, 4, 0, 1, 2)
|
||||||
|
self.xtype_combobox = QtWidgets.QComboBox(parent=self.groupBox)
|
||||||
|
self.xtype_combobox.setObjectName("xtype_combobox")
|
||||||
|
self.xtype_combobox.addItem("")
|
||||||
|
self.xtype_combobox.addItem("")
|
||||||
|
self.xtype_combobox.addItem("")
|
||||||
|
self.xtype_combobox.addItem("")
|
||||||
|
self.gridLayout_3.addWidget(self.xtype_combobox, 8, 1, 1, 1)
|
||||||
|
self.label_8 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_8.setObjectName("label_8")
|
||||||
|
self.gridLayout_3.addWidget(self.label_8, 8, 0, 1, 1)
|
||||||
|
self.label_9 = QtWidgets.QLabel(parent=self.groupBox)
|
||||||
|
self.label_9.setObjectName("label_9")
|
||||||
|
self.gridLayout_3.addWidget(self.label_9, 1, 0, 1, 1)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
||||||
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Calculate relaxation"))
|
||||||
|
self.groupBox_2.setTitle(_translate("Dialog", "Model"))
|
||||||
|
self.groupBox_3.setTitle(_translate("Dialog", "Result"))
|
||||||
|
self.graph_checkbox.setText(_translate("Dialog", "New graph?"))
|
||||||
|
self.relax_combox.setStatusTip(_translate("Dialog", "NOTE: Mean values are not available for all spectral densities. For more information ask someone."))
|
||||||
|
self.relax_combox.setItemText(0, _translate("Dialog", "Spin-Lattice Relaxation T1"))
|
||||||
|
self.relax_combox.setItemText(1, _translate("Dialog", "Spin-Spin Relaxation T2"))
|
||||||
|
self.groupBox.setTitle(_translate("Dialog", "Axis"))
|
||||||
|
self.x_input_combobox.setItemText(0, _translate("Dialog", "Range"))
|
||||||
|
self.x_input_combobox.setItemText(1, _translate("Dialog", "Data"))
|
||||||
|
self.radioButton.setText(_translate("Dialog", "τ / s"))
|
||||||
|
self.radioButton_2.setText(_translate("Dialog", "ω / Hz"))
|
||||||
|
self.radioButton_4.setText(_translate("Dialog", "1000 K / T"))
|
||||||
|
self.radioButton_3.setText(_translate("Dialog", "T / K"))
|
||||||
|
self.label_7.setText(_translate("Dialog", "2nd axis"))
|
||||||
|
self.label_4.setText(_translate("Dialog", "–"))
|
||||||
|
self.spinBox.setSuffix(_translate("Dialog", " pts."))
|
||||||
|
self.checkBox.setText(_translate("Dialog", "Log?"))
|
||||||
|
self.label_10.setText(_translate("Dialog", " Use"))
|
||||||
|
self.x_radioButton.setText(_translate("Dialog", "x"))
|
||||||
|
self.y_radioButton.setText(_translate("Dialog", "y"))
|
||||||
|
self.label.setText(_translate("Dialog", "τ0 / s "))
|
||||||
|
self.tau0_lineEdit.setText(_translate("Dialog", "1"))
|
||||||
|
self.label_2.setText(_translate("Dialog", "E_A / eV "))
|
||||||
|
self.ea_lineEdit.setText(_translate("Dialog", "1"))
|
||||||
|
self.label_3.setText(_translate("Dialog", "τ0 / s "))
|
||||||
|
self.tau0_vft_lineEdit.setText(_translate("Dialog", "1"))
|
||||||
|
self.label_5.setText(_translate("Dialog", "B / K "))
|
||||||
|
self.b_vft_lineEdit.setText(_translate("Dialog", "1"))
|
||||||
|
self.label_6.setText(_translate("Dialog", "T_0 / K "))
|
||||||
|
self.t0_vft_lineEdit.setText(_translate("Dialog", "1"))
|
||||||
|
self.temp_combobox.setItemText(0, _translate("Dialog", "Arrhenius"))
|
||||||
|
self.temp_combobox.setItemText(1, _translate("Dialog", "VFT"))
|
||||||
|
self.xtype_combobox.setItemText(0, _translate("Dialog", "Function parameter: τ"))
|
||||||
|
self.xtype_combobox.setItemText(1, _translate("Dialog", "Peak time: τₚ"))
|
||||||
|
self.xtype_combobox.setItemText(2, _translate("Dialog", "Arithmetic mean: ⟨τ⟩"))
|
||||||
|
self.xtype_combobox.setItemText(3, _translate("Dialog", "Geometric mean: exp(⟨ln τ⟩)"))
|
||||||
|
self.label_8.setText(_translate("Dialog", "Interpretation as:"))
|
||||||
|
self.label_9.setText(_translate("Dialog", "Input from: "))
|
228
src/gui_qt/_py/t1dialog.py
Normal file
228
src/gui_qt/_py/t1dialog.py
Normal file
@ -0,0 +1,228 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/t1dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_t1dialog(object):
|
||||||
|
def setupUi(self, t1dialog):
|
||||||
|
t1dialog.setObjectName("t1dialog")
|
||||||
|
t1dialog.resize(316, 741)
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(t1dialog)
|
||||||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.groupBox_1 = QtWidgets.QGroupBox(parent=t1dialog)
|
||||||
|
self.groupBox_1.setObjectName("groupBox_1")
|
||||||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_1)
|
||||||
|
self.gridLayout_3.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_3.setHorizontalSpacing(3)
|
||||||
|
self.gridLayout_3.setVerticalSpacing(0)
|
||||||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||||||
|
self.t1_combobox = QtWidgets.QComboBox(parent=self.groupBox_1)
|
||||||
|
self.t1_combobox.setObjectName("t1_combobox")
|
||||||
|
self.t1_combobox.addItem("")
|
||||||
|
self.t1_combobox.addItem("")
|
||||||
|
self.gridLayout_3.addWidget(self.t1_combobox, 1, 1, 1, 1)
|
||||||
|
self.temp_combobox = QtWidgets.QComboBox(parent=self.groupBox_1)
|
||||||
|
self.temp_combobox.setObjectName("temp_combobox")
|
||||||
|
self.temp_combobox.addItem("")
|
||||||
|
self.temp_combobox.addItem("")
|
||||||
|
self.temp_combobox.addItem("")
|
||||||
|
self.gridLayout_3.addWidget(self.temp_combobox, 1, 0, 1, 1)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox_1, 0, 0, 1, 1)
|
||||||
|
self.groupBox_2 = QtWidgets.QGroupBox(parent=t1dialog)
|
||||||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
|
||||||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout.setHorizontalSpacing(3)
|
||||||
|
self.gridLayout.setVerticalSpacing(1)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.freq_combox = QtWidgets.QComboBox(parent=self.groupBox_2)
|
||||||
|
self.freq_combox.setObjectName("freq_combox")
|
||||||
|
self.freq_combox.addItem("")
|
||||||
|
self.freq_combox.addItem("")
|
||||||
|
self.freq_combox.addItem("")
|
||||||
|
self.gridLayout.addWidget(self.freq_combox, 0, 1, 1, 1)
|
||||||
|
self.freq_spinbox = QtWidgets.QDoubleSpinBox(parent=self.groupBox_2)
|
||||||
|
self.freq_spinbox.setMaximum(999.99)
|
||||||
|
self.freq_spinbox.setProperty("value", 100.0)
|
||||||
|
self.freq_spinbox.setObjectName("freq_spinbox")
|
||||||
|
self.gridLayout.addWidget(self.freq_spinbox, 0, 0, 1, 1)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox_2, 1, 0, 1, 1)
|
||||||
|
self.groupBox = QtWidgets.QGroupBox(parent=t1dialog)
|
||||||
|
self.groupBox.setObjectName("groupBox")
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, -1)
|
||||||
|
self.verticalLayout_2.setSpacing(2)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.specdens_combobox = QtWidgets.QComboBox(parent=self.groupBox)
|
||||||
|
self.specdens_combobox.setObjectName("specdens_combobox")
|
||||||
|
self.verticalLayout_2.addWidget(self.specdens_combobox)
|
||||||
|
self.sd_frame = QtWidgets.QFrame(parent=self.groupBox)
|
||||||
|
self.sd_frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
|
||||||
|
self.sd_frame.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.sd_frame.setObjectName("sd_frame")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.sd_frame)
|
||||||
|
self.verticalLayout_3.setContentsMargins(1, 1, 1, 1)
|
||||||
|
self.verticalLayout_3.setSpacing(0)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.verticalLayout_2.addWidget(self.sd_frame)
|
||||||
|
self.coupling_combobox = QtWidgets.QComboBox(parent=self.groupBox)
|
||||||
|
self.coupling_combobox.setObjectName("coupling_combobox")
|
||||||
|
self.verticalLayout_2.addWidget(self.coupling_combobox)
|
||||||
|
self.cp_frame = QtWidgets.QFrame(parent=self.groupBox)
|
||||||
|
self.cp_frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
|
||||||
|
self.cp_frame.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.cp_frame.setObjectName("cp_frame")
|
||||||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.cp_frame)
|
||||||
|
self.verticalLayout_4.setContentsMargins(1, 1, 1, 1)
|
||||||
|
self.verticalLayout_4.setSpacing(0)
|
||||||
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||||||
|
self.verticalLayout_2.addWidget(self.cp_frame)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox, 3, 0, 1, 1)
|
||||||
|
self.groupBox_5 = QtWidgets.QGroupBox(parent=t1dialog)
|
||||||
|
self.groupBox_5.setObjectName("groupBox_5")
|
||||||
|
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_5)
|
||||||
|
self.gridLayout_5.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_5.setHorizontalSpacing(2)
|
||||||
|
self.gridLayout_5.setObjectName("gridLayout_5")
|
||||||
|
self.interpol_combobox = QtWidgets.QComboBox(parent=self.groupBox_5)
|
||||||
|
self.interpol_combobox.setObjectName("interpol_combobox")
|
||||||
|
self.interpol_combobox.addItem("")
|
||||||
|
self.interpol_combobox.addItem("")
|
||||||
|
self.interpol_combobox.addItem("")
|
||||||
|
self.interpol_combobox.addItem("")
|
||||||
|
self.gridLayout_5.addWidget(self.interpol_combobox, 0, 0, 1, 1)
|
||||||
|
self.frame = QtWidgets.QFrame(parent=self.groupBox_5)
|
||||||
|
self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.frame.setObjectName("frame")
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
|
||||||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label_9 = QtWidgets.QLabel(parent=self.frame)
|
||||||
|
self.label_9.setObjectName("label_9")
|
||||||
|
self.horizontalLayout.addWidget(self.label_9)
|
||||||
|
self.lineEdit_2 = QtWidgets.QLineEdit(parent=self.frame)
|
||||||
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
||||||
|
self.horizontalLayout.addWidget(self.lineEdit_2)
|
||||||
|
self.label_10 = QtWidgets.QLabel(parent=self.frame)
|
||||||
|
self.label_10.setObjectName("label_10")
|
||||||
|
self.horizontalLayout.addWidget(self.label_10)
|
||||||
|
self.lineEdit_3 = QtWidgets.QLineEdit(parent=self.frame)
|
||||||
|
self.lineEdit_3.setObjectName("lineEdit_3")
|
||||||
|
self.horizontalLayout.addWidget(self.lineEdit_3)
|
||||||
|
self.gridLayout_5.addWidget(self.frame, 1, 0, 1, 2)
|
||||||
|
self.frame_2 = QtWidgets.QFrame(parent=self.groupBox_5)
|
||||||
|
self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
|
||||||
|
self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Plain)
|
||||||
|
self.frame_2.setObjectName("frame_2")
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
|
||||||
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.label_11 = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
self.label_11.setObjectName("label_11")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_11)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_2.addItem(spacerItem)
|
||||||
|
self.label_13 = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
self.label_13.setObjectName("label_13")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_13)
|
||||||
|
self.label_12 = QtWidgets.QLabel(parent=self.frame_2)
|
||||||
|
self.label_12.setObjectName("label_12")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_12)
|
||||||
|
self.gridLayout_5.addWidget(self.frame_2, 2, 0, 1, 2)
|
||||||
|
self.t1min_toolButton = QtWidgets.QToolButton(parent=self.groupBox_5)
|
||||||
|
self.t1min_toolButton.setObjectName("t1min_toolButton")
|
||||||
|
self.gridLayout_5.addWidget(self.t1min_toolButton, 0, 1, 1, 1)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox_5, 2, 0, 1, 1)
|
||||||
|
self.groupBox_3 = QtWidgets.QGroupBox(parent=t1dialog)
|
||||||
|
self.groupBox_3.setObjectName("groupBox_3")
|
||||||
|
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
|
||||||
|
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.gridLayout_4.setSpacing(3)
|
||||||
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=self.groupBox_3)
|
||||||
|
self.graph_combobox.setEnabled(False)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.gridLayout_4.addWidget(self.graph_combobox, 3, 1, 1, 1)
|
||||||
|
self.tau_combox = QtWidgets.QComboBox(parent=self.groupBox_3)
|
||||||
|
self.tau_combox.setObjectName("tau_combox")
|
||||||
|
self.tau_combox.addItem("")
|
||||||
|
self.tau_combox.addItem("")
|
||||||
|
self.tau_combox.addItem("")
|
||||||
|
self.tau_combox.addItem("")
|
||||||
|
self.gridLayout_4.addWidget(self.tau_combox, 1, 0, 1, 2)
|
||||||
|
self.checkBox_interpol = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
self.checkBox_interpol.setEnabled(False)
|
||||||
|
self.checkBox_interpol.setObjectName("checkBox_interpol")
|
||||||
|
self.gridLayout_4.addWidget(self.checkBox_interpol, 2, 0, 1, 2)
|
||||||
|
self.graph_checkbox = QtWidgets.QCheckBox(parent=self.groupBox_3)
|
||||||
|
self.graph_checkbox.setChecked(True)
|
||||||
|
self.graph_checkbox.setObjectName("graph_checkbox")
|
||||||
|
self.gridLayout_4.addWidget(self.graph_checkbox, 3, 0, 1, 1)
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1)
|
||||||
|
self.label_t1min = QtWidgets.QLabel(parent=self.groupBox_3)
|
||||||
|
self.label_t1min.setText("")
|
||||||
|
self.label_t1min.setObjectName("label_t1min")
|
||||||
|
self.gridLayout_4.addWidget(self.label_t1min, 0, 1, 1, 1)
|
||||||
|
self.gridLayout_2.addWidget(self.groupBox_3, 4, 0, 1, 1)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(17, 19, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout_2.addItem(spacerItem1, 6, 0, 1, 1)
|
||||||
|
self.calc_pushButton = QtWidgets.QPushButton(parent=t1dialog)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setBold(True)
|
||||||
|
font.setWeight(75)
|
||||||
|
self.calc_pushButton.setFont(font)
|
||||||
|
self.calc_pushButton.setObjectName("calc_pushButton")
|
||||||
|
self.gridLayout_2.addWidget(self.calc_pushButton, 5, 0, 1, 1)
|
||||||
|
self.label_9.setBuddy(self.lineEdit_2)
|
||||||
|
self.label_10.setBuddy(self.lineEdit_3)
|
||||||
|
|
||||||
|
self.retranslateUi(t1dialog)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(t1dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, t1dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
t1dialog.setWindowTitle(_translate("t1dialog", "Form"))
|
||||||
|
self.groupBox_1.setTitle(_translate("t1dialog", "Axes"))
|
||||||
|
self.t1_combobox.setItemText(0, _translate("t1dialog", "T1"))
|
||||||
|
self.t1_combobox.setItemText(1, _translate("t1dialog", "1/T1"))
|
||||||
|
self.temp_combobox.setItemText(0, _translate("t1dialog", "1000/T"))
|
||||||
|
self.temp_combobox.setItemText(1, _translate("t1dialog", "T"))
|
||||||
|
self.temp_combobox.setItemText(2, _translate("t1dialog", "1/T"))
|
||||||
|
self.groupBox_2.setTitle(_translate("t1dialog", "Frequency"))
|
||||||
|
self.freq_combox.setItemText(0, _translate("t1dialog", "MHz"))
|
||||||
|
self.freq_combox.setItemText(1, _translate("t1dialog", "kHz"))
|
||||||
|
self.freq_combox.setItemText(2, _translate("t1dialog", "Hz"))
|
||||||
|
self.groupBox.setTitle(_translate("t1dialog", "Model"))
|
||||||
|
self.groupBox_5.setTitle(_translate("t1dialog", "Pick T1 minimon"))
|
||||||
|
self.interpol_combobox.setItemText(0, _translate("t1dialog", "Data minimum"))
|
||||||
|
self.interpol_combobox.setItemText(1, _translate("t1dialog", "Parabola"))
|
||||||
|
self.interpol_combobox.setItemText(2, _translate("t1dialog", "Cubic spline"))
|
||||||
|
self.interpol_combobox.setItemText(3, _translate("t1dialog", "Akima spline"))
|
||||||
|
self.label_9.setText(_translate("t1dialog", "Interpolate"))
|
||||||
|
self.lineEdit_2.setPlaceholderText(_translate("t1dialog", "1 K"))
|
||||||
|
self.label_10.setText(_translate("t1dialog", "--"))
|
||||||
|
self.lineEdit_3.setPlaceholderText(_translate("t1dialog", "2000 K"))
|
||||||
|
self.label_11.setText(_translate("t1dialog", "Minimon"))
|
||||||
|
self.label_13.setText(_translate("t1dialog", "x value"))
|
||||||
|
self.label_12.setText(_translate("t1dialog", "y value"))
|
||||||
|
self.t1min_toolButton.setText(_translate("t1dialog", "Set"))
|
||||||
|
self.groupBox_3.setTitle(_translate("t1dialog", "Result"))
|
||||||
|
self.tau_combox.setStatusTip(_translate("t1dialog", "NOTE: Mean values are not available for all spectral densities. For more information ask someone."))
|
||||||
|
self.tau_combox.setItemText(0, _translate("t1dialog", "Fit parameter: τ"))
|
||||||
|
self.tau_combox.setItemText(1, _translate("t1dialog", "Peak time: τₚ"))
|
||||||
|
self.tau_combox.setItemText(2, _translate("t1dialog", "Arithmetic mean: ⟨τ⟩"))
|
||||||
|
self.tau_combox.setItemText(3, _translate("t1dialog", "Geometric mean: exp(⟨ln τ⟩)"))
|
||||||
|
self.checkBox_interpol.setText(_translate("t1dialog", "Use minimon interpolation"))
|
||||||
|
self.graph_checkbox.setText(_translate("t1dialog", "New graph?"))
|
||||||
|
self.label.setText(_translate("t1dialog", "Calculated minimon"))
|
||||||
|
self.calc_pushButton.setText(_translate("t1dialog", "Calculate"))
|
251
src/gui_qt/_py/tnmh_dialog.py
Normal file
251
src/gui_qt/_py/tnmh_dialog.py
Normal file
@ -0,0 +1,251 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/tnmh_dialog.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_DSCEvalDialog(object):
|
||||||
|
def setupUi(self, DSCEvalDialog):
|
||||||
|
DSCEvalDialog.setObjectName("DSCEvalDialog")
|
||||||
|
DSCEvalDialog.resize(996, 712)
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(DSCEvalDialog)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.listWidget = QListWidgetSelect(parent=DSCEvalDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Maximum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection)
|
||||||
|
self.listWidget.setObjectName("listWidget")
|
||||||
|
self.gridLayout.addWidget(self.listWidget, 0, 0, 1, 1)
|
||||||
|
self.stackedWidget = QtWidgets.QStackedWidget(parent=DSCEvalDialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
|
||||||
|
self.stackedWidget.setSizePolicy(sizePolicy)
|
||||||
|
self.stackedWidget.setFrameShape(QtWidgets.QFrame.Shape.Box)
|
||||||
|
self.stackedWidget.setObjectName("stackedWidget")
|
||||||
|
self.page = QtWidgets.QWidget()
|
||||||
|
self.page.setObjectName("page")
|
||||||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.page)
|
||||||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||||||
|
self.gridLayout_9 = QtWidgets.QGridLayout()
|
||||||
|
self.gridLayout_9.setObjectName("gridLayout_9")
|
||||||
|
self.tg_export_check = QtWidgets.QCheckBox(parent=self.page)
|
||||||
|
self.tg_export_check.setChecked(True)
|
||||||
|
self.tg_export_check.setObjectName("tg_export_check")
|
||||||
|
self.gridLayout_9.addWidget(self.tg_export_check, 0, 0, 1, 1)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout_9.addItem(spacerItem, 3, 0, 1, 1)
|
||||||
|
self.tglines_export_check = QtWidgets.QCheckBox(parent=self.page)
|
||||||
|
self.tglines_export_check.setChecked(True)
|
||||||
|
self.tglines_export_check.setObjectName("tglines_export_check")
|
||||||
|
self.gridLayout_9.addWidget(self.tglines_export_check, 0, 1, 1, 1)
|
||||||
|
self.tg_export_button = QtWidgets.QPushButton(parent=self.page)
|
||||||
|
self.tg_export_button.setObjectName("tg_export_button")
|
||||||
|
self.gridLayout_9.addWidget(self.tg_export_button, 2, 0, 1, 2)
|
||||||
|
self.gridLayout_2.addLayout(self.gridLayout_9, 2, 1, 1, 1)
|
||||||
|
self.tg_tree = QtWidgets.QTreeWidget(parent=self.page)
|
||||||
|
self.tg_tree.setObjectName("tg_tree")
|
||||||
|
self.tg_tree.headerItem().setText(0, "1")
|
||||||
|
self.tg_tree.header().setVisible(False)
|
||||||
|
self.gridLayout_2.addWidget(self.tg_tree, 2, 0, 1, 1)
|
||||||
|
self.dsc_plot = NMRPlotWidget(parent=self.page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.dsc_plot.sizePolicy().hasHeightForWidth())
|
||||||
|
self.dsc_plot.setSizePolicy(sizePolicy)
|
||||||
|
self.dsc_plot.setObjectName("dsc_plot")
|
||||||
|
self.gridLayout_2.addWidget(self.dsc_plot, 1, 0, 1, 2)
|
||||||
|
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
||||||
|
self.label = QtWidgets.QLabel(parent=self.page)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout_4.addWidget(self.label)
|
||||||
|
self.calctg_button = QtWidgets.QPushButton(parent=self.page)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.calctg_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.calctg_button.setSizePolicy(sizePolicy)
|
||||||
|
self.calctg_button.setObjectName("calctg_button")
|
||||||
|
self.horizontalLayout_4.addWidget(self.calctg_button)
|
||||||
|
self.gridLayout_2.addLayout(self.horizontalLayout_4, 0, 0, 1, 2)
|
||||||
|
self.stackedWidget.addWidget(self.page)
|
||||||
|
self.page_2 = QtWidgets.QWidget()
|
||||||
|
self.page_2.setObjectName("page_2")
|
||||||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.page_2)
|
||||||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=self.page_2)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1)
|
||||||
|
self.tghodge_graph = NMRPlotWidget(parent=self.page_2)
|
||||||
|
self.tghodge_graph.setObjectName("tghodge_graph")
|
||||||
|
self.gridLayout_3.addWidget(self.tghodge_graph, 1, 0, 1, 1)
|
||||||
|
self.tau_plot = NMRPlotWidget(parent=self.page_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.tau_plot.sizePolicy().hasHeightForWidth())
|
||||||
|
self.tau_plot.setSizePolicy(sizePolicy)
|
||||||
|
self.tau_plot.setObjectName("tau_plot")
|
||||||
|
self.gridLayout_3.addWidget(self.tau_plot, 1, 1, 1, 1)
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.label_2 = QtWidgets.QLabel(parent=self.page_2)
|
||||||
|
self.label_2.setObjectName("label_2")
|
||||||
|
self.horizontalLayout_3.addWidget(self.label_2)
|
||||||
|
self.hodge_button = QtWidgets.QPushButton(parent=self.page_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.hodge_button.sizePolicy().hasHeightForWidth())
|
||||||
|
self.hodge_button.setSizePolicy(sizePolicy)
|
||||||
|
self.hodge_button.setObjectName("hodge_button")
|
||||||
|
self.horizontalLayout_3.addWidget(self.hodge_button)
|
||||||
|
self.gridLayout_3.addLayout(self.horizontalLayout_3, 0, 0, 1, 2)
|
||||||
|
self.export_hodge_button = QtWidgets.QPushButton(parent=self.page_2)
|
||||||
|
self.export_hodge_button.setObjectName("export_hodge_button")
|
||||||
|
self.gridLayout_3.addWidget(self.export_hodge_button, 5, 1, 1, 1)
|
||||||
|
self.hodge_graph_combo = QtWidgets.QComboBox(parent=self.page_2)
|
||||||
|
self.hodge_graph_combo.setEnabled(False)
|
||||||
|
self.hodge_graph_combo.setObjectName("hodge_graph_combo")
|
||||||
|
self.gridLayout_3.addWidget(self.hodge_graph_combo, 4, 1, 1, 1)
|
||||||
|
self.hodge_graph_check = QtWidgets.QCheckBox(parent=self.page_2)
|
||||||
|
self.hodge_graph_check.setChecked(True)
|
||||||
|
self.hodge_graph_check.setObjectName("hodge_graph_check")
|
||||||
|
self.gridLayout_3.addWidget(self.hodge_graph_check, 4, 0, 1, 1)
|
||||||
|
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
||||||
|
self.onset_check = QtWidgets.QCheckBox(parent=self.page_2)
|
||||||
|
self.onset_check.setChecked(True)
|
||||||
|
self.onset_check.setObjectName("onset_check")
|
||||||
|
self.horizontalLayout_5.addWidget(self.onset_check)
|
||||||
|
self.mid_check = QtWidgets.QCheckBox(parent=self.page_2)
|
||||||
|
self.mid_check.setChecked(True)
|
||||||
|
self.mid_check.setObjectName("mid_check")
|
||||||
|
self.horizontalLayout_5.addWidget(self.mid_check)
|
||||||
|
self.end_check = QtWidgets.QCheckBox(parent=self.page_2)
|
||||||
|
self.end_check.setChecked(True)
|
||||||
|
self.end_check.setObjectName("end_check")
|
||||||
|
self.horizontalLayout_5.addWidget(self.end_check)
|
||||||
|
self.inflection_check = QtWidgets.QCheckBox(parent=self.page_2)
|
||||||
|
self.inflection_check.setChecked(True)
|
||||||
|
self.inflection_check.setObjectName("inflection_check")
|
||||||
|
self.horizontalLayout_5.addWidget(self.inflection_check)
|
||||||
|
self.fictive_check = QtWidgets.QCheckBox(parent=self.page_2)
|
||||||
|
self.fictive_check.setChecked(True)
|
||||||
|
self.fictive_check.setObjectName("fictive_check")
|
||||||
|
self.horizontalLayout_5.addWidget(self.fictive_check)
|
||||||
|
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout_5.addItem(spacerItem1)
|
||||||
|
self.gridLayout_3.addLayout(self.horizontalLayout_5, 3, 0, 1, 2)
|
||||||
|
self.stackedWidget.addWidget(self.page_2)
|
||||||
|
self.page_3 = QtWidgets.QWidget()
|
||||||
|
self.page_3.setObjectName("page_3")
|
||||||
|
self.gridLayout_6 = QtWidgets.QGridLayout(self.page_3)
|
||||||
|
self.gridLayout_6.setObjectName("gridLayout_6")
|
||||||
|
self.tnmh_graphics = NMRPlotWidget(parent=self.page_3)
|
||||||
|
self.tnmh_graphics.setObjectName("tnmh_graphics")
|
||||||
|
self.gridLayout_6.addWidget(self.tnmh_graphics, 1, 0, 1, 2)
|
||||||
|
self.tnmh_tree = QtWidgets.QTreeWidget(parent=self.page_3)
|
||||||
|
self.tnmh_tree.setObjectName("tnmh_tree")
|
||||||
|
self.tnmh_tree.headerItem().setText(0, "1")
|
||||||
|
self.tnmh_tree.header().setVisible(False)
|
||||||
|
self.gridLayout_6.addWidget(self.tnmh_tree, 2, 0, 1, 1)
|
||||||
|
self.gridLayout_5 = QtWidgets.QGridLayout()
|
||||||
|
self.gridLayout_5.setObjectName("gridLayout_5")
|
||||||
|
self.tnmh_graph_check = QtWidgets.QCheckBox(parent=self.page_3)
|
||||||
|
self.tnmh_graph_check.setChecked(True)
|
||||||
|
self.tnmh_graph_check.setObjectName("tnmh_graph_check")
|
||||||
|
self.gridLayout_5.addWidget(self.tnmh_graph_check, 1, 0, 1, 1)
|
||||||
|
self.tnmhfit_export_check = QtWidgets.QCheckBox(parent=self.page_3)
|
||||||
|
self.tnmhfit_export_check.setChecked(True)
|
||||||
|
self.tnmhfit_export_check.setObjectName("tnmhfit_export_check")
|
||||||
|
self.gridLayout_5.addWidget(self.tnmhfit_export_check, 0, 0, 1, 1)
|
||||||
|
self.tnmh_export_button = QtWidgets.QPushButton(parent=self.page_3)
|
||||||
|
self.tnmh_export_button.setObjectName("tnmh_export_button")
|
||||||
|
self.gridLayout_5.addWidget(self.tnmh_export_button, 2, 0, 1, 2)
|
||||||
|
self.fictive_export_check = QtWidgets.QCheckBox(parent=self.page_3)
|
||||||
|
self.fictive_export_check.setChecked(True)
|
||||||
|
self.fictive_export_check.setObjectName("fictive_export_check")
|
||||||
|
self.gridLayout_5.addWidget(self.fictive_export_check, 0, 1, 1, 1)
|
||||||
|
self.tnmh_graph_combo = QtWidgets.QComboBox(parent=self.page_3)
|
||||||
|
self.tnmh_graph_combo.setEnabled(False)
|
||||||
|
self.tnmh_graph_combo.setObjectName("tnmh_graph_combo")
|
||||||
|
self.gridLayout_5.addWidget(self.tnmh_graph_combo, 1, 1, 1, 1)
|
||||||
|
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
|
self.gridLayout_5.addItem(spacerItem2, 3, 0, 1, 1)
|
||||||
|
self.gridLayout_6.addLayout(self.gridLayout_5, 2, 1, 1, 1)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.label_3 = QtWidgets.QLabel(parent=self.page_3)
|
||||||
|
self.label_3.setObjectName("label_3")
|
||||||
|
self.horizontalLayout_2.addWidget(self.label_3)
|
||||||
|
self.tnhm_fitbutton = QtWidgets.QPushButton(parent=self.page_3)
|
||||||
|
self.tnhm_fitbutton.setObjectName("tnhm_fitbutton")
|
||||||
|
self.horizontalLayout_2.addWidget(self.tnhm_fitbutton)
|
||||||
|
self.gridLayout_6.addLayout(self.horizontalLayout_2, 0, 0, 1, 2)
|
||||||
|
self.stackedWidget.addWidget(self.page_3)
|
||||||
|
self.gridLayout.addWidget(self.stackedWidget, 0, 1, 1, 1)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem3)
|
||||||
|
self.back_button = QtWidgets.QToolButton(parent=DSCEvalDialog)
|
||||||
|
self.back_button.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.back_button.setArrowType(QtCore.Qt.ArrowType.LeftArrow)
|
||||||
|
self.back_button.setObjectName("back_button")
|
||||||
|
self.horizontalLayout.addWidget(self.back_button)
|
||||||
|
self.next_button = QtWidgets.QToolButton(parent=DSCEvalDialog)
|
||||||
|
self.next_button.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.next_button.setArrowType(QtCore.Qt.ArrowType.RightArrow)
|
||||||
|
self.next_button.setObjectName("next_button")
|
||||||
|
self.horizontalLayout.addWidget(self.next_button)
|
||||||
|
self.close_button = QtWidgets.QPushButton(parent=DSCEvalDialog)
|
||||||
|
self.close_button.setObjectName("close_button")
|
||||||
|
self.horizontalLayout.addWidget(self.close_button)
|
||||||
|
self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 2)
|
||||||
|
|
||||||
|
self.retranslateUi(DSCEvalDialog)
|
||||||
|
self.stackedWidget.setCurrentIndex(0)
|
||||||
|
self.close_button.clicked.connect(DSCEvalDialog.close) # type: ignore
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(DSCEvalDialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, DSCEvalDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
DSCEvalDialog.setWindowTitle(_translate("DSCEvalDialog", "To boldly go where no man has gone before"))
|
||||||
|
self.tg_export_check.setText(_translate("DSCEvalDialog", "Export Tg"))
|
||||||
|
self.tglines_export_check.setText(_translate("DSCEvalDialog", "Export lines"))
|
||||||
|
self.tg_export_button.setText(_translate("DSCEvalDialog", "Export"))
|
||||||
|
self.label.setText(_translate("DSCEvalDialog", "<html><head/><body><p><span style=\" font-weight:600;\">Glass transition</span></p></body></html>"))
|
||||||
|
self.calctg_button.setText(_translate("DSCEvalDialog", "Calculate Tg"))
|
||||||
|
self.label_4.setText(_translate("DSCEvalDialog", "Export tau:"))
|
||||||
|
self.label_2.setText(_translate("DSCEvalDialog", "<html><head/><body><p><span style=\" font-weight:600;\">Hodge tau</span></p></body></html>"))
|
||||||
|
self.hodge_button.setText(_translate("DSCEvalDialog", "Make it so."))
|
||||||
|
self.export_hodge_button.setText(_translate("DSCEvalDialog", "Export"))
|
||||||
|
self.hodge_graph_check.setText(_translate("DSCEvalDialog", "New graph"))
|
||||||
|
self.onset_check.setText(_translate("DSCEvalDialog", "Onset"))
|
||||||
|
self.mid_check.setText(_translate("DSCEvalDialog", "Midpoint"))
|
||||||
|
self.end_check.setText(_translate("DSCEvalDialog", "End"))
|
||||||
|
self.inflection_check.setText(_translate("DSCEvalDialog", "Inflection"))
|
||||||
|
self.fictive_check.setText(_translate("DSCEvalDialog", "Fictive"))
|
||||||
|
self.tnmh_graph_check.setText(_translate("DSCEvalDialog", "New graph"))
|
||||||
|
self.tnmhfit_export_check.setText(_translate("DSCEvalDialog", "Export fit"))
|
||||||
|
self.tnmh_export_button.setText(_translate("DSCEvalDialog", "Export"))
|
||||||
|
self.fictive_export_check.setText(_translate("DSCEvalDialog", "Export dTf / dT"))
|
||||||
|
self.label_3.setText(_translate("DSCEvalDialog", "<html><head/><body><p><span style=\" font-weight:600;\">dTf/dT and TNMH </span></p></body></html>"))
|
||||||
|
self.tnhm_fitbutton.setText(_translate("DSCEvalDialog", "Engage!"))
|
||||||
|
self.back_button.setText(_translate("DSCEvalDialog", "Back"))
|
||||||
|
self.next_button.setText(_translate("DSCEvalDialog", "Next"))
|
||||||
|
self.close_button.setText(_translate("DSCEvalDialog", "Close"))
|
||||||
|
from ..lib.graph_items import NMRPlotWidget
|
||||||
|
from ..lib.listwidget import QListWidgetSelect
|
138
src/gui_qt/_py/typeconversion.py
Normal file
138
src/gui_qt/_py/typeconversion.py
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/typeconversion.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_Dialog(object):
|
||||||
|
def setupUi(self, Dialog):
|
||||||
|
Dialog.setObjectName("Dialog")
|
||||||
|
Dialog.resize(839, 502)
|
||||||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(Dialog)
|
||||||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout_2.setSpacing(3)
|
||||||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
|
self.label_4 = QtWidgets.QLabel(parent=Dialog)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
|
||||||
|
self.label_4.setSizePolicy(sizePolicy)
|
||||||
|
self.label_4.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
|
||||||
|
self.label_4.setObjectName("label_4")
|
||||||
|
self.verticalLayout_2.addWidget(self.label_4)
|
||||||
|
self.splitter = QtWidgets.QSplitter(parent=Dialog)
|
||||||
|
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.splitter.setObjectName("splitter")
|
||||||
|
self.set_list = QtWidgets.QListWidget(parent=self.splitter)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.set_list.sizePolicy().hasHeightForWidth())
|
||||||
|
self.set_list.setSizePolicy(sizePolicy)
|
||||||
|
self.set_list.setDragEnabled(True)
|
||||||
|
self.set_list.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DragOnly)
|
||||||
|
self.set_list.setObjectName("set_list")
|
||||||
|
self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.splitter)
|
||||||
|
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
|
||||||
|
self.gridLayout = QtWidgets.QGridLayout(self.verticalLayoutWidget)
|
||||||
|
self.gridLayout.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.gridLayout.setHorizontalSpacing(0)
|
||||||
|
self.gridLayout.setVerticalSpacing(2)
|
||||||
|
self.gridLayout.setObjectName("gridLayout")
|
||||||
|
self.simple_button = QtWidgets.QRadioButton(parent=self.verticalLayoutWidget)
|
||||||
|
self.simple_button.setChecked(True)
|
||||||
|
self.simple_button.setObjectName("simple_button")
|
||||||
|
self.buttonGroup = QtWidgets.QButtonGroup(Dialog)
|
||||||
|
self.buttonGroup.setObjectName("buttonGroup")
|
||||||
|
self.buttonGroup.addButton(self.simple_button)
|
||||||
|
self.gridLayout.addWidget(self.simple_button, 0, 0, 1, 1)
|
||||||
|
self.merge_button = QtWidgets.QRadioButton(parent=self.verticalLayoutWidget)
|
||||||
|
self.merge_button.setObjectName("merge_button")
|
||||||
|
self.buttonGroup.addButton(self.merge_button)
|
||||||
|
self.gridLayout.addWidget(self.merge_button, 0, 1, 1, 1)
|
||||||
|
self.stackedWidget = QtWidgets.QStackedWidget(parent=self.verticalLayoutWidget)
|
||||||
|
self.stackedWidget.setObjectName("stackedWidget")
|
||||||
|
self.page_1 = QtWidgets.QWidget()
|
||||||
|
self.page_1.setObjectName("page_1")
|
||||||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.page_1)
|
||||||
|
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_3.setSpacing(0)
|
||||||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||||||
|
self.simple_table = QtWidgets.QTableWidget(parent=self.page_1)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.simple_table.sizePolicy().hasHeightForWidth())
|
||||||
|
self.simple_table.setSizePolicy(sizePolicy)
|
||||||
|
self.simple_table.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DropOnly)
|
||||||
|
self.simple_table.setObjectName("simple_table")
|
||||||
|
self.simple_table.setColumnCount(2)
|
||||||
|
self.simple_table.setRowCount(0)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.simple_table.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.simple_table.setHorizontalHeaderItem(1, item)
|
||||||
|
self.simple_table.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.verticalLayout_3.addWidget(self.simple_table)
|
||||||
|
self.stackedWidget.addWidget(self.page_1)
|
||||||
|
self.page_2 = QtWidgets.QWidget()
|
||||||
|
self.page_2.setObjectName("page_2")
|
||||||
|
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.page_2)
|
||||||
|
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
|
||||||
|
self.verticalLayout_5.setSpacing(0)
|
||||||
|
self.verticalLayout_5.setObjectName("verticalLayout_5")
|
||||||
|
self.merge_table = QtWidgets.QTableWidget(parent=self.page_2)
|
||||||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.merge_table.sizePolicy().hasHeightForWidth())
|
||||||
|
self.merge_table.setSizePolicy(sizePolicy)
|
||||||
|
self.merge_table.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
|
||||||
|
self.merge_table.setDragDropMode(QtWidgets.QAbstractItemView.DragDropMode.DropOnly)
|
||||||
|
self.merge_table.setDefaultDropAction(QtCore.Qt.DropAction.CopyAction)
|
||||||
|
self.merge_table.setObjectName("merge_table")
|
||||||
|
self.merge_table.setColumnCount(3)
|
||||||
|
self.merge_table.setRowCount(0)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.merge_table.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.merge_table.setHorizontalHeaderItem(1, item)
|
||||||
|
item = QtWidgets.QTableWidgetItem()
|
||||||
|
self.merge_table.setHorizontalHeaderItem(2, item)
|
||||||
|
self.merge_table.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.verticalLayout_5.addWidget(self.merge_table)
|
||||||
|
self.stackedWidget.addWidget(self.page_2)
|
||||||
|
self.gridLayout.addWidget(self.stackedWidget, 1, 0, 1, 2)
|
||||||
|
self.verticalLayout_2.addWidget(self.splitter)
|
||||||
|
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
|
||||||
|
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close|QtWidgets.QDialogButtonBox.StandardButton.Ok)
|
||||||
|
self.buttonBox.setObjectName("buttonBox")
|
||||||
|
self.verticalLayout_2.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
self.retranslateUi(Dialog)
|
||||||
|
self.stackedWidget.setCurrentIndex(0)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, Dialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
Dialog.setWindowTitle(_translate("Dialog", "Change type"))
|
||||||
|
self.label_4.setText(_translate("Dialog", "Drag & drop datasets and select new type."))
|
||||||
|
self.simple_button.setText(_translate("Dialog", "Simple conversion"))
|
||||||
|
self.merge_button.setText(_translate("Dialog", "Merge to complex set"))
|
||||||
|
item = self.simple_table.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("Dialog", "Set"))
|
||||||
|
item = self.simple_table.horizontalHeaderItem(1)
|
||||||
|
item.setText(_translate("Dialog", "Type"))
|
||||||
|
item = self.merge_table.horizontalHeaderItem(0)
|
||||||
|
item.setText(_translate("Dialog", "Real"))
|
||||||
|
item = self.merge_table.horizontalHeaderItem(1)
|
||||||
|
item.setText(_translate("Dialog", "Imag"))
|
||||||
|
item = self.merge_table.horizontalHeaderItem(2)
|
||||||
|
item.setText(_translate("Dialog", "Type"))
|
105
src/gui_qt/_py/valueeditor.py
Normal file
105
src/gui_qt/_py/valueeditor.py
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
# Form implementation generated from reading ui file 'nmreval/src/resources/_ui/valueeditor.ui'
|
||||||
|
#
|
||||||
|
# Created by: PyQt6 UI code generator 6.7.1
|
||||||
|
#
|
||||||
|
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
|
||||||
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
from PyQt6 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
|
class Ui_MaskDialog(object):
|
||||||
|
def setupUi(self, MaskDialog):
|
||||||
|
MaskDialog.setObjectName("MaskDialog")
|
||||||
|
MaskDialog.resize(383, 645)
|
||||||
|
self.verticalLayout = QtWidgets.QVBoxLayout(MaskDialog)
|
||||||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||||||
|
self.verticalLayout.setSpacing(3)
|
||||||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
|
self.graph_combobox = QtWidgets.QComboBox(parent=MaskDialog)
|
||||||
|
self.graph_combobox.setObjectName("graph_combobox")
|
||||||
|
self.verticalLayout.addWidget(self.graph_combobox)
|
||||||
|
self.set_combobox = QtWidgets.QComboBox(parent=MaskDialog)
|
||||||
|
self.set_combobox.setObjectName("set_combobox")
|
||||||
|
self.verticalLayout.addWidget(self.set_combobox)
|
||||||
|
self.tableView = QtWidgets.QTableView(parent=MaskDialog)
|
||||||
|
self.tableView.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
|
||||||
|
self.tableView.setObjectName("tableView")
|
||||||
|
self.verticalLayout.addWidget(self.tableView)
|
||||||
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||||||
|
self.label = QtWidgets.QLabel(parent=MaskDialog)
|
||||||
|
self.label.setObjectName("label")
|
||||||
|
self.horizontalLayout.addWidget(self.label)
|
||||||
|
self.spinBox = QtWidgets.QSpinBox(parent=MaskDialog)
|
||||||
|
self.spinBox.setMinimum(1)
|
||||||
|
self.spinBox.setObjectName("spinBox")
|
||||||
|
self.horizontalLayout.addWidget(self.spinBox)
|
||||||
|
self.toolButton = QtWidgets.QToolButton(parent=MaskDialog)
|
||||||
|
self.toolButton.setToolButtonStyle(QtCore.Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||||
|
self.toolButton.setAutoRaise(True)
|
||||||
|
self.toolButton.setArrowType(QtCore.Qt.ArrowType.RightArrow)
|
||||||
|
self.toolButton.setObjectName("toolButton")
|
||||||
|
self.horizontalLayout.addWidget(self.toolButton)
|
||||||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||||||
|
self.horizontalLayout.addItem(spacerItem)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||||
|
self.line = QtWidgets.QFrame(parent=MaskDialog)
|
||||||
|
self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
|
||||||
|
self.line.setLineWidth(3)
|
||||||
|
self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line.setObjectName("line")
|
||||||
|
self.verticalLayout.addWidget(self.line)
|
||||||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout_2.setSpacing(3)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.add_button = QtWidgets.QPushButton(parent=MaskDialog)
|
||||||
|
icon = QtGui.QIcon.fromTheme("list-add")
|
||||||
|
self.add_button.setIcon(icon)
|
||||||
|
self.add_button.setObjectName("add_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.add_button)
|
||||||
|
self.delete_button = QtWidgets.QPushButton(parent=MaskDialog)
|
||||||
|
icon = QtGui.QIcon.fromTheme("list-remove")
|
||||||
|
self.delete_button.setIcon(icon)
|
||||||
|
self.delete_button.setObjectName("delete_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.delete_button)
|
||||||
|
self.split_button = QtWidgets.QPushButton(parent=MaskDialog)
|
||||||
|
self.split_button.setObjectName("split_button")
|
||||||
|
self.horizontalLayout_2.addWidget(self.split_button)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||||||
|
self.line_2 = QtWidgets.QFrame(parent=MaskDialog)
|
||||||
|
self.line_2.setLineWidth(3)
|
||||||
|
self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine)
|
||||||
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
|
||||||
|
self.line_2.setObjectName("line_2")
|
||||||
|
self.verticalLayout.addWidget(self.line_2)
|
||||||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||||||
|
self.horizontalLayout_3.setContentsMargins(-1, 0, -1, -1)
|
||||||
|
self.horizontalLayout_3.setSpacing(3)
|
||||||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||||||
|
self.mask_button = QtWidgets.QPushButton(parent=MaskDialog)
|
||||||
|
self.mask_button.setObjectName("mask_button")
|
||||||
|
self.horizontalLayout_3.addWidget(self.mask_button)
|
||||||
|
self.unmaskbutton = QtWidgets.QPushButton(parent=MaskDialog)
|
||||||
|
self.unmaskbutton.setObjectName("unmaskbutton")
|
||||||
|
self.horizontalLayout_3.addWidget(self.unmaskbutton)
|
||||||
|
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
||||||
|
self.label.setBuddy(self.spinBox)
|
||||||
|
|
||||||
|
self.retranslateUi(MaskDialog)
|
||||||
|
QtCore.QMetaObject.connectSlotsByName(MaskDialog)
|
||||||
|
|
||||||
|
def retranslateUi(self, MaskDialog):
|
||||||
|
_translate = QtCore.QCoreApplication.translate
|
||||||
|
MaskDialog.setWindowTitle(_translate("MaskDialog", "Form"))
|
||||||
|
self.label.setText(_translate("MaskDialog", "Go to line:"))
|
||||||
|
self.toolButton.setText(_translate("MaskDialog", "Go Go Power Rangers!"))
|
||||||
|
self.add_button.setText(_translate("MaskDialog", "Add row"))
|
||||||
|
self.delete_button.setText(_translate("MaskDialog", "Delete rows"))
|
||||||
|
self.split_button.setText(_translate("MaskDialog", "Split after selection"))
|
||||||
|
self.mask_button.setToolTip(_translate("MaskDialog", "<html><head/><body><p>Masked rows are shown in green</p></body></html>"))
|
||||||
|
self.mask_button.setText(_translate("MaskDialog", "Hide/Show selected"))
|
||||||
|
self.unmaskbutton.setText(_translate("MaskDialog", "Show all"))
|
@ -2,8 +2,6 @@ import enum
|
|||||||
import logging
|
import logging
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from PyQt5 import QtWidgets
|
|
||||||
|
|
||||||
from ..editors.codeeditor import _make_textformats
|
from ..editors.codeeditor import _make_textformats
|
||||||
from ..Qt import QtWidgets, QtCore, QtGui
|
from ..Qt import QtWidgets, QtCore, QtGui
|
||||||
from nmreval.configs import config_paths
|
from nmreval.configs import config_paths
|
||||||
@ -99,7 +97,7 @@ class QLog(QtWidgets.QDialog):
|
|||||||
layout.addWidget(self.plainTextEdit)
|
layout.addWidget(self.plainTextEdit)
|
||||||
|
|
||||||
self.buttonBox = QtWidgets.QDialogButtonBox()
|
self.buttonBox = QtWidgets.QDialogButtonBox()
|
||||||
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close)
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
|
||||||
self.buttonBox.accepted.connect(self.accept)
|
self.buttonBox.accepted.connect(self.accept)
|
||||||
self.buttonBox.rejected.connect(self.reject)
|
self.buttonBox.rejected.connect(self.reject)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user