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

# Form implementation generated from reading ui file 'Ui.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(920, 989)
        MainWindow.setBaseSize(QtCore.QSize(0, 100))
        MainWindow.setWindowOpacity(1.0)
        MainWindow.setAutoFillBackground(True)
        MainWindow.setStyleSheet("")
        MainWindow.setDocumentMode(False)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.formLayout_3 = QtWidgets.QFormLayout(self.centralwidget)
        self.formLayout_3.setObjectName("formLayout_3")
        self.tabWidget_2 = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.formLayout = QtWidgets.QFormLayout(self.tab_3)
        self.formLayout.setObjectName("formLayout")
        self.label_3 = QtWidgets.QLabel(self.tab_3)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.log_txt = QtWidgets.QPlainTextEdit(self.tab_3)
        self.log_txt.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.log_txt.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.log_txt.setObjectName("log_txt")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.SpanningRole, self.log_txt)
        self.tabWidget_2.addTab(self.tab_3, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayoutWidget = QtWidgets.QWidget(self.tab_5)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 0, 421, 261))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.instructions_textEdit = QtWidgets.QPlainTextEdit(self.verticalLayoutWidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.instructions_textEdit.setFont(font)
        self.instructions_textEdit.setLineWidth(2)
        self.instructions_textEdit.setReadOnly(True)
        self.instructions_textEdit.setObjectName("instructions_textEdit")
        self.verticalLayout.addWidget(self.instructions_textEdit)
        self.tabWidget_2.addTab(self.tab_5, "")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.SpanningRole, self.tabWidget_2)

        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.remove_button = QtWidgets.QPushButton(self.tab)
        self.remove_button.setStyleSheet("")
        self.remove_button.setObjectName("remove_button")
        self.gridLayout_3.addWidget(self.remove_button, 6, 1, 1, 1)
        self.microexpansionCheckBox = QtWidgets.QCheckBox(self.tab)
        self.microexpansionCheckBox.setObjectName("microexpansionCheckBox")
        self.gridLayout_3.addWidget(self.microexpansionCheckBox, 8, 1, 1, 1)
        self.go_to_lamella = QtWidgets.QPushButton(self.tab)
        self.go_to_lamella.setObjectName("go_to_lamella")
        self.gridLayout_3.addWidget(self.go_to_lamella, 13, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem, 21, 0, 1, 2)

        self.save_button = QtWidgets.QPushButton(self.tab)
        self.save_button.setObjectName("save_button")
        self.gridLayout_3.addWidget(self.save_button, 14, 0, 1, 2)
        self.add_button = QtWidgets.QPushButton(self.tab)
        self.add_button.setObjectName("add_button")
        self.gridLayout_3.addWidget(self.add_button, 6, 0, 1, 1)
        self.checkBox_show_trench = QtWidgets.QCheckBox(self.tab)
        self.checkBox_show_trench.setObjectName("checkBox_show_trench")
        self.gridLayout_3.addWidget(self.checkBox_show_trench, 9, 0, 1, 1)
        self.label_protocol_name = QtWidgets.QLabel(self.tab)
        self.label_protocol_name.setObjectName("label_protocol_name")
        self.gridLayout_3.addWidget(self.label_protocol_name, 1, 0, 1, 1)
        self.label_current_lamella_header = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_current_lamella_header.setFont(font)
        self.label_current_lamella_header.setObjectName("label_current_lamella_header")
        self.gridLayout_3.addWidget(self.label_current_lamella_header, 7, 0, 1, 1)
        self.label_movement_instructions2 = QtWidgets.QLabel(self.tab)
        self.label_movement_instructions2.setObjectName("label_movement_instructions2")
        self.gridLayout_3.addWidget(self.label_movement_instructions2, 10, 0, 1, 1)
        self.label_title = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setPointSize(12)

        font.setBold(True)
        font.setWeight(75)
        self.label_title.setFont(font)
        self.label_title.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_title.setObjectName("label_title")
        self.gridLayout_3.addWidget(self.label_title, 0, 0, 1, 1)
        self.pushButton_run_waffle_trench = QtWidgets.QPushButton(self.tab)
        self.pushButton_run_waffle_trench.setObjectName("pushButton_run_waffle_trench")
        self.gridLayout_3.addWidget(self.pushButton_run_waffle_trench, 18, 0, 1, 2)
        self.lamella_count_txt = QtWidgets.QPlainTextEdit(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lamella_count_txt.sizePolicy().hasHeightForWidth())
        self.lamella_count_txt.setSizePolicy(sizePolicy)
        self.lamella_count_txt.setMaximumSize(QtCore.QSize(16777215, 250))
        self.lamella_count_txt.setBaseSize(QtCore.QSize(0, 100))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lamella_count_txt.setFont(font)
        self.lamella_count_txt.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.lamella_count_txt.setObjectName("lamella_count_txt")
        self.gridLayout_3.addWidget(self.lamella_count_txt, 16, 0, 1, 2)
        self.label_movement_instructions = QtWidgets.QLabel(self.tab)
        self.label_movement_instructions.setObjectName("label_movement_instructions")
        self.gridLayout_3.addWidget(self.label_movement_instructions, 12, 0, 1, 2)
        self.comboBox_moving_pattern = QtWidgets.QComboBox(self.tab)
        self.comboBox_moving_pattern.setEditable(False)
        self.comboBox_moving_pattern.setObjectName("comboBox_moving_pattern")
        self.comboBox_moving_pattern.addItem("")
        self.comboBox_moving_pattern.addItem("")
        self.gridLayout_3.addWidget(self.comboBox_moving_pattern, 10, 1, 1, 1)
        self.protocol_txt = QtWidgets.QLabel(self.tab)
        self.protocol_txt.setText("")
        self.protocol_txt.setObjectName("protocol_txt")
        self.gridLayout_3.addWidget(self.protocol_txt, 1, 1, 1, 1)
        self.show_lamella = QtWidgets.QCheckBox(self.tab)
        self.show_lamella.setChecked(False)
        self.show_lamella.setTristate(False)
        self.show_lamella.setObjectName("show_lamella")
        self.gridLayout_3.addWidget(self.show_lamella, 8, 0, 1, 1)
        self.pushButton_save_position = QtWidgets.QPushButton(self.tab)
        self.pushButton_save_position.setObjectName("pushButton_save_position")
        self.gridLayout_3.addWidget(self.pushButton_save_position, 13, 0, 1, 1)
        self.pushButton_run_waffle_notch = QtWidgets.QPushButton(self.tab)
        self.pushButton_run_waffle_notch.setObjectName("pushButton_run_waffle_notch")
        self.gridLayout_3.addWidget(self.pushButton_run_waffle_notch, 19, 0, 1, 2)
        self.label_setup_header = QtWidgets.QLabel(self.tab)
        font = QtGui.QFont()
        font.setPointSize(12)
        font.setBold(True)
        font.setWeight(75)
        self.label_setup_header.setFont(font)
        self.label_setup_header.setObjectName("label_setup_header")
        self.gridLayout_3.addWidget(self.label_setup_header, 2, 0, 1, 1)
        self.lamella_index = QtWidgets.QComboBox(self.tab)
        self.lamella_index.setObjectName("lamella_index")
        self.gridLayout_3.addWidget(self.lamella_index, 7, 1, 1, 1)
        self.checkBox_show_notch = QtWidgets.QCheckBox(self.tab)
        self.checkBox_show_notch.setObjectName("checkBox_show_notch")
        self.gridLayout_3.addWidget(self.checkBox_show_notch, 9, 1, 1, 1)
        self.run_button = QtWidgets.QPushButton(self.tab)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.run_button.setFont(font)
        self.run_button.setStyleSheet("background-color: darkGreen")
        self.run_button.setObjectName("run_button")
        self.gridLayout_3.addWidget(self.run_button, 20, 0, 1, 2)

        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.formLayout_2 = QtWidgets.QFormLayout(self.tab_2)
        self.formLayout_2.setObjectName("formLayout_2")
        self.application_file_label = QtWidgets.QLabel(self.tab_2)
        self.application_file_label.setObjectName("application_file_label")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.application_file_label)
        self.comboBoxapplication_file = QtWidgets.QComboBox(self.tab_2)
        self.comboBoxapplication_file.setObjectName("comboBoxapplication_file")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBoxapplication_file)
        self.beamShiftAttemptsLabel = QtWidgets.QLabel(self.tab_2)
        self.beamShiftAttemptsLabel.setObjectName("beamShiftAttemptsLabel")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.beamShiftAttemptsLabel)
        self.beamshift_attempts = QtWidgets.QDoubleSpinBox(self.tab_2)
        self.beamshift_attempts.setObjectName("beamshift_attempts")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.beamshift_attempts)
        self.label_6 = QtWidgets.QLabel(self.tab_2)
        self.label_6.setObjectName("label_6")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_6)
        self.comboBox_current_alignment = QtWidgets.QComboBox(self.tab_2)
        self.comboBox_current_alignment.setObjectName("comboBox_current_alignment")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.comboBox_current_alignment)
        self.scanDirectionLabel = QtWidgets.QLabel(self.tab_2)
        self.scanDirectionLabel.setObjectName("scanDirectionLabel")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.scanDirectionLabel)
        self.scanDirectionComboBox = QtWidgets.QComboBox(self.tab_2)
        self.scanDirectionComboBox.setObjectName("scanDirectionComboBox")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.scanDirectionComboBox)
        self.tabWidget_3 = QtWidgets.QTabWidget(self.tab_2)
        self.tabWidget_3.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabWidget_3.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget_3.setObjectName("tabWidget_3")
        self.tab_8 = QtWidgets.QWidget()
        self.tab_8.setObjectName("tab_8")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_8)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.comboBox_trench_preset = QtWidgets.QComboBox(self.tab_8)
        self.comboBox_trench_preset.setObjectName("comboBox_trench_preset")
        self.gridLayout_5.addWidget(self.comboBox_trench_preset, 8, 1, 1, 1)
        self.label_trench_preset = QtWidgets.QLabel(self.tab_8)
        self.label_trench_preset.setObjectName("label_trench_preset")
        self.gridLayout_5.addWidget(self.label_trench_preset, 8, 0, 1, 1)
        self.doubleSpinBox_trench_trench_height = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_trench_height.setMaximum(1000.0)
        self.doubleSpinBox_trench_trench_height.setSingleStep(0.01)
        self.doubleSpinBox_trench_trench_height.setObjectName("doubleSpinBox_trench_trench_height")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_trench_height, 3, 1, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_5.addItem(spacerItem1, 9, 0, 1, 2)
        self.label_trench_lamella_width = QtWidgets.QLabel(self.tab_8)
        self.label_trench_lamella_width.setObjectName("label_trench_lamella_width")
        self.gridLayout_5.addWidget(self.label_trench_lamella_width, 1, 0, 1, 1)
        self.doubleSpinBox_trench_lamella_width = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_lamella_width.setMaximum(1000.0)
        self.doubleSpinBox_trench_lamella_width.setSingleStep(0.01)
        self.doubleSpinBox_trench_lamella_width.setObjectName("doubleSpinBox_trench_lamella_width")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_lamella_width, 1, 1, 1, 1)
        self.doubleSpinBox_trench_milling_depth = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_milling_depth.setMaximum(1000.0)
        self.doubleSpinBox_trench_milling_depth.setSingleStep(0.01)
        self.doubleSpinBox_trench_milling_depth.setObjectName("doubleSpinBox_trench_milling_depth")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_milling_depth, 4, 1, 1, 1)
        self.doubleSpinBox_trench_milling_current = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_milling_current.setMaximum(1000.0)
        self.doubleSpinBox_trench_milling_current.setSingleStep(0.01)
        self.doubleSpinBox_trench_milling_current.setObjectName("doubleSpinBox_trench_milling_current")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_milling_current, 7, 1, 1, 1)
        self.label_trench_size_ratio = QtWidgets.QLabel(self.tab_8)
        self.label_trench_size_ratio.setObjectName("label_trench_size_ratio")
        self.gridLayout_5.addWidget(self.label_trench_size_ratio, 6, 0, 1, 1)
        self.label_trench_milling_depth = QtWidgets.QLabel(self.tab_8)
        self.label_trench_milling_depth.setObjectName("label_trench_milling_depth")
        self.gridLayout_5.addWidget(self.label_trench_milling_depth, 4, 0, 1, 1)
        self.doubleSpinBox_trench_lamella_height = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_lamella_height.setMaximum(1000.0)
        self.doubleSpinBox_trench_lamella_height.setSingleStep(0.01)
        self.doubleSpinBox_trench_lamella_height.setObjectName("doubleSpinBox_trench_lamella_height")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_lamella_height, 2, 1, 1, 1)
        self.label_trench_lamella_height = QtWidgets.QLabel(self.tab_8)
        self.label_trench_lamella_height.setObjectName("label_trench_lamella_height")
        self.gridLayout_5.addWidget(self.label_trench_lamella_height, 2, 0, 1, 1)
        self.doubleSpinBox_trench_size_ratio = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_size_ratio.setMaximum(1000.0)
        self.doubleSpinBox_trench_size_ratio.setSingleStep(0.01)
        self.doubleSpinBox_trench_size_ratio.setObjectName("doubleSpinBox_trench_size_ratio")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_size_ratio, 6, 1, 1, 1)
        self.label_trench_trench_height = QtWidgets.QLabel(self.tab_8)
        self.label_trench_trench_height.setObjectName("label_trench_trench_height")
        self.gridLayout_5.addWidget(self.label_trench_trench_height, 3, 0, 1, 1)
        self.label_trench_milling_current = QtWidgets.QLabel(self.tab_8)
        self.label_trench_milling_current.setObjectName("label_trench_milling_current")
        self.gridLayout_5.addWidget(self.label_trench_milling_current, 7, 0, 1, 1)
        self.doubleSpinBox_trench_offset = QtWidgets.QDoubleSpinBox(self.tab_8)
        self.doubleSpinBox_trench_offset.setMaximum(1000.0)
        self.doubleSpinBox_trench_offset.setSingleStep(0.01)
        self.doubleSpinBox_trench_offset.setObjectName("doubleSpinBox_trench_offset")
        self.gridLayout_5.addWidget(self.doubleSpinBox_trench_offset, 5, 1, 1, 1)
        self.label_trench_offset = QtWidgets.QLabel(self.tab_8)
        self.label_trench_offset.setObjectName("label_trench_offset")
        self.gridLayout_5.addWidget(self.label_trench_offset, 5, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.tab_8)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 2)
        self.tabWidget_3.addTab(self.tab_8, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout.setObjectName("gridLayout")
        self.widthLabel = QtWidgets.QLabel(self.tab_4)
        self.widthLabel.setObjectName("widthLabel")
        self.gridLayout.addWidget(self.widthLabel, 2, 0, 1, 1)
        self.current_fiducial = QtWidgets.QDoubleSpinBox(self.tab_4)
        self.current_fiducial.setMaximum(1000.0)
        self.current_fiducial.setObjectName("current_fiducial")
        self.gridLayout.addWidget(self.current_fiducial, 4, 1, 1, 1)
        self.millingCurrentLabel = QtWidgets.QLabel(self.tab_4)
        self.millingCurrentLabel.setObjectName("millingCurrentLabel")
        self.gridLayout.addWidget(self.millingCurrentLabel, 4, 0, 1, 1)
        self.presetLabel_2 = QtWidgets.QLabel(self.tab_4)
        self.presetLabel_2.setObjectName("presetLabel_2")
        self.gridLayout.addWidget(self.presetLabel_2, 5, 0, 1, 1)
        self.depthLabel = QtWidgets.QLabel(self.tab_4)
        self.depthLabel.setObjectName("depthLabel")
        self.gridLayout.addWidget(self.depthLabel, 3, 0, 1, 1)
        self.width_fiducial = QtWidgets.QDoubleSpinBox(self.tab_4)
        self.width_fiducial.setMaximum(1000.0)
        self.width_fiducial.setObjectName("width_fiducial")
        self.gridLayout.addWidget(self.width_fiducial, 2, 1, 1, 1)
        self.fiducial_length = QtWidgets.QDoubleSpinBox(self.tab_4)
        self.fiducial_length.setMaximum(1000.0)
        self.fiducial_length.setObjectName("fiducial_length")
        self.gridLayout.addWidget(self.fiducial_length, 1, 1, 1, 1)
        self.depth_fiducial = QtWidgets.QDoubleSpinBox(self.tab_4)
        self.depth_fiducial.setMaximum(1000.0)
        self.depth_fiducial.setObjectName("depth_fiducial")
        self.gridLayout.addWidget(self.depth_fiducial, 3, 1, 1, 1)
        self.lengthLabel = QtWidgets.QLabel(self.tab_4)
        self.lengthLabel.setObjectName("lengthLabel")
        self.gridLayout.addWidget(self.lengthLabel, 1, 0, 1, 1)
        self.presetComboBox_fiducial = QtWidgets.QComboBox(self.tab_4)
        self.presetComboBox_fiducial.setObjectName("presetComboBox_fiducial")
        self.gridLayout.addWidget(self.presetComboBox_fiducial, 5, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.tab_4)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 2)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 6, 0, 1, 2)
        self.tabWidget_3.addTab(self.tab_4, "")
        self.tab_6 = QtWidgets.QWidget()
        self.tab_6.setObjectName("tab_6")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_6)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.stageLabel = QtWidgets.QLabel(self.tab_6)
        self.stageLabel.setObjectName("stageLabel")
        self.gridLayout_2.addWidget(self.stageLabel, 1, 0, 1, 1)
        self.stage_lamella = QtWidgets.QComboBox(self.tab_6)
        self.stage_lamella.setObjectName("stage_lamella")
        self.stage_lamella.addItem("")
        self.stage_lamella.addItem("")
        self.stage_lamella.addItem("")
        self.gridLayout_2.addWidget(self.stage_lamella, 1, 1, 1, 1)
        self.lamella_width = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.lamella_width.setMaximum(1000.0)
        self.lamella_width.setObjectName("lamella_width")
        self.gridLayout_2.addWidget(self.lamella_width, 2, 1, 1, 1)
        self.widthLabel_2 = QtWidgets.QLabel(self.tab_6)
        self.widthLabel_2.setObjectName("widthLabel_2")
        self.gridLayout_2.addWidget(self.widthLabel_2, 2, 0, 1, 1)
        self.trenchHeightLabel = QtWidgets.QLabel(self.tab_6)
        self.trenchHeightLabel.setObjectName("trenchHeightLabel")
        self.gridLayout_2.addWidget(self.trenchHeightLabel, 4, 0, 1, 1)
        self.lamella_height = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.lamella_height.setMaximum(1000.0)
        self.lamella_height.setObjectName("lamella_height")
        self.gridLayout_2.addWidget(self.lamella_height, 3, 1, 1, 1)
        self.trench_height = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.trench_height.setMaximum(1000.0)
        self.trench_height.setObjectName("trench_height")
        self.gridLayout_2.addWidget(self.trench_height, 4, 1, 1, 1)
        self.heightLabel = QtWidgets.QLabel(self.tab_6)
        self.heightLabel.setObjectName("heightLabel")
        self.gridLayout_2.addWidget(self.heightLabel, 3, 0, 1, 1)
        self.depth_trench = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.depth_trench.setMaximum(1000.0)
        self.depth_trench.setObjectName("depth_trench")
        self.gridLayout_2.addWidget(self.depth_trench, 5, 1, 1, 1)
        self.offset = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.offset.setObjectName("offset")
        self.gridLayout_2.addWidget(self.offset, 6, 1, 1, 1)
        self.size_ratio = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.size_ratio.setObjectName("size_ratio")
        self.gridLayout_2.addWidget(self.size_ratio, 7, 1, 1, 1)
        self.current_lamella = QtWidgets.QDoubleSpinBox(self.tab_6)
        self.current_lamella.setMaximum(1000.0)
        self.current_lamella.setObjectName("current_lamella")
        self.gridLayout_2.addWidget(self.current_lamella, 8, 1, 1, 1)
        self.presetComboBox = QtWidgets.QComboBox(self.tab_6)
        self.presetComboBox.setObjectName("presetComboBox")
        self.gridLayout_2.addWidget(self.presetComboBox, 9, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.tab_6)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_9.setFont(font)
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 0, 0, 1, 2)
        self.millingDepthLabel = QtWidgets.QLabel(self.tab_6)
        self.millingDepthLabel.setObjectName("millingDepthLabel")
        self.gridLayout_2.addWidget(self.millingDepthLabel, 5, 0, 1, 1)
        self.offsetLabel = QtWidgets.QLabel(self.tab_6)
        self.offsetLabel.setObjectName("offsetLabel")
        self.gridLayout_2.addWidget(self.offsetLabel, 6, 0, 1, 1)
        self.sizeRatioLabel = QtWidgets.QLabel(self.tab_6)
        self.sizeRatioLabel.setObjectName("sizeRatioLabel")
        self.gridLayout_2.addWidget(self.sizeRatioLabel, 7, 0, 1, 1)
        self.millingCurrentLabel_2 = QtWidgets.QLabel(self.tab_6)
        self.millingCurrentLabel_2.setObjectName("millingCurrentLabel_2")
        self.gridLayout_2.addWidget(self.millingCurrentLabel_2, 8, 0, 1, 1)
        self.presetLabel = QtWidgets.QLabel(self.tab_6)
        self.presetLabel.setObjectName("presetLabel")
        self.gridLayout_2.addWidget(self.presetLabel, 9, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem3, 10, 0, 1, 2)
        self.tabWidget_3.addTab(self.tab_6, "")
        self.tab_7 = QtWidgets.QWidget()
        self.tab_7.setObjectName("tab_7")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_7)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.micro_exp_distance = QtWidgets.QDoubleSpinBox(self.tab_7)
        self.micro_exp_distance.setMaximum(10000.0)
        self.micro_exp_distance.setObjectName("micro_exp_distance")
        self.gridLayout_4.addWidget(self.micro_exp_distance, 3, 1, 1, 1)
        self.micro_exp_height = QtWidgets.QDoubleSpinBox(self.tab_7)
        self.micro_exp_height.setMaximum(1000.0)
        self.micro_exp_height.setObjectName("micro_exp_height")
        self.gridLayout_4.addWidget(self.micro_exp_height, 2, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab_7)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_10.setFont(font)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 0, 0, 1, 2)
        self.heightLabel_2 = QtWidgets.QLabel(self.tab_7)
        self.heightLabel_2.setObjectName("heightLabel_2")
        self.gridLayout_4.addWidget(self.heightLabel_2, 2, 0, 1, 1)
        self.micro_exp_width = QtWidgets.QDoubleSpinBox(self.tab_7)
        self.micro_exp_width.setMaximum(1000.0)
        self.micro_exp_width.setObjectName("micro_exp_width")
        self.gridLayout_4.addWidget(self.micro_exp_width, 1, 1, 1, 1)
        self.widthLabel_3 = QtWidgets.QLabel(self.tab_7)
        self.widthLabel_3.setObjectName("widthLabel_3")
        self.gridLayout_4.addWidget(self.widthLabel_3, 1, 0, 1, 1)
        self.distanceLabel = QtWidgets.QLabel(self.tab_7)
        self.distanceLabel.setObjectName("distanceLabel")
        self.gridLayout_4.addWidget(self.distanceLabel, 3, 0, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem4, 4, 0, 1, 2)
        self.tabWidget_3.addTab(self.tab_7, "")
        self.tab_9 = QtWidgets.QWidget()
        self.tab_9.setObjectName("tab_9")
        self.tabWidget_3.addTab(self.tab_9, "")
        self.tab_10 = QtWidgets.QWidget()
        self.tab_10.setObjectName("tab_10")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.tab_10)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.label_notch_header = QtWidgets.QLabel(self.tab_10)
        self.label_notch_header.setObjectName("label_notch_header")
        self.gridLayout_6.addWidget(self.label_notch_header, 0, 0, 1, 2)
        self.label_notch_vwidth = QtWidgets.QLabel(self.tab_10)
        self.label_notch_vwidth.setObjectName("label_notch_vwidth")
        self.gridLayout_6.addWidget(self.label_notch_vwidth, 2, 0, 1, 1)
        self.doubleSpinBox_notch_vwidth = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_vwidth.setObjectName("doubleSpinBox_notch_vwidth")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_vwidth, 2, 1, 1, 1)
        self.label_notch_distance = QtWidgets.QLabel(self.tab_10)
        self.label_notch_distance.setObjectName("label_notch_distance")
        self.gridLayout_6.addWidget(self.label_notch_distance, 6, 0, 1, 1)
        self.label_notch_milling_current = QtWidgets.QLabel(self.tab_10)
        self.label_notch_milling_current.setObjectName("label_notch_milling_current")
        self.gridLayout_6.addWidget(self.label_notch_milling_current, 7, 0, 1, 1)
        self.label_notch_hheight = QtWidgets.QLabel(self.tab_10)
        self.label_notch_hheight.setObjectName("label_notch_hheight")
        self.gridLayout_6.addWidget(self.label_notch_hheight, 3, 0, 1, 1)
        self.label_notch_depth = QtWidgets.QLabel(self.tab_10)
        self.label_notch_depth.setObjectName("label_notch_depth")
        self.gridLayout_6.addWidget(self.label_notch_depth, 5, 0, 1, 1)
        self.doubleSpinBox_notch_vheight = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_vheight.setObjectName("doubleSpinBox_notch_vheight")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_vheight, 1, 1, 1, 1)
        self.label_notch_vheight = QtWidgets.QLabel(self.tab_10)
        self.label_notch_vheight.setObjectName("label_notch_vheight")
        self.gridLayout_6.addWidget(self.label_notch_vheight, 1, 0, 1, 1)
        self.doubleSpinBox_notch_hheight = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_hheight.setObjectName("doubleSpinBox_notch_hheight")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_hheight, 3, 1, 1, 1)
        self.doubleSpinBox_notch_distance = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_distance.setObjectName("doubleSpinBox_notch_distance")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_distance, 6, 1, 1, 1)
        self.doubleSpinBox_notch_milling_current = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_milling_current.setObjectName("doubleSpinBox_notch_milling_current")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_milling_current, 7, 1, 1, 1)
        self.label_notch_hwidth = QtWidgets.QLabel(self.tab_10)
        self.label_notch_hwidth.setObjectName("label_notch_hwidth")
        self.gridLayout_6.addWidget(self.label_notch_hwidth, 4, 0, 1, 1)
        self.doubleSpinBox_notch_depth = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_depth.setObjectName("doubleSpinBox_notch_depth")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_depth, 5, 1, 1, 1)
        self.checkBox_notch_flip = QtWidgets.QCheckBox(self.tab_10)
        self.checkBox_notch_flip.setObjectName("checkBox_notch_flip")
        self.gridLayout_6.addWidget(self.checkBox_notch_flip, 8, 1, 1, 1)
        self.doubleSpinBox_notch_hwidth = QtWidgets.QDoubleSpinBox(self.tab_10)
        self.doubleSpinBox_notch_hwidth.setObjectName("doubleSpinBox_notch_hwidth")
        self.gridLayout_6.addWidget(self.doubleSpinBox_notch_hwidth, 4, 1, 1, 1)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_6.addItem(spacerItem5, 9, 0, 1, 2)
        self.tabWidget_3.addTab(self.tab_10, "")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.SpanningRole, self.tabWidget_3)
        self.export_protocol = QtWidgets.QPushButton(self.tab_2)
        self.export_protocol.setObjectName("export_protocol")
        self.formLayout_2.setWidget(24, QtWidgets.QFormLayout.SpanningRole, self.export_protocol)
        self.tabWidget.addTab(self.tab_2, "")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.tabWidget)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 920, 21))
        self.menubar.setObjectName("menubar")
        self.menuAutoLamella = QtWidgets.QMenu(self.menubar)
        self.menuAutoLamella.setObjectName("menuAutoLamella")
        self.menuTools = QtWidgets.QMenu(self.menubar)
        self.menuTools.setObjectName("menuTools")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.create_exp = QtWidgets.QAction(MainWindow)
        self.create_exp.setObjectName("create_exp")
        self.load_exp = QtWidgets.QAction(MainWindow)
        self.load_exp.setObjectName("load_exp")
        self.platinum = QtWidgets.QAction(MainWindow)
        self.platinum.setObjectName("platinum")
        self.action_load_protocol = QtWidgets.QAction(MainWindow)
        self.action_load_protocol.setObjectName("action_load_protocol")
        self.menuAutoLamella.addAction(self.create_exp)
        self.menuAutoLamella.addAction(self.load_exp)
        self.menuAutoLamella.addAction(self.action_load_protocol)
        self.menuTools.addAction(self.platinum)
        self.menubar.addAction(self.menuAutoLamella.menuAction())
        self.menubar.addAction(self.menuTools.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget_2.setCurrentIndex(1)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(5)

        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.label_3.setText(_translate("MainWindow", "Console Log"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_3), _translate("MainWindow", "Log"))
        self.instructions_textEdit.setPlainText(_translate("MainWindow", "1. Create experiment (file menu) \n"
"2. Take images \n"
"3. Modify protocol if needed\n"
"4. Add lamella\n"
"5. Move to region of interest on the sample\n"
"6. Adjust lamella and fiducial positions\n"
"7. Save lamella\n"
"8. Check fiducial milling\n"
"9. Repeat 3-8 as needed\n"
"10. Run autolamella\n"
""))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_5), _translate("MainWindow", "Instructions"))
        self.remove_button.setText(_translate("MainWindow", "Remove Lamella"))
        self.microexpansionCheckBox.setText(_translate("MainWindow", "Microexpansion Joints"))
        self.go_to_lamella.setText(_translate("MainWindow", "Go to position"))
        self.save_button.setText(_translate("MainWindow", "Mill Fiducial for current lamella"))
        self.add_button.setText(_translate("MainWindow", "Add Lamella"))
        self.checkBox_show_trench.setText(_translate("MainWindow", "Show Trench Pattern"))
        self.label_protocol_name.setText(_translate("MainWindow", "Protocol Name"))
        self.label_current_lamella_header.setText(_translate("MainWindow", "Current Lamella"))
        self.label_movement_instructions2.setText(_translate("MainWindow", "Moving pattern :"))
        self.label_title.setText(_translate("MainWindow", "Autolamella"))
        self.pushButton_run_waffle_trench.setText(_translate("MainWindow", "Run Waffle Trench Milling"))
        self.label_movement_instructions.setText(_translate("MainWindow", "Right click where you want the pattern centre to be."))
        self.comboBox_moving_pattern.setItemText(0, _translate("MainWindow", "Fiducial"))
        self.comboBox_moving_pattern.setItemText(1, _translate("MainWindow", "Lamella"))
        self.show_lamella.setText(_translate("MainWindow", "Show Lamella Pattern"))
        self.pushButton_save_position.setText(_translate("MainWindow", "Save Position"))
        self.pushButton_run_waffle_notch.setText(_translate("MainWindow", "Run Waffle Notch Milling"))
        self.label_setup_header.setText(_translate("MainWindow", "Setup"))
        self.checkBox_show_notch.setText(_translate("MainWindow", "Show Notch Pattern"))
        self.run_button.setText(_translate("MainWindow", "Run AutoLamella"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Experiment"))
        self.application_file_label.setText(_translate("MainWindow", "Application file"))
        self.beamShiftAttemptsLabel.setText(_translate("MainWindow", "Beam shift attempts"))
        self.label_6.setText(_translate("MainWindow", "Align at:"))
        self.scanDirectionLabel.setText(_translate("MainWindow", "Scan Direction"))
        self.label_trench_preset.setText(_translate("MainWindow", "Preset"))
        self.label_trench_lamella_width.setText(_translate("MainWindow", "Lamella Width (um)"))
        self.label_trench_size_ratio.setText(_translate("MainWindow", "Size Ratio"))
        self.label_trench_milling_depth.setText(_translate("MainWindow", "Milling Depth (um)"))
        self.label_trench_lamella_height.setText(_translate("MainWindow", "Lamella Height (um)"))
        self.label_trench_trench_height.setText(_translate("MainWindow", "Trench Height (um)"))
        self.label_trench_milling_current.setText(_translate("MainWindow", "Milling Current (nA)"))
        self.label_trench_offset.setText(_translate("MainWindow", "Offset (um)"))
        self.label.setText(_translate("MainWindow", "Trench Parameters"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_8), _translate("MainWindow", "Trench"))
        self.widthLabel.setText(_translate("MainWindow", "Width (µm)"))
        self.millingCurrentLabel.setText(_translate("MainWindow", "Milling current (nA)"))
        self.presetLabel_2.setText(_translate("MainWindow", "Preset"))
        self.depthLabel.setText(_translate("MainWindow", "Depth (µm)"))
        self.lengthLabel.setText(_translate("MainWindow", "Length (µm)"))
        self.label_5.setText(_translate("MainWindow", "Fiducial Parameters"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_4), _translate("MainWindow", "Fiducial"))
        self.stageLabel.setText(_translate("MainWindow", "Stage"))
        self.stage_lamella.setItemText(0, _translate("MainWindow", "1. Rough Cut"))
        self.stage_lamella.setItemText(1, _translate("MainWindow", "2. Regular Cut"))
        self.stage_lamella.setItemText(2, _translate("MainWindow", "3. Polishing Cut"))
        self.widthLabel_2.setText(_translate("MainWindow", "Lamella width (µm)"))
        self.trenchHeightLabel.setText(_translate("MainWindow", "Trench height (µm)"))
        self.heightLabel.setText(_translate("MainWindow", "Lamella height (µm)"))
        self.label_9.setText(_translate("MainWindow", "Lamella Parameters "))
        self.millingDepthLabel.setText(_translate("MainWindow", "Milling depth (µm)"))
        self.offsetLabel.setText(_translate("MainWindow", "Offset (µm)"))
        self.sizeRatioLabel.setText(_translate("MainWindow", "Size ratio"))
        self.millingCurrentLabel_2.setText(_translate("MainWindow", "Milling current (nA)"))
        self.presetLabel.setText(_translate("MainWindow", "Preset"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_6), _translate("MainWindow", "Lamella"))
        self.label_10.setText(_translate("MainWindow", "Microexpansion Joints"))
        self.heightLabel_2.setText(_translate("MainWindow", "Height (µm)"))
        self.widthLabel_3.setText(_translate("MainWindow", "Width (µm)"))
        self.distanceLabel.setText(_translate("MainWindow", "Distance (µm)"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_7), _translate("MainWindow", "MicroExpansion"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_9), _translate("MainWindow", "UnderCut"))
        self.label_notch_header.setText(_translate("MainWindow", "Notch Parameters"))
        self.label_notch_vwidth.setText(_translate("MainWindow", "Vertical Width (um)"))
        self.label_notch_distance.setText(_translate("MainWindow", "Distance (um)"))
        self.label_notch_milling_current.setText(_translate("MainWindow", "Milling Current (nA)"))
        self.label_notch_hheight.setText(_translate("MainWindow", "Horizontal Height (um)"))
        self.label_notch_depth.setText(_translate("MainWindow", "Milling Depth (um)"))
        self.label_notch_vheight.setText(_translate("MainWindow", "Vertical Height (um)"))
        self.label_notch_hwidth.setText(_translate("MainWindow", "Horizontal Width (um)"))
        self.checkBox_notch_flip.setText(_translate("MainWindow", "Flip Pattern"))
        self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_10), _translate("MainWindow", "Notch"))
        self.export_protocol.setText(_translate("MainWindow", "Save protocol to file"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Protocol"))
        self.menuAutoLamella.setTitle(_translate("MainWindow", "File"))
        self.menuTools.setTitle(_translate("MainWindow", "Tools"))
        self.create_exp.setText(_translate("MainWindow", "Create Experiment"))
        self.load_exp.setText(_translate("MainWindow", "Load Experiment"))
        self.platinum.setText(_translate("MainWindow", "Splutter Platinum"))
        self.action_load_protocol.setText(_translate("MainWindow", "Load Protocol"))
