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

# Form implementation generated from reading ui file 'src/resources/_ui/shift_scale_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# 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_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(shift_dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.tabWidget = QtWidgets.QTabWidget(self.splitter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.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.Preferred, QtWidgets.QSizePolicy.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(self.shift_page)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.shift_page)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 2, 1, 1, 1)
        self.x_shift_spinbox = SciSpinBox(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(self.shift_page)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.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.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 3, 1, 1, 1)
        self.y_shift_spinbox = SciSpinBox(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(self.shift_page)
        self.shift_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.shift_table.setSelectionBehavior(QtWidgets.QAbstractItemView.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.Minimum, QtWidgets.QSizePolicy.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(self.scale_page)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 1, 1, 1)
        self.x_scale_spinbox = SciSpinBox(self.scale_page)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.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(self.scale_page)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 1, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.scale_page)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 2, 1, 1, 1)
        self.y_scale_spinbox = SciSpinBox(self.scale_page)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.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(self.scale_page)
        self.scale_table.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.scale_table.setSelectionBehavior(QtWidgets.QAbstractItemView.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(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 = PlotWidget(self.verticalFrame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.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.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.label_4 = QtWidgets.QLabel(self.verticalFrame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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(self.verticalFrame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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(self.verticalFrame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.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(shift_dialog)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.frame = QtWidgets.QFrame(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(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.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(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.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(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(self.frame)
        self.data_combobox.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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(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(self.frame)
        self.values_combobox.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.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(shift_dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.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.spinboxes import SciSpinBox
from pyqtgraph import PlotWidget
