# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'src/resources/_ui/fitdialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_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(FitDialog)
        self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
        self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.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(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.gridLayout_2.addWidget(self.weight_combobox, 6, 1, 1, 1)
        self.newmodel_button = QtWidgets.QPushButton(self.scrollAreaWidgetContents_2)
        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.deletemodel_button = QtWidgets.QPushButton(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(self.scrollAreaWidgetContents_2)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 6, 0, 1, 1)
        self.stackedWidget = QtWidgets.QStackedWidget(self.scrollAreaWidgetContents_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.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(self.scrollAreaWidgetContents_2)
        self.functionwidget.setObjectName("functionwidget")
        self.gridLayout_2.addWidget(self.functionwidget, 0, 0, 1, 2)
        self.model_frame = QtWidgets.QFrame(self.scrollAreaWidgetContents_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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(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(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(self.model_frame)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.model_frame)
        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_2.addWidget(self.model_frame, 3, 0, 1, 2)
        self.data_widget = ExpandableWidget(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(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(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.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.preview_checkbox = QtWidgets.QCheckBox(FitDialog)
        self.preview_checkbox.setObjectName("preview_checkbox")
        self.horizontalLayout.addWidget(self.preview_checkbox)
        self.preview_button = QtWidgets.QPushButton(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.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
