1
0
forked from IPKM/nmreval
nmreval/src/gui_qt/_py/fitdialog_window.py
dominik 8d148b639b BUGFIX: VFT;
change to src layout
2022-10-20 17:23:15 +02:00

286 lines
16 KiB
Python

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resources/_ui/fitdialog_window.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_FitDialog(object):
def setupUi(self, FitDialog):
FitDialog.setObjectName("FitDialog")
FitDialog.setWindowModality(QtCore.Qt.ApplicationModal)
FitDialog.resize(828, 827)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
FitDialog.setWindowIcon(icon)
self.centralwidget = QtWidgets.QWidget(FitDialog)
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.splitter = QtWidgets.QSplitter(self.centralwidget)
self.splitter.setOrientation(QtCore.Qt.Horizontal)
self.splitter.setObjectName("splitter")
self.widget_2 = QtWidgets.QWidget(self.splitter)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
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.gridLayout_3 = QtWidgets.QGridLayout(self.widget_2)
self.gridLayout_3.setContentsMargins(3, 3, 3, 3)
self.gridLayout_3.setSpacing(3)
self.gridLayout_3.setObjectName("gridLayout_3")
self.label_3 = QtWidgets.QLabel(self.widget_2)
self.label_3.setObjectName("label_3")
self.gridLayout_3.addWidget(self.label_3, 3, 0, 1, 1)
self.weight_combobox = QtWidgets.QComboBox(self.widget_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_3.addWidget(self.weight_combobox, 3, 1, 1, 1)
self.line = QtWidgets.QFrame(self.widget_2)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.gridLayout_3.addWidget(self.line, 2, 0, 1, 2)
self.tableWidget = QtWidgets.QTableWidget(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
self.tableWidget.setSizePolicy(sizePolicy)
self.tableWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tableWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableWidget.setShowGrid(False)
self.tableWidget.setGridStyle(QtCore.Qt.NoPen)
self.tableWidget.setColumnCount(2)
self.tableWidget.setObjectName("tableWidget")
self.tableWidget.setRowCount(0)
self.tableWidget.horizontalHeader().setVisible(False)
self.tableWidget.horizontalHeader().setStretchLastSection(True)
self.tableWidget.verticalHeader().setVisible(False)
self.gridLayout_3.addWidget(self.tableWidget, 0, 0, 1, 2)
self.horizontalFrame = QtWidgets.QFrame(self.widget_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.horizontalFrame.sizePolicy().hasHeightForWidth())
self.horizontalFrame.setSizePolicy(sizePolicy)
self.horizontalFrame.setObjectName("horizontalFrame")
self.gridLayout = QtWidgets.QGridLayout(self.horizontalFrame)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setHorizontalSpacing(0)
self.gridLayout.setVerticalSpacing(1)
self.gridLayout.setObjectName("gridLayout")
self.show_combobox = QtWidgets.QComboBox(self.horizontalFrame)
self.show_combobox.setObjectName("show_combobox")
self.show_combobox.addItem("")
self.gridLayout.addWidget(self.show_combobox, 1, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.horizontalFrame)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.default_combobox = QtWidgets.QComboBox(self.horizontalFrame)
self.default_combobox.setObjectName("default_combobox")
self.default_combobox.addItem("")
self.gridLayout.addWidget(self.default_combobox, 0, 1, 1, 1)
self.label = QtWidgets.QLabel(self.horizontalFrame)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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_3.addWidget(self.horizontalFrame, 1, 0, 1, 2)
self.middle_widget = QtWidgets.QWidget(self.splitter)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.middle_widget.sizePolicy().hasHeightForWidth())
self.middle_widget.setSizePolicy(sizePolicy)
self.middle_widget.setObjectName("middle_widget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.middle_widget)
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
self.gridLayout_2.setSpacing(3)
self.gridLayout_2.setObjectName("gridLayout_2")
self.newmodel_button = QtWidgets.QPushButton(self.middle_widget)
self.newmodel_button.setEnabled(False)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.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.functionwidget = FunctionSelectionWidget(self.middle_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.functionwidget.sizePolicy().hasHeightForWidth())
self.functionwidget.setSizePolicy(sizePolicy)
self.functionwidget.setObjectName("functionwidget")
self.gridLayout_2.addWidget(self.functionwidget, 0, 0, 1, 2)
self.deletemodel_button = QtWidgets.QPushButton(self.middle_widget)
self.deletemodel_button.setEnabled(False)
self.deletemodel_button.setObjectName("deletemodel_button")
self.gridLayout_2.addWidget(self.deletemodel_button, 2, 1, 1, 1)
self.stackedWidget = QtWidgets.QStackedWidget(self.middle_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
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.page_2 = QtWidgets.QWidget()
self.page_2.setObjectName("page_2")
self.stackedWidget.addWidget(self.page_2)
self.gridLayout_2.addWidget(self.stackedWidget, 1, 0, 1, 2)
self.verticalLayout_2.addWidget(self.splitter)
self.frame_4 = QtWidgets.QFrame(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.frame_4.sizePolicy().hasHeightForWidth())
self.frame_4.setSizePolicy(sizePolicy)
self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
self.frame_4.setLineWidth(2)
self.frame_4.setMidLineWidth(0)
self.frame_4.setObjectName("frame_4")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_4)
self.horizontalLayout_2.setContentsMargins(3, 3, 3, 3)
self.horizontalLayout_2.setSpacing(3)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.fit_button = QtWidgets.QPushButton(self.frame_4)
self.fit_button.setObjectName("fit_button")
self.horizontalLayout_2.addWidget(self.fit_button)
self.abort_button = QtWidgets.QPushButton(self.frame_4)
self.abort_button.setObjectName("abort_button")
self.horizontalLayout_2.addWidget(self.abort_button)
self.preview_button = QtWidgets.QPushButton(self.frame_4)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/fit_preview.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.preview_button.setIcon(icon1)
self.preview_button.setCheckable(True)
self.preview_button.setObjectName("preview_button")
self.horizontalLayout_2.addWidget(self.preview_button)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.verticalLayout_2.addWidget(self.frame_4)
FitDialog.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(FitDialog)
self.menubar.setGeometry(QtCore.QRect(0, 0, 828, 30))
self.menubar.setObjectName("menubar")
self.menuOptions = QtWidgets.QMenu(self.menubar)
self.menuOptions.setObjectName("menuOptions")
self.menuMethod = QtWidgets.QMenu(self.menuOptions)
self.menuMethod.setObjectName("menuMethod")
self.menuLimits = QtWidgets.QMenu(self.menuOptions)
self.menuLimits.setObjectName("menuLimits")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
self.menuUser = QtWidgets.QMenu(self.menubar)
self.menuUser.setObjectName("menuUser")
FitDialog.setMenuBar(self.menubar)
self.statusBar = QtWidgets.QStatusBar(FitDialog)
self.statusBar.setObjectName("statusBar")
FitDialog.setStatusBar(self.statusBar)
self.action_nm = QtWidgets.QAction(FitDialog)
self.action_nm.setCheckable(True)
self.action_nm.setObjectName("action_nm")
self.action_odr = QtWidgets.QAction(FitDialog)
self.action_odr.setCheckable(True)
self.action_odr.setObjectName("action_odr")
self.action_lm = QtWidgets.QAction(FitDialog)
self.action_lm.setCheckable(True)
self.action_lm.setChecked(True)
self.action_lm.setObjectName("action_lm")
self.actionHelp = QtWidgets.QAction(FitDialog)
self.actionHelp.setObjectName("actionHelp")
self.actionOpen_editor = QtWidgets.QAction(FitDialog)
self.actionOpen_editor.setObjectName("actionOpen_editor")
self.actionPreview_points = QtWidgets.QAction(FitDialog)
self.actionPreview_points.setObjectName("actionPreview_points")
self.actionSave_current_model = QtWidgets.QAction(FitDialog)
self.actionSave_current_model.setObjectName("actionSave_current_model")
self.action_no_range = QtWidgets.QAction(FitDialog)
self.action_no_range.setCheckable(True)
self.action_no_range.setObjectName("action_no_range")
self.action_x_range = QtWidgets.QAction(FitDialog)
self.action_x_range.setCheckable(True)
self.action_x_range.setChecked(True)
self.action_x_range.setObjectName("action_x_range")
self.action_custom_range = QtWidgets.QAction(FitDialog)
self.action_custom_range.setCheckable(True)
self.action_custom_range.setObjectName("action_custom_range")
self.menuMethod.addAction(self.action_lm)
self.menuMethod.addAction(self.action_nm)
self.menuMethod.addAction(self.action_odr)
self.menuLimits.addAction(self.action_no_range)
self.menuLimits.addAction(self.action_x_range)
self.menuLimits.addAction(self.action_custom_range)
self.menuOptions.addAction(self.menuMethod.menuAction())
self.menuOptions.addAction(self.menuLimits.menuAction())
self.menuOptions.addSeparator()
self.menuOptions.addAction(self.actionPreview_points)
self.menuHelp.addAction(self.actionHelp)
self.menuUser.addAction(self.actionOpen_editor)
self.menuUser.addAction(self.actionSave_current_model)
self.menubar.addAction(self.menuOptions.menuAction())
self.menubar.addAction(self.menuUser.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(FitDialog)
QtCore.QMetaObject.connectSlotsByName(FitDialog)
def retranslateUi(self, FitDialog):
_translate = QtCore.QCoreApplication.translate
FitDialog.setWindowTitle(_translate("FitDialog", "One must imagine Sisyphus happy."))
self.label_3.setText(_translate("FitDialog", "Weight"))
self.weight_combobox.setItemText(0, _translate("FitDialog", "None"))
self.weight_combobox.setItemText(1, _translate("FitDialog", "y"))
self.weight_combobox.setItemText(2, _translate("FitDialog", ""))
self.weight_combobox.setItemText(3, _translate("FitDialog", "Δy"))
self.weight_combobox.setItemText(4, _translate("FitDialog", "log(y)"))
self.show_combobox.setItemText(0, _translate("FitDialog", "Model a"))
self.label_2.setText(_translate("FitDialog", "Show model"))
self.default_combobox.setItemText(0, _translate("FitDialog", "Model a"))
self.label.setText(_translate("FitDialog", "Default"))
self.newmodel_button.setText(_translate("FitDialog", "New model"))
self.deletemodel_button.setText(_translate("FitDialog", "Delete model"))
self.fit_button.setText(_translate("FitDialog", "Run fit!!!"))
self.abort_button.setText(_translate("FitDialog", "Abort"))
self.preview_button.setText(_translate("FitDialog", "Preview"))
self.menuOptions.setTitle(_translate("FitDialog", "Options"))
self.menuMethod.setTitle(_translate("FitDialog", "Method"))
self.menuLimits.setTitle(_translate("FitDialog", "Limits"))
self.menuHelp.setTitle(_translate("FitDialog", "Help"))
self.menuUser.setTitle(_translate("FitDialog", "User"))
self.action_nm.setText(_translate("FitDialog", "Nelder-Mead"))
self.action_odr.setText(_translate("FitDialog", "ODR"))
self.action_lm.setText(_translate("FitDialog", "Default stuff"))
self.actionHelp.setText(_translate("FitDialog", "Help!"))
self.actionOpen_editor.setText(_translate("FitDialog", "Open editor..."))
self.actionPreview_points.setText(_translate("FitDialog", "Preview points..."))
self.actionSave_current_model.setText(_translate("FitDialog", "Save current model..."))
self.action_no_range.setText(_translate("FitDialog", "None"))
self.action_x_range.setText(_translate("FitDialog", "Visible x range"))
self.action_custom_range.setText(_translate("FitDialog", "Custom..."))
from ..fit.function_selection import FunctionSelectionWidget
import images_rc