Example #1
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1089, 865)
        MainWindow.setMinimumSize(QtCore.QSize(0, 25))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setWeight(50)
        font.setBold(False)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addFile(":/new/prefix1/icons/games.png")
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.vboxlayout = QtGui.QVBoxLayout(self.centralwidget)
        self.vboxlayout.setObjectName("vboxlayout")
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.mainTabWidget = QtGui.QTabWidget(self.centralwidget)
        self.mainTabWidget.setObjectName("mainTabWidget")
        self.sqlTab = QtGui.QWidget()
        self.sqlTab.setObjectName("sqlTab")
        self.vboxlayout1 = QtGui.QVBoxLayout(self.sqlTab)
        self.vboxlayout1.setObjectName("vboxlayout1")
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.vboxlayout2 = QtGui.QVBoxLayout()
        self.vboxlayout2.setObjectName("vboxlayout2")
        self.label_2 = QtGui.QLabel(self.sqlTab)
        self.label_2.setObjectName("label_2")
        self.vboxlayout2.addWidget(self.label_2)
        self.queryTblList = QtGui.QListWidget(self.sqlTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.queryTblList.sizePolicy().hasHeightForWidth())
        self.queryTblList.setSizePolicy(sizePolicy)
        self.queryTblList.setMaximumSize(QtCore.QSize(200, 16777215))
        self.queryTblList.setResizeMode(QtGui.QListView.Adjust)
        self.queryTblList.setObjectName("queryTblList")
        self.vboxlayout2.addWidget(self.queryTblList)
        self.hboxlayout1.addLayout(self.vboxlayout2)
        self.vboxlayout3 = QtGui.QVBoxLayout()
        self.vboxlayout3.setObjectName("vboxlayout3")
        self.label_3 = QtGui.QLabel(self.sqlTab)
        self.label_3.setObjectName("label_3")
        self.vboxlayout3.addWidget(self.label_3)
        self.queryFieldList = QtGui.QListWidget(self.sqlTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.queryFieldList.sizePolicy().hasHeightForWidth())
        self.queryFieldList.setSizePolicy(sizePolicy)
        self.queryFieldList.setMaximumSize(QtCore.QSize(200, 16777215))
        self.queryFieldList.setResizeMode(QtGui.QListView.Adjust)
        self.queryFieldList.setObjectName("queryFieldList")
        self.vboxlayout3.addWidget(self.queryFieldList)
        self.hboxlayout1.addLayout(self.vboxlayout3)
        self.vboxlayout4 = QtGui.QVBoxLayout()
        self.vboxlayout4.setObjectName("vboxlayout4")
        self.label = QtGui.QLabel(self.sqlTab)
        self.label.setObjectName("label")
        self.vboxlayout4.addWidget(self.label)
        self.sqlQueryString = QtGui.QTextEdit(self.sqlTab)
        self.sqlQueryString.setObjectName("sqlQueryString")
        self.vboxlayout4.addWidget(self.sqlQueryString)
        self.hboxlayout1.addLayout(self.vboxlayout4)
        self.vboxlayout1.addLayout(self.hboxlayout1)
        self.label_10 = QtGui.QLabel(self.sqlTab)
        self.label_10.setObjectName("label_10")
        self.vboxlayout1.addWidget(self.label_10)
        self.outTableWidget = CustomTable(self.sqlTab)
        self.outTableWidget.setRowCount(10)
        self.outTableWidget.setColumnCount(10)
        self.outTableWidget.setObjectName("outTableWidget")
        self.outTableWidget.setColumnCount(10)
        self.outTableWidget.setRowCount(10)
        self.vboxlayout1.addWidget(self.outTableWidget)
        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setObjectName("hboxlayout2")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem)
        self.dbExecuteQuery = QtGui.QPushButton(self.sqlTab)
        self.dbExecuteQuery.setMaximumSize(QtCore.QSize(200, 16777215))
        self.dbExecuteQuery.setObjectName("dbExecuteQuery")
        self.hboxlayout2.addWidget(self.dbExecuteQuery)
        self.viewQueryBtn = QtGui.QPushButton(self.sqlTab)
        self.viewQueryBtn.setMaximumSize(QtCore.QSize(200, 16777215))
        self.viewQueryBtn.setObjectName("viewQueryBtn")
        self.hboxlayout2.addWidget(self.viewQueryBtn)
        self.dbCommitQuery = QtGui.QPushButton(self.sqlTab)
        self.dbCommitQuery.setMaximumSize(QtCore.QSize(200, 16777215))
        self.dbCommitQuery.setObjectName("dbCommitQuery")
        self.hboxlayout2.addWidget(self.dbCommitQuery)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem1)
        self.vboxlayout1.addLayout(self.hboxlayout2)
        self.label_7 = QtGui.QLabel(self.sqlTab)
        self.label_7.setObjectName("label_7")
        self.vboxlayout1.addWidget(self.label_7)
        self.sqlErrorMessage = QtGui.QLineEdit(self.sqlTab)
        self.sqlErrorMessage.setObjectName("sqlErrorMessage")
        self.vboxlayout1.addWidget(self.sqlErrorMessage)
        self.hboxlayout3 = QtGui.QHBoxLayout()
        self.hboxlayout3.setObjectName("hboxlayout3")
        self.openDBButton = QtGui.QPushButton(self.sqlTab)
        self.openDBButton.setObjectName("openDBButton")
        self.hboxlayout3.addWidget(self.openDBButton)
        self.curDBpathname = QtGui.QLineEdit(self.sqlTab)
        self.curDBpathname.setReadOnly(True)
        self.curDBpathname.setObjectName("curDBpathname")
        self.hboxlayout3.addWidget(self.curDBpathname)
        self.dbConnectedBtn = QtGui.QPushButton(self.sqlTab)
        self.dbConnectedBtn.setEnabled(True)
        self.dbConnectedBtn.setAutoFillBackground(False)
        icon1 = QtGui.QIcon()
        icon1.addFile(":/new/prefix1/icons/ok.png")
        self.dbConnectedBtn.setIcon(icon1)
        self.dbConnectedBtn.setIconSize(QtCore.QSize(20, 20))
        self.dbConnectedBtn.setObjectName("dbConnectedBtn")
        self.hboxlayout3.addWidget(self.dbConnectedBtn)
        self.vboxlayout1.addLayout(self.hboxlayout3)
        self.hboxlayout4 = QtGui.QHBoxLayout()
        self.hboxlayout4.setObjectName("hboxlayout4")
        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")
        self.useMemDB_CB = QtGui.QCheckBox(self.sqlTab)
        self.useMemDB_CB.setChecked(True)
        self.useMemDB_CB.setObjectName("useMemDB_CB")
        self.gridlayout.addWidget(self.useMemDB_CB, 0, 0, 1, 1)
        self.dumpDBBtn = QtGui.QPushButton(self.sqlTab)
        self.dumpDBBtn.setObjectName("dumpDBBtn")
        self.gridlayout.addWidget(self.dumpDBBtn, 0, 1, 1, 1)
        self.autoNameTblCB = QtGui.QCheckBox(self.sqlTab)
        self.autoNameTblCB.setChecked(True)
        self.autoNameTblCB.setObjectName("autoNameTblCB")
        self.gridlayout.addWidget(self.autoNameTblCB, 1, 0, 1, 1)
        self.rstDBButton = QtGui.QPushButton(self.sqlTab)
        self.rstDBButton.setObjectName("rstDBButton")
        self.gridlayout.addWidget(self.rstDBButton, 1, 1, 1, 1)
        self.appendNewFilesCB = QtGui.QCheckBox(self.sqlTab)
        self.appendNewFilesCB.setChecked(True)
        self.appendNewFilesCB.setObjectName("appendNewFilesCB")
        self.gridlayout.addWidget(self.appendNewFilesCB, 2, 0, 1, 2)
        self.hboxlayout4.addLayout(self.gridlayout)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout4.addItem(spacerItem2)
        self.vboxlayout1.addLayout(self.hboxlayout4)
        self.mainTabWidget.addTab(self.sqlTab, "")
        self.plotTab = QtGui.QWidget()
        self.plotTab.setObjectName("plotTab")
        self.hboxlayout5 = QtGui.QHBoxLayout(self.plotTab)
        self.hboxlayout5.setObjectName("hboxlayout5")
        self.plotWidget = MPL_Widget(self.plotTab)
        self.plotWidget.setObjectName("plotWidget")
        self.hboxlayout5.addWidget(self.plotWidget)
        self.mainTabWidget.addTab(self.plotTab, "")
        self.configTab = QtGui.QWidget()
        self.configTab.setObjectName("configTab")
        self.vboxlayout5 = QtGui.QVBoxLayout(self.configTab)
        self.vboxlayout5.setObjectName("vboxlayout5")
        self.hboxlayout6 = QtGui.QHBoxLayout()
        self.hboxlayout6.setObjectName("hboxlayout6")
        self.vboxlayout6 = QtGui.QVBoxLayout()
        self.vboxlayout6.setObjectName("vboxlayout6")
        self.label_4 = QtGui.QLabel(self.configTab)
        self.label_4.setObjectName("label_4")
        self.vboxlayout6.addWidget(self.label_4)
        self.db_TableList = QtGui.QListWidget(self.configTab)
        self.db_TableList.setObjectName("db_TableList")
        self.vboxlayout6.addWidget(self.db_TableList)
        self.hboxlayout6.addLayout(self.vboxlayout6)
        self.vboxlayout7 = QtGui.QVBoxLayout()
        self.vboxlayout7.setObjectName("vboxlayout7")
        self.label_5 = QtGui.QLabel(self.configTab)
        self.label_5.setObjectName("label_5")
        self.vboxlayout7.addWidget(self.label_5)
        self.db_XCols = QtGui.QListWidget(self.configTab)
        self.db_XCols.setObjectName("db_XCols")
        self.vboxlayout7.addWidget(self.db_XCols)
        self.hboxlayout6.addLayout(self.vboxlayout7)
        self.vboxlayout8 = QtGui.QVBoxLayout()
        self.vboxlayout8.setObjectName("vboxlayout8")
        self.label_6 = QtGui.QLabel(self.configTab)
        self.label_6.setObjectName("label_6")
        self.vboxlayout8.addWidget(self.label_6)
        self.db_YCols = QtGui.QListWidget(self.configTab)
        self.db_YCols.setObjectName("db_YCols")
        self.vboxlayout8.addWidget(self.db_YCols)
        self.hboxlayout6.addLayout(self.vboxlayout8)
        self.vboxlayout5.addLayout(self.hboxlayout6)
        self.hboxlayout7 = QtGui.QHBoxLayout()
        self.hboxlayout7.setObjectName("hboxlayout7")
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout7.addItem(spacerItem3)
        self.gridlayout1 = QtGui.QGridLayout()
        self.gridlayout1.setObjectName("gridlayout1")
        self.label_8 = QtGui.QLabel(self.configTab)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.gridlayout1.addWidget(self.label_8, 0, 0, 1, 1)
        self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab)
        self.sizeModSpinBox.setMinimum(0.0)
        self.sizeModSpinBox.setSingleStep(0.5)
        self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5))
        self.sizeModSpinBox.setObjectName("sizeModSpinBox")
        self.gridlayout1.addWidget(self.sizeModSpinBox, 0, 1, 1, 1)
        self.label_9 = QtGui.QLabel(self.configTab)
        self.label_9.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_9.setObjectName("label_9")
        self.gridlayout1.addWidget(self.label_9, 1, 0, 1, 1)
        self.sizeArrayComboB = QtGui.QComboBox(self.configTab)
        self.sizeArrayComboB.setObjectName("sizeArrayComboB")
        self.gridlayout1.addWidget(self.sizeArrayComboB, 1, 1, 1, 1)
        self.hboxlayout8 = QtGui.QHBoxLayout()
        self.hboxlayout8.setObjectName("hboxlayout8")
        self.cb_logx = QtGui.QCheckBox(self.configTab)
        self.cb_logx.setObjectName("cb_logx")
        self.hboxlayout8.addWidget(self.cb_logx)
        self.cb_logy = QtGui.QCheckBox(self.configTab)
        self.cb_logy.setObjectName("cb_logy")
        self.hboxlayout8.addWidget(self.cb_logy)
        self.gridlayout1.addLayout(self.hboxlayout8, 2, 1, 1, 1)
        self.updatePlotBtn = QtGui.QPushButton(self.configTab)
        self.updatePlotBtn.setObjectName("updatePlotBtn")
        self.gridlayout1.addWidget(self.updatePlotBtn, 3, 1, 1, 1)
        self.clearPlotCB = QtGui.QCheckBox(self.configTab)
        self.clearPlotCB.setChecked(True)
        self.clearPlotCB.setObjectName("clearPlotCB")
        self.gridlayout1.addWidget(self.clearPlotCB, 4, 1, 1, 1)
        self.clearPlotBtn = QtGui.QPushButton(self.configTab)
        self.clearPlotBtn.setObjectName("clearPlotBtn")
        self.gridlayout1.addWidget(self.clearPlotBtn, 5, 1, 1, 1)
        self.showLegendCB = QtGui.QCheckBox(self.configTab)
        self.showLegendCB.setChecked(True)
        self.showLegendCB.setObjectName("showLegendCB")
        self.gridlayout1.addWidget(self.showLegendCB, 6, 1, 1, 2)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridlayout1.addItem(spacerItem4, 7, 0, 1, 3)
        self.hboxlayout7.addLayout(self.gridlayout1)
        self.vboxlayout5.addLayout(self.hboxlayout7)
        self.mainTabWidget.addTab(self.configTab, "")
        self.hboxlayout.addWidget(self.mainTabWidget)
        self.SelectInfoWidget = QtGui.QTableWidget(self.centralwidget)
        self.SelectInfoWidget.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.SelectInfoWidget.sizePolicy().hasHeightForWidth())
        self.SelectInfoWidget.setSizePolicy(sizePolicy)
        self.SelectInfoWidget.setRowCount(13)
        self.SelectInfoWidget.setColumnCount(2)
        self.SelectInfoWidget.setObjectName("SelectInfoWidget")
        self.SelectInfoWidget.setColumnCount(2)
        self.SelectInfoWidget.setRowCount(13)
        self.hboxlayout.addWidget(self.SelectInfoWidget)
        self.vboxlayout.addLayout(self.hboxlayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1089, 22))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setWeight(50)
        font.setBold(False)
        self.menubar.setFont(font)
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menu_Edit = QtGui.QMenu(self.menubar)
        self.menu_Edit.setObjectName("menu_Edit")
        self.menu_Tools = QtGui.QMenu(self.menubar)
        self.menu_Tools.setObjectName("menu_Tools")
        self.menu_Help = QtGui.QMenu(self.menubar)
        self.menu_Help.setObjectName("menu_Help")
        self.menuData = QtGui.QMenu(self.menubar)
        self.menuData.setObjectName("menuData")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setEnabled(True)
        self.toolBar.setMinimumSize(QtCore.QSize(12, 25))
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.action_Edit = QtGui.QAction(MainWindow)
        self.action_Edit.setObjectName("action_Edit")
        self.action_Tools = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addFile(":/new/prefix1/icons/Service Manager.png")
        self.action_Tools.setIcon(icon2)
        self.action_Tools.setObjectName("action_Tools")
        self.actionFileOpen = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addFile(":/new/prefix1/icons/fileopen.png")
        self.actionFileOpen.setIcon(icon3)
        self.actionFileOpen.setObjectName("actionFileOpen")
        self.actionFileSave = QtGui.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addFile(":/new/prefix1/icons/filesave2.png")
        self.actionFileSave.setIcon(icon4)
        self.actionFileSave.setObjectName("actionFileSave")
        self.actionFileSaveAs = QtGui.QAction(MainWindow)
        icon5 = QtGui.QIcon()
        icon5.addFile(":/new/prefix1/icons/filesaveas.png")
        self.actionFileSaveAs.setIcon(icon5)
        self.actionFileSaveAs.setObjectName("actionFileSaveAs")
        self.actionNewFile = QtGui.QAction(MainWindow)
        icon6 = QtGui.QIcon()
        icon6.addFile(":/new/prefix1/icons/filenew.png")
        self.actionNewFile.setIcon(icon6)
        self.actionNewFile.setObjectName("actionNewFile")
        self.actionTools = QtGui.QAction(MainWindow)
        self.actionTools.setIcon(icon2)
        self.actionTools.setObjectName("actionTools")
        self.action_getSelection = QtGui.QAction(MainWindow)
        icon7 = QtGui.QIcon()
        icon7.addFile(":/new/prefix1/icons/kspread_ksp.png")
        self.action_getSelection.setIcon(icon7)
        self.action_getSelection.setObjectName("action_getSelection")
        self.actionClear = QtGui.QAction(MainWindow)
        icon8 = QtGui.QIcon()
        icon8.addFile(":/new/prefix1/icons/cleanlarge.png")
        self.actionClear.setIcon(icon8)
        self.actionClear.setObjectName("actionClear")
        self.action_New = QtGui.QAction(MainWindow)
        self.action_New.setIcon(icon6)
        self.action_New.setObjectName("action_New")
        self.action_Open = QtGui.QAction(MainWindow)
        self.action_Open.setIcon(icon3)
        self.action_Open.setObjectName("action_Open")
        self.action_Save = QtGui.QAction(MainWindow)
        self.action_Save.setIcon(icon4)
        self.action_Save.setObjectName("action_Save")
        self.actionSave_As = QtGui.QAction(MainWindow)
        self.actionSave_As.setIcon(icon5)
        self.actionSave_As.setObjectName("actionSave_As")
        self.action_Exit = QtGui.QAction(MainWindow)
        icon9 = QtGui.QIcon()
        icon9.addFile(":/new/prefix1/icons/exit.png")
        self.action_Exit.setIcon(icon9)
        self.action_Exit.setObjectName("action_Exit")
        self.action_Clear = QtGui.QAction(MainWindow)
        self.action_Clear.setIcon(icon8)
        self.action_Clear.setObjectName("action_Clear")
        self.action_Table_Selection = QtGui.QAction(MainWindow)
        self.action_Table_Selection.setIcon(icon7)
        self.action_Table_Selection.setObjectName("action_Table_Selection")
        self.action_Cut = QtGui.QAction(MainWindow)
        icon10 = QtGui.QIcon()
        icon10.addFile(":/new/prefix1/icons/editcut.png")
        self.action_Cut.setIcon(icon10)
        self.action_Cut.setObjectName("action_Cut")
        self.action_Paste = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addFile(":/new/prefix1/icons/editpaste.png")
        self.action_Paste.setIcon(icon11)
        self.action_Paste.setObjectName("action_Paste")
        self.actionRunScript = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addFile(":/new/prefix1/icons/software-development.png")
        self.actionRunScript.setIcon(icon12)
        self.actionRunScript.setObjectName("actionRunScript")
        self.actionAbout = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addFile(":/new/prefix1/icons/help.png")
        self.actionAbout.setIcon(icon13)
        self.actionAbout.setObjectName("actionAbout")
        self.actionPlot = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addFile(
            ":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png")
        self.actionPlot.setIcon(icon14)
        self.actionPlot.setObjectName("actionPlot")
        self.actionDelete = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addFile(":/new/prefix1/icons/xkill.png")
        self.actionDelete.setIcon(icon15)
        self.actionDelete.setObjectName("actionDelete")
        self.actionDeleteAll = QtGui.QAction(MainWindow)
        self.actionDeleteAll.setIcon(icon15)
        self.actionDeleteAll.setObjectName("actionDeleteAll")
        self.actionPlotItem = QtGui.QAction(MainWindow)
        self.actionPlotItem.setIcon(icon14)
        self.actionPlotItem.setObjectName("actionPlotItem")
        self.actionHints = QtGui.QAction(MainWindow)
        self.actionHints.setObjectName("actionHints")
        self.actionLoad_Folder = QtGui.QAction(MainWindow)
        icon16 = QtGui.QIcon()
        icon16.addFile(":/new/prefix1/icons/fileimport.png")
        self.actionLoad_Folder.setIcon(icon16)
        self.actionLoad_Folder.setObjectName("actionLoad_Folder")
        self.actionSave_All_Tables = QtGui.QAction(MainWindow)
        icon17 = QtGui.QIcon()
        icon17.addFile(":/new/prefix1/icons/kchart_chrt.png")
        self.actionSave_All_Tables.setIcon(icon17)
        self.actionSave_All_Tables.setObjectName("actionSave_All_Tables")
        self.actionCopy_Current_Database = QtGui.QAction(MainWindow)
        self.actionCopy_Current_Database.setIcon(icon11)
        self.actionCopy_Current_Database.setObjectName(
            "actionCopy_Current_Database")
        self.menuFile.addAction(self.action_Open)
        self.menuFile.addAction(self.actionLoad_Folder)
        self.menuFile.addAction(self.action_Save)
        self.menuFile.addAction(self.action_Exit)
        self.menu_Edit.addAction(self.action_Cut)
        self.menu_Edit.addAction(self.action_Paste)
        self.menu_Tools.addAction(self.actionSave_All_Tables)
        self.menu_Tools.addAction(self.actionCopy_Current_Database)
        self.menu_Help.addAction(self.actionAbout)
        self.menu_Help.addAction(self.actionHints)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menu_Edit.menuAction())
        self.menubar.addAction(self.menu_Tools.menuAction())
        self.menubar.addAction(self.menuData.menuAction())
        self.menubar.addAction(self.menu_Help.menuAction())
        self.toolBar.addAction(self.actionFileOpen)
        self.toolBar.addAction(self.action_Save)
        self.toolBar.addAction(self.actionRunScript)
        self.toolBar.addAction(self.actionTools)

        self.retranslateUi(MainWindow)
        self.mainTabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            QtGui.QApplication.translate("MainWindow",
                                         "X!Tandem Results Viewer", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
            QtGui.QApplication.translate("MainWindow", "Database Tables", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
            QtGui.QApplication.translate("MainWindow", "Table Fields", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate("MainWindow", "SQLite String:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(
            QtGui.QApplication.translate("MainWindow", "Query Output:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.dbExecuteQuery.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Execute Truncated Query", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.viewQueryBtn.setText(
            QtGui.QApplication.translate("MainWindow", "View Query Results",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.dbCommitQuery.setText(
            QtGui.QApplication.translate("MainWindow", "Commit Query Results",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Data Base Error Message:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.openDBButton.setText(
            QtGui.QApplication.translate("MainWindow", "Select Database", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.useMemDB_CB.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Use In-Memory Database?", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.dumpDBBtn.setText(
            QtGui.QApplication.translate(
                "MainWindow", "Dump Database as a Text File To Disk", None,
                QtGui.QApplication.UnicodeUTF8))
        self.autoNameTblCB.setText(
            QtGui.QApplication.translate("MainWindow", "Auto Name Tables",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.rstDBButton.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Clear and Reset Database", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.appendNewFilesCB.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Append New Files to Database?", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.sqlTab),
            QtGui.QApplication.translate("MainWindow", "SQL Query", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.plotTab),
            QtGui.QApplication.translate("MainWindow", "Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(
            QtGui.QApplication.translate("MainWindow", "Database Tables:",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(
            QtGui.QApplication.translate("MainWindow", "X-Axis:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(
            QtGui.QApplication.translate("MainWindow", "Y-Axis:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(
            QtGui.QApplication.translate("MainWindow", "Size Modifier:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(
            QtGui.QApplication.translate("MainWindow", "Size Array:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cb_logx.setText(
            QtGui.QApplication.translate("MainWindow", "Log X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cb_logy.setText(
            QtGui.QApplication.translate("MainWindow", "Log Y", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.updatePlotBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Update Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clearPlotCB.setText(
            QtGui.QApplication.translate("MainWindow", "Clear on Update?",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.clearPlotBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Clear Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.showLegendCB.setText(
            QtGui.QApplication.translate("MainWindow", "Show Legend?", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.configTab),
            QtGui.QApplication.translate("MainWindow", "Define Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setTitle(
            QtGui.QApplication.translate("MainWindow", "&File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menu_Edit.setTitle(
            QtGui.QApplication.translate("MainWindow", "&Edit", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menu_Tools.setTitle(
            QtGui.QApplication.translate("MainWindow", "&Tools", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menu_Help.setTitle(
            QtGui.QApplication.translate("MainWindow", "&Help", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menuData.setTitle(
            QtGui.QApplication.translate("MainWindow", "Data", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(
            QtGui.QApplication.translate("MainWindow", "toolBar", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Edit.setText(
            QtGui.QApplication.translate("MainWindow", "&Edit", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Tools.setText(
            QtGui.QApplication.translate("MainWindow", "&Tools", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileOpen.setText(
            QtGui.QApplication.translate("MainWindow", "fileOpen", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileOpen.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Open File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileSave.setText(
            QtGui.QApplication.translate("MainWindow", "fileSave", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileSave.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Save File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileSaveAs.setText(
            QtGui.QApplication.translate("MainWindow", "fileSaveAs", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionNewFile.setText(
            QtGui.QApplication.translate("MainWindow", "newFile", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionNewFile.setToolTip(
            QtGui.QApplication.translate("MainWindow", "New File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setText(
            QtGui.QApplication.translate("MainWindow", "Transfer", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setIconText(
            QtGui.QApplication.translate("MainWindow", "Transfer", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Tools", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_getSelection.setText(
            QtGui.QApplication.translate("MainWindow", "getSelection", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_getSelection.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Get Table Selection",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionClear.setText(
            QtGui.QApplication.translate("MainWindow", "clear", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionClear.setToolTip(
            QtGui.QApplication.translate("MainWindow",
                                         "Clear Data and Variables", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_New.setText(
            QtGui.QApplication.translate("MainWindow", "&New", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_New.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+N", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setText(
            QtGui.QApplication.translate("MainWindow", "&Open", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+O", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Save.setText(
            QtGui.QApplication.translate("MainWindow", "&Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Save.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+S", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_As.setText(
            QtGui.QApplication.translate("MainWindow", "Save &As", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Exit.setText(
            QtGui.QApplication.translate("MainWindow", "&Exit", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Exit.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Clear.setText(
            QtGui.QApplication.translate("MainWindow", "Clea&r", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Table_Selection.setText(
            QtGui.QApplication.translate("MainWindow", "&Table Selection",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.action_Cut.setText(
            QtGui.QApplication.translate("MainWindow", "&Cut", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Cut.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Paste.setText(
            QtGui.QApplication.translate("MainWindow", "&Paste", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Paste.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionRunScript.setText(
            QtGui.QApplication.translate("MainWindow", "runScript", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionRunScript.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Run Python Script",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionAbout.setText(
            QtGui.QApplication.translate("MainWindow", "About", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlot.setText(
            QtGui.QApplication.translate("MainWindow", "Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionDelete.setText(
            QtGui.QApplication.translate("MainWindow", "Delete", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionDeleteAll.setText(
            QtGui.QApplication.translate("MainWindow", "DeleteAll", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setText(
            QtGui.QApplication.translate("MainWindow", "PlotItem", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setIconText(
            QtGui.QApplication.translate("MainWindow", "Plot Item", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Plot Item", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionHints.setText(
            QtGui.QApplication.translate("MainWindow", "Hints", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_Folder.setText(
            QtGui.QApplication.translate("MainWindow", "Load Folder", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_All_Tables.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Save All Tables to CSV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionCopy_Current_Database.setText(
            QtGui.QApplication.translate("MainWindow", "Copy Current Database",
                                         None, QtGui.QApplication.UnicodeUTF8))
Example #2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(987, 673)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("games.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setIconSize(QtCore.QSize(30, 30))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.hboxlayout = QtGui.QHBoxLayout(self.centralwidget)
        self.hboxlayout.setObjectName("hboxlayout")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.vboxlayout = QtGui.QVBoxLayout(self.tab)
        self.vboxlayout.setObjectName("vboxlayout")
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setObjectName("vboxlayout1")
        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setObjectName("hboxlayout2")
        self.getFolderBtn = QtGui.QPushButton(self.tab)
        self.getFolderBtn.setObjectName("getFolderBtn")
        self.hboxlayout2.addWidget(self.getFolderBtn)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem)
        self.vboxlayout1.addLayout(self.hboxlayout2)
        self.vboxlayout2 = QtGui.QVBoxLayout()
        self.vboxlayout2.setObjectName("vboxlayout2")
        self.hboxlayout3 = QtGui.QHBoxLayout()
        self.hboxlayout3.setObjectName("hboxlayout3")
        self.label_25 = QtGui.QLabel(self.tab)
        self.label_25.setObjectName("label_25")
        self.hboxlayout3.addWidget(self.label_25)
        self.curFolderLE = QtGui.QLineEdit(self.tab)
        self.curFolderLE.setReadOnly(True)
        self.curFolderLE.setObjectName("curFolderLE")
        self.hboxlayout3.addWidget(self.curFolderLE)
        self.vboxlayout2.addLayout(self.hboxlayout3)
        self.label_21 = QtGui.QLabel(self.tab)
        self.label_21.setObjectName("label_21")
        self.vboxlayout2.addWidget(self.label_21)
        self.dirListWidget = QtGui.QListWidget(self.tab)
        self.dirListWidget.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.dirListWidget.setObjectName("dirListWidget")
        self.vboxlayout2.addWidget(self.dirListWidget)
        self.vboxlayout1.addLayout(self.vboxlayout2)
        self.hboxlayout1.addLayout(self.vboxlayout1)
        self.vboxlayout3 = QtGui.QVBoxLayout()
        self.vboxlayout3.setObjectName("vboxlayout3")
        self.hboxlayout4 = QtGui.QHBoxLayout()
        self.hboxlayout4.setObjectName("hboxlayout4")
        self.label = QtGui.QLabel(self.tab)
        self.label.setObjectName("label")
        self.hboxlayout4.addWidget(self.label)
        self.xcmsMethodCB = QtGui.QComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.xcmsMethodCB.sizePolicy().hasHeightForWidth())
        self.xcmsMethodCB.setSizePolicy(sizePolicy)
        self.xcmsMethodCB.setObjectName("xcmsMethodCB")
        self.hboxlayout4.addWidget(self.xcmsMethodCB)
        self.vboxlayout3.addLayout(self.hboxlayout4)
        self.useRetcor_CB = QtGui.QCheckBox(self.tab)
        self.useRetcor_CB.setObjectName("useRetcor_CB")
        self.vboxlayout3.addWidget(self.useRetcor_CB)
        self.vboxlayout4 = QtGui.QVBoxLayout()
        self.vboxlayout4.setObjectName("vboxlayout4")
        self.label_2 = QtGui.QLabel(self.tab)
        self.label_2.setObjectName("label_2")
        self.vboxlayout4.addWidget(self.label_2)
        self.paramTableWidget = CustomTable(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.paramTableWidget.sizePolicy().hasHeightForWidth())
        self.paramTableWidget.setSizePolicy(sizePolicy)
        self.paramTableWidget.setRowCount(0)
        self.paramTableWidget.setColumnCount(0)
        self.paramTableWidget.setObjectName("paramTableWidget")
        self.paramTableWidget.setColumnCount(0)
        self.paramTableWidget.setRowCount(0)
        self.vboxlayout4.addWidget(self.paramTableWidget)
        self.vboxlayout3.addLayout(self.vboxlayout4)
        self.hboxlayout1.addLayout(self.vboxlayout3)
        self.vboxlayout.addLayout(self.hboxlayout1)
        self.vboxlayout5 = QtGui.QVBoxLayout()
        self.vboxlayout5.setObjectName("vboxlayout5")
        self.hboxlayout5 = QtGui.QHBoxLayout()
        self.hboxlayout5.setObjectName("hboxlayout5")
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout5.addItem(spacerItem1)
        self.runXCMSBtn = QtGui.QToolButton(self.tab)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("applications.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.runXCMSBtn.setIcon(icon1)
        self.runXCMSBtn.setIconSize(QtCore.QSize(30, 30))
        self.runXCMSBtn.setObjectName("runXCMSBtn")
        self.hboxlayout5.addWidget(self.runXCMSBtn)
        self.vboxlayout5.addLayout(self.hboxlayout5)
        self.label_3 = QtGui.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.vboxlayout5.addWidget(self.label_3)
        self.RoutputTE = QtGui.QTextEdit(self.tab)
        self.RoutputTE.setReadOnly(True)
        self.RoutputTE.setObjectName("RoutputTE")
        self.vboxlayout5.addWidget(self.RoutputTE)
        self.vboxlayout.addLayout(self.vboxlayout5)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridlayout = QtGui.QGridLayout(self.tab_2)
        self.gridlayout.setObjectName("gridlayout")
        self.vboxlayout6 = QtGui.QVBoxLayout()
        self.vboxlayout6.setObjectName("vboxlayout6")
        self.hboxlayout6 = QtGui.QHBoxLayout()
        self.hboxlayout6.setObjectName("hboxlayout6")
        self.label_6 = QtGui.QLabel(self.tab_2)
        self.label_6.setObjectName("label_6")
        self.hboxlayout6.addWidget(self.label_6)
        self.eicIndexSlider = QtGui.QSlider(self.tab_2)
        self.eicIndexSlider.setMaximum(10000)
        self.eicIndexSlider.setOrientation(QtCore.Qt.Horizontal)
        self.eicIndexSlider.setObjectName("eicIndexSlider")
        self.hboxlayout6.addWidget(self.eicIndexSlider)
        self.eicIndexSB = QtGui.QSpinBox(self.tab_2)
        self.eicIndexSB.setMaximum(10000)
        self.eicIndexSB.setObjectName("eicIndexSB")
        self.hboxlayout6.addWidget(self.eicIndexSB)
        self.vboxlayout6.addLayout(self.hboxlayout6)
        self.plotWidget = MPL_Widget(self.tab_2)
        self.plotWidget.setObjectName("plotWidget")
        self.vboxlayout6.addWidget(self.plotWidget)
        self.gridlayout.addLayout(self.vboxlayout6, 0, 0, 1, 1)
        self.hboxlayout7 = QtGui.QHBoxLayout()
        self.hboxlayout7.setObjectName("hboxlayout7")
        self.vboxlayout7 = QtGui.QVBoxLayout()
        self.vboxlayout7.setObjectName("vboxlayout7")
        self.hboxlayout8 = QtGui.QHBoxLayout()
        self.hboxlayout8.setObjectName("hboxlayout8")
        self.label_7 = QtGui.QLabel(self.tab_2)
        self.label_7.setObjectName("label_7")
        self.hboxlayout8.addWidget(self.label_7)
        self.eicCurFolderLE = QtGui.QLineEdit(self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.eicCurFolderLE.sizePolicy().hasHeightForWidth())
        self.eicCurFolderLE.setSizePolicy(sizePolicy)
        self.eicCurFolderLE.setReadOnly(True)
        self.eicCurFolderLE.setObjectName("eicCurFolderLE")
        self.hboxlayout8.addWidget(self.eicCurFolderLE)
        self.vboxlayout7.addLayout(self.hboxlayout8)
        self.hboxlayout9 = QtGui.QHBoxLayout()
        self.hboxlayout9.setObjectName("hboxlayout9")
        self.label_5 = QtGui.QLabel(self.tab_2)
        self.label_5.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_5.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.hboxlayout9.addWidget(self.label_5)
        self.mzStartSB = QtGui.QDoubleSpinBox(self.tab_2)
        self.mzStartSB.setDecimals(4)
        self.mzStartSB.setMaximum(100000.0)
        self.mzStartSB.setSingleStep(0.05)
        self.mzStartSB.setProperty("value", QtCore.QVariant(215.15))
        self.mzStartSB.setObjectName("mzStartSB")
        self.hboxlayout9.addWidget(self.mzStartSB)
        self.vboxlayout7.addLayout(self.hboxlayout9)
        self.hboxlayout10 = QtGui.QHBoxLayout()
        self.hboxlayout10.setObjectName("hboxlayout10")
        self.label_4 = QtGui.QLabel(self.tab_2)
        self.label_4.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.hboxlayout10.addWidget(self.label_4)
        self.mzStopSB = QtGui.QDoubleSpinBox(self.tab_2)
        self.mzStopSB.setDecimals(4)
        self.mzStopSB.setMaximum(100000.0)
        self.mzStopSB.setSingleStep(0.05)
        self.mzStopSB.setProperty("value", QtCore.QVariant(227.15))
        self.mzStopSB.setObjectName("mzStopSB")
        self.hboxlayout10.addWidget(self.mzStopSB)
        self.vboxlayout7.addLayout(self.hboxlayout10)
        self.hboxlayout11 = QtGui.QHBoxLayout()
        self.hboxlayout11.setObjectName("hboxlayout11")
        self.label_11 = QtGui.QLabel(self.tab_2)
        self.label_11.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_11.setObjectName("label_11")
        self.hboxlayout11.addWidget(self.label_11)
        self.rtWidthSB = QtGui.QDoubleSpinBox(self.tab_2)
        self.rtWidthSB.setDecimals(1)
        self.rtWidthSB.setMinimum(1.0)
        self.rtWidthSB.setMaximum(100000.0)
        self.rtWidthSB.setSingleStep(1.0)
        self.rtWidthSB.setProperty("value", QtCore.QVariant(200.0))
        self.rtWidthSB.setObjectName("rtWidthSB")
        self.hboxlayout11.addWidget(self.rtWidthSB)
        self.vboxlayout7.addLayout(self.hboxlayout11)
        self.hboxlayout12 = QtGui.QHBoxLayout()
        self.hboxlayout12.setObjectName("hboxlayout12")
        self.label_12 = QtGui.QLabel(self.tab_2)
        self.label_12.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_12.setObjectName("label_12")
        self.hboxlayout12.addWidget(self.label_12)
        self.rtWidthSB_Stop = QtGui.QDoubleSpinBox(self.tab_2)
        self.rtWidthSB_Stop.setDecimals(1)
        self.rtWidthSB_Stop.setMinimum(-1.0)
        self.rtWidthSB_Stop.setMaximum(100000.0)
        self.rtWidthSB_Stop.setSingleStep(1.0)
        self.rtWidthSB_Stop.setProperty("value", QtCore.QVariant(-1.0))
        self.rtWidthSB_Stop.setObjectName("rtWidthSB_Stop")
        self.hboxlayout12.addWidget(self.rtWidthSB_Stop)
        self.vboxlayout7.addLayout(self.hboxlayout12)
        self.rtTypeCB = QtGui.QCheckBox(self.tab_2)
        self.rtTypeCB.setChecked(True)
        self.rtTypeCB.setObjectName("rtTypeCB")
        self.vboxlayout7.addWidget(self.rtTypeCB)
        self.fillPeaks_CB = QtGui.QCheckBox(self.tab_2)
        self.fillPeaks_CB.setChecked(False)
        self.fillPeaks_CB.setObjectName("fillPeaks_CB")
        self.vboxlayout7.addWidget(self.fillPeaks_CB)
        self.plotLegendCB = QtGui.QCheckBox(self.tab_2)
        self.plotLegendCB.setChecked(False)
        self.plotLegendCB.setObjectName("plotLegendCB")
        self.vboxlayout7.addWidget(self.plotLegendCB)
        self.getEICBtn = QtGui.QPushButton(self.tab_2)
        self.getEICBtn.setObjectName("getEICBtn")
        self.vboxlayout7.addWidget(self.getEICBtn)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.vboxlayout7.addItem(spacerItem2)
        self.hboxlayout7.addLayout(self.vboxlayout7)
        self.gridlayout.addLayout(self.hboxlayout7, 0, 1, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.vboxlayout8 = QtGui.QVBoxLayout(self.tab_4)
        self.vboxlayout8.setObjectName("vboxlayout8")
        self.hboxlayout13 = QtGui.QHBoxLayout()
        self.hboxlayout13.setObjectName("hboxlayout13")
        self.loadRPY2BatchBtn = QtGui.QPushButton(self.tab_4)
        self.loadRPY2BatchBtn.setEnabled(False)
        self.loadRPY2BatchBtn.setObjectName("loadRPY2BatchBtn")
        self.hboxlayout13.addWidget(self.loadRPY2BatchBtn)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout13.addItem(spacerItem3)
        self.vboxlayout8.addLayout(self.hboxlayout13)
        self.batchScriptTE = QtGui.QTextEdit(self.tab_4)
        self.batchScriptTE.setEnabled(False)
        self.batchScriptTE.setObjectName("batchScriptTE")
        self.vboxlayout8.addWidget(self.batchScriptTE)
        self.hboxlayout14 = QtGui.QHBoxLayout()
        self.hboxlayout14.setObjectName("hboxlayout14")
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.hboxlayout14.addItem(spacerItem4)
        self.runBatchBtn = QtGui.QPushButton(self.tab_4)
        self.runBatchBtn.setEnabled(False)
        self.runBatchBtn.setObjectName("runBatchBtn")
        self.hboxlayout14.addWidget(self.runBatchBtn)
        self.vboxlayout8.addLayout(self.hboxlayout14)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.hboxlayout15 = QtGui.QHBoxLayout(self.tab_3)
        self.hboxlayout15.setObjectName("hboxlayout15")
        self.gridlayout1 = QtGui.QGridLayout()
        self.gridlayout1.setObjectName("gridlayout1")
        self.gridlayout2 = QtGui.QGridLayout()
        self.gridlayout2.setObjectName("gridlayout2")
        self.gridlayout3 = QtGui.QGridLayout()
        self.gridlayout3.setObjectName("gridlayout3")
        self.killRBtn = QtGui.QPushButton(self.tab_3)
        self.killRBtn.setEnabled(False)
        self.killRBtn.setObjectName("killRBtn")
        self.gridlayout3.addWidget(self.killRBtn, 0, 0, 1, 1)
        self.useMaxMZ_CB = QtGui.QCheckBox(self.tab_3)
        self.useMaxMZ_CB.setEnabled(False)
        self.useMaxMZ_CB.setObjectName("useMaxMZ_CB")
        self.gridlayout3.addWidget(self.useMaxMZ_CB, 1, 0, 1, 1)
        self.gridlayout2.addLayout(self.gridlayout3, 0, 0, 1, 1)
        self.hboxlayout16 = QtGui.QHBoxLayout()
        self.hboxlayout16.setObjectName("hboxlayout16")
        self.label_8 = QtGui.QLabel(self.tab_3)
        self.label_8.setEnabled(False)
        self.label_8.setObjectName("label_8")
        self.hboxlayout16.addWidget(self.label_8)
        self.mzMZCutoff_SB = QtGui.QDoubleSpinBox(self.tab_3)
        self.mzMZCutoff_SB.setEnabled(False)
        self.mzMZCutoff_SB.setDecimals(3)
        self.mzMZCutoff_SB.setMinimum(1.0)
        self.mzMZCutoff_SB.setMaximum(99999.99)
        self.mzMZCutoff_SB.setProperty("value", QtCore.QVariant(350.0))
        self.mzMZCutoff_SB.setObjectName("mzMZCutoff_SB")
        self.hboxlayout16.addWidget(self.mzMZCutoff_SB)
        self.gridlayout2.addLayout(self.hboxlayout16, 1, 0, 1, 1)
        self.gridlayout1.addLayout(self.gridlayout2, 0, 0, 1, 1)
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridlayout1.addItem(spacerItem5, 0, 1, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridlayout1.addItem(spacerItem6, 1, 0, 1, 1)
        self.hboxlayout15.addLayout(self.gridlayout1)
        self.tabWidget.addTab(self.tab_3, "")
        self.hboxlayout.addWidget(self.tabWidget)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 987, 26))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menuF_unctions = QtGui.QMenu(self.menubar)
        self.menuF_unctions.setObjectName("menuF_unctions")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action_Open = QtGui.QAction(MainWindow)
        self.action_Open.setObjectName("action_Open")
        self.actionSave_Results_Table = QtGui.QAction(MainWindow)
        self.actionSave_Results_Table.setObjectName("actionSave_Results_Table")
        self.actionTest_XCMS = QtGui.QAction(MainWindow)
        self.actionTest_XCMS.setObjectName("actionTest_XCMS")
        self.actionSave_HDF5 = QtGui.QAction(MainWindow)
        self.actionSave_HDF5.setObjectName("actionSave_HDF5")
        self.actionLoad_HDF5 = QtGui.QAction(MainWindow)
        self.actionLoad_HDF5.setObjectName("actionLoad_HDF5")
        self.actionRun_XCMS = QtGui.QAction(MainWindow)
        self.actionRun_XCMS.setObjectName("actionRun_XCMS")
        self.menu_File.addAction(self.actionSave_HDF5)
        self.menu_File.addAction(self.actionLoad_HDF5)
        self.menuF_unctions.addAction(self.actionSave_Results_Table)
        self.menuF_unctions.addSeparator()
        self.menuF_unctions.addAction(self.actionRun_XCMS)
        self.menuF_unctions.addSeparator()
        self.menuF_unctions.addAction(self.actionTest_XCMS)
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menuF_unctions.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.eicIndexSlider,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.eicIndexSB.setValue)
        QtCore.QObject.connect(self.eicIndexSB,
                               QtCore.SIGNAL("valueChanged(int)"),
                               self.eicIndexSlider.setValue)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            QtGui.QApplication.translate("MainWindow", "pyXCMS", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.getFolderBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Select Folder", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_25.setText(
            QtGui.QApplication.translate("MainWindow", "Data Folder:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_21.setText(
            QtGui.QApplication.translate("MainWindow", "Files in Directory:",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate("MainWindow", "Grouping Method:",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.xcmsMethodCB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Select XCMS Processing Method</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.useRetcor_CB.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Use Retention Time Alignment?", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
            QtGui.QApplication.translate("MainWindow", "Parameters:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.paramTableWidget.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Adjust XCMS Parameters</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.runXCMSBtn.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Make it happen!</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.runXCMSBtn.setText(
            QtGui.QApplication.translate("MainWindow", "...", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
            QtGui.QApplication.translate("MainWindow", "R output:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            QtGui.QApplication.translate("MainWindow", "xcms", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(
            QtGui.QApplication.translate("MainWindow", "EIC Index:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(
            QtGui.QApplication.translate("MainWindow", "Current Folder:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(
            QtGui.QApplication.translate("MainWindow", "m/z Start:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mzStartSB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow", "Upper bound of the EIC extraction range", None,
                QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(
            QtGui.QApplication.translate("MainWindow", "m/z Stop:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mzStopSB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow", "Low bound of the EIC extraction range", None,
                QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(
            QtGui.QApplication.translate("MainWindow", "RT Start:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.rtWidthSB.setToolTip(
            QtGui.QApplication.translate("MainWindow",
                                         "Retention time window of the EIC",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(
            QtGui.QApplication.translate("MainWindow", "RT Stop:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.rtWidthSB_Stop.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Set to -1 for the entire spectrum</span></p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.rtTypeCB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "Do you want the corrected EIC or the raw values?", None,
                QtGui.QApplication.UnicodeUTF8))
        self.rtTypeCB.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Retrieve Corrected EIC?", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.fillPeaks_CB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "Do you want the corrected EIC or the raw values?", None,
                QtGui.QApplication.UnicodeUTF8))
        self.fillPeaks_CB.setText(
            QtGui.QApplication.translate("MainWindow", "Fill Missing Peaks?",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.plotLegendCB.setText(
            QtGui.QApplication.translate("MainWindow", "Plot Legend?", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.getEICBtn.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Do It!</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.getEICBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Fetch EIC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_2),
            QtGui.QApplication.translate("MainWindow", "EIC", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.loadRPY2BatchBtn.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Load rpy2 Batch Script", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.runBatchBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Do It!", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_4),
            QtGui.QApplication.translate("MainWindow", "Batch Processing",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.killRBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Kill R Process", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.useMaxMZ_CB.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Limit Peaks below a certain m/z?",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(
            QtGui.QApplication.translate(
                "MainWindow", "Maximum m/z Value for XCMS Processing", None,
                QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_3),
            QtGui.QApplication.translate("MainWindow", "Options", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menu_File.setTitle(
            QtGui.QApplication.translate("MainWindow", "&File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menuF_unctions.setTitle(
            QtGui.QApplication.translate("MainWindow", "F&unctions", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setText(
            QtGui.QApplication.translate("MainWindow", "&Open", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+O", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_Results_Table.setText(
            QtGui.QApplication.translate("MainWindow", "Save Results Table",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionTest_XCMS.setText(
            QtGui.QApplication.translate("MainWindow", "Test XCMS", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTest_XCMS.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Needs faakho package",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionTest_XCMS.setWhatsThis(
            QtGui.QApplication.translate("MainWindow", "Needs faakho package",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_HDF5.setText(
            QtGui.QApplication.translate("MainWindow", "Save HDF5", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_HDF5.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+S", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_HDF5.setText(
            QtGui.QApplication.translate("MainWindow", "Load HDF5", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_HDF5.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+L", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionRun_XCMS.setText(
            QtGui.QApplication.translate("MainWindow", "Run XCMS", None,
                                         QtGui.QApplication.UnicodeUTF8))
Example #3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1150, 754)
        MainWindow.setMinimumSize(QtCore.QSize(0, 25))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setWeight(50)
        font.setBold(False)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/games.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.mainTabWidget = QtGui.QTabWidget(self.centralwidget)
        self.mainTabWidget.setObjectName("mainTabWidget")
        self.calcTab = QtGui.QWidget()
        self.calcTab.setObjectName("calcTab")
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.calcTab)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.formulaA_CB = QtGui.QCheckBox(self.calcTab)
        self.formulaA_CB.setChecked(True)
        self.formulaA_CB.setObjectName("formulaA_CB")
        self.horizontalLayout_2.addWidget(self.formulaA_CB)
        self.formulaInputA = QtGui.QLineEdit(self.calcTab)
        self.formulaInputA.setObjectName("formulaInputA")
        self.horizontalLayout_2.addWidget(self.formulaInputA)
        self.calcFormulaA_Btn = QtGui.QToolButton(self.calcTab)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/Retro Question Block.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.calcFormulaA_Btn.setIcon(icon1)
        self.calcFormulaA_Btn.setIconSize(QtCore.QSize(20, 20))
        self.calcFormulaA_Btn.setObjectName("calcFormulaA_Btn")
        self.horizontalLayout_2.addWidget(self.calcFormulaA_Btn)
        self.formulaA_MW_LE = QtGui.QLineEdit(self.calcTab)
        self.formulaA_MW_LE.setReadOnly(True)
        self.formulaA_MW_LE.setObjectName("formulaA_MW_LE")
        self.horizontalLayout_2.addWidget(self.formulaA_MW_LE)
        self.label = QtGui.QLabel(self.calcTab)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.line = QtGui.QFrame(self.calcTab)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_2.addWidget(self.line)
        self.label_7 = QtGui.QLabel(self.calcTab)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_2.addWidget(self.label_7)
        self.chargeA = QtGui.QSpinBox(self.calcTab)
        self.chargeA.setMinimum(-99)
        self.chargeA.setObjectName("chargeA")
        self.horizontalLayout_2.addWidget(self.chargeA)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.formulaB_CB = QtGui.QCheckBox(self.calcTab)
        self.formulaB_CB.setChecked(True)
        self.formulaB_CB.setObjectName("formulaB_CB")
        self.horizontalLayout_4.addWidget(self.formulaB_CB)
        self.formulaInputB = QtGui.QLineEdit(self.calcTab)
        self.formulaInputB.setObjectName("formulaInputB")
        self.horizontalLayout_4.addWidget(self.formulaInputB)
        self.calcFormulaB_Btn = QtGui.QToolButton(self.calcTab)
        self.calcFormulaB_Btn.setIcon(icon1)
        self.calcFormulaB_Btn.setIconSize(QtCore.QSize(20, 20))
        self.calcFormulaB_Btn.setObjectName("calcFormulaB_Btn")
        self.horizontalLayout_4.addWidget(self.calcFormulaB_Btn)
        self.formulaB_MW_LE = QtGui.QLineEdit(self.calcTab)
        self.formulaB_MW_LE.setReadOnly(True)
        self.formulaB_MW_LE.setObjectName("formulaB_MW_LE")
        self.horizontalLayout_4.addWidget(self.formulaB_MW_LE)
        self.label_2 = QtGui.QLabel(self.calcTab)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_4.addWidget(self.label_2)
        self.line_2 = QtGui.QFrame(self.calcTab)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_4.addWidget(self.line_2)
        self.label_10 = QtGui.QLabel(self.calcTab)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_4.addWidget(self.label_10)
        self.chargeB = QtGui.QSpinBox(self.calcTab)
        self.chargeB.setMinimum(-99)
        self.chargeB.setObjectName("chargeB")
        self.horizontalLayout_4.addWidget(self.chargeB)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout_7.addLayout(self.verticalLayout_3)
        self.plotWidget = MPL_Widget(self.calcTab)
        self.plotWidget.setObjectName("plotWidget")
        self.verticalLayout_7.addWidget(self.plotWidget)
        self.verticalLayout_8.addLayout(self.verticalLayout_7)
        self.mainTabWidget.addTab(self.calcTab, "")
        self.periodTab = QtGui.QWidget()
        self.periodTab.setObjectName("periodTab")
        self.elemTableWidget = QtGui.QTableWidget(self.periodTab)
        self.elemTableWidget.setEnabled(True)
        self.elemTableWidget.setGeometry(QtCore.QRect(730, 10, 256, 584))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.elemTableWidget.sizePolicy().hasHeightForWidth())
        self.elemTableWidget.setSizePolicy(sizePolicy)
        self.elemTableWidget.setShowGrid(False)
        self.elemTableWidget.setRowCount(13)
        self.elemTableWidget.setColumnCount(2)
        self.elemTableWidget.setObjectName("elemTableWidget")
        self.elemTableWidget.setColumnCount(2)
        self.elemTableWidget.setRowCount(13)
        self.mainTabWidget.addTab(self.periodTab, "")
        self.configTab = QtGui.QWidget()
        self.configTab.setObjectName("configTab")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.configTab)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_4 = QtGui.QLabel(self.configTab)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_4.addWidget(self.label_4)
        self.plotTypeList = QtGui.QListWidget(self.configTab)
        self.plotTypeList.setObjectName("plotTypeList")
        self.verticalLayout_4.addWidget(self.plotTypeList)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")
        self.updatePlotBtn = QtGui.QPushButton(self.configTab)
        self.updatePlotBtn.setEnabled(True)
        self.updatePlotBtn.setObjectName("updatePlotBtn")
        self.gridlayout.addWidget(self.updatePlotBtn, 3, 0, 1, 1)
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.cb_logx = QtGui.QCheckBox(self.configTab)
        self.cb_logx.setEnabled(False)
        self.cb_logx.setObjectName("cb_logx")
        self.hboxlayout1.addWidget(self.cb_logx)
        self.cb_logy = QtGui.QCheckBox(self.configTab)
        self.cb_logy.setEnabled(False)
        self.cb_logy.setObjectName("cb_logy")
        self.hboxlayout1.addWidget(self.cb_logy)
        self.gridlayout.addLayout(self.hboxlayout1, 2, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_8 = QtGui.QLabel(self.configTab)
        self.label_8.setEnabled(False)
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_3.addWidget(self.label_8)
        self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab)
        self.sizeModSpinBox.setEnabled(False)
        self.sizeModSpinBox.setMinimum(0.0)
        self.sizeModSpinBox.setSingleStep(0.5)
        self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5))
        self.sizeModSpinBox.setObjectName("sizeModSpinBox")
        self.horizontalLayout_3.addWidget(self.sizeModSpinBox)
        self.gridlayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_3 = QtGui.QLabel(self.configTab)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout.addWidget(self.label_3)
        self.isoResCalc_SB = QtGui.QDoubleSpinBox(self.configTab)
        self.isoResCalc_SB.setDecimals(1)
        self.isoResCalc_SB.setMinimum(10.0)
        self.isoResCalc_SB.setMaximum(10000000.0)
        self.isoResCalc_SB.setSingleStep(500.0)
        self.isoResCalc_SB.setProperty("value", QtCore.QVariant(10000.0))
        self.isoResCalc_SB.setObjectName("isoResCalc_SB")
        self.horizontalLayout.addWidget(self.isoResCalc_SB)
        self.gridlayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_5.addLayout(self.gridlayout)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout_6.addLayout(self.verticalLayout)
        self.mainTabWidget.addTab(self.configTab, "")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout = QtGui.QGridLayout(self.tab)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_5 = QtGui.QLabel(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setMaximumSize(QtCore.QSize(75, 16777215))
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_7.addWidget(self.label_5)
        self.plotListBtn = QtGui.QToolButton(self.tab)
        self.plotListBtn.setObjectName("plotListBtn")
        self.horizontalLayout_7.addWidget(self.plotListBtn)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.clearCpndPlotBtn = QtGui.QToolButton(self.tab)
        self.clearCpndPlotBtn.setObjectName("clearCpndPlotBtn")
        self.horizontalLayout_7.addWidget(self.clearCpndPlotBtn)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        self.plotGaussCB = QtGui.QCheckBox(self.tab)
        self.plotGaussCB.setChecked(True)
        self.plotGaussCB.setObjectName("plotGaussCB")
        self.verticalLayout_5.addWidget(self.plotGaussCB)
        self.cmpdListWidget = CustomTable(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmpdListWidget.sizePolicy().hasHeightForWidth())
        self.cmpdListWidget.setSizePolicy(sizePolicy)
        self.cmpdListWidget.setMaximumSize(QtCore.QSize(300, 16777215))
        self.cmpdListWidget.setRowCount(20)
        self.cmpdListWidget.setColumnCount(3)
        self.cmpdListWidget.setObjectName("cmpdListWidget")
        self.cmpdListWidget.setColumnCount(3)
        self.cmpdListWidget.setRowCount(20)
        item = QtGui.QTableWidgetItem()
        self.cmpdListWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.cmpdListWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.cmpdListWidget.setHorizontalHeaderItem(2, item)
        self.verticalLayout_5.addWidget(self.cmpdListWidget)
        self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1)
        self.cmpdPlotWidget = MPL_Widget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cmpdPlotWidget.sizePolicy().hasHeightForWidth())
        self.cmpdPlotWidget.setSizePolicy(sizePolicy)
        self.cmpdPlotWidget.setObjectName("cmpdPlotWidget")
        self.gridLayout.addWidget(self.cmpdPlotWidget, 0, 1, 1, 1)
        self.mainTabWidget.addTab(self.tab, "")
        self.hboxlayout.addWidget(self.mainTabWidget)
        self.verticalLayout_2.addLayout(self.hboxlayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1150, 22))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setWeight(50)
        font.setBold(False)
        self.menubar.setFont(font)
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menu_Tools = QtGui.QMenu(self.menubar)
        self.menu_Tools.setObjectName("menu_Tools")
        self.menu_Help = QtGui.QMenu(self.menubar)
        self.menu_Help.setObjectName("menu_Help")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setEnabled(True)
        self.toolBar.setMinimumSize(QtCore.QSize(12, 25))
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.action_Edit = QtGui.QAction(MainWindow)
        self.action_Edit.setObjectName("action_Edit")
        self.action_Tools = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Tools.setIcon(icon2)
        self.action_Tools.setObjectName("action_Tools")
        self.actionFileOpen = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("images/fileopen.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFileOpen.setIcon(icon3)
        self.actionFileOpen.setObjectName("actionFileOpen")
        self.actionFileSave = QtGui.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFileSave.setIcon(icon4)
        self.actionFileSave.setObjectName("actionFileSave")
        self.actionFileSaveAs = QtGui.QAction(MainWindow)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesaveas.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFileSaveAs.setIcon(icon5)
        self.actionFileSaveAs.setObjectName("actionFileSaveAs")
        self.actionNewFile = QtGui.QAction(MainWindow)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filenew.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionNewFile.setIcon(icon6)
        self.actionNewFile.setObjectName("actionNewFile")
        self.actionTools = QtGui.QAction(MainWindow)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("images/Service Manager.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionTools.setIcon(icon7)
        self.actionTools.setObjectName("actionTools")
        self.action_getSelection = QtGui.QAction(MainWindow)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kspread_ksp.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_getSelection.setIcon(icon8)
        self.action_getSelection.setObjectName("action_getSelection")
        self.actionClear = QtGui.QAction(MainWindow)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/cleanlarge.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionClear.setIcon(icon9)
        self.actionClear.setObjectName("actionClear")
        self.action_New = QtGui.QAction(MainWindow)
        self.action_New.setIcon(icon6)
        self.action_New.setObjectName("action_New")
        self.action_Open = QtGui.QAction(MainWindow)
        self.action_Open.setIcon(icon3)
        self.action_Open.setObjectName("action_Open")
        self.action_Save = QtGui.QAction(MainWindow)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap("images/filesave2.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Save.setIcon(icon10)
        self.action_Save.setObjectName("action_Save")
        self.actionSave_As = QtGui.QAction(MainWindow)
        self.actionSave_As.setIcon(icon5)
        self.actionSave_As.setObjectName("actionSave_As")
        self.action_Exit = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap("images/exitsmall.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Exit.setIcon(icon11)
        self.action_Exit.setObjectName("action_Exit")
        self.action_Clear = QtGui.QAction(MainWindow)
        self.action_Clear.setIcon(icon9)
        self.action_Clear.setObjectName("action_Clear")
        self.action_Table_Selection = QtGui.QAction(MainWindow)
        self.action_Table_Selection.setIcon(icon8)
        self.action_Table_Selection.setObjectName("action_Table_Selection")
        self.action_Cut = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editcut.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Cut.setIcon(icon12)
        self.action_Cut.setObjectName("action_Cut")
        self.action_Paste = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editpaste.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Paste.setIcon(icon13)
        self.action_Paste.setObjectName("action_Paste")
        self.actionRunScript = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap("images/software-development.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRunScript.setIcon(icon14)
        self.actionRunScript.setObjectName("actionRunScript")
        self.actionAbout = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/help.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout.setIcon(icon15)
        self.actionAbout.setObjectName("actionAbout")
        self.actionPlot = QtGui.QAction(MainWindow)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPlot.setIcon(icon16)
        self.actionPlot.setObjectName("actionPlot")
        self.actionDelete = QtGui.QAction(MainWindow)
        icon17 = QtGui.QIcon()
        icon17.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/xkill.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDelete.setIcon(icon17)
        self.actionDelete.setObjectName("actionDelete")
        self.actionDeleteAll = QtGui.QAction(MainWindow)
        self.actionDeleteAll.setIcon(icon17)
        self.actionDeleteAll.setObjectName("actionDeleteAll")
        self.actionPlotItem = QtGui.QAction(MainWindow)
        self.actionPlotItem.setIcon(icon16)
        self.actionPlotItem.setObjectName("actionPlotItem")
        self.actionHints = QtGui.QAction(MainWindow)
        self.actionHints.setObjectName("actionHints")
        self.actionLoad_Folder = QtGui.QAction(MainWindow)
        icon18 = QtGui.QIcon()
        icon18.addPixmap(QtGui.QPixmap("images/fileimport.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLoad_Folder.setIcon(icon18)
        self.actionLoad_Folder.setObjectName("actionLoad_Folder")
        self.actionSave_All_Tables = QtGui.QAction(MainWindow)
        icon19 = QtGui.QIcon()
        icon19.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kchart_chrt.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_All_Tables.setIcon(icon19)
        self.actionSave_All_Tables.setObjectName("actionSave_All_Tables")
        self.actionCopy_Current_Database = QtGui.QAction(MainWindow)
        self.actionCopy_Current_Database.setIcon(icon13)
        self.actionCopy_Current_Database.setObjectName("actionCopy_Current_Database")
        self.actionSave_Isotope_Profile_A_to_CSV = QtGui.QAction(MainWindow)
        self.actionSave_Isotope_Profile_A_to_CSV.setIcon(icon10)
        self.actionSave_Isotope_Profile_A_to_CSV.setObjectName("actionSave_Isotope_Profile_A_to_CSV")
        self.actionSave_Isotope_Profile_B_to_CSV = QtGui.QAction(MainWindow)
        self.actionSave_Isotope_Profile_B_to_CSV.setIcon(icon10)
        self.actionSave_Isotope_Profile_B_to_CSV.setObjectName("actionSave_Isotope_Profile_B_to_CSV")
        self.actionClear_Plot = QtGui.QAction(MainWindow)
        self.actionClear_Plot.setObjectName("actionClear_Plot")
        self.menuFile.addAction(self.action_Exit)
        self.menu_Tools.addAction(self.actionSave_Isotope_Profile_A_to_CSV)
        self.menu_Tools.addAction(self.actionSave_Isotope_Profile_B_to_CSV)
        self.menu_Tools.addSeparator()
        self.menu_Tools.addAction(self.actionClear_Plot)
        self.menu_Help.addAction(self.actionAbout)
        self.menu_Help.addAction(self.actionHints)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menu_Tools.menuAction())
        self.menubar.addAction(self.menu_Help.menuAction())
        self.toolBar.addAction(self.actionRunScript)
        self.toolBar.addAction(self.actionTools)

        self.retranslateUi(MainWindow)
        self.mainTabWidget.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "pysotope", None, QtGui.QApplication.UnicodeUTF8))
        self.formulaA_CB.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula A.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.formulaA_CB.setText(QtGui.QApplication.translate("MainWindow", "Forumla A:", None, QtGui.QApplication.UnicodeUTF8))
        self.formulaInputA.setText(QtGui.QApplication.translate("MainWindow", "C14H9Cl5", None, QtGui.QApplication.UnicodeUTF8))
        self.calcFormulaA_Btn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "g/mol", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Charge:", None, QtGui.QApplication.UnicodeUTF8))
        self.formulaB_CB.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula B.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.formulaB_CB.setText(QtGui.QApplication.translate("MainWindow", "Formula B:", None, QtGui.QApplication.UnicodeUTF8))
        self.formulaInputB.setText(QtGui.QApplication.translate("MainWindow", "C8H10N4O2", None, QtGui.QApplication.UnicodeUTF8))
        self.calcFormulaB_Btn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "g/mol", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("MainWindow", "Charge:", None, QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.calcTab), QtGui.QApplication.translate("MainWindow", "MW Calculator", None, QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.periodTab), QtGui.QApplication.translate("MainWindow", "Periodic Table", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("MainWindow", "Plot Types:", None, QtGui.QApplication.UnicodeUTF8))
        self.updatePlotBtn.setText(QtGui.QApplication.translate("MainWindow", "Update Plot", None, QtGui.QApplication.UnicodeUTF8))
        self.cb_logx.setText(QtGui.QApplication.translate("MainWindow", "Log X", None, QtGui.QApplication.UnicodeUTF8))
        self.cb_logy.setText(QtGui.QApplication.translate("MainWindow", "Log Y", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Size Modifier:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Isotope Calculation Resolution", None, QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.configTab), QtGui.QApplication.translate("MainWindow", "Plot Options", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Compound List", None, QtGui.QApplication.UnicodeUTF8))
        self.plotListBtn.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot Compound List</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.plotListBtn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.clearCpndPlotBtn.setToolTip(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Clear Compound Plot</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.clearCpndPlotBtn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.plotGaussCB.setText(QtGui.QApplication.translate("MainWindow", "Plot Gaussian Profiles", None, QtGui.QApplication.UnicodeUTF8))
        self.cmpdListWidget.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("MainWindow", "Compound", None, QtGui.QApplication.UnicodeUTF8))
        self.cmpdListWidget.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("MainWindow", "Charge", None, QtGui.QApplication.UnicodeUTF8))
        self.cmpdListWidget.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("MainWindow", "m/z", None, QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(self.mainTabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Table Plot", None, QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
        self.menu_Tools.setTitle(QtGui.QApplication.translate("MainWindow", "&Tools", None, QtGui.QApplication.UnicodeUTF8))
        self.menu_Help.setTitle(QtGui.QApplication.translate("MainWindow", "&Help", None, QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(QtGui.QApplication.translate("MainWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Edit.setText(QtGui.QApplication.translate("MainWindow", "&Edit", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Tools.setText(QtGui.QApplication.translate("MainWindow", "&Tools", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFileOpen.setText(QtGui.QApplication.translate("MainWindow", "fileOpen", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFileOpen.setToolTip(QtGui.QApplication.translate("MainWindow", "Open File", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFileSave.setText(QtGui.QApplication.translate("MainWindow", "fileSave", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFileSave.setToolTip(QtGui.QApplication.translate("MainWindow", "Save File", None, QtGui.QApplication.UnicodeUTF8))
        self.actionFileSaveAs.setText(QtGui.QApplication.translate("MainWindow", "fileSaveAs", None, QtGui.QApplication.UnicodeUTF8))
        self.actionNewFile.setText(QtGui.QApplication.translate("MainWindow", "newFile", None, QtGui.QApplication.UnicodeUTF8))
        self.actionNewFile.setToolTip(QtGui.QApplication.translate("MainWindow", "New File", None, QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setText(QtGui.QApplication.translate("MainWindow", "Transfer", None, QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setIconText(QtGui.QApplication.translate("MainWindow", "Transfer", None, QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setToolTip(QtGui.QApplication.translate("MainWindow", "Tools", None, QtGui.QApplication.UnicodeUTF8))
        self.action_getSelection.setText(QtGui.QApplication.translate("MainWindow", "getSelection", None, QtGui.QApplication.UnicodeUTF8))
        self.action_getSelection.setToolTip(QtGui.QApplication.translate("MainWindow", "Get Table Selection", None, QtGui.QApplication.UnicodeUTF8))
        self.actionClear.setText(QtGui.QApplication.translate("MainWindow", "clear", None, QtGui.QApplication.UnicodeUTF8))
        self.actionClear.setToolTip(QtGui.QApplication.translate("MainWindow", "Clear Data and Variables", None, QtGui.QApplication.UnicodeUTF8))
        self.action_New.setText(QtGui.QApplication.translate("MainWindow", "&New", None, QtGui.QApplication.UnicodeUTF8))
        self.action_New.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+N", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Save.setText(QtGui.QApplication.translate("MainWindow", "&Save", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Save.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+S", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_As.setText(QtGui.QApplication.translate("MainWindow", "Save &As", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Exit.setText(QtGui.QApplication.translate("MainWindow", "&Exit", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Exit.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Clear.setText(QtGui.QApplication.translate("MainWindow", "Clea&r", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Table_Selection.setText(QtGui.QApplication.translate("MainWindow", "&Table Selection", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Cut.setText(QtGui.QApplication.translate("MainWindow", "&Cut", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Cut.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Paste.setText(QtGui.QApplication.translate("MainWindow", "&Paste", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Paste.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+V", None, QtGui.QApplication.UnicodeUTF8))
        self.actionRunScript.setText(QtGui.QApplication.translate("MainWindow", "runScript", None, QtGui.QApplication.UnicodeUTF8))
        self.actionRunScript.setToolTip(QtGui.QApplication.translate("MainWindow", "Run Python Script", None, QtGui.QApplication.UnicodeUTF8))
        self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8))
        self.actionPlot.setText(QtGui.QApplication.translate("MainWindow", "Plot", None, QtGui.QApplication.UnicodeUTF8))
        self.actionDelete.setText(QtGui.QApplication.translate("MainWindow", "Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.actionDeleteAll.setText(QtGui.QApplication.translate("MainWindow", "DeleteAll", None, QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setText(QtGui.QApplication.translate("MainWindow", "PlotItem", None, QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setIconText(QtGui.QApplication.translate("MainWindow", "Plot Item", None, QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setToolTip(QtGui.QApplication.translate("MainWindow", "Plot Item", None, QtGui.QApplication.UnicodeUTF8))
        self.actionHints.setText(QtGui.QApplication.translate("MainWindow", "Hints", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_Folder.setText(QtGui.QApplication.translate("MainWindow", "Load Folder", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_All_Tables.setText(QtGui.QApplication.translate("MainWindow", "Save All Tables to CSV", None, QtGui.QApplication.UnicodeUTF8))
        self.actionCopy_Current_Database.setText(QtGui.QApplication.translate("MainWindow", "Copy Current Database", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_Isotope_Profile_A_to_CSV.setText(QtGui.QApplication.translate("MainWindow", "Save Isotope Profile A to CSV", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_Isotope_Profile_B_to_CSV.setText(QtGui.QApplication.translate("MainWindow", "Save Isotope Profile B to CSV", None, QtGui.QApplication.UnicodeUTF8))
        self.actionClear_Plot.setText(QtGui.QApplication.translate("MainWindow", "Clear Plot", None, QtGui.QApplication.UnicodeUTF8))
Example #4
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1150, 754)
        MainWindow.setMinimumSize(QtCore.QSize(0, 25))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setWeight(50)
        font.setBold(False)
        MainWindow.setFont(font)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/games.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.mainTabWidget = QtGui.QTabWidget(self.centralwidget)
        self.mainTabWidget.setObjectName("mainTabWidget")
        self.calcTab = QtGui.QWidget()
        self.calcTab.setObjectName("calcTab")
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.calcTab)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.formulaA_CB = QtGui.QCheckBox(self.calcTab)
        self.formulaA_CB.setChecked(True)
        self.formulaA_CB.setObjectName("formulaA_CB")
        self.horizontalLayout_2.addWidget(self.formulaA_CB)
        self.formulaInputA = QtGui.QLineEdit(self.calcTab)
        self.formulaInputA.setObjectName("formulaInputA")
        self.horizontalLayout_2.addWidget(self.formulaInputA)
        self.calcFormulaA_Btn = QtGui.QToolButton(self.calcTab)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/Retro Question Block.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.calcFormulaA_Btn.setIcon(icon1)
        self.calcFormulaA_Btn.setIconSize(QtCore.QSize(20, 20))
        self.calcFormulaA_Btn.setObjectName("calcFormulaA_Btn")
        self.horizontalLayout_2.addWidget(self.calcFormulaA_Btn)
        self.formulaA_MW_LE = QtGui.QLineEdit(self.calcTab)
        self.formulaA_MW_LE.setReadOnly(True)
        self.formulaA_MW_LE.setObjectName("formulaA_MW_LE")
        self.horizontalLayout_2.addWidget(self.formulaA_MW_LE)
        self.label = QtGui.QLabel(self.calcTab)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.line = QtGui.QFrame(self.calcTab)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_2.addWidget(self.line)
        self.label_7 = QtGui.QLabel(self.calcTab)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_2.addWidget(self.label_7)
        self.chargeA = QtGui.QSpinBox(self.calcTab)
        self.chargeA.setMinimum(-99)
        self.chargeA.setObjectName("chargeA")
        self.horizontalLayout_2.addWidget(self.chargeA)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.formulaB_CB = QtGui.QCheckBox(self.calcTab)
        self.formulaB_CB.setChecked(True)
        self.formulaB_CB.setObjectName("formulaB_CB")
        self.horizontalLayout_4.addWidget(self.formulaB_CB)
        self.formulaInputB = QtGui.QLineEdit(self.calcTab)
        self.formulaInputB.setObjectName("formulaInputB")
        self.horizontalLayout_4.addWidget(self.formulaInputB)
        self.calcFormulaB_Btn = QtGui.QToolButton(self.calcTab)
        self.calcFormulaB_Btn.setIcon(icon1)
        self.calcFormulaB_Btn.setIconSize(QtCore.QSize(20, 20))
        self.calcFormulaB_Btn.setObjectName("calcFormulaB_Btn")
        self.horizontalLayout_4.addWidget(self.calcFormulaB_Btn)
        self.formulaB_MW_LE = QtGui.QLineEdit(self.calcTab)
        self.formulaB_MW_LE.setReadOnly(True)
        self.formulaB_MW_LE.setObjectName("formulaB_MW_LE")
        self.horizontalLayout_4.addWidget(self.formulaB_MW_LE)
        self.label_2 = QtGui.QLabel(self.calcTab)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_4.addWidget(self.label_2)
        self.line_2 = QtGui.QFrame(self.calcTab)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_4.addWidget(self.line_2)
        self.label_10 = QtGui.QLabel(self.calcTab)
        self.label_10.setObjectName("label_10")
        self.horizontalLayout_4.addWidget(self.label_10)
        self.chargeB = QtGui.QSpinBox(self.calcTab)
        self.chargeB.setMinimum(-99)
        self.chargeB.setObjectName("chargeB")
        self.horizontalLayout_4.addWidget(self.chargeB)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout_7.addLayout(self.verticalLayout_3)
        self.plotWidget = MPL_Widget(self.calcTab)
        self.plotWidget.setObjectName("plotWidget")
        self.verticalLayout_7.addWidget(self.plotWidget)
        self.verticalLayout_8.addLayout(self.verticalLayout_7)
        self.mainTabWidget.addTab(self.calcTab, "")
        self.periodTab = QtGui.QWidget()
        self.periodTab.setObjectName("periodTab")
        self.elemTableWidget = QtGui.QTableWidget(self.periodTab)
        self.elemTableWidget.setEnabled(True)
        self.elemTableWidget.setGeometry(QtCore.QRect(730, 10, 256, 584))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.elemTableWidget.sizePolicy().hasHeightForWidth())
        self.elemTableWidget.setSizePolicy(sizePolicy)
        self.elemTableWidget.setShowGrid(False)
        self.elemTableWidget.setRowCount(13)
        self.elemTableWidget.setColumnCount(2)
        self.elemTableWidget.setObjectName("elemTableWidget")
        self.elemTableWidget.setColumnCount(2)
        self.elemTableWidget.setRowCount(13)
        self.mainTabWidget.addTab(self.periodTab, "")
        self.configTab = QtGui.QWidget()
        self.configTab.setObjectName("configTab")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.configTab)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_4 = QtGui.QLabel(self.configTab)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_4.addWidget(self.label_4)
        self.plotTypeList = QtGui.QListWidget(self.configTab)
        self.plotTypeList.setObjectName("plotTypeList")
        self.verticalLayout_4.addWidget(self.plotTypeList)
        self.horizontalLayout_5.addLayout(self.verticalLayout_4)
        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setObjectName("gridlayout")
        self.updatePlotBtn = QtGui.QPushButton(self.configTab)
        self.updatePlotBtn.setEnabled(True)
        self.updatePlotBtn.setObjectName("updatePlotBtn")
        self.gridlayout.addWidget(self.updatePlotBtn, 3, 0, 1, 1)
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.cb_logx = QtGui.QCheckBox(self.configTab)
        self.cb_logx.setEnabled(False)
        self.cb_logx.setObjectName("cb_logx")
        self.hboxlayout1.addWidget(self.cb_logx)
        self.cb_logy = QtGui.QCheckBox(self.configTab)
        self.cb_logy.setEnabled(False)
        self.cb_logy.setObjectName("cb_logy")
        self.hboxlayout1.addWidget(self.cb_logy)
        self.gridlayout.addLayout(self.hboxlayout1, 2, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_8 = QtGui.QLabel(self.configTab)
        self.label_8.setEnabled(False)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_3.addWidget(self.label_8)
        self.sizeModSpinBox = QtGui.QDoubleSpinBox(self.configTab)
        self.sizeModSpinBox.setEnabled(False)
        self.sizeModSpinBox.setMinimum(0.0)
        self.sizeModSpinBox.setSingleStep(0.5)
        self.sizeModSpinBox.setProperty("value", QtCore.QVariant(1.5))
        self.sizeModSpinBox.setObjectName("sizeModSpinBox")
        self.horizontalLayout_3.addWidget(self.sizeModSpinBox)
        self.gridlayout.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_3 = QtGui.QLabel(self.configTab)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout.addWidget(self.label_3)
        self.isoResCalc_SB = QtGui.QDoubleSpinBox(self.configTab)
        self.isoResCalc_SB.setDecimals(1)
        self.isoResCalc_SB.setMinimum(10.0)
        self.isoResCalc_SB.setMaximum(10000000.0)
        self.isoResCalc_SB.setSingleStep(500.0)
        self.isoResCalc_SB.setProperty("value", QtCore.QVariant(10000.0))
        self.isoResCalc_SB.setObjectName("isoResCalc_SB")
        self.horizontalLayout.addWidget(self.isoResCalc_SB)
        self.gridlayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.horizontalLayout_5.addLayout(self.gridlayout)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout_6.addLayout(self.verticalLayout)
        self.mainTabWidget.addTab(self.configTab, "")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout = QtGui.QGridLayout(self.tab)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_5 = QtGui.QLabel(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setMaximumSize(QtCore.QSize(75, 16777215))
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_7.addWidget(self.label_5)
        self.plotListBtn = QtGui.QToolButton(self.tab)
        self.plotListBtn.setObjectName("plotListBtn")
        self.horizontalLayout_7.addWidget(self.plotListBtn)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.clearCpndPlotBtn = QtGui.QToolButton(self.tab)
        self.clearCpndPlotBtn.setObjectName("clearCpndPlotBtn")
        self.horizontalLayout_7.addWidget(self.clearCpndPlotBtn)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        self.plotGaussCB = QtGui.QCheckBox(self.tab)
        self.plotGaussCB.setChecked(True)
        self.plotGaussCB.setObjectName("plotGaussCB")
        self.verticalLayout_5.addWidget(self.plotGaussCB)
        self.cmpdListWidget = CustomTable(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cmpdListWidget.sizePolicy().hasHeightForWidth())
        self.cmpdListWidget.setSizePolicy(sizePolicy)
        self.cmpdListWidget.setMaximumSize(QtCore.QSize(300, 16777215))
        self.cmpdListWidget.setRowCount(20)
        self.cmpdListWidget.setColumnCount(3)
        self.cmpdListWidget.setObjectName("cmpdListWidget")
        self.cmpdListWidget.setColumnCount(3)
        self.cmpdListWidget.setRowCount(20)
        item = QtGui.QTableWidgetItem()
        self.cmpdListWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.cmpdListWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.cmpdListWidget.setHorizontalHeaderItem(2, item)
        self.verticalLayout_5.addWidget(self.cmpdListWidget)
        self.gridLayout.addLayout(self.verticalLayout_5, 0, 0, 1, 1)
        self.cmpdPlotWidget = MPL_Widget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cmpdPlotWidget.sizePolicy().hasHeightForWidth())
        self.cmpdPlotWidget.setSizePolicy(sizePolicy)
        self.cmpdPlotWidget.setObjectName("cmpdPlotWidget")
        self.gridLayout.addWidget(self.cmpdPlotWidget, 0, 1, 1, 1)
        self.mainTabWidget.addTab(self.tab, "")
        self.hboxlayout.addWidget(self.mainTabWidget)
        self.verticalLayout_2.addLayout(self.hboxlayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1150, 22))
        font = QtGui.QFont()
        font.setFamily("Arial")
        font.setWeight(50)
        font.setBold(False)
        self.menubar.setFont(font)
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menu_Tools = QtGui.QMenu(self.menubar)
        self.menu_Tools.setObjectName("menu_Tools")
        self.menu_Help = QtGui.QMenu(self.menubar)
        self.menu_Help.setObjectName("menu_Help")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.toolBar = QtGui.QToolBar(MainWindow)
        self.toolBar.setEnabled(True)
        self.toolBar.setMinimumSize(QtCore.QSize(12, 25))
        self.toolBar.setObjectName("toolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
        self.action_Edit = QtGui.QAction(MainWindow)
        self.action_Edit.setObjectName("action_Edit")
        self.action_Tools = QtGui.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(":/new/prefix1/icons/Service Manager.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Tools.setIcon(icon2)
        self.action_Tools.setObjectName("action_Tools")
        self.actionFileOpen = QtGui.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("images/fileopen.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFileOpen.setIcon(icon3)
        self.actionFileOpen.setObjectName("actionFileOpen")
        self.actionFileSave = QtGui.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesave2.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFileSave.setIcon(icon4)
        self.actionFileSave.setObjectName("actionFileSave")
        self.actionFileSaveAs = QtGui.QAction(MainWindow)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filesaveas.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFileSaveAs.setIcon(icon5)
        self.actionFileSaveAs.setObjectName("actionFileSaveAs")
        self.actionNewFile = QtGui.QAction(MainWindow)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/filenew.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionNewFile.setIcon(icon6)
        self.actionNewFile.setObjectName("actionNewFile")
        self.actionTools = QtGui.QAction(MainWindow)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("images/Service Manager.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionTools.setIcon(icon7)
        self.actionTools.setObjectName("actionTools")
        self.action_getSelection = QtGui.QAction(MainWindow)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kspread_ksp.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_getSelection.setIcon(icon8)
        self.action_getSelection.setObjectName("action_getSelection")
        self.actionClear = QtGui.QAction(MainWindow)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/cleanlarge.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionClear.setIcon(icon9)
        self.actionClear.setObjectName("actionClear")
        self.action_New = QtGui.QAction(MainWindow)
        self.action_New.setIcon(icon6)
        self.action_New.setObjectName("action_New")
        self.action_Open = QtGui.QAction(MainWindow)
        self.action_Open.setIcon(icon3)
        self.action_Open.setObjectName("action_Open")
        self.action_Save = QtGui.QAction(MainWindow)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap("images/filesave2.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Save.setIcon(icon10)
        self.action_Save.setObjectName("action_Save")
        self.actionSave_As = QtGui.QAction(MainWindow)
        self.actionSave_As.setIcon(icon5)
        self.actionSave_As.setObjectName("actionSave_As")
        self.action_Exit = QtGui.QAction(MainWindow)
        icon11 = QtGui.QIcon()
        icon11.addPixmap(QtGui.QPixmap("images/exitsmall.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Exit.setIcon(icon11)
        self.action_Exit.setObjectName("action_Exit")
        self.action_Clear = QtGui.QAction(MainWindow)
        self.action_Clear.setIcon(icon9)
        self.action_Clear.setObjectName("action_Clear")
        self.action_Table_Selection = QtGui.QAction(MainWindow)
        self.action_Table_Selection.setIcon(icon8)
        self.action_Table_Selection.setObjectName("action_Table_Selection")
        self.action_Cut = QtGui.QAction(MainWindow)
        icon12 = QtGui.QIcon()
        icon12.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editcut.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Cut.setIcon(icon12)
        self.action_Cut.setObjectName("action_Cut")
        self.action_Paste = QtGui.QAction(MainWindow)
        icon13 = QtGui.QIcon()
        icon13.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/editpaste.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.action_Paste.setIcon(icon13)
        self.action_Paste.setObjectName("action_Paste")
        self.actionRunScript = QtGui.QAction(MainWindow)
        icon14 = QtGui.QIcon()
        icon14.addPixmap(QtGui.QPixmap("images/software-development.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionRunScript.setIcon(icon14)
        self.actionRunScript.setObjectName("actionRunScript")
        self.actionAbout = QtGui.QAction(MainWindow)
        icon15 = QtGui.QIcon()
        icon15.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/help.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionAbout.setIcon(icon15)
        self.actionAbout.setObjectName("actionAbout")
        self.actionPlot = QtGui.QAction(MainWindow)
        icon16 = QtGui.QIcon()
        icon16.addPixmap(
            QtGui.QPixmap(
                ":/new/prefix1/icons/120px-Icon_Mathematical_Plot.svg.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionPlot.setIcon(icon16)
        self.actionPlot.setObjectName("actionPlot")
        self.actionDelete = QtGui.QAction(MainWindow)
        icon17 = QtGui.QIcon()
        icon17.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/xkill.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionDelete.setIcon(icon17)
        self.actionDelete.setObjectName("actionDelete")
        self.actionDeleteAll = QtGui.QAction(MainWindow)
        self.actionDeleteAll.setIcon(icon17)
        self.actionDeleteAll.setObjectName("actionDeleteAll")
        self.actionPlotItem = QtGui.QAction(MainWindow)
        self.actionPlotItem.setIcon(icon16)
        self.actionPlotItem.setObjectName("actionPlotItem")
        self.actionHints = QtGui.QAction(MainWindow)
        self.actionHints.setObjectName("actionHints")
        self.actionLoad_Folder = QtGui.QAction(MainWindow)
        icon18 = QtGui.QIcon()
        icon18.addPixmap(QtGui.QPixmap("images/fileimport.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionLoad_Folder.setIcon(icon18)
        self.actionLoad_Folder.setObjectName("actionLoad_Folder")
        self.actionSave_All_Tables = QtGui.QAction(MainWindow)
        icon19 = QtGui.QIcon()
        icon19.addPixmap(QtGui.QPixmap(":/new/prefix1/icons/kchart_chrt.png"),
                         QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionSave_All_Tables.setIcon(icon19)
        self.actionSave_All_Tables.setObjectName("actionSave_All_Tables")
        self.actionCopy_Current_Database = QtGui.QAction(MainWindow)
        self.actionCopy_Current_Database.setIcon(icon13)
        self.actionCopy_Current_Database.setObjectName(
            "actionCopy_Current_Database")
        self.actionSave_Isotope_Profile_A_to_CSV = QtGui.QAction(MainWindow)
        self.actionSave_Isotope_Profile_A_to_CSV.setIcon(icon10)
        self.actionSave_Isotope_Profile_A_to_CSV.setObjectName(
            "actionSave_Isotope_Profile_A_to_CSV")
        self.actionSave_Isotope_Profile_B_to_CSV = QtGui.QAction(MainWindow)
        self.actionSave_Isotope_Profile_B_to_CSV.setIcon(icon10)
        self.actionSave_Isotope_Profile_B_to_CSV.setObjectName(
            "actionSave_Isotope_Profile_B_to_CSV")
        self.actionClear_Plot = QtGui.QAction(MainWindow)
        self.actionClear_Plot.setObjectName("actionClear_Plot")
        self.menuFile.addAction(self.action_Exit)
        self.menu_Tools.addAction(self.actionSave_Isotope_Profile_A_to_CSV)
        self.menu_Tools.addAction(self.actionSave_Isotope_Profile_B_to_CSV)
        self.menu_Tools.addSeparator()
        self.menu_Tools.addAction(self.actionClear_Plot)
        self.menu_Help.addAction(self.actionAbout)
        self.menu_Help.addAction(self.actionHints)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menu_Tools.menuAction())
        self.menubar.addAction(self.menu_Help.menuAction())
        self.toolBar.addAction(self.actionRunScript)
        self.toolBar.addAction(self.actionTools)

        self.retranslateUi(MainWindow)
        self.mainTabWidget.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            QtGui.QApplication.translate("MainWindow", "pysotope", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.formulaA_CB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula A.</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.formulaA_CB.setText(
            QtGui.QApplication.translate("MainWindow", "Forumla A:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.formulaInputA.setText(
            QtGui.QApplication.translate("MainWindow", "C14H9Cl5", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.calcFormulaA_Btn.setText(
            QtGui.QApplication.translate("MainWindow", "...", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label.setText(
            QtGui.QApplication.translate("MainWindow", "g/mol", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(
            QtGui.QApplication.translate("MainWindow", "Charge:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.formulaB_CB.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Arial\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot the isotope pattern for formula B.</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.formulaB_CB.setText(
            QtGui.QApplication.translate("MainWindow", "Formula B:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.formulaInputB.setText(
            QtGui.QApplication.translate("MainWindow", "C8H10N4O2", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.calcFormulaB_Btn.setText(
            QtGui.QApplication.translate("MainWindow", "...", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(
            QtGui.QApplication.translate("MainWindow", "g/mol", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(
            QtGui.QApplication.translate("MainWindow", "Charge:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.calcTab),
            QtGui.QApplication.translate("MainWindow", "MW Calculator", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.periodTab),
            QtGui.QApplication.translate("MainWindow", "Periodic Table", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(
            QtGui.QApplication.translate("MainWindow", "Plot Types:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.updatePlotBtn.setText(
            QtGui.QApplication.translate("MainWindow", "Update Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cb_logx.setText(
            QtGui.QApplication.translate("MainWindow", "Log X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cb_logy.setText(
            QtGui.QApplication.translate("MainWindow", "Log Y", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(
            QtGui.QApplication.translate("MainWindow", "Size Modifier:", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Isotope Calculation Resolution",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.configTab),
            QtGui.QApplication.translate("MainWindow", "Plot Options", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(
            QtGui.QApplication.translate("MainWindow", "Compound List", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.plotListBtn.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Plot Compound List</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.plotListBtn.setText(
            QtGui.QApplication.translate("MainWindow", "...", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.clearCpndPlotBtn.setToolTip(
            QtGui.QApplication.translate(
                "MainWindow",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Arial\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Clear Compound Plot</p></body></html>",
                None, QtGui.QApplication.UnicodeUTF8))
        self.clearCpndPlotBtn.setText(
            QtGui.QApplication.translate("MainWindow", "...", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.plotGaussCB.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Plot Gaussian Profiles", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cmpdListWidget.horizontalHeaderItem(0).setText(
            QtGui.QApplication.translate("MainWindow", "Compound", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cmpdListWidget.horizontalHeaderItem(1).setText(
            QtGui.QApplication.translate("MainWindow", "Charge", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.cmpdListWidget.horizontalHeaderItem(2).setText(
            QtGui.QApplication.translate("MainWindow", "m/z", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.mainTabWidget.setTabText(
            self.mainTabWidget.indexOf(self.tab),
            QtGui.QApplication.translate("MainWindow", "Table Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menuFile.setTitle(
            QtGui.QApplication.translate("MainWindow", "&File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menu_Tools.setTitle(
            QtGui.QApplication.translate("MainWindow", "&Tools", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.menu_Help.setTitle(
            QtGui.QApplication.translate("MainWindow", "&Help", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.toolBar.setWindowTitle(
            QtGui.QApplication.translate("MainWindow", "toolBar", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Edit.setText(
            QtGui.QApplication.translate("MainWindow", "&Edit", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Tools.setText(
            QtGui.QApplication.translate("MainWindow", "&Tools", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileOpen.setText(
            QtGui.QApplication.translate("MainWindow", "fileOpen", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileOpen.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Open File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileSave.setText(
            QtGui.QApplication.translate("MainWindow", "fileSave", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileSave.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Save File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionFileSaveAs.setText(
            QtGui.QApplication.translate("MainWindow", "fileSaveAs", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionNewFile.setText(
            QtGui.QApplication.translate("MainWindow", "newFile", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionNewFile.setToolTip(
            QtGui.QApplication.translate("MainWindow", "New File", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setText(
            QtGui.QApplication.translate("MainWindow", "Transfer", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setIconText(
            QtGui.QApplication.translate("MainWindow", "Transfer", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionTools.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Tools", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_getSelection.setText(
            QtGui.QApplication.translate("MainWindow", "getSelection", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_getSelection.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Get Table Selection",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionClear.setText(
            QtGui.QApplication.translate("MainWindow", "clear", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionClear.setToolTip(
            QtGui.QApplication.translate("MainWindow",
                                         "Clear Data and Variables", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_New.setText(
            QtGui.QApplication.translate("MainWindow", "&New", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_New.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+N", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setText(
            QtGui.QApplication.translate("MainWindow", "&Open", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+O", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Save.setText(
            QtGui.QApplication.translate("MainWindow", "&Save", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Save.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+S", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_As.setText(
            QtGui.QApplication.translate("MainWindow", "Save &As", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Exit.setText(
            QtGui.QApplication.translate("MainWindow", "&Exit", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Exit.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Clear.setText(
            QtGui.QApplication.translate("MainWindow", "Clea&r", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Table_Selection.setText(
            QtGui.QApplication.translate("MainWindow", "&Table Selection",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.action_Cut.setText(
            QtGui.QApplication.translate("MainWindow", "&Cut", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Cut.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+X", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Paste.setText(
            QtGui.QApplication.translate("MainWindow", "&Paste", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.action_Paste.setShortcut(
            QtGui.QApplication.translate("MainWindow", "Ctrl+V", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionRunScript.setText(
            QtGui.QApplication.translate("MainWindow", "runScript", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionRunScript.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Run Python Script",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionAbout.setText(
            QtGui.QApplication.translate("MainWindow", "About", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlot.setText(
            QtGui.QApplication.translate("MainWindow", "Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionDelete.setText(
            QtGui.QApplication.translate("MainWindow", "Delete", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionDeleteAll.setText(
            QtGui.QApplication.translate("MainWindow", "DeleteAll", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setText(
            QtGui.QApplication.translate("MainWindow", "PlotItem", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setIconText(
            QtGui.QApplication.translate("MainWindow", "Plot Item", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionPlotItem.setToolTip(
            QtGui.QApplication.translate("MainWindow", "Plot Item", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionHints.setText(
            QtGui.QApplication.translate("MainWindow", "Hints", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_Folder.setText(
            QtGui.QApplication.translate("MainWindow", "Load Folder", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_All_Tables.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Save All Tables to CSV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionCopy_Current_Database.setText(
            QtGui.QApplication.translate("MainWindow", "Copy Current Database",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_Isotope_Profile_A_to_CSV.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Save Isotope Profile A to CSV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionSave_Isotope_Profile_B_to_CSV.setText(
            QtGui.QApplication.translate("MainWindow",
                                         "Save Isotope Profile B to CSV", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.actionClear_Plot.setText(
            QtGui.QApplication.translate("MainWindow", "Clear Plot", None,
                                         QtGui.QApplication.UnicodeUTF8))
Example #5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(987, 673)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("games.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setIconSize(QtCore.QSize(30, 30))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.hboxlayout = QtGui.QHBoxLayout(self.centralwidget)
        self.hboxlayout.setObjectName("hboxlayout")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtGui.QWidget()
        self.tab.setObjectName("tab")
        self.vboxlayout = QtGui.QVBoxLayout(self.tab)
        self.vboxlayout.setObjectName("vboxlayout")
        self.hboxlayout1 = QtGui.QHBoxLayout()
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.vboxlayout1 = QtGui.QVBoxLayout()
        self.vboxlayout1.setObjectName("vboxlayout1")
        self.hboxlayout2 = QtGui.QHBoxLayout()
        self.hboxlayout2.setObjectName("hboxlayout2")
        self.getFolderBtn = QtGui.QPushButton(self.tab)
        self.getFolderBtn.setObjectName("getFolderBtn")
        self.hboxlayout2.addWidget(self.getFolderBtn)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout2.addItem(spacerItem)
        self.vboxlayout1.addLayout(self.hboxlayout2)
        self.vboxlayout2 = QtGui.QVBoxLayout()
        self.vboxlayout2.setObjectName("vboxlayout2")
        self.hboxlayout3 = QtGui.QHBoxLayout()
        self.hboxlayout3.setObjectName("hboxlayout3")
        self.label_25 = QtGui.QLabel(self.tab)
        self.label_25.setObjectName("label_25")
        self.hboxlayout3.addWidget(self.label_25)
        self.curFolderLE = QtGui.QLineEdit(self.tab)
        self.curFolderLE.setReadOnly(True)
        self.curFolderLE.setObjectName("curFolderLE")
        self.hboxlayout3.addWidget(self.curFolderLE)
        self.vboxlayout2.addLayout(self.hboxlayout3)
        self.label_21 = QtGui.QLabel(self.tab)
        self.label_21.setObjectName("label_21")
        self.vboxlayout2.addWidget(self.label_21)
        self.dirListWidget = QtGui.QListWidget(self.tab)
        self.dirListWidget.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.dirListWidget.setObjectName("dirListWidget")
        self.vboxlayout2.addWidget(self.dirListWidget)
        self.vboxlayout1.addLayout(self.vboxlayout2)
        self.hboxlayout1.addLayout(self.vboxlayout1)
        self.vboxlayout3 = QtGui.QVBoxLayout()
        self.vboxlayout3.setObjectName("vboxlayout3")
        self.hboxlayout4 = QtGui.QHBoxLayout()
        self.hboxlayout4.setObjectName("hboxlayout4")
        self.label = QtGui.QLabel(self.tab)
        self.label.setObjectName("label")
        self.hboxlayout4.addWidget(self.label)
        self.xcmsMethodCB = QtGui.QComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.xcmsMethodCB.sizePolicy().hasHeightForWidth())
        self.xcmsMethodCB.setSizePolicy(sizePolicy)
        self.xcmsMethodCB.setObjectName("xcmsMethodCB")
        self.hboxlayout4.addWidget(self.xcmsMethodCB)
        self.vboxlayout3.addLayout(self.hboxlayout4)
        self.useRetcor_CB = QtGui.QCheckBox(self.tab)
        self.useRetcor_CB.setObjectName("useRetcor_CB")
        self.vboxlayout3.addWidget(self.useRetcor_CB)
        self.vboxlayout4 = QtGui.QVBoxLayout()
        self.vboxlayout4.setObjectName("vboxlayout4")
        self.label_2 = QtGui.QLabel(self.tab)
        self.label_2.setObjectName("label_2")
        self.vboxlayout4.addWidget(self.label_2)
        self.paramTableWidget = CustomTable(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.paramTableWidget.sizePolicy().hasHeightForWidth())
        self.paramTableWidget.setSizePolicy(sizePolicy)
        self.paramTableWidget.setRowCount(0)
        self.paramTableWidget.setColumnCount(0)
        self.paramTableWidget.setObjectName("paramTableWidget")
        self.paramTableWidget.setColumnCount(0)
        self.paramTableWidget.setRowCount(0)
        self.vboxlayout4.addWidget(self.paramTableWidget)
        self.vboxlayout3.addLayout(self.vboxlayout4)
        self.hboxlayout1.addLayout(self.vboxlayout3)
        self.vboxlayout.addLayout(self.hboxlayout1)
        self.vboxlayout5 = QtGui.QVBoxLayout()
        self.vboxlayout5.setObjectName("vboxlayout5")
        self.hboxlayout5 = QtGui.QHBoxLayout()
        self.hboxlayout5.setObjectName("hboxlayout5")
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout5.addItem(spacerItem1)
        self.runXCMSBtn = QtGui.QToolButton(self.tab)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("applications.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.runXCMSBtn.setIcon(icon1)
        self.runXCMSBtn.setIconSize(QtCore.QSize(30, 30))
        self.runXCMSBtn.setObjectName("runXCMSBtn")
        self.hboxlayout5.addWidget(self.runXCMSBtn)
        self.vboxlayout5.addLayout(self.hboxlayout5)
        self.label_3 = QtGui.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.vboxlayout5.addWidget(self.label_3)
        self.RoutputTE = QtGui.QTextEdit(self.tab)
        self.RoutputTE.setReadOnly(True)
        self.RoutputTE.setObjectName("RoutputTE")
        self.vboxlayout5.addWidget(self.RoutputTE)
        self.vboxlayout.addLayout(self.vboxlayout5)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridlayout = QtGui.QGridLayout(self.tab_2)
        self.gridlayout.setObjectName("gridlayout")
        self.vboxlayout6 = QtGui.QVBoxLayout()
        self.vboxlayout6.setObjectName("vboxlayout6")
        self.hboxlayout6 = QtGui.QHBoxLayout()
        self.hboxlayout6.setObjectName("hboxlayout6")
        self.label_6 = QtGui.QLabel(self.tab_2)
        self.label_6.setObjectName("label_6")
        self.hboxlayout6.addWidget(self.label_6)
        self.eicIndexSlider = QtGui.QSlider(self.tab_2)
        self.eicIndexSlider.setMaximum(10000)
        self.eicIndexSlider.setOrientation(QtCore.Qt.Horizontal)
        self.eicIndexSlider.setObjectName("eicIndexSlider")
        self.hboxlayout6.addWidget(self.eicIndexSlider)
        self.eicIndexSB = QtGui.QSpinBox(self.tab_2)
        self.eicIndexSB.setMaximum(10000)
        self.eicIndexSB.setObjectName("eicIndexSB")
        self.hboxlayout6.addWidget(self.eicIndexSB)
        self.vboxlayout6.addLayout(self.hboxlayout6)
        self.plotWidget = MPL_Widget(self.tab_2)
        self.plotWidget.setObjectName("plotWidget")
        self.vboxlayout6.addWidget(self.plotWidget)
        self.gridlayout.addLayout(self.vboxlayout6, 0, 0, 1, 1)
        self.hboxlayout7 = QtGui.QHBoxLayout()
        self.hboxlayout7.setObjectName("hboxlayout7")
        self.vboxlayout7 = QtGui.QVBoxLayout()
        self.vboxlayout7.setObjectName("vboxlayout7")
        self.hboxlayout8 = QtGui.QHBoxLayout()
        self.hboxlayout8.setObjectName("hboxlayout8")
        self.label_7 = QtGui.QLabel(self.tab_2)
        self.label_7.setObjectName("label_7")
        self.hboxlayout8.addWidget(self.label_7)
        self.eicCurFolderLE = QtGui.QLineEdit(self.tab_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.eicCurFolderLE.sizePolicy().hasHeightForWidth())
        self.eicCurFolderLE.setSizePolicy(sizePolicy)
        self.eicCurFolderLE.setReadOnly(True)
        self.eicCurFolderLE.setObjectName("eicCurFolderLE")
        self.hboxlayout8.addWidget(self.eicCurFolderLE)
        self.vboxlayout7.addLayout(self.hboxlayout8)
        self.hboxlayout9 = QtGui.QHBoxLayout()
        self.hboxlayout9.setObjectName("hboxlayout9")
        self.label_5 = QtGui.QLabel(self.tab_2)
        self.label_5.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.hboxlayout9.addWidget(self.label_5)
        self.mzStartSB = QtGui.QDoubleSpinBox(self.tab_2)
        self.mzStartSB.setDecimals(4)
        self.mzStartSB.setMaximum(100000.0)
        self.mzStartSB.setSingleStep(0.05)
        self.mzStartSB.setProperty("value", QtCore.QVariant(215.15))
        self.mzStartSB.setObjectName("mzStartSB")
        self.hboxlayout9.addWidget(self.mzStartSB)
        self.vboxlayout7.addLayout(self.hboxlayout9)
        self.hboxlayout10 = QtGui.QHBoxLayout()
        self.hboxlayout10.setObjectName("hboxlayout10")
        self.label_4 = QtGui.QLabel(self.tab_2)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.hboxlayout10.addWidget(self.label_4)
        self.mzStopSB = QtGui.QDoubleSpinBox(self.tab_2)
        self.mzStopSB.setDecimals(4)
        self.mzStopSB.setMaximum(100000.0)
        self.mzStopSB.setSingleStep(0.05)
        self.mzStopSB.setProperty("value", QtCore.QVariant(227.15))
        self.mzStopSB.setObjectName("mzStopSB")
        self.hboxlayout10.addWidget(self.mzStopSB)
        self.vboxlayout7.addLayout(self.hboxlayout10)
        self.hboxlayout11 = QtGui.QHBoxLayout()
        self.hboxlayout11.setObjectName("hboxlayout11")
        self.label_11 = QtGui.QLabel(self.tab_2)
        self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_11.setObjectName("label_11")
        self.hboxlayout11.addWidget(self.label_11)
        self.rtWidthSB = QtGui.QDoubleSpinBox(self.tab_2)
        self.rtWidthSB.setDecimals(1)
        self.rtWidthSB.setMinimum(1.0)
        self.rtWidthSB.setMaximum(100000.0)
        self.rtWidthSB.setSingleStep(1.0)
        self.rtWidthSB.setProperty("value", QtCore.QVariant(200.0))
        self.rtWidthSB.setObjectName("rtWidthSB")
        self.hboxlayout11.addWidget(self.rtWidthSB)
        self.vboxlayout7.addLayout(self.hboxlayout11)
        self.hboxlayout12 = QtGui.QHBoxLayout()
        self.hboxlayout12.setObjectName("hboxlayout12")
        self.label_12 = QtGui.QLabel(self.tab_2)
        self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_12.setObjectName("label_12")
        self.hboxlayout12.addWidget(self.label_12)
        self.rtWidthSB_Stop = QtGui.QDoubleSpinBox(self.tab_2)
        self.rtWidthSB_Stop.setDecimals(1)
        self.rtWidthSB_Stop.setMinimum(-1.0)
        self.rtWidthSB_Stop.setMaximum(100000.0)
        self.rtWidthSB_Stop.setSingleStep(1.0)
        self.rtWidthSB_Stop.setProperty("value", QtCore.QVariant(-1.0))
        self.rtWidthSB_Stop.setObjectName("rtWidthSB_Stop")
        self.hboxlayout12.addWidget(self.rtWidthSB_Stop)
        self.vboxlayout7.addLayout(self.hboxlayout12)
        self.rtTypeCB = QtGui.QCheckBox(self.tab_2)
        self.rtTypeCB.setChecked(True)
        self.rtTypeCB.setObjectName("rtTypeCB")
        self.vboxlayout7.addWidget(self.rtTypeCB)
        self.fillPeaks_CB = QtGui.QCheckBox(self.tab_2)
        self.fillPeaks_CB.setChecked(False)
        self.fillPeaks_CB.setObjectName("fillPeaks_CB")
        self.vboxlayout7.addWidget(self.fillPeaks_CB)
        self.plotLegendCB = QtGui.QCheckBox(self.tab_2)
        self.plotLegendCB.setChecked(False)
        self.plotLegendCB.setObjectName("plotLegendCB")
        self.vboxlayout7.addWidget(self.plotLegendCB)
        self.getEICBtn = QtGui.QPushButton(self.tab_2)
        self.getEICBtn.setObjectName("getEICBtn")
        self.vboxlayout7.addWidget(self.getEICBtn)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.vboxlayout7.addItem(spacerItem2)
        self.hboxlayout7.addLayout(self.vboxlayout7)
        self.gridlayout.addLayout(self.hboxlayout7, 0, 1, 1, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.vboxlayout8 = QtGui.QVBoxLayout(self.tab_4)
        self.vboxlayout8.setObjectName("vboxlayout8")
        self.hboxlayout13 = QtGui.QHBoxLayout()
        self.hboxlayout13.setObjectName("hboxlayout13")
        self.loadRPY2BatchBtn = QtGui.QPushButton(self.tab_4)
        self.loadRPY2BatchBtn.setEnabled(False)
        self.loadRPY2BatchBtn.setObjectName("loadRPY2BatchBtn")
        self.hboxlayout13.addWidget(self.loadRPY2BatchBtn)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout13.addItem(spacerItem3)
        self.vboxlayout8.addLayout(self.hboxlayout13)
        self.batchScriptTE = QtGui.QTextEdit(self.tab_4)
        self.batchScriptTE.setEnabled(False)
        self.batchScriptTE.setObjectName("batchScriptTE")
        self.vboxlayout8.addWidget(self.batchScriptTE)
        self.hboxlayout14 = QtGui.QHBoxLayout()
        self.hboxlayout14.setObjectName("hboxlayout14")
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.hboxlayout14.addItem(spacerItem4)
        self.runBatchBtn = QtGui.QPushButton(self.tab_4)
        self.runBatchBtn.setEnabled(False)
        self.runBatchBtn.setObjectName("runBatchBtn")
        self.hboxlayout14.addWidget(self.runBatchBtn)
        self.vboxlayout8.addLayout(self.hboxlayout14)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.hboxlayout15 = QtGui.QHBoxLayout(self.tab_3)
        self.hboxlayout15.setObjectName("hboxlayout15")
        self.gridlayout1 = QtGui.QGridLayout()
        self.gridlayout1.setObjectName("gridlayout1")
        self.gridlayout2 = QtGui.QGridLayout()
        self.gridlayout2.setObjectName("gridlayout2")
        self.gridlayout3 = QtGui.QGridLayout()
        self.gridlayout3.setObjectName("gridlayout3")
        self.killRBtn = QtGui.QPushButton(self.tab_3)
        self.killRBtn.setEnabled(False)
        self.killRBtn.setObjectName("killRBtn")
        self.gridlayout3.addWidget(self.killRBtn, 0, 0, 1, 1)
        self.useMaxMZ_CB = QtGui.QCheckBox(self.tab_3)
        self.useMaxMZ_CB.setEnabled(False)
        self.useMaxMZ_CB.setObjectName("useMaxMZ_CB")
        self.gridlayout3.addWidget(self.useMaxMZ_CB, 1, 0, 1, 1)
        self.gridlayout2.addLayout(self.gridlayout3, 0, 0, 1, 1)
        self.hboxlayout16 = QtGui.QHBoxLayout()
        self.hboxlayout16.setObjectName("hboxlayout16")
        self.label_8 = QtGui.QLabel(self.tab_3)
        self.label_8.setEnabled(False)
        self.label_8.setObjectName("label_8")
        self.hboxlayout16.addWidget(self.label_8)
        self.mzMZCutoff_SB = QtGui.QDoubleSpinBox(self.tab_3)
        self.mzMZCutoff_SB.setEnabled(False)
        self.mzMZCutoff_SB.setDecimals(3)
        self.mzMZCutoff_SB.setMinimum(1.0)
        self.mzMZCutoff_SB.setMaximum(99999.99)
        self.mzMZCutoff_SB.setProperty("value", QtCore.QVariant(350.0))
        self.mzMZCutoff_SB.setObjectName("mzMZCutoff_SB")
        self.hboxlayout16.addWidget(self.mzMZCutoff_SB)
        self.gridlayout2.addLayout(self.hboxlayout16, 1, 0, 1, 1)
        self.gridlayout1.addLayout(self.gridlayout2, 0, 0, 1, 1)
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridlayout1.addItem(spacerItem5, 0, 1, 1, 1)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridlayout1.addItem(spacerItem6, 1, 0, 1, 1)
        self.hboxlayout15.addLayout(self.gridlayout1)
        self.tabWidget.addTab(self.tab_3, "")
        self.hboxlayout.addWidget(self.tabWidget)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 987, 26))
        self.menubar.setObjectName("menubar")
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName("menu_File")
        self.menuF_unctions = QtGui.QMenu(self.menubar)
        self.menuF_unctions.setObjectName("menuF_unctions")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.action_Open = QtGui.QAction(MainWindow)
        self.action_Open.setObjectName("action_Open")
        self.actionSave_Results_Table = QtGui.QAction(MainWindow)
        self.actionSave_Results_Table.setObjectName("actionSave_Results_Table")
        self.actionTest_XCMS = QtGui.QAction(MainWindow)
        self.actionTest_XCMS.setObjectName("actionTest_XCMS")
        self.actionSave_HDF5 = QtGui.QAction(MainWindow)
        self.actionSave_HDF5.setObjectName("actionSave_HDF5")
        self.actionLoad_HDF5 = QtGui.QAction(MainWindow)
        self.actionLoad_HDF5.setObjectName("actionLoad_HDF5")
        self.actionRun_XCMS = QtGui.QAction(MainWindow)
        self.actionRun_XCMS.setObjectName("actionRun_XCMS")
        self.menu_File.addAction(self.actionSave_HDF5)
        self.menu_File.addAction(self.actionLoad_HDF5)
        self.menuF_unctions.addAction(self.actionSave_Results_Table)
        self.menuF_unctions.addSeparator()
        self.menuF_unctions.addAction(self.actionRun_XCMS)
        self.menuF_unctions.addSeparator()
        self.menuF_unctions.addAction(self.actionTest_XCMS)
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menuF_unctions.menuAction())

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.eicIndexSlider, QtCore.SIGNAL("valueChanged(int)"), self.eicIndexSB.setValue)
        QtCore.QObject.connect(self.eicIndexSB, QtCore.SIGNAL("valueChanged(int)"), self.eicIndexSlider.setValue)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "pyXCMS", None, QtGui.QApplication.UnicodeUTF8))
        self.getFolderBtn.setText(QtGui.QApplication.translate("MainWindow", "Select Folder", None, QtGui.QApplication.UnicodeUTF8))
        self.label_25.setText(QtGui.QApplication.translate("MainWindow", "Data Folder:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_21.setText(QtGui.QApplication.translate("MainWindow", "Files in Directory:", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Grouping Method:", None, QtGui.QApplication.UnicodeUTF8))
        self.xcmsMethodCB.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Select XCMS Processing Method</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.useRetcor_CB.setText(QtGui.QApplication.translate("MainWindow", "Use Retention Time Alignment?", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Parameters:", None, QtGui.QApplication.UnicodeUTF8))
        self.paramTableWidget.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Adjust XCMS Parameters</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.runXCMSBtn.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Make it happen!</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.runXCMSBtn.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "R output:", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "xcms", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("MainWindow", "EIC Index:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Current Folder:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("MainWindow", "m/z Start:", None, QtGui.QApplication.UnicodeUTF8))
        self.mzStartSB.setToolTip(QtGui.QApplication.translate("MainWindow", "Upper bound of the EIC extraction range", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("MainWindow", "m/z Stop:", None, QtGui.QApplication.UnicodeUTF8))
        self.mzStopSB.setToolTip(QtGui.QApplication.translate("MainWindow", "Low bound of the EIC extraction range", None, QtGui.QApplication.UnicodeUTF8))
        self.label_11.setText(QtGui.QApplication.translate("MainWindow", "RT Start:", None, QtGui.QApplication.UnicodeUTF8))
        self.rtWidthSB.setToolTip(QtGui.QApplication.translate("MainWindow", "Retention time window of the EIC", None, QtGui.QApplication.UnicodeUTF8))
        self.label_12.setText(QtGui.QApplication.translate("MainWindow", "RT Stop:", None, QtGui.QApplication.UnicodeUTF8))
        self.rtWidthSB_Stop.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\">Set to -1 for the entire spectrum</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.rtTypeCB.setToolTip(QtGui.QApplication.translate("MainWindow", "Do you want the corrected EIC or the raw values?", None, QtGui.QApplication.UnicodeUTF8))
        self.rtTypeCB.setText(QtGui.QApplication.translate("MainWindow", "Retrieve Corrected EIC?", None, QtGui.QApplication.UnicodeUTF8))
        self.fillPeaks_CB.setToolTip(QtGui.QApplication.translate("MainWindow", "Do you want the corrected EIC or the raw values?", None, QtGui.QApplication.UnicodeUTF8))
        self.fillPeaks_CB.setText(QtGui.QApplication.translate("MainWindow", "Fill Missing Peaks?", None, QtGui.QApplication.UnicodeUTF8))
        self.plotLegendCB.setText(QtGui.QApplication.translate("MainWindow", "Plot Legend?", None, QtGui.QApplication.UnicodeUTF8))
        self.getEICBtn.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Do It!</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
        self.getEICBtn.setText(QtGui.QApplication.translate("MainWindow", "Fetch EIC", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "EIC", None, QtGui.QApplication.UnicodeUTF8))
        self.loadRPY2BatchBtn.setText(QtGui.QApplication.translate("MainWindow", "Load rpy2 Batch Script", None, QtGui.QApplication.UnicodeUTF8))
        self.runBatchBtn.setText(QtGui.QApplication.translate("MainWindow", "Do It!", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), QtGui.QApplication.translate("MainWindow", "Batch Processing", None, QtGui.QApplication.UnicodeUTF8))
        self.killRBtn.setText(QtGui.QApplication.translate("MainWindow", "Kill R Process", None, QtGui.QApplication.UnicodeUTF8))
        self.useMaxMZ_CB.setText(QtGui.QApplication.translate("MainWindow", "Limit Peaks below a certain m/z?", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Maximum m/z Value for XCMS Processing", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QtGui.QApplication.translate("MainWindow", "Options", None, QtGui.QApplication.UnicodeUTF8))
        self.menu_File.setTitle(QtGui.QApplication.translate("MainWindow", "&File", None, QtGui.QApplication.UnicodeUTF8))
        self.menuF_unctions.setTitle(QtGui.QApplication.translate("MainWindow", "F&unctions", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setText(QtGui.QApplication.translate("MainWindow", "&Open", None, QtGui.QApplication.UnicodeUTF8))
        self.action_Open.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_Results_Table.setText(QtGui.QApplication.translate("MainWindow", "Save Results Table", None, QtGui.QApplication.UnicodeUTF8))
        self.actionTest_XCMS.setText(QtGui.QApplication.translate("MainWindow", "Test XCMS", None, QtGui.QApplication.UnicodeUTF8))
        self.actionTest_XCMS.setToolTip(QtGui.QApplication.translate("MainWindow", "Needs faakho package", None, QtGui.QApplication.UnicodeUTF8))
        self.actionTest_XCMS.setWhatsThis(QtGui.QApplication.translate("MainWindow", "Needs faakho package", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_HDF5.setText(QtGui.QApplication.translate("MainWindow", "Save HDF5", None, QtGui.QApplication.UnicodeUTF8))
        self.actionSave_HDF5.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+S", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_HDF5.setText(QtGui.QApplication.translate("MainWindow", "Load HDF5", None, QtGui.QApplication.UnicodeUTF8))
        self.actionLoad_HDF5.setShortcut(QtGui.QApplication.translate("MainWindow", "Ctrl+L", None, QtGui.QApplication.UnicodeUTF8))
        self.actionRun_XCMS.setText(QtGui.QApplication.translate("MainWindow", "Run XCMS", None, QtGui.QApplication.UnicodeUTF8))