Ejemplo n.º 1
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(504, 237)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.spacingSpin = SpinBox(Form)
        self.spacingSpin.setObjectName(_fromUtf8("spacingSpin"))
        self.horizontalLayout.addWidget(self.spacingSpin)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.processBtn = QtGui.QPushButton(Form)
        self.processBtn.setObjectName(_fromUtf8("processBtn"))
        self.gridLayout.addWidget(self.processBtn, 3, 0, 1, 1)
        self.tree = TreeWidget(Form)
        self.tree.setObjectName(_fromUtf8("tree"))
        self.tree.header().setDefaultSectionSize(120)
        self.tree.header().setStretchLastSection(True)
        self.gridLayout.addWidget(self.tree, 2, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 2
0
    def setupUi(self, reagentEditor):
        reagentEditor.setObjectName(_fromUtf8("reagentEditor"))
        reagentEditor.resize(612, 466)
        self.gridLayout = QtGui.QGridLayout(reagentEditor)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.splitter = QtGui.QSplitter(reagentEditor)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.reagentTree = TreeWidget(self.splitter)
        self.reagentTree.setAlternatingRowColors(True)
        self.reagentTree.setVerticalScrollMode(
            QtGui.QAbstractItemView.ScrollPerPixel)
        self.reagentTree.setObjectName(_fromUtf8("reagentTree"))
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        self.reagentNotes = RichTextEdit(self.splitter)
        self.reagentNotes.setObjectName(_fromUtf8("reagentNotes"))
        self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1)

        self.retranslateUi(reagentEditor)
        QtCore.QMetaObject.connectSlotsByName(reagentEditor)
