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

# Form implementation generated from reading ui file 'plot_UI_2.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(823, 776)
        MainWindow.setMinimumSize(QtCore.QSize(635, 694))
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setBold(False)
        font.setWeight(50)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_2.addWidget(self.label_6)
        self.verticalLayout.addWidget(self.groupBox_3)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setObjectName("formLayout_2")
        self.lineEdit1 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit1.setObjectName("lineEdit1")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit1)
        self.mmLabel = QtWidgets.QLabel(self.groupBox_2)
        self.mmLabel.setObjectName("mmLabel")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.mmLabel)
        self.lineEdit2 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit2.setObjectName("lineEdit2")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit2)
        self.mmLabel_2 = QtWidgets.QLabel(self.groupBox_2)
        self.mmLabel_2.setObjectName("mmLabel_2")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.mmLabel_2)
        self.lineEdit3 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit3.setObjectName("lineEdit3")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit3)
        self.mpaLabel = QtWidgets.QLabel(self.groupBox_2)
        self.mpaLabel.setObjectName("mpaLabel")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.mpaLabel)
        self.lineEdit4 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit4.setObjectName("lineEdit4")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lineEdit4)
        self.sheetNameLabel = QtWidgets.QLabel(self.groupBox_2)
        self.sheetNameLabel.setObjectName("sheetNameLabel")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.sheetNameLabel)
        self.pushButton = QtWidgets.QPushButton(self.groupBox_2)
        self.pushButton.setObjectName("pushButton")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.pushButton)
        self.horizontalLayout.addLayout(self.formLayout_2)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.Label = QtWidgets.QLabel(self.groupBox_2)
        self.Label.setObjectName("Label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.Label)
        self.lineEdit5 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit5.setObjectName("lineEdit5")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit5)
        self.Label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.Label_2.setObjectName("Label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.Label_2)
        self.lineEdit6 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit6.setObjectName("lineEdit6")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit6)
        self.Label_3 = QtWidgets.QLabel(self.groupBox_2)
        self.Label_3.setObjectName("Label_3")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.Label_3)
        self.lineEdit7 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit7.setObjectName("lineEdit7")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lineEdit7)
        self.Label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.Label_4.setObjectName("Label_4")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.Label_4)
        self.lineEdit8 = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit8.setObjectName("lineEdit8")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lineEdit8)
        self.horizontalLayout.addLayout(self.formLayout)
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setText("")
        self.label_5.setObjectName("label_5")
        self.horizontalLayout.addWidget(self.label_5)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.textEdit = QtWidgets.QTextEdit(self.groupBox)
        self.textEdit.setObjectName("textEdit")
        self.verticalLayout_3.addWidget(self.textEdit)
        self.verticalLayout.addWidget(self.groupBox)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(1, 1)
        self.verticalLayout.setStretch(2, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 823, 26))
        self.menubar.setObjectName("menubar")
        self.menufile = QtWidgets.QMenu(self.menubar)
        self.menufile.setObjectName("menufile")
        self.menuplot = QtWidgets.QMenu(self.menubar)
        self.menuplot.setObjectName("menuplot")
        self.menu = QtWidgets.QMenu(self.menubar)
        self.menu.setObjectName("menu")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtWidgets.QToolBar(MainWindow)
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.actionopen = QtWidgets.QAction(MainWindow)
        self.actionopen.setObjectName("actionopen")
        self.actionsave = QtWidgets.QAction(MainWindow)
        self.actionsave.setObjectName("actionsave")
        self.actionplot = QtWidgets.QAction(MainWindow)
        self.actionplot.setObjectName("actionplot")
        self.actionhelp = QtWidgets.QAction(MainWindow)
        self.actionhelp.setObjectName("actionhelp")
        self.menufile.addAction(self.actionopen)
        self.menufile.addSeparator()
        self.menufile.addAction(self.actionsave)
        self.menuplot.addAction(self.actionplot)
        self.menu.addAction(self.actionhelp)
        self.menubar.addAction(self.menufile.menuAction())
        self.menubar.addAction(self.menuplot.menuAction())
        self.menubar.addAction(self.menu.menuAction())
        self.toolBar.addAction(self.actionopen)
        self.toolBar.addAction(self.actionsave)
        self.toolBar.addAction(self.actionplot)
        self.toolBar.addAction(self.actionhelp)

        self.retranslateUi(MainWindow)
        self.actionopen.triggered.connect(MainWindow.open_file)
        self.actionsave.triggered.connect(MainWindow.save_file)
        self.actionplot.triggered.connect(MainWindow.plot)
        self.actionhelp.triggered.connect(MainWindow.help)
        self.pushButton.clicked.connect(MainWindow.input_data)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Mechanical Data Processing"))
        self.groupBox_3.setTitle(_translate("MainWindow", "提示"))
        self.label_6.setText(_translate("MainWindow", "1.操作顺序：先获取数据文件路径，再输入数据，点击确认后，点击工具栏绘图即可出图.\n"
"\n"
"2.sheet name为数据所在excel工作表左下角标签名，默认是Sheet1\n"
"\n"
"3.其他力学参数为弹性模量、泊松比、峰值抗压强度σ1-σ3和峰值抗压强度σ1\n"
"\n"
"4.图片默认保存在程序安装目录，点击另存为可更换保存路径"))
        self.groupBox_2.setTitle(_translate("MainWindow", "输入数据"))
        self.mmLabel.setText(_translate("MainWindow", "试件直径(mm)"))
        self.mmLabel_2.setText(_translate("MainWindow", "试件高度(mm)"))
        self.mpaLabel.setText(_translate("MainWindow", "试件围压(MPa)"))
        self.sheetNameLabel.setText(_translate("MainWindow", "sheet name"))
        self.pushButton.setText(_translate("MainWindow", "确认"))
        self.Label.setText(_translate("MainWindow", "热缩管壁厚(mm)"))
        self.Label_2.setText(_translate("MainWindow", "链条长度(mm)"))
        self.Label_3.setText(_translate("MainWindow", "上下压头弹性模量(MPa)"))
        self.Label_4.setText(_translate("MainWindow", "上下压头凸起部分长度(mm)"))
        self.groupBox.setTitle(_translate("MainWindow", "其他力学参数"))
        self.menufile.setTitle(_translate("MainWindow", "文件"))
        self.menuplot.setTitle(_translate("MainWindow", "绘图"))
        self.menu.setTitle(_translate("MainWindow", "关于闪退"))
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))
        self.actionopen.setText(_translate("MainWindow", "获取数据路径"))
        self.actionopen.setIconText(_translate("MainWindow", "获取数据路径"))
        self.actionsave.setText(_translate("MainWindow", "图片另存为"))
        self.actionplot.setText(_translate("MainWindow", "绘图"))
        self.actionhelp.setText(_translate("MainWindow", "帮助"))
