'''
Autogenerated UI widget classes.

DO NOT EDIT MANUALLY.

Dot ui files are created and edited using qtcreator, then transformed using pyuic5 from pyqt5-dev-tools.
'''
try:
    from PyQt6 import QtGui, QtWidgets, QtCore
    from PyQt6.QtWidgets import QApplication, QWidget
    from PyQt6.QtGui import QAction
    import PyQt6 as PyQt

except ImportError:
    from PyQt5 import QtGui, QtWidgets, QtCore
    from PyQt5.QtWidgets import QApplication, QWidget, QAction
    from PyQt5.QtWidgets import QAction
    import PyQt5 as PyQt


''' Main window.
'''
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        MainWindow.setToolTip("")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.hlayoutInstrument = QtWidgets.QHBoxLayout()
        self.hlayoutInstrument.setObjectName("hlayoutInstrument")
        self.lblIcon = QtWidgets.QLabel(self.centralwidget)
        self.lblIcon.setMaximumSize(QtCore.QSize(127, 100))
        self.lblIcon.setText("")
        self.lblIcon.setPixmap(QtGui.QPixmap("mcstas-py.png"))
        self.lblIcon.setScaledContents(False)
        self.lblIcon.setObjectName("lblIcon")
        self.hlayoutInstrument.addWidget(self.lblIcon)
        self.gbxInstrument = QtWidgets.QGroupBox(self.centralwidget)
        self.gbxInstrument.setObjectName("gbxInstrument")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.gbxInstrument)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.grdInstrument = QtWidgets.QGridLayout()
        self.grdInstrument.setObjectName("grdInstrument")
        self.lblInstrument = QtWidgets.QLabel(self.gbxInstrument)
        self.lblInstrument.setObjectName("lblInstrument")
        self.grdInstrument.addWidget(self.lblInstrument, 2, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.grdInstrument.addItem(spacerItem, 0, 1, 1, 5)
        self.btnJuPy = QtWidgets.QPushButton(self.gbxInstrument)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnJuPy.sizePolicy().hasHeightForWidth())
        self.btnJuPy.setSizePolicy(sizePolicy)
        self.btnJuPy.setObjectName("btnJuPy")
        self.grdInstrument.addWidget(self.btnJuPy, 0, 5, 1, 1)
        self.btnDoc = QtWidgets.QPushButton(self.gbxInstrument)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnDoc.sizePolicy().hasHeightForWidth())
        self.btnDoc.setSizePolicy(sizePolicy)
        self.btnDoc.setObjectName("btnDoc")
        self.grdInstrument.addWidget(self.btnDoc, 2, 5, 1, 1)
        self.btnRun = QtWidgets.QPushButton(self.gbxInstrument)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnRun.sizePolicy().hasHeightForWidth())
        self.btnRun.setSizePolicy(sizePolicy)
        self.btnRun.setObjectName("btnRun")
        self.grdInstrument.addWidget(self.btnRun, 0, 6, 1, 1)
        self.btnPlot = QtWidgets.QPushButton(self.gbxInstrument)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnPlot.sizePolicy().hasHeightForWidth())
        self.btnPlot.setSizePolicy(sizePolicy)
        self.btnPlot.setObjectName("btnPlot")
        self.grdInstrument.addWidget(self.btnPlot, 0, 7, 1, 1)
        self.btnEdit = QtWidgets.QPushButton(self.gbxInstrument)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnEdit.sizePolicy().hasHeightForWidth())
        self.btnEdit.setSizePolicy(sizePolicy)
        self.btnEdit.setObjectName("btnEdit")
        self.grdInstrument.addWidget(self.btnEdit, 2, 7, 1, 1)
        self.btnOpenInstrument = QtWidgets.QPushButton(self.gbxInstrument)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnOpenInstrument.sizePolicy().hasHeightForWidth())
        self.btnOpenInstrument.setSizePolicy(sizePolicy)
        self.btnOpenInstrument.setObjectName("btnOpenInstrument")
        self.grdInstrument.addWidget(self.btnOpenInstrument, 2, 6, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.grdInstrument.addItem(spacerItem1, 2, 2, 1, 4)
        self.horizontalLayout_3.addLayout(self.grdInstrument)
        self.hlayoutInstrument.addWidget(self.gbxInstrument)
        self.verticalLayout.addLayout(self.hlayoutInstrument)
        self.gbxMessages = QtWidgets.QGroupBox(self.centralwidget)
        self.gbxMessages.setObjectName("gbxMessages")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.gbxMessages)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.txtbrwMcgui = QtWidgets.QTextBrowser(self.gbxMessages)
        self.txtbrwMcgui.setObjectName("txtbrwMcgui")
        self.horizontalLayout_2.addWidget(self.txtbrwMcgui)
        self.verticalLayout.addWidget(self.gbxMessages)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuNew_From_Template = QtWidgets.QMenu(self.menuFile)
        self.menuNew_From_Template.setObjectName("menuNew_From_Template")
        self.menuSimulation = QtWidgets.QMenu(self.menubar)
        self.menuSimulation.setObjectName("menuSimulation")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen_instrument = QAction(MainWindow)
        self.actionOpen_instrument.setObjectName("actionOpen_instrument")
        self.actionQuit = QAction(MainWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.actionRun_Simulation = QAction(MainWindow)
        self.actionRun_Simulation.setObjectName("actionRun_Simulation")
        self.actionCompile_Instrument = QAction(MainWindow)
        self.actionCompile_Instrument.setObjectName("actionCompile_Instrument")
        self.actionMcstas_User_Manual = QAction(MainWindow)
        self.actionMcstas_User_Manual.setObjectName("actionMcstas_User_Manual")
        self.actionMcstas_Web_Page = QAction(MainWindow)
        self.actionMcstas_Web_Page.setObjectName("actionMcstas_Web_Page")
        self.actionAbout = QAction(MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.actionMcstas_Component_Manual = QAction(MainWindow)
        self.actionMcstas_Component_Manual.setObjectName("actionMcstas_Component_Manual")
        self.actionNew_Instrument = QAction(MainWindow)
        self.actionNew_Instrument.setObjectName("actionNew_Instrument")
        self.actionEdit_Instrument = QAction(MainWindow)
        self.actionEdit_Instrument.setObjectName("actionEdit_Instrument")
        self.actionEditExt_Instrument = QAction(MainWindow)
        self.actionEditExt_Instrument.setObjectName("actionEditExt_Instrument")
        self.actionClose_Instrument = QAction(MainWindow)
        self.actionClose_Instrument.setObjectName("actionClose_Instrument")
        self.actionPlot = QAction(MainWindow)
        self.actionPlot.setObjectName("actionPlot")
        self.actionSave_As = QAction(MainWindow)
        self.actionSave_As.setObjectName("actionSave_As")
        self.actionTempl_submenu = QAction(MainWindow)
        self.actionTempl_submenu.setObjectName("actionTempl_submenu")
        self.actionConfiguration = QAction(MainWindow)
        self.actionConfiguration.setObjectName("actionConfiguration")
        self.actionClear_Console = QAction(MainWindow)
        self.actionClear_Console.setObjectName("actionClear_Console")
        self.actionCompile_Instrument_MPI = QAction(MainWindow)
        self.actionCompile_Instrument_MPI.setObjectName("actionCompile_Instrument_MPI")
        self.actionMcdoc = QAction(MainWindow)
        self.actionMcdoc.setObjectName("actionMcdoc")
        self.actionDisplay = QAction(MainWindow)
        self.actionDisplay.setObjectName("actionDisplay")
        self.actionDisplay_2d = QAction(MainWindow)
        self.actionDisplay_2d.setObjectName("actionDisplay_2d")
        self.actionPlotOther = QAction(MainWindow)
        self.actionPlotOther.setObjectName("actionPlotOther")
        self.actionMcDocCurrent = QAction(MainWindow)
        self.actionMcDocCurrent.setObjectName("actionMcDocCurrent")
        self.menuNew_From_Template.addAction(self.actionTempl_submenu)
        self.menuFile.addAction(self.actionNew_Instrument)
        self.menuFile.addAction(self.menuNew_From_Template.menuAction())
        self.menuFile.addAction(self.actionOpen_instrument)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionEdit_Instrument)
        self.menuFile.addAction(self.actionEditExt_Instrument)
        self.menuFile.addAction(self.actionSave_As)
        self.menuFile.addAction(self.actionClose_Instrument)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionConfiguration)
        self.menuFile.addAction(self.actionClear_Console)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menuSimulation.addAction(self.actionRun_Simulation)
        self.menuSimulation.addAction(self.actionCompile_Instrument)
        self.menuSimulation.addAction(self.actionCompile_Instrument_MPI)
        self.menuSimulation.addSeparator()
        self.menuSimulation.addAction(self.actionPlot)
        self.menuSimulation.addAction(self.actionPlotOther)
        self.menuSimulation.addAction(self.actionDisplay)
        self.menuSimulation.addAction(self.actionDisplay_2d)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionMcDocCurrent)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionMcdoc)
        self.menuHelp.addAction(self.actionMcstas_User_Manual)
        self.menuHelp.addAction(self.actionMcstas_Component_Manual)
        self.menuHelp.addAction(self.actionMcstas_Web_Page)
        self.menuHelp.addSeparator()
        self.menuHelp.addAction(self.actionAbout)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSimulation.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "mcgui-py"))
        self.gbxInstrument.setTitle(_translate("MainWindow", "Instrument:"))
        self.lblInstrument.setText(_translate("MainWindow", "<Instrument file>"))
        self.btnJuPy.setText(_translate("MainWindow", "Pylab"))
        self.btnJuPy.setToolTip(_translate("MainWindow", "Open as Jupyter notebook"))
        self.btnDoc.setText(_translate("MainWindow", "Docs"))
        self.btnDoc.setToolTip(_translate("MainWindow", "Open the documentation"))
        self.btnRun.setText(_translate("MainWindow", "Run..."))
        self.btnRun.setToolTip(_translate("MainWindow", "Compile and Run the current instrument"))
        self.btnPlot.setText(_translate("MainWindow", "Plot"))
        self.btnPlot.setToolTip(_translate("MainWindow", "Plot the last simulation results"))
        self.btnEdit.setText(_translate("MainWindow", "Edit"))
        self.btnEdit.setToolTip(_translate("MainWindow", "Edit the current instrument"))
        self.btnOpenInstrument.setToolTip(_translate("MainWindow", "Browse instrument..."))
        self.btnOpenInstrument.setText(_translate("MainWindow", "Open"))
        self.gbxMessages.setTitle(_translate("MainWindow", "Messages:"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuNew_From_Template.setTitle(_translate("MainWindow", "New From Template..."))
        self.menuSimulation.setTitle(_translate("MainWindow", "Simulation"))
        self.menuHelp.setTitle(_translate("MainWindow", "Help"))
        self.actionOpen_instrument.setText(_translate("MainWindow", "Open"))
        self.actionOpen_instrument.setShortcut(_translate("MainWindow", "Ctrl+O"))
        self.actionClear_Console.setText(_translate("MainWindow", "Clear Messages"))
        self.actionQuit.setText(_translate("MainWindow", "Quit"))
        self.actionQuit.setShortcut(_translate("MainWindow", "Ctrl+Q"))
        self.actionRun_Simulation.setText(_translate("MainWindow", "Run Simulation..."))
        self.actionRun_Simulation.setShortcut(_translate("MainWindow", "Ctrl+R"))
        self.actionCompile_Instrument.setText(_translate("MainWindow", "Compile Instrument"))
        self.actionCompile_Instrument.setShortcut(_translate("MainWindow", "Ctrl+Shift+R"))
        self.actionMcstas_User_Manual.setText(_translate("MainWindow", "mcstas User Manual"))
        self.actionMcstas_Web_Page.setText(_translate("MainWindow", "mcstas Web Page"))
        self.actionAbout.setText(_translate("MainWindow", "About..."))
        self.actionAbout.setShortcut(_translate("MainWindow", "F1"))
        self.actionMcstas_Component_Manual.setText(_translate("MainWindow", "mcstas Component Manual"))
        self.actionNew_Instrument.setText(_translate("MainWindow", "New Instrument..."))
        self.actionNew_Instrument.setShortcut(_translate("MainWindow", "Ctrl+N"))
        self.actionEdit_Instrument.setText(_translate("MainWindow", "Edit..."))
        self.actionEdit_Instrument.setShortcut(_translate("MainWindow", "Ctrl+E"))
        self.actionEditExt_Instrument.setText(_translate("MainWindow", "External editor"))
        self.actionEditExt_Instrument.setShortcut(_translate("MainWindow", "Ctrl+Shift+E"))
        self.actionClose_Instrument.setText(_translate("MainWindow", "Close Instrument"))
        self.actionClose_Instrument.setShortcut(_translate("MainWindow", "Ctrl+W"))
        self.actionPlot.setText(_translate("MainWindow", "Plot"))
        self.actionPlot.setShortcut(_translate("MainWindow", "Ctrl+P"))
        self.actionSave_As.setText(_translate("MainWindow", "Save As..."))
        self.actionSave_As.setShortcut(_translate("MainWindow", "Ctrl+Shift+S"))
        self.actionTempl_submenu.setText(_translate("MainWindow", "new_from_templ_submenu"))
        self.actionConfiguration.setText(_translate("MainWindow", "Configuration..."))
        self.actionConfiguration.setToolTip(_translate("MainWindow", "mccode configuration"))
        self.actionCompile_Instrument_MPI.setText(_translate("MainWindow", "Compile Instrument (MPI)"))
        self.actionMcdoc.setText(_translate("MainWindow", "mcdoc Component Reference"))
        self.actionDisplay.setText(_translate("MainWindow", "Display-3D"))
        self.actionDisplay_2d.setText(_translate("MainWindow", "Display-2D"))
        self.actionPlotOther.setText(_translate("MainWindow", "Plot Other Results"))
        self.actionPlotOther.setShortcut(_translate("MainWindow", "Ctrl+Shift+P"))
        self.actionMcDocCurrent.setText(_translate("MainWindow", "mcdoc current instrument"))


''' Instrument Editor
'''
class Ui_EditorWindow(object):
    def setupUi(self, EditorWindow):
        EditorWindow.setObjectName("EditorWindow")
        EditorWindow.resize(920, 1080)
        self.centralwidget = QtWidgets.QWidget(EditorWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.vlayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.vlayout.setContentsMargins(0, 0, 0, 0)
        self.vlayout.setSpacing(0)
        self.vlayout.setObjectName("vlayout")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.vlayout.addLayout(self.verticalLayout)
        EditorWindow.setCentralWidget(self.centralwidget)
        self.statusbar = QtWidgets.QStatusBar(EditorWindow)
        self.statusbar.setObjectName("statusbar")
        EditorWindow.setStatusBar(self.statusbar)
        self.menubar = QtWidgets.QMenuBar(EditorWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 920, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtWidgets.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        self.menuInsert = QtWidgets.QMenu(self.menubar)
        self.menuInsert.setObjectName("menuInsert")
        EditorWindow.setMenuBar(self.menubar)
        self.actionComponent_Browser = QAction(EditorWindow)
        self.actionComponent_Browser.setObjectName("actionComponent_Browser")
        self.actionCompDummy = QAction(EditorWindow)
        self.actionCompDummy.setObjectName("actionCompDummy")
        self.actionSource_Optimize = QAction(EditorWindow)
        self.actionSource_Optimize.setObjectName("actionSource_Optimize")
        self.actionGuide = QAction(EditorWindow)
        self.actionGuide.setObjectName("actionGuide")
        self.actionMirror = QAction(EditorWindow)
        self.actionMirror.setObjectName("actionMirror")
        self.actionV_Selector = QAction(EditorWindow)
        self.actionV_Selector.setObjectName("actionV_Selector")
        self.actionUndo = QAction(EditorWindow)
        self.actionUndo.setObjectName("actionUndo")
        self.actionRedo = QAction(EditorWindow)
        self.actionRedo.setObjectName("actionRedo")
        self.actionCopy = QAction(EditorWindow)
        self.actionCopy.setObjectName("actionCopy")
        self.actionCut = QAction(EditorWindow)
        self.actionCut.setObjectName("actionCut")
        self.actionPaste = QAction(EditorWindow)
        self.actionPaste.setObjectName("actionPaste")
        self.actionSelect_All = QAction(EditorWindow)
        self.actionSelect_All.setObjectName("actionSelect_All")
        self.actionSave = QAction(EditorWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionClose_Instrument_Editor = QAction(EditorWindow)
        self.actionClose_Instrument_Editor.setObjectName("actionClose_Instrument_Editor")
        self.actionInsert_Header = QAction(EditorWindow)
        self.actionInsert_Header.setObjectName("actionInsert_Header")
        self.actionInsert_Body = QAction(EditorWindow)
        self.actionInsert_Body.setObjectName("actionInsert_Body")
        self.actionFind = QAction(EditorWindow)
        self.actionFind.setObjectName("actionFind")
        self.actionSave_As = QAction(EditorWindow)
        self.actionSave_As.setObjectName("actionSave_As")
        self.actionQuit = QAction(EditorWindow)
        self.actionQuit.setObjectName("actionQuit")
        self.menuFile.addAction(self.actionSave)
        self.menuFile.addAction(self.actionSave_As)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionClose_Instrument_Editor)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionQuit)
        self.menuEdit.addAction(self.actionUndo)
        self.menuEdit.addAction(self.actionRedo)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionCopy)
        self.menuEdit.addAction(self.actionCut)
        self.menuEdit.addAction(self.actionPaste)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionSelect_All)
        self.menuEdit.addSeparator()
        self.menuEdit.addAction(self.actionFind)
        self.menuInsert.addSeparator()
        self.menuInsert.addAction(self.actionComponent_Browser)
        self.menuInsert.addSeparator()
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuInsert.menuAction())

        self.retranslateUi(EditorWindow)
        QtCore.QMetaObject.connectSlotsByName(EditorWindow)

    def retranslateUi(self, EditorWindow):
        _translate = QtCore.QCoreApplication.translate
        EditorWindow.setWindowTitle(_translate("EditorWindow", "Instrument Editor"))
        self.menuFile.setTitle(_translate("EditorWindow", "File"))
        self.menuEdit.setTitle(_translate("EditorWindow", "Edit"))
        self.menuInsert.setTitle(_translate("EditorWindow", "Insert"))
        self.actionComponent_Browser.setText(_translate("EditorWindow", "Component Browser..."))
        self.actionComponent_Browser.setShortcut(_translate("EditorWindow", "Ctrl+I"))
        self.actionCompDummy.setText(_translate("EditorWindow", "component_of_this_category"))
        self.actionSource_Optimize.setText(_translate("EditorWindow", "Source_Optimize..."))
        self.actionGuide.setText(_translate("EditorWindow", "Guide..."))
        self.actionMirror.setText(_translate("EditorWindow", "Mirror..."))
        self.actionV_Selector.setText(_translate("EditorWindow", "V_selector..."))
        self.actionUndo.setText(_translate("EditorWindow", "Undo"))
        self.actionUndo.setShortcut(_translate("EditorWindow", "Ctrl+Z"))
        self.actionRedo.setText(_translate("EditorWindow", "Redo"))
        self.actionRedo.setShortcut(_translate("EditorWindow", "Ctrl+Shift+Z"))
        self.actionCopy.setText(_translate("EditorWindow", "Copy"))
        self.actionCopy.setShortcut(_translate("EditorWindow", "Ctrl+C"))
        self.actionCut.setText(_translate("EditorWindow", "Cut"))
        self.actionCut.setShortcut(_translate("EditorWindow", "Ctrl+X"))
        self.actionPaste.setText(_translate("EditorWindow", "Paste"))
        self.actionPaste.setShortcut(_translate("EditorWindow", "Ctrl+V"))
        self.actionSelect_All.setText(_translate("EditorWindow", "Select All"))
        self.actionSelect_All.setShortcut(_translate("EditorWindow", "Ctrl+A"))
        self.actionSave.setText(_translate("EditorWindow", "Save"))
        self.actionSave.setShortcut(_translate("EditorWindow", "Ctrl+S"))
        self.actionClose_Instrument_Editor.setText(_translate("EditorWindow", "Close Instrument Editor"))
        self.actionClose_Instrument_Editor.setShortcut(_translate("EditorWindow", "Ctrl+W"))
        self.actionInsert_Header.setText(_translate("EditorWindow", "Template Header"))
        self.actionInsert_Body.setText(_translate("EditorWindow", "Template Body"))
        self.actionFind.setText(_translate("EditorWindow", "Find..."))
        self.actionFind.setShortcut(_translate("EditorWindow", "Ctrl+F"))
        self.actionSave_As.setText(_translate("EditorWindow", "Save As..."))
        self.actionSave_As.setShortcut(_translate("EditorWindow", "Ctrl+Shift+S"))
        self.actionQuit.setText(_translate("EditorWindow", "Quit"))
        self.actionQuit.setShortcut(_translate("EditorWindow", "Ctrl+Q"))


''' Start simulation dialog.
'''
class Ui_dlgStartSim(object):
    def setupUi(self, dlgStartSim):
        dlgStartSim.setObjectName("dlgStartSim")
        dlgStartSim.resize(492, 561)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(dlgStartSim)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gbxGrid = QtWidgets.QGroupBox(dlgStartSim)
        self.gbxGrid.setObjectName("gbxGrid")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.gbxGrid)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gridGrid = QtWidgets.QGridLayout()
        self.gridGrid.setObjectName("gridGrid")
        self.lblGridDummy = QtWidgets.QLabel(self.gbxGrid)
        self.lblGridDummy.setObjectName("lblGridDummy")
        self.gridGrid.addWidget(self.lblGridDummy, 0, 0, 1, 1)
        self.edtGridDummy2 = QtWidgets.QLineEdit(self.gbxGrid)
        #QtCore.Qt.AlignmentFlag.Align
        self.edtGridDummy2.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtGridDummy2.setObjectName("edtGridDummy2")
        self.gridGrid.addWidget(self.edtGridDummy2, 0, 3, 1, 1)
        self.lblGridDummy2 = QtWidgets.QLabel(self.gbxGrid)
        self.lblGridDummy2.setObjectName("lblGridDummy2")
        self.gridGrid.addWidget(self.lblGridDummy2, 0, 2, 1, 1)
        self.lblGridDummy3 = QtWidgets.QLabel(self.gbxGrid)
        self.lblGridDummy3.setObjectName("lblGridDummy3")
        self.gridGrid.addWidget(self.lblGridDummy3, 0, 4, 1, 1)
        self.edtGridDummy = QtWidgets.QLineEdit(self.gbxGrid)
        self.edtGridDummy.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtGridDummy.setObjectName("edtGridDummy")
        self.gridGrid.addWidget(self.edtGridDummy, 0, 1, 1, 1)
        self.edtGridDummy3 = QtWidgets.QLineEdit(self.gbxGrid)
        self.edtGridDummy3.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtGridDummy3.setObjectName("edtGridDummy3")
        self.gridGrid.addWidget(self.edtGridDummy3, 0, 5, 1, 1)
        self.verticalLayout_2.addLayout(self.gridGrid)
        self.verticalLayout_5.addWidget(self.gbxGrid)
        self.gbxSim = QtWidgets.QGroupBox(dlgStartSim)
        self.gbxSim.setObjectName("gbxSim")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.gbxSim)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gridSim = QtWidgets.QGridLayout()
        self.gridSim.setObjectName("gridSim")
        self.cbxSimTrace = QtWidgets.QComboBox(self.gbxSim)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbxSimTrace.sizePolicy().hasHeightForWidth())
        self.cbxSimTrace.setSizePolicy(sizePolicy)
        self.cbxSimTrace.setObjectName("cbxSimTrace")
        self.cbxSimTrace.addItem("")
        self.cbxSimTrace.addItem("")
        self.cbxSimTrace.addItem("")
        self.gridSim.addWidget(self.cbxSimTrace, 0, 2, 1, 1)
        self.edtSteps = QtWidgets.QLineEdit(self.gbxSim)
        self.edtSteps.setText("")
        self.edtSteps.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtSteps.setObjectName("edtSteps")
        self.gridSim.addWidget(self.edtSteps, 7, 2, 1, 1)
        self.edtNeutronCnt = QtWidgets.QLineEdit(self.gbxSim)
        self.edtNeutronCnt.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtNeutronCnt.setObjectName("edtNeutronCnt")
        self.gridSim.addWidget(self.edtNeutronCnt, 5, 2, 1, 1)
        self.edtNodes = QtWidgets.QLineEdit(self.gbxSim)
        self.edtNodes.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtNodes.setObjectName("edtNodes")
        self.gridSim.addWidget(self.edtNodes, 12, 2, 1, 1)
        self.lblSimTrace = QtWidgets.QLabel(self.gbxSim)
        self.lblSimTrace.setMinimumSize(QtCore.QSize(200, 0))
        self.lblSimTrace.setObjectName("lblSimTrace")
        self.gridSim.addWidget(self.lblSimTrace, 0, 1, 1, 1)
        self.lblSweepSteps = QtWidgets.QLabel(self.gbxSim)
        self.lblSweepSteps.setObjectName("lblSweepSteps")
        self.gridSim.addWidget(self.lblSweepSteps, 7, 1, 1, 1)
        self.lblNeutronCount = QtWidgets.QLabel(self.gbxSim)
        self.lblNeutronCount.setObjectName("lblNeutronCount")
        self.gridSim.addWidget(self.lblNeutronCount, 5, 1, 1, 1)
        self.lblMpi = QtWidgets.QLabel(self.gbxSim)
        self.lblMpi.setObjectName("lblMpi")
        self.gridSim.addWidget(self.lblMpi, 9, 1, 1, 1)
        self.lblMpiNodes = QtWidgets.QLabel(self.gbxSim)
        self.lblMpiNodes.setObjectName("lblMpiNodes")
        self.gridSim.addWidget(self.lblMpiNodes, 12, 1, 1, 1)
        self.lblOutputDir = QtWidgets.QLabel(self.gbxSim)
        self.lblOutputDir.setObjectName("lblOutputDir")
        self.gridSim.addWidget(self.lblOutputDir, 6, 1, 1, 1)
        self.edtOutputDir = QtWidgets.QLineEdit(self.gbxSim)
        self.edtOutputDir.setObjectName("edtOutputDir")
        self.gridSim.addWidget(self.edtOutputDir, 6, 2, 1, 1)
        self.cbxInspect = QtWidgets.QComboBox(self.gbxSim)
        self.cbxInspect.setObjectName("cbxInspect")
        self.gridSim.addWidget(self.cbxInspect, 1, 2, 1, 1)
        self.cbxClustering = QtWidgets.QComboBox(self.gbxSim)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbxClustering.sizePolicy().hasHeightForWidth())
        self.cbxClustering.setSizePolicy(sizePolicy)
        self.cbxClustering.setObjectName("cbxClustering")
        self.cbxClustering.addItem("")
        self.cbxClustering.addItem("")
        self.cbxClustering.addItem("")
        self.cbxClustering.addItem("")
        self.cbxClustering.addItem("")
        self.cbxClustering.addItem("")
        self.cbxClustering.addItem("")
        self.gridSim.addWidget(self.cbxClustering, 9, 2, 1, 1)
        self.lblInspect = QtWidgets.QLabel(self.gbxSim)
        self.lblInspect.setObjectName("lblInspect")
        self.gridSim.addWidget(self.lblInspect, 1, 1, 1, 1)
        self.lblFormat = QtWidgets.QLabel(self.gbxSim)
        self.lblFormat.setObjectName("lblFormat")
        self.gridSim.addWidget(self.lblFormat, 3, 1, 1, 1)
        self.lblAutoPlot = QtWidgets.QLabel(self.gbxSim)
        self.lblAutoPlot.setObjectName("lblAutoPlot")
        self.gridSim.addWidget(self.lblAutoPlot, 4, 1, 1, 1)
        self.cbxMcdisplays = QtWidgets.QComboBox(self.gbxSim)
        self.cbxMcdisplays.setObjectName("cbxMcdisplays")
        self.gridSim.addWidget(self.cbxMcdisplays, 2, 2, 1, 1)
        self.lblMcdisplays = QtWidgets.QLabel(self.gbxSim)
        self.lblMcdisplays.setObjectName("lblMcdisplays")
        self.gridSim.addWidget(self.lblMcdisplays, 2, 1, 1, 1)
        self.cbxFormats = QtWidgets.QComboBox(self.gbxSim)
        self.cbxFormats.setObjectName("cbxFormats")
        self.gridSim.addWidget(self.cbxFormats, 3, 2, 1, 1)
        self.cbxAutoPlotters = QtWidgets.QComboBox(self.gbxSim)
        self.cbxAutoPlotters.setObjectName("cbxAutoPlotters")
        self.gridSim.addWidget(self.cbxAutoPlotters, 4, 2, 1, 1)
        self.verticalLayout_3.addLayout(self.gridSim)
        self.verticalLayout_5.addWidget(self.gbxSim)
        self.gbxAdvanced = QtWidgets.QGroupBox(dlgStartSim)
        self.gbxAdvanced.setObjectName("gbxAdvanced")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.gbxAdvanced)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gridAdvanced = QtWidgets.QGridLayout()
        self.gridAdvanced.setObjectName("gridAdvanced")
        self.lblRandomSeed = QtWidgets.QLabel(self.gbxAdvanced)
        self.lblRandomSeed.setMinimumSize(QtCore.QSize(200, 0))
        self.lblRandomSeed.setObjectName("lblRandomSeed")
        self.gridAdvanced.addWidget(self.lblRandomSeed, 0, 0, 1, 1)
        self.edtRandomSeed = QtWidgets.QLineEdit(self.gbxAdvanced)
        self.edtRandomSeed.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtRandomSeed.setObjectName("edtRandomSeed")
        self.gridAdvanced.addWidget(self.edtRandomSeed, 0, 1, 1, 1)
        self.lblGravity = QtWidgets.QLabel(self.gbxAdvanced)
        self.lblGravity.setObjectName("lblGravity")
        self.gridAdvanced.addWidget(self.lblGravity, 1, 0, 1, 1)
        self.cbxGravity = QtWidgets.QComboBox(self.gbxAdvanced)
        self.cbxGravity.setObjectName("cbxGravity")
        self.cbxGravity.addItem("")
        self.cbxGravity.addItem("")
        self.gridAdvanced.addWidget(self.cbxGravity, 1, 1, 1, 1)
        self.verticalLayout_4.addLayout(self.gridAdvanced)
        self.verticalLayout_5.addWidget(self.gbxAdvanced)
        spacerItem = QtWidgets.QSpacerItem(20, 73, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.hloAll = QtWidgets.QHBoxLayout()
        self.hloAll.setObjectName("hloAll")
        self.btnStart = QtWidgets.QPushButton(dlgStartSim)
        self.btnStart.setDefault(True)
        self.btnStart.setObjectName("btnStart")
        self.hloAll.addWidget(self.btnStart)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hloAll.addItem(spacerItem1)
        self.btnCancel = QtWidgets.QPushButton(dlgStartSim)
        self.btnCancel.setObjectName("btnCancel")
        self.hloAll.addWidget(self.btnCancel)
        self.verticalLayout_5.addLayout(self.hloAll)

        self.retranslateUi(dlgStartSim)
        QtCore.QMetaObject.connectSlotsByName(dlgStartSim)
        dlgStartSim.setTabOrder(self.edtGridDummy, self.edtGridDummy2)
        dlgStartSim.setTabOrder(self.edtGridDummy2, self.edtGridDummy3)
        dlgStartSim.setTabOrder(self.edtGridDummy3, self.cbxSimTrace)
        dlgStartSim.setTabOrder(self.cbxSimTrace, self.edtNeutronCnt)
        dlgStartSim.setTabOrder(self.edtNeutronCnt, self.edtOutputDir)
        dlgStartSim.setTabOrder(self.edtOutputDir, self.edtSteps)
        dlgStartSim.setTabOrder(self.edtSteps, self.cbxClustering)
        dlgStartSim.setTabOrder(self.cbxClustering, self.edtNodes)
        dlgStartSim.setTabOrder(self.edtNodes, self.edtRandomSeed)
        dlgStartSim.setTabOrder(self.edtRandomSeed, self.cbxGravity)
        dlgStartSim.setTabOrder(self.cbxGravity, self.btnCancel)
        dlgStartSim.setTabOrder(self.btnCancel, self.btnStart)

    def retranslateUi(self, dlgStartSim):
        _translate = QtCore.QCoreApplication.translate
        dlgStartSim.setWindowTitle(_translate("dlgStartSim", "Start simulation"))
        self.gbxGrid.setTitle(_translate("dlgStartSim", "Instrument parameters (D=floating point, I=integer, S=string)"))
        self.lblGridDummy.setText(_translate("dlgStartSim", "lambda (D):"))
        self.lblGridDummy2.setText(_translate("dlgStartSim", "R (D):"))
        self.lblGridDummy3.setText(_translate("dlgStartSim", "R_curve (D):"))
        self.gbxSim.setTitle(_translate("dlgStartSim", "Simulation"))
        self.cbxSimTrace.setItemText(0, _translate("dlgStartSim", "Simulation"))
        self.cbxSimTrace.setItemText(1, _translate("dlgStartSim", "Trace"))
        self.cbxSimTrace.setItemText(2, _translate("dlgStartSim", "Optimize"))
        self.edtNeutronCnt.setText(_translate("dlgStartSim", "1000000"))
        self.edtNodes.setText(_translate("dlgStartSim", "auto"))
        self.lblSimTrace.setText(_translate("dlgStartSim", "Simulation/Trace: "))
        self.lblSweepSteps.setText(_translate("dlgStartSim", "Scan steps (optional):"))
        self.lblNeutronCount.setToolTip(_translate("dlgStartSim", "<html><head/><body><pre style=\" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Courier New,courier\';\">The Ray count specifies the statistical granularity of your </span></pre><pre style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Courier New,courier\';\">simulation and is NOT equal to the number of particles simulated. </span></pre><pre style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Courier New,courier\';\">For a thorough explanation, see the chapter &quot;Monte Carlo </span></pre><pre style=\" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Courier New,courier\';\">Techniques and simulation strategy&quot; in the user manual.</span></pre></body></html>"))
        self.lblNeutronCount.setText(_translate("dlgStartSim", "Ray count:"))
        self.lblMpi.setText(_translate("dlgStartSim", "Parallelisation:"))
        self.lblMpiNodes.setText(_translate("dlgStartSim", "MPI node count:"))
        self.lblOutputDir.setText(_translate("dlgStartSim", "Output subdir (optional):"))
        self.cbxClustering.setItemText(0, _translate("dlgStartSim", "No parallelisation"))
        self.cbxClustering.setItemText(1, _translate("dlgStartSim", "MPI"))
        self.cbxClustering.setItemText(2, _translate("dlgStartSim", "MPI (recompile)"))
        self.cbxClustering.setItemText(3, _translate("dlgStartSim", "OpenACC"))
        self.cbxClustering.setItemText(4, _translate("dlgStartSim", "OpenACC (recompile)"))
        self.cbxClustering.setItemText(5, _translate("dlgStartSim", "OpenACC and MPI"))
        self.cbxClustering.setItemText(6, _translate("dlgStartSim", "OpenACC and MPI (recompile)"))
        self.lblInspect.setText(_translate("dlgStartSim", "Inspect:"))
        self.lblAutoPlot.setText(_translate("dlgStartSim", "Autoplot: (only McCode format)"))
        self.lblFormat.setText(_translate("dlgStartSim", "Output format:"))
        self.lblMcdisplays.setText(_translate("dlgStartSim", "McDisplay"))
        self.gbxAdvanced.setTitle(_translate("dlgStartSim", "Advanced"))
        self.lblRandomSeed.setText(_translate("dlgStartSim", "Random seed:"))
        self.lblGravity.setText(_translate("dlgStartSim", "Gravity:"))
        self.cbxGravity.setItemText(0, _translate("dlgStartSim", "Off"))
        self.cbxGravity.setItemText(1, _translate("dlgStartSim", "On"))
        self.btnStart.setText(_translate("dlgStartSim", "Start"))
        self.btnCancel.setText(_translate("dlgStartSim", "Cancel"))


''' Insert component dialog.
'''
class Ui_dlgInsertComponent(object):
    def setupUi(self, dlgInsertComponent):
        dlgInsertComponent.setObjectName("dlgInsertComponent")
        dlgInsertComponent.resize(983, 588)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(dlgInsertComponent)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.hlayoutNonButtons = QtWidgets.QHBoxLayout()
        self.hlayoutNonButtons.setObjectName("hlayoutNonButtons")
        self.vlayoutDescription = QtWidgets.QVBoxLayout()
        self.vlayoutDescription.setObjectName("vlayoutDescription")
        self.scrlaDescription = QtWidgets.QScrollArea(dlgInsertComponent)
        self.scrlaDescription.setMinimumSize(QtCore.QSize(424, 0))
        self.scrlaDescription.setWidgetResizable(True)
        self.scrlaDescription.setObjectName("scrlaDescription")
        self.vlayoutscrlaDescription = QtWidgets.QWidget()
        self.vlayoutscrlaDescription.setGeometry(QtCore.QRect(0, 0, 422, 529))
        self.vlayoutscrlaDescription.setObjectName("vlayoutscrlaDescription")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.vlayoutscrlaDescription)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.lblDescr = QtWidgets.QLabel(self.vlayoutscrlaDescription)
        self.lblDescr.setWordWrap(True)
        self.lblDescr.setObjectName("lblDescr")
        self.verticalLayout_4.addWidget(self.lblDescr)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout_4.addItem(spacerItem)
        self.scrlaDescription.setWidget(self.vlayoutscrlaDescription)
        self.vlayoutDescription.addWidget(self.scrlaDescription)
        self.hlayoutNonButtons.addLayout(self.vlayoutDescription)
        self.vlayoutParameters = QtWidgets.QVBoxLayout()
        self.vlayoutParameters.setObjectName("vlayoutParameters")
        self.hlayoutInstanceName = QtWidgets.QHBoxLayout()
        self.hlayoutInstanceName.setObjectName("hlayoutInstanceName")
        self.edtInstanceName = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtInstanceName.setObjectName("edtInstanceName")
        self.hlayoutInstanceName.addWidget(self.edtInstanceName)
        self.cbxVerbose = QtWidgets.QCheckBox(dlgInsertComponent)
        self.cbxVerbose.setObjectName("cbxVerbose")
        self.hlayoutInstanceName.addWidget(self.cbxVerbose)
        self.vlayoutParameters.addLayout(self.hlayoutInstanceName)
        self.scrlaParameters = QtWidgets.QScrollArea(dlgInsertComponent)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrlaParameters.sizePolicy().hasHeightForWidth())
        self.scrlaParameters.setSizePolicy(sizePolicy)
        self.scrlaParameters.setWidgetResizable(True)
        self.scrlaParameters.setObjectName("scrlaParameters")
        self.vlayoutscrlaParameters = QtWidgets.QWidget()
        self.vlayoutscrlaParameters.setGeometry(QtCore.QRect(0, 0, 527, 426))
        self.vlayoutscrlaParameters.setObjectName("vlayoutscrlaParameters")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.vlayoutscrlaParameters)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridParameters = QtWidgets.QGridLayout()
        self.gridParameters.setObjectName("gridParameters")
        self.tbxParValDummy = QtWidgets.QLineEdit(self.vlayoutscrlaParameters)
        self.tbxParValDummy.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.tbxParValDummy.setObjectName("tbxParValDummy")
        self.gridParameters.addWidget(self.tbxParValDummy, 0, 1, 1, 1)
        self.lblParDummy = QtWidgets.QLabel(self.vlayoutscrlaParameters)
        self.lblParDummy.setObjectName("lblParDummy")
        self.gridParameters.addWidget(self.lblParDummy, 0, 0, 1, 1)
        self.lblParDocstringDummy = QtWidgets.QLabel(self.vlayoutscrlaParameters)
        self.lblParDocstringDummy.setObjectName("lblParDocstringDummy")
        self.gridParameters.addWidget(self.lblParDocstringDummy, 0, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridParameters)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.scrlaParameters.setWidget(self.vlayoutscrlaParameters)
        self.vlayoutParameters.addWidget(self.scrlaParameters)
        self.gridAtRotated = QtWidgets.QGridLayout()
        self.gridAtRotated.setObjectName("gridAtRotated")
        self.label_5 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_5.setObjectName("label_5")
        self.gridAtRotated.addWidget(self.label_5, 1, 7, 1, 1)
        self.label_7 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_7.setObjectName("label_7")
        self.gridAtRotated.addWidget(self.label_7, 0, 3, 1, 1)
        self.label_9 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_9.setObjectName("label_9")
        self.gridAtRotated.addWidget(self.label_9, 0, 7, 1, 1)
        self.edtAtRel = QtWidgets.QLineEdit(dlgInsertComponent)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edtAtRel.sizePolicy().hasHeightForWidth())
        self.edtAtRel.setSizePolicy(sizePolicy)
        self.edtAtRel.setMinimumSize(QtCore.QSize(0, 0))
        self.edtAtRel.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtAtRel.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtAtRel.setObjectName("edtAtRel")
        self.gridAtRotated.addWidget(self.edtAtRel, 0, 8, 1, 1)
        self.label_6 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_6.setObjectName("label_6")
        self.gridAtRotated.addWidget(self.label_6, 0, 0, 1, 1)
        self.edtAtY = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtAtY.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtAtY.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtAtY.setObjectName("edtAtY")
        self.gridAtRotated.addWidget(self.edtAtY, 0, 4, 1, 1)
        self.edtAtZ = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtAtZ.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtAtZ.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtAtZ.setObjectName("edtAtZ")
        self.gridAtRotated.addWidget(self.edtAtZ, 0, 6, 1, 1)
        self.label_8 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_8.setObjectName("label_8")
        self.gridAtRotated.addWidget(self.label_8, 0, 5, 1, 1)
        self.edtAtX = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtAtX.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtAtX.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtAtX.setObjectName("edtAtX")
        self.gridAtRotated.addWidget(self.edtAtX, 0, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_2.setObjectName("label_2")
        self.gridAtRotated.addWidget(self.label_2, 1, 0, 1, 1)
        self.edtRotX = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtRotX.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtRotX.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtRotX.setObjectName("edtRotX")
        self.gridAtRotated.addWidget(self.edtRotX, 1, 2, 1, 1)
        self.edtRotY = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtRotY.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtRotY.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtRotY.setObjectName("edtRotY")
        self.gridAtRotated.addWidget(self.edtRotY, 1, 4, 1, 1)
        self.edtRotZ = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtRotZ.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtRotZ.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.edtRotZ.setObjectName("edtRotZ")
        self.gridAtRotated.addWidget(self.edtRotZ, 1, 6, 1, 1)
        self.edtRotRel = QtWidgets.QLineEdit(dlgInsertComponent)
        self.edtRotRel.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.edtRotRel.setObjectName("edtRotRel")
        self.gridAtRotated.addWidget(self.edtRotRel, 1, 8, 1, 1)
        self.label_4 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_4.setObjectName("label_4")
        self.gridAtRotated.addWidget(self.label_4, 1, 5, 1, 1)
        self.label_3 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_3.setObjectName("label_3")
        self.gridAtRotated.addWidget(self.label_3, 1, 3, 1, 1)
        self.label_13 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_13.setObjectName("label_13")
        self.gridAtRotated.addWidget(self.label_13, 0, 1, 1, 1)
        self.label_15 = QtWidgets.QLabel(dlgInsertComponent)
        self.label_15.setObjectName("label_15")
        self.gridAtRotated.addWidget(self.label_15, 1, 1, 1, 1)
        self.vlayoutParameters.addLayout(self.gridAtRotated)
        self.hlayoutNonButtons.addLayout(self.vlayoutParameters)
        self.verticalLayout_2.addLayout(self.hlayoutNonButtons)
        self.hlayoutButtons = QtWidgets.QHBoxLayout()
        self.hlayoutButtons.setObjectName("hlayoutButtons")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hlayoutButtons.addItem(spacerItem2)
        self.btnInsert = QtWidgets.QPushButton(dlgInsertComponent)
        self.btnInsert.setDefault(True)
        self.btnInsert.setObjectName("btnInsert")
        self.hlayoutButtons.addWidget(self.btnInsert)
        self.btnCancel = QtWidgets.QPushButton(dlgInsertComponent)
        self.btnCancel.setObjectName("btnCancel")
        self.hlayoutButtons.addWidget(self.btnCancel)
        self.verticalLayout_2.addLayout(self.hlayoutButtons)

        self.retranslateUi(dlgInsertComponent)
        QtCore.QMetaObject.connectSlotsByName(dlgInsertComponent)
        dlgInsertComponent.setTabOrder(self.edtInstanceName, self.btnInsert)
        dlgInsertComponent.setTabOrder(self.btnInsert, self.tbxParValDummy)
        dlgInsertComponent.setTabOrder(self.tbxParValDummy, self.edtAtX)
        dlgInsertComponent.setTabOrder(self.edtAtX, self.edtAtY)
        dlgInsertComponent.setTabOrder(self.edtAtY, self.edtAtZ)
        dlgInsertComponent.setTabOrder(self.edtAtZ, self.edtAtRel)
        dlgInsertComponent.setTabOrder(self.edtAtRel, self.edtRotX)
        dlgInsertComponent.setTabOrder(self.edtRotX, self.edtRotY)
        dlgInsertComponent.setTabOrder(self.edtRotY, self.edtRotZ)
        dlgInsertComponent.setTabOrder(self.edtRotZ, self.edtRotRel)
        dlgInsertComponent.setTabOrder(self.edtRotRel, self.btnCancel)
        dlgInsertComponent.setTabOrder(self.btnCancel, self.scrlaDescription)
        dlgInsertComponent.setTabOrder(self.scrlaDescription, self.scrlaParameters)

    def retranslateUi(self, dlgInsertComponent):
        _translate = QtCore.QCoreApplication.translate
        dlgInsertComponent.setWindowTitle(_translate("dlgInsertComponent", "Insert Component"))
        self.lblDescr.setText(_translate("dlgInsertComponent", "lblDescr"))
        self.edtInstanceName.setToolTip(_translate("dlgInsertComponent", "Instance name"))
        self.edtInstanceName.setText(_translate("dlgInsertComponent", "<instance name>"))
        self.cbxVerbose.setText(_translate("dlgInsertComponent", "Verbose"))
        self.tbxParValDummy.setText(_translate("dlgInsertComponent", "<value>"))
        self.lblParDummy.setText(_translate("dlgInsertComponent", "<par>"))
        self.lblParDocstringDummy.setText(_translate("dlgInsertComponent", "<docstring>"))
        self.label_5.setText(_translate("dlgInsertComponent", ") RELATIVE "))
        self.label_7.setText(_translate("dlgInsertComponent", ","))
        self.label_9.setText(_translate("dlgInsertComponent", ") RELATIVE "))
        self.edtAtRel.setText(_translate("dlgInsertComponent", "PREVIOUS"))
        self.label_6.setText(_translate("dlgInsertComponent", "AT"))
        self.edtAtY.setToolTip(_translate("dlgInsertComponent", "y"))
        self.edtAtY.setText(_translate("dlgInsertComponent", "0"))
        self.edtAtZ.setToolTip(_translate("dlgInsertComponent", "z"))
        self.edtAtZ.setText(_translate("dlgInsertComponent", "0"))
        self.label_8.setText(_translate("dlgInsertComponent", ","))
        self.edtAtX.setToolTip(_translate("dlgInsertComponent", "x"))
        self.edtAtX.setText(_translate("dlgInsertComponent", "0"))
        self.label_2.setText(_translate("dlgInsertComponent", "ROTATED"))
        self.edtRotX.setToolTip(_translate("dlgInsertComponent", "x-rot"))
        self.edtRotX.setText(_translate("dlgInsertComponent", "0"))
        self.edtRotY.setToolTip(_translate("dlgInsertComponent", "y-rot"))
        self.edtRotY.setText(_translate("dlgInsertComponent", "0"))
        self.edtRotZ.setToolTip(_translate("dlgInsertComponent", "z-rot"))
        self.edtRotZ.setText(_translate("dlgInsertComponent", "0"))
        self.edtRotRel.setText(_translate("dlgInsertComponent", "PREVIOUS"))
        self.label_4.setText(_translate("dlgInsertComponent", ","))
        self.label_3.setText(_translate("dlgInsertComponent", ","))
        self.label_13.setText(_translate("dlgInsertComponent", "("))
        self.label_15.setText(_translate("dlgInsertComponent", "("))
        self.btnInsert.setToolTip(_translate("dlgInsertComponent", "Insert component into instrument definition"))
        self.btnInsert.setText(_translate("dlgInsertComponent", "Insert"))
        self.btnCancel.setText(_translate("dlgInsertComponent", "Cancel"))


''' mcgui config dialog.
'''
class Ui_dlgConfig(object):
    def setupUi(self, dlgConfig):
        dlgConfig.setObjectName("dlgConfig")
        dlgConfig.resize(328, 555)
        dlgConfig.setModal(True)
        self.verticalLayout = QtWidgets.QVBoxLayout(dlgConfig)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridApps = QtWidgets.QGridLayout()
        self.gridApps.setObjectName("gridApps")
        self.lblMcplot = QtWidgets.QLabel(dlgConfig)
        self.lblMcplot.setObjectName("lblMcplot")
        self.gridApps.addWidget(self.lblMcplot, 2, 0, 1, 1)
        self.lblMcdisplay = QtWidgets.QLabel(dlgConfig)
        self.lblMcdisplay.setObjectName("lblMcdisplay")
        self.gridApps.addWidget(self.lblMcdisplay, 4, 0, 1, 1)
        self.cbxMcPlot = QtWidgets.QComboBox(dlgConfig)
        self.cbxMcPlot.setObjectName("cbxMcPlot")
        self.gridApps.addWidget(self.cbxMcPlot, 3, 0, 1, 1)
        self.cbxMcrun = QtWidgets.QComboBox(dlgConfig)
        self.cbxMcrun.setObjectName("cbxMcrun")
        self.gridApps.addWidget(self.cbxMcrun, 1, 0, 1, 1)
        self.lblMcrun = QtWidgets.QLabel(dlgConfig)
        self.lblMcrun.setObjectName("lblMcrun")
        self.gridApps.addWidget(self.lblMcrun, 0, 0, 1, 1)
        self.cbxMcdisplay = QtWidgets.QComboBox(dlgConfig)
        self.cbxMcdisplay.setObjectName("cbxMcdisplay")
        self.gridApps.addWidget(self.cbxMcdisplay, 5, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridApps)
        self.gridFlags = QtWidgets.QGridLayout()
        self.gridFlags.setObjectName("gridFlags")
        self.edtCC = QtWidgets.QLineEdit(dlgConfig)
        self.edtCC.setObjectName("edtCC")
        self.gridFlags.addWidget(self.edtCC, 1, 0, 1, 1)
        self.edtNumNodes = QtWidgets.QLineEdit(dlgConfig)
        self.edtNumNodes.setObjectName("edtNumNodes")
        self.gridFlags.addWidget(self.edtNumNodes, 11, 0, 1, 1)
        self.lblCc = QtWidgets.QLabel(dlgConfig)
        self.lblCc.setObjectName("lblCc")
        self.gridFlags.addWidget(self.lblCc, 0, 0, 1, 1)
        self.edtMpicc = QtWidgets.QLineEdit(dlgConfig)
        self.edtMpicc.setObjectName("edtMpicc")
        self.gridFlags.addWidget(self.edtMpicc, 5, 0, 1, 1)
        self.lblCflags = QtWidgets.QLabel(dlgConfig)
        self.lblCflags.setObjectName("lblCflags")
        self.gridFlags.addWidget(self.lblCflags, 2, 0, 1, 1)
        self.lblMpirun = QtWidgets.QLabel(dlgConfig)
        self.lblMpirun.setObjectName("lblMpirun")
        self.gridFlags.addWidget(self.lblMpirun, 6, 0, 1, 1)
        self.edtCflags = QtWidgets.QLineEdit(dlgConfig)
        self.edtCflags.setObjectName("edtCflags")
        self.gridFlags.addWidget(self.edtCflags, 3, 0, 1, 1)
        self.lblNumnodes = QtWidgets.QLabel(dlgConfig)
        self.lblNumnodes.setObjectName("lblNumnodes")
        self.gridFlags.addWidget(self.lblNumnodes, 10, 0, 1, 1)
        self.edtMPIrun = QtWidgets.QLineEdit(dlgConfig)
        self.edtMPIrun.setObjectName("edtMPIrun")
        self.gridFlags.addWidget(self.edtMPIrun, 7, 0, 1, 1)
        self.lblMpicc = QtWidgets.QLabel(dlgConfig)
        self.lblMpicc.setObjectName("lblMpicc")
        self.gridFlags.addWidget(self.lblMpicc, 4, 0, 1, 1)
        self.lblNumocols = QtWidgets.QLabel(dlgConfig)
        self.lblNumocols.setObjectName("lblNumocols")
        self.gridFlags.addWidget(self.lblNumocols, 12, 0, 1, 1)
        self.edtNumCols = QtWidgets.QLineEdit(dlgConfig)
        self.edtNumCols.setObjectName("edtNumCols")
        self.editor = QtWidgets.QLineEdit(dlgConfig)
        self.editor.setObjectName("editor")
        self.gridFlags.addWidget(self.edtNumCols, 13, 0, 1, 1)
        self.lbleditor = QtWidgets.QLabel(dlgConfig)
        self.lbleditor.setObjectName("lbleditor")
        self.gridFlags.addWidget(self.lbleditor, 14, 0, 1, 1)
        self.gridFlags.addWidget(self.editor, 15, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridFlags)
        self.hlayoutButtons = QtWidgets.QHBoxLayout()
        self.hlayoutButtons.setObjectName("hlayoutButtons")
        self.btnOk = QtWidgets.QPushButton(dlgConfig)
        self.btnOk.setDefault(True)
        self.btnOk.setObjectName("btnOk")
        self.hlayoutButtons.addWidget(self.btnOk)
        self.btnSave = QtWidgets.QPushButton(dlgConfig)
        self.btnSave.setDefault(False)
        self.btnSave.setObjectName("btnSave")
        self.hlayoutButtons.addWidget(self.btnSave)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hlayoutButtons.addItem(spacerItem)
        self.btnCancel = QtWidgets.QPushButton(dlgConfig)
        self.btnCancel.setObjectName("btnCancel")
        self.hlayoutButtons.addWidget(self.btnCancel)
        self.verticalLayout.addLayout(self.hlayoutButtons)

        self.retranslateUi(dlgConfig)
        QtCore.QMetaObject.connectSlotsByName(dlgConfig)
        dlgConfig.setTabOrder(self.cbxMcrun, self.cbxMcPlot)
        dlgConfig.setTabOrder(self.cbxMcPlot, self.cbxMcdisplay)
        dlgConfig.setTabOrder(self.cbxMcdisplay, self.edtCC)
        dlgConfig.setTabOrder(self.edtCC, self.edtCflags)
        dlgConfig.setTabOrder(self.edtCflags, self.edtMpicc)
        dlgConfig.setTabOrder(self.edtMpicc, self.edtMPIrun)
        dlgConfig.setTabOrder(self.edtMPIrun, self.edtNumNodes)
        dlgConfig.setTabOrder(self.edtNumNodes, self.edtNumCols)
        dlgConfig.setTabOrder(self.edtNumCols, self.editor)
        dlgConfig.setTabOrder(self.editor, self.btnOk)
        dlgConfig.setTabOrder(self.btnOk, self.btnSave)
        dlgConfig.setTabOrder(self.btnSave, self.btnCancel)

    def retranslateUi(self, dlgConfig):
        _translate = QtCore.QCoreApplication.translate
        dlgConfig.setWindowTitle(_translate("dlgConfig", "mccode-py configuration"))
        self.lblMcplot.setText(_translate("dlgConfig", "mcplot"))
        self.lblMcdisplay.setText(_translate("dlgConfig", "mcdisplay"))
        self.lblMcrun.setText(_translate("dlgConfig", "mcrun"))
        self.lblCc.setText(_translate("dlgConfig", "cc"))
        self.lblCflags.setText(_translate("dlgConfig", "C flags"))
        self.lblMpirun.setText(_translate("dlgConfig", "MPIrun"))
        self.lblNumnodes.setText(_translate("dlgConfig", "# nodes"))
        self.lblMpicc.setText(_translate("dlgConfig", "MPIcc"))
        self.lblNumocols.setText(_translate("dlgConfig", "# parameter columns in run dialogue"))
        self.lbleditor.setText(_translate("dlgConfig", "Choice of external editor"))
        self.btnOk.setToolTip(_translate("dlgConfig", "Keep for this session"))
        self.btnOk.setText(_translate("dlgConfig", "Ok"))
        self.btnSave.setToolTip(_translate("dlgConfig", "Keep & save configuration to disk"))
        self.btnSave.setText(_translate("dlgConfig", "Save"))
        self.btnCancel.setText(_translate("dlgConfig", "Cancel"))