Ejemplo n.º 3
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(504, 237)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.spacingSpin = SpinBox(Form)
        self.spacingSpin.setObjectName(_fromUtf8("spacingSpin"))
        self.horizontalLayout.addWidget(self.spacingSpin)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.processBtn = QtGui.QPushButton(Form)
        self.processBtn.setObjectName(_fromUtf8("processBtn"))
        self.gridLayout.addWidget(self.processBtn, 3, 0, 1, 1)
        self.tree = TreeWidget(Form)
        self.tree.setObjectName(_fromUtf8("tree"))
        self.tree.header().setDefaultSectionSize(120)
        self.tree.header().setStretchLastSection(True)
        self.gridLayout.addWidget(self.tree, 2, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 4
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(400, 300)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.drawBtn = QtGui.QPushButton(Form)
        self.drawBtn.setObjectName(_fromUtf8("drawBtn"))
        self.gridLayout.addWidget(self.drawBtn, 2, 0, 1, 1)
        self.tree = TreeWidget(Form)
        self.tree.setObjectName(_fromUtf8("tree"))
        self.tree.header().setStretchLastSection(False)
        self.gridLayout.addWidget(self.tree, 0, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 5
0
    def setupUi(self, recipeEditor):
        recipeEditor.setObjectName(_fromUtf8("recipeEditor"))
        recipeEditor.resize(720, 442)
        self.gridLayout = QtGui.QGridLayout(recipeEditor)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.showFormulaeCheck = QtGui.QCheckBox(recipeEditor)
        self.showFormulaeCheck.setObjectName(_fromUtf8("showFormulaeCheck"))
        self.horizontalLayout.addWidget(self.showFormulaeCheck)
        self.showMWCheck = QtGui.QCheckBox(recipeEditor)
        self.showMWCheck.setObjectName(_fromUtf8("showMWCheck"))
        self.horizontalLayout.addWidget(self.showMWCheck)
        self.showConcentrationCheck = QtGui.QCheckBox(recipeEditor)
        self.showConcentrationCheck.setObjectName(_fromUtf8("showConcentrationCheck"))
        self.horizontalLayout.addWidget(self.showConcentrationCheck)
        self.copyHtmlBtn = QtGui.QPushButton(recipeEditor)
        self.copyHtmlBtn.setObjectName(_fromUtf8("copyHtmlBtn"))
        self.horizontalLayout.addWidget(self.copyHtmlBtn)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.hsplitter = QtGui.QSplitter(recipeEditor)
        self.hsplitter.setOrientation(QtCore.Qt.Horizontal)
        self.hsplitter.setObjectName(_fromUtf8("hsplitter"))
        self.recipeSetList = TreeWidget(self.hsplitter)
        self.recipeSetList.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.recipeSetList.setHeaderHidden(True)
        self.recipeSetList.setObjectName(_fromUtf8("recipeSetList"))
        self.recipeSetList.headerItem().setText(0, _fromUtf8("1"))
        self.vsplitter = QtGui.QSplitter(self.hsplitter)
        self.vsplitter.setOrientation(QtCore.Qt.Vertical)
        self.vsplitter.setObjectName(_fromUtf8("vsplitter"))
        self.recipeTable = QtGui.QTableWidget(self.vsplitter)
        self.recipeTable.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel)
        self.recipeTable.setObjectName(_fromUtf8("recipeTable"))
        self.recipeTable.setColumnCount(0)
        self.recipeTable.setRowCount(0)
        self.notesTree = TreeWidget(self.vsplitter)
        self.notesTree.setObjectName(_fromUtf8("notesTree"))
        self.gridLayout.addWidget(self.hsplitter, 1, 0, 1, 1)

        self.retranslateUi(recipeEditor)
        QtCore.QMetaObject.connectSlotsByName(recipeEditor)
Ejemplo n.º 6
0
 def selectionChanged(self, *args):
     sel = self.selectedItems()
     if len(sel) != 1:
         sel = None
     if self.lastSel is not None and isinstance(self.lastSel, ParameterItem):
         self.lastSel.selected(False)
     if sel is None:
         self.lastSel = None
         return
     return TreeWidget.selectionChanged(self, *args)
Ejemplo n.º 7
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(400, 300)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.drawBtn = QtGui.QPushButton(Form)
        self.drawBtn.setObjectName(_fromUtf8("drawBtn"))
        self.gridLayout.addWidget(self.drawBtn, 2, 0, 1, 1)
        self.tree = TreeWidget(Form)
        self.tree.setObjectName(_fromUtf8("tree"))
        self.tree.header().setStretchLastSection(False)
        self.gridLayout.addWidget(self.tree, 0, 0, 1, 1)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.drawBtn.setText(_translate("Form", "Draw", None))
        self.tree.headerItem().setText(0, _translate("Form", "Param", None))
        self.tree.headerItem().setText(1, _translate("Form", "Threshold", None))
        self.tree.headerItem().setText(2, _translate("Form", "% of max", None))
        self.tree.headerItem().setText(3, _translate("Form", "Color", None))
        self.tree.headerItem().setText(4, _translate("Form", "Remove", None))
Ejemplo n.º 8
0
    def setupUi(self, solutionEditor):
        solutionEditor.setObjectName(_fromUtf8("solutionEditor"))
        solutionEditor.resize(1139, 667)
        self.gridLayout_2 = QtGui.QGridLayout(solutionEditor)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.splitter_2 = QtGui.QSplitter(solutionEditor)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.splitter = QtGui.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.solutionList = TreeWidget(self.splitter)
        self.solutionList.setVerticalScrollMode(
            QtGui.QAbstractItemView.ScrollPerPixel)
        self.solutionList.setObjectName(_fromUtf8("solutionList"))
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        self.layoutWidget = QtGui.QWidget(self.splitter)
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.layoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.notesText = RichTextEdit(self.layoutWidget)
        self.notesText.setObjectName(_fromUtf8("notesText"))
        self.verticalLayout.addWidget(self.notesText)
        self.layoutWidget1 = QtGui.QWidget(self.splitter_2)
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.solutionTable = TreeWidget(self.layoutWidget1)
        self.solutionTable.setAlternatingRowColors(True)
        self.solutionTable.setVerticalScrollMode(
            QtGui.QAbstractItemView.ScrollPerPixel)
        self.solutionTable.setAllColumnsShowFocus(False)
        self.solutionTable.setObjectName(_fromUtf8("solutionTable"))
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        self.solutionTable.header().setStretchLastSection(False)
        self.verticalLayout_2.addWidget(self.solutionTable)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_4 = QtGui.QLabel(self.layoutWidget1)
        self.label_4.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.reverseTempSpin = QtGui.QSpinBox(self.layoutWidget1)
        self.reverseTempSpin.setProperty("value", 34)
        self.reverseTempSpin.setObjectName(_fromUtf8("reverseTempSpin"))
        self.gridLayout.addWidget(self.reverseTempSpin, 0, 1, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.gridLayout_2.addWidget(self.splitter_2, 0, 0, 1, 1)

        self.retranslateUi(solutionEditor)
        QtCore.QMetaObject.connectSlotsByName(solutionEditor)
Ejemplo n.º 9
0
class Ui_solutionEditor(object):
    def setupUi(self, solutionEditor):
        solutionEditor.setObjectName(_fromUtf8("solutionEditor"))
        solutionEditor.resize(1139, 667)
        self.gridLayout_2 = QtGui.QGridLayout(solutionEditor)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.splitter_2 = QtGui.QSplitter(solutionEditor)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
        self.splitter = QtGui.QSplitter(self.splitter_2)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.solutionList = TreeWidget(self.splitter)
        self.solutionList.setVerticalScrollMode(
            QtGui.QAbstractItemView.ScrollPerPixel)
        self.solutionList.setObjectName(_fromUtf8("solutionList"))
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        item_0 = QtGui.QTreeWidgetItem(self.solutionList)
        self.layoutWidget = QtGui.QWidget(self.splitter)
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.layoutWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.notesText = RichTextEdit(self.layoutWidget)
        self.notesText.setObjectName(_fromUtf8("notesText"))
        self.verticalLayout.addWidget(self.notesText)
        self.layoutWidget1 = QtGui.QWidget(self.splitter_2)
        self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.solutionTable = TreeWidget(self.layoutWidget1)
        self.solutionTable.setAlternatingRowColors(True)
        self.solutionTable.setVerticalScrollMode(
            QtGui.QAbstractItemView.ScrollPerPixel)
        self.solutionTable.setAllColumnsShowFocus(False)
        self.solutionTable.setObjectName(_fromUtf8("solutionTable"))
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        item_0 = QtGui.QTreeWidgetItem(self.solutionTable)
        self.solutionTable.header().setStretchLastSection(False)
        self.verticalLayout_2.addWidget(self.solutionTable)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_4 = QtGui.QLabel(self.layoutWidget1)
        self.label_4.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.reverseTempSpin = QtGui.QSpinBox(self.layoutWidget1)
        self.reverseTempSpin.setProperty("value", 34)
        self.reverseTempSpin.setObjectName(_fromUtf8("reverseTempSpin"))
        self.gridLayout.addWidget(self.reverseTempSpin, 0, 1, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.gridLayout_2.addWidget(self.splitter_2, 0, 0, 1, 1)

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

    def retranslateUi(self, solutionEditor):
        solutionEditor.setWindowTitle(
            _translate("solutionEditor", "Form", None))
        self.solutionList.headerItem().setText(
            0, _translate("solutionEditor", "Solution", None))
        __sortingEnabled = self.solutionList.isSortingEnabled()
        self.solutionList.setSortingEnabled(False)
        self.solutionList.topLevelItem(0).setText(
            0, _translate("solutionEditor", "aCSF - Dissection", None))
        self.solutionList.topLevelItem(1).setText(
            0, _translate("solutionEditor", "aCSF - Holding", None))
        self.solutionList.topLevelItem(2).setText(
            0, _translate("solutionEditor", "aCSF - Recording", None))
        self.solutionList.topLevelItem(3).setText(
            0, _translate("solutionEditor", "Internal", None))
        self.solutionList.topLevelItem(4).setText(
            0, _translate("solutionEditor", "Misc", None))
        self.solutionList.setSortingEnabled(__sortingEnabled)
        self.label.setText(_translate("solutionEditor", "Notes", None))
        __sortingEnabled = self.solutionTable.isSortingEnabled()
        self.solutionTable.setSortingEnabled(False)
        self.solutionTable.topLevelItem(0).setText(
            0, _translate("solutionEditor", "Concentrations (mM)", None))
        self.solutionTable.topLevelItem(1).setText(
            0,
            _translate("solutionEditor", "Ion Concentrations (estimated)",
                       None))
        self.solutionTable.topLevelItem(2).setText(
            0,
            _translate("solutionEditor", "Ion Concentrations (measured)",
                       None))
        self.solutionTable.topLevelItem(3).setText(
            0, _translate("solutionEditor", "Osmolarity (estimated)", None))
        self.solutionTable.topLevelItem(4).setText(
            0, _translate("solutionEditor", "Osmolarity (measured)", None))
        self.solutionTable.topLevelItem(5).setText(
            0, _translate("solutionEditor", "Reversal Potentials", None))
        self.solutionTable.setSortingEnabled(__sortingEnabled)
        self.label_4.setText(
            _translate("solutionEditor", "Reversal temperature", None))
        self.reverseTempSpin.setSuffix(_translate("solutionEditor", "C", None))
Ejemplo n.º 10
0
 def __init__(self, parent=None):
     TreeWidget.__init__(self,parent)
     self.setColumnCount(1)
     self.setHeaderHidden(True)
     self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
     self.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
Ejemplo n.º 11
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(504, 237)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.spacingSpin = SpinBox(Form)
        self.spacingSpin.setObjectName(_fromUtf8("spacingSpin"))
        self.horizontalLayout.addWidget(self.spacingSpin)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.processBtn = QtGui.QPushButton(Form)
        self.processBtn.setObjectName(_fromUtf8("processBtn"))
        self.gridLayout.addWidget(self.processBtn, 3, 0, 1, 1)
        self.tree = TreeWidget(Form)
        self.tree.setObjectName(_fromUtf8("tree"))
        self.tree.header().setDefaultSectionSize(120)
        self.tree.header().setStretchLastSection(True)
        self.gridLayout.addWidget(self.tree, 2, 0, 1, 1)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.label.setText(_translate("Form", "Spacing:", None))
        self.spacingSpin.setToolTip(
            _translate(
                "Form",
                "Spacing of the grid that the map will be projected onto.",
                None))
        self.processBtn.setText(_translate("Form", "Process", None))
        self.tree.headerItem().setText(0, _translate("Form", "Parameter",
                                                     None))
        self.tree.headerItem().setText(1, _translate("Form", "Method", None))
        self.tree.headerItem().setText(2, _translate("Form", "Sigma", None))
        self.tree.headerItem().setText(
            3, _translate("Form", "Interpolation type", None))
        self.tree.headerItem().setText(4, _translate("Form", "Remove", None))
Ejemplo n.º 12
0
class Ui_reagentEditor(object):
    def setupUi(self, reagentEditor):
        reagentEditor.setObjectName(_fromUtf8("reagentEditor"))
        reagentEditor.resize(612, 466)
        self.gridLayout = QtGui.QGridLayout(reagentEditor)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.splitter = QtGui.QSplitter(reagentEditor)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.reagentTree = TreeWidget(self.splitter)
        self.reagentTree.setAlternatingRowColors(True)
        self.reagentTree.setVerticalScrollMode(
            QtGui.QAbstractItemView.ScrollPerPixel)
        self.reagentTree.setObjectName(_fromUtf8("reagentTree"))
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        item_0 = QtGui.QTreeWidgetItem(self.reagentTree)
        self.reagentNotes = RichTextEdit(self.splitter)
        self.reagentNotes.setObjectName(_fromUtf8("reagentNotes"))
        self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1)

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

    def retranslateUi(self, reagentEditor):
        reagentEditor.setWindowTitle(_translate("reagentEditor", "Form", None))
        self.reagentTree.headerItem().setText(
            0, _translate("reagentEditor", "Reagent", None))
        self.reagentTree.headerItem().setText(
            1, _translate("reagentEditor", "Formula", None))
        self.reagentTree.headerItem().setText(
            2, _translate("reagentEditor", "MW (g/mol)", None))
        self.reagentTree.headerItem().setText(
            3, _translate("reagentEditor", "Osmotic const.", None))
        self.reagentTree.headerItem().setText(
            4, _translate("reagentEditor", "Na", None))
        self.reagentTree.headerItem().setText(
            5, _translate("reagentEditor", "K", None))
        self.reagentTree.headerItem().setText(
            6, _translate("reagentEditor", "Cl", None))
        self.reagentTree.headerItem().setText(
            7, _translate("reagentEditor", "Ca", None))
        self.reagentTree.headerItem().setText(
            8, _translate("reagentEditor", "Mg", None))
        self.reagentTree.headerItem().setText(
            9, _translate("reagentEditor", "SO4", None))
        self.reagentTree.headerItem().setText(
            10, _translate("reagentEditor", "PO4", None))
        self.reagentTree.headerItem().setText(
            11, _translate("reagentEditor", "Cs", None))
        __sortingEnabled = self.reagentTree.isSortingEnabled()
        self.reagentTree.setSortingEnabled(False)
        self.reagentTree.topLevelItem(0).setText(
            0, _translate("reagentEditor", "Ions", None))
        self.reagentTree.topLevelItem(1).setText(
            0, _translate("reagentEditor", "pH Buffers", None))
        self.reagentTree.topLevelItem(2).setText(
            0, _translate("reagentEditor", "Metabolites", None))
        self.reagentTree.topLevelItem(3).setText(
            0, _translate("reagentEditor", "Antioxidants", None))
        self.reagentTree.topLevelItem(4).setText(
            0, _translate("reagentEditor", "Toxins", None))
        self.reagentTree.topLevelItem(5).setText(
            0, _translate("reagentEditor", "Markers", None))
        self.reagentTree.setSortingEnabled(__sortingEnabled)
Ejemplo n.º 13
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(504, 237)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setMargin(3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(Form)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.spacingSpin = SpinBox(Form)
        self.spacingSpin.setObjectName(_fromUtf8("spacingSpin"))
        self.horizontalLayout.addWidget(self.spacingSpin)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.processBtn = QtGui.QPushButton(Form)
        self.processBtn.setObjectName(_fromUtf8("processBtn"))
        self.gridLayout.addWidget(self.processBtn, 3, 0, 1, 1)
        self.tree = TreeWidget(Form)
        self.tree.setObjectName(_fromUtf8("tree"))
        self.tree.header().setDefaultSectionSize(120)
        self.tree.header().setStretchLastSection(True)
        self.gridLayout.addWidget(self.tree, 2, 0, 1, 1)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.label.setText(_translate("Form", "Spacing:", None))
        self.spacingSpin.setToolTip(_translate("Form", "Spacing of the grid that the map will be projected onto.", None))
        self.processBtn.setText(_translate("Form", "Process", None))
        self.tree.headerItem().setText(0, _translate("Form", "Parameter", None))
        self.tree.headerItem().setText(1, _translate("Form", "Method", None))
        self.tree.headerItem().setText(2, _translate("Form", "Sigma", None))
        self.tree.headerItem().setText(3, _translate("Form", "Interpolation type", None))
        self.tree.headerItem().setText(4, _translate("Form", "Remove", None))
Ejemplo n.º 14
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(633, 437)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Ignored)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
        Form.setSizePolicy(sizePolicy)
        self.gridLayout_2 = QtGui.QGridLayout(Form)
        self.gridLayout_2.setMargin(3)
        self.gridLayout_2.setSpacing(3)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.splitter = QtGui.QSplitter(Form)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.widget = QtGui.QWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(6)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout = QtGui.QGridLayout(self.widget)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setMargin(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.exportHtmlBtn = QtGui.QPushButton(self.widget)
        self.exportHtmlBtn.setObjectName(_fromUtf8("exportHtmlBtn"))
        self.gridLayout.addWidget(self.exportHtmlBtn, 0, 2, 1, 1)
        self.dirLabel = QtGui.QLabel(self.widget)
        self.dirLabel.setText(_fromUtf8(""))
        self.dirLabel.setObjectName(_fromUtf8("dirLabel"))
        self.gridLayout.addWidget(self.dirLabel, 0, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(148, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 1, 1, 1)
        self.output = QtGui.QTextBrowser(self.widget)
        self.output.setOpenLinks(False)
        self.output.setObjectName(_fromUtf8("output"))
        self.gridLayout.addWidget(self.output, 1, 0, 1, 3)
        self.widget1 = QtGui.QWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widget1.sizePolicy().hasHeightForWidth())
        self.widget1.setSizePolicy(sizePolicy)
        self.widget1.setObjectName(_fromUtf8("widget1"))
        self.verticalLayout = QtGui.QVBoxLayout(self.widget1)
        self.verticalLayout.setSpacing(3)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.filterTree = TreeWidget(self.widget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.filterTree.sizePolicy().hasHeightForWidth())
        self.filterTree.setSizePolicy(sizePolicy)
        self.filterTree.setMinimumSize(QtCore.QSize(210, 0))
        self.filterTree.setMaximumSize(QtCore.QSize(8777205, 16777215))
        self.filterTree.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
        self.filterTree.setProperty("showDropIndicator", False)
        self.filterTree.setDragEnabled(True)
        self.filterTree.setSelectionMode(QtGui.QAbstractItemView.NoSelection)
        self.filterTree.setSelectionBehavior(QtGui.QAbstractItemView.SelectItems)
        self.filterTree.setObjectName(_fromUtf8("filterTree"))
        item_0 = QtGui.QTreeWidgetItem(self.filterTree)
        item_0.setCheckState(0, QtCore.Qt.Unchecked)
        item_0.setFlags(QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        item_0 = QtGui.QTreeWidgetItem(self.filterTree)
        item_0.setCheckState(0, QtCore.Qt.Checked)
        item_0.setFlags(QtCore.Qt.ItemIsDropEnabled|QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_1.setCheckState(0, QtCore.Qt.Checked)
        item_1.setFlags(QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_1.setCheckState(0, QtCore.Qt.Checked)
        item_1.setFlags(QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_1.setCheckState(0, QtCore.Qt.Checked)
        item_1.setFlags(QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_1.setCheckState(0, QtCore.Qt.Checked)
        item_1.setFlags(QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        item_1 = QtGui.QTreeWidgetItem(item_0)
        item_1.setCheckState(0, QtCore.Qt.Checked)
        item_1.setFlags(QtCore.Qt.ItemIsUserCheckable|QtCore.Qt.ItemIsEnabled)
        self.verticalLayout.addWidget(self.filterTree)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_2 = QtGui.QLabel(self.widget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_2.setFont(font)
        self.label_2.setIndent(0)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout.addWidget(self.label_2)
        self.label = QtGui.QLabel(self.widget1)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.label_3 = QtGui.QLabel(self.widget1)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.label_3.setFont(font)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout.addWidget(self.label_3)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.importanceSlider = QtGui.QSlider(self.widget1)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.importanceSlider.sizePolicy().hasHeightForWidth())
        self.importanceSlider.setSizePolicy(sizePolicy)
        self.importanceSlider.setMaximum(9)
        self.importanceSlider.setPageStep(0)
        self.importanceSlider.setProperty("value", 4)
        self.importanceSlider.setTracking(True)
        self.importanceSlider.setOrientation(QtCore.Qt.Horizontal)
        self.importanceSlider.setTickPosition(QtGui.QSlider.TicksAbove)
        self.importanceSlider.setTickInterval(1)
        self.importanceSlider.setObjectName(_fromUtf8("importanceSlider"))
        self.verticalLayout.addWidget(self.importanceSlider)
        self.gridLayout_2.addWidget(self.splitter, 0, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
Ejemplo n.º 15
0
 def __init__(self, parent=None):
     TreeWidget.__init__(self, parent)
     self.setColumnCount(1)
     self.setHeaderHidden(True)
     self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
     self.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)