Exemple #1
0
 def __init__(self, parent=None):
     super(GenericTextBox, self).__init__(parent)
     self._l = QtGui.QHBoxLayout()
     self._textbox = QtGui.QLineEdit()
     self._l.setContentsMargins(2, 2, 2, 2)
     self._l.addWidget(self._textbox)
     self.setLayout(self._l)
Exemple #2
0
    def __init__(self, parent=None):
        super(GlueLogger, self).__init__(parent)
        self._text = QtGui.QTextEdit()
        self._text.setTextInteractionFlags(Qt.TextSelectableByMouse)

        clear = QtGui.QPushButton("Clear")
        clear.clicked.connect(nonpartial(self._clear))

        report = QtGui.QPushButton("Send Bug Report")
        report.clicked.connect(nonpartial(self._send_report))

        self.stderr = sys.stderr
        sys.stderr = self

        self._status = ClickableLabel()
        self._status.setToolTip("View Errors and Warnings")
        self._status.clicked.connect(self._show)
        self._status.setPixmap(status_pixmap())
        self._status.setContentsMargins(0, 0, 0, 0)

        l = QtGui.QVBoxLayout()
        h = QtGui.QHBoxLayout()
        l.setContentsMargins(2, 2, 2, 2)
        l.setSpacing(2)
        h.setContentsMargins(0, 0, 0, 0)

        l.addWidget(self._text)
        h.insertStretch(0)
        h.addWidget(report)
        h.addWidget(clear)
        l.addLayout(h)

        self.setLayout(l)
Exemple #3
0
    def _setup_widget(self):
        w = QtGui.QWidget()
        l = QtGui.QFormLayout()
        w.setLayout(l)

        combo = QtGui.QComboBox()
        combo.addItem("Mean", userData=Aggregate.mean)
        combo.addItem("Median", userData=Aggregate.median)
        combo.addItem("Max", userData=Aggregate.max)
        combo.addItem("Centroid", userData=Aggregate.mom1)
        combo.addItem("Linewidth", userData=Aggregate.mom2)

        run = QtGui.QPushButton("Collapse")
        save = QtGui.QPushButton("Save as FITS file")

        buttons = QtGui.QHBoxLayout()
        buttons.addWidget(run)
        buttons.addWidget(save)

        self._save = save
        self._run = run

        l.addRow("", combo)
        l.addRow("", buttons)

        self.widget = w
        self._combo = combo
        self._agg = None
Exemple #4
0
    def __init__(self, parent=None):
        super(LinkEquation, self).__init__(parent)
        from glue.config import link_function, link_helper

        # Set up mapping of function/helper name -> function/helper tuple. For the helpers, we use the 'display' name if available.
        def get_name(item):
            if hasattr(item, 'display') and item.display is not None:
                return item.display
            else:
                return item.__name__

        f = [f for f in link_function.members if len(f.output_labels) == 1]
        self._functions = OrderedDict(
            (get_name(l[0]), l) for l in f + link_helper.members)
        self._argument_widgets = []
        self.spacer = None
        self._output_widget = ArgumentWidget("")

        # pyqt4 can't take self as second argument here
        # for some reason. Manually embed
        self._ui = load_ui('link_equation.ui',
                           None,
                           directory=os.path.dirname(__file__))
        l = QtGui.QHBoxLayout()
        l.addWidget(self._ui)
        self.setLayout(l)

        self._init_widgets()
        self._populate_function_combo()
        self._connect()
        self._setup_editor()
Exemple #5
0
    def __init__(self, min, max, default=None, parent=None):
        """
        :param min: Minimum slider value
        :param max: Maximum slider value
        :param default: Initial value
        :param parent: Widget parent
        """
        super(LabeledSlider, self).__init__(parent)
        self._slider = QtGui.QSlider()
        self._slider.setMinimum(0)
        self._slider.setMaximum(100)
        self._slider.setOrientation(Qt.Horizontal)

        self._min = min
        self._ptp = (max - min)
        self._isint = (isinstance(min, int) and
                       isinstance(max, int) and
                       isinstance(default, (int, type(None))))

        if default is None:
            default = (min + max) / 2

        self.set_value(default)

        # setup layout
        self._lbl = QtGui.QLabel(str(self.value()))
        self._l = QtGui.QHBoxLayout()
        self._l.setContentsMargins(2, 2, 2, 2)
        self._l.addWidget(self._slider)
        self._l.addWidget(self._lbl)
        self.setLayout(self._l)

        # connect signals
        self._slider.valueChanged.connect(lambda x: self._lbl.setText(str(self.value())))
Exemple #6
0
    def __init__(self, label='', pix2world=None, lo=0, hi=10,
                 parent=None, aggregation=None):
        super(SliceWidget, self).__init__(parent)
        if aggregation is not None:
            raise NotImplemented("Aggregation option not implemented")
        if pix2world is not None:
            raise NotImplemented("Pix2world option not implemented")

        layout = QtGui.QVBoxLayout()
        layout.setContentsMargins(3, 1, 3, 1)
        layout.setSpacing(0)

        top = QtGui.QHBoxLayout()
        top.setContentsMargins(3, 3, 3, 3)
        label = QtGui.QLabel(label)
        top.addWidget(label)

        mode = QtGui.QComboBox()
        mode.addItem('x', 'x')
        mode.addItem('y', 'y')
        mode.addItem('slice', 'slice')
        mode.currentIndexChanged.connect(lambda x:
                                         self.mode_changed.emit(self.mode))
        mode.currentIndexChanged.connect(self._update_mode)
        top.addWidget(mode)

        layout.addLayout(top)

        slider = load_ui('data_slice_widget.ui', None,
                         directory=os.path.dirname(__file__))
        slider.slider

        slider.slider.setMinimum(lo)
        slider.slider.setMaximum(hi)
        slider.slider.setValue((lo + hi) / 2)
        slider.slider.valueChanged.connect(lambda x:
                                           self.slice_changed.emit(self.mode))
        slider.slider.valueChanged.connect(lambda x: slider.label.setText(str(x)))

        slider.label.setMinimumWidth(50)
        slider.label.setText(str(slider.slider.value()))
        slider.label.textChanged.connect(lambda x: slider.slider.setValue(int(x)))

        slider.first.clicked.connect(nonpartial(self._browse_slice, 'first'))
        slider.prev.clicked.connect(nonpartial(self._browse_slice, 'prev'))
        slider.next.clicked.connect(nonpartial(self._browse_slice, 'next'))
        slider.last.clicked.connect(nonpartial(self._browse_slice, 'last'))

        layout.addWidget(slider)

        self.setLayout(layout)

        self._ui_label = label
        self._ui_slider = slider
        self._ui_mode = mode
        self._update_mode()
        self._frozen = False
Exemple #7
0
    def setupUi(self, MessageWidget):
        MessageWidget.setObjectName("MessageWidget")
        MessageWidget.resize(700, 400)
        self.horizontalLayout = QtGui.QHBoxLayout(MessageWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.messageTable = QtGui.QTableWidget(MessageWidget)
        self.messageTable.setObjectName("messageTable")
        self.messageTable.setColumnCount(0)
        self.messageTable.setRowCount(0)
        self.horizontalLayout.addWidget(self.messageTable)

        self.retranslateUi(MessageWidget)
        QtCore.QMetaObject.connectSlotsByName(MessageWidget)
Exemple #8
0
    def _build_main_widget(self):
        self.widget = SpectrumMainWindow()
        self.widget.window_closed.connect(self.reset)

        w = QtGui.QWidget()
        l = QtGui.QHBoxLayout()
        l.setSpacing(2)
        l.setContentsMargins(2, 2, 2, 2)
        w.setLayout(l)

        mpl = MplWidget()
        self.canvas = mpl.canvas
        l.addWidget(mpl)
        l.setStretchFactor(mpl, 5)

        self.widget.setCentralWidget(w)
Exemple #9
0
 def __init__(self, argument, parent=None):
     super(ArgumentWidget, self).__init__(parent)
     self.layout = QtGui.QHBoxLayout()
     self.layout.setContentsMargins(1, 0, 1, 1)
     self.setLayout(self.layout)
     label = QtGui.QLabel(argument)
     self._label = label
     self._component_id = None
     self.layout.addWidget(label)
     self.editor = QtGui.QLineEdit()
     self.editor.setReadOnly(True)
     try:
         self.editor.setPlaceholderText("Drag a component from above")
     except AttributeError:  # feature added in Qt 4.7
         pass
     self.layout.addWidget(self.editor)
     self.setAcceptDrops(True)
Exemple #10
0
    def setupUi(self, SubsetLinkerDialog):
        SubsetLinkerDialog.setObjectName("SubsetLinkerDialog")
        SubsetLinkerDialog.setWindowModality(QtCore.Qt.WindowModal)
        SubsetLinkerDialog.resize(319, 339)
        SubsetLinkerDialog.setModal(True)
        self.verticalLayout_2 = QtGui.QVBoxLayout(SubsetLinkerDialog)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtGui.QLabel(SubsetLinkerDialog)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.layerTree = QtGui.QTreeWidget(SubsetLinkerDialog)
        self.layerTree.setObjectName("layerTree")
        self.verticalLayout.addWidget(self.layerTree)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.cancelButton = QtGui.QPushButton(SubsetLinkerDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.horizontalLayout.addWidget(self.cancelButton)
        self.okButton = QtGui.QPushButton(SubsetLinkerDialog)
        self.okButton.setEnabled(False)
        self.okButton.setDefault(False)
        self.okButton.setFlat(False)
        self.okButton.setObjectName("okButton")
        self.horizontalLayout.addWidget(self.okButton)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(SubsetLinkerDialog)
        QtCore.QMetaObject.connectSlotsByName(SubsetLinkerDialog)
        SubsetLinkerDialog.setTabOrder(self.layerTree, self.cancelButton)
        SubsetLinkerDialog.setTabOrder(self.cancelButton, self.okButton)
Exemple #11
0
    def setupUi(self, ImageWidget):
        ImageWidget.setObjectName("ImageWidget")
        ImageWidget.resize(296, 217)
        ImageWidget.setBaseSize(QtCore.QSize(555, 500))
        ImageWidget.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.verticalLayout_2 = QtGui.QVBoxLayout(ImageWidget)
        self.verticalLayout_2.setContentsMargins(4, 4, 4, 4)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.option_dashboard = QtGui.QWidget(ImageWidget)
        self.option_dashboard.setObjectName("option_dashboard")
        self.verticalLayout = QtGui.QVBoxLayout(self.option_dashboard)
        self.verticalLayout.setContentsMargins(0, 0, 0, 10)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtGui.QLabel(self.option_dashboard)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.displayDataCombo = GlueComboBox(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.displayDataCombo.sizePolicy().hasHeightForWidth())
        self.displayDataCombo.setSizePolicy(sizePolicy)
        self.displayDataCombo.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.displayDataCombo.setObjectName("displayDataCombo")
        self.horizontalLayout.addWidget(self.displayDataCombo)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtGui.QLabel(self.option_dashboard)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.attributeComboBox = GlueComboBox(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.attributeComboBox.sizePolicy().hasHeightForWidth())
        self.attributeComboBox.setSizePolicy(sizePolicy)
        self.attributeComboBox.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.attributeComboBox.setObjectName("attributeComboBox")
        self.horizontalLayout_2.addWidget(self.attributeComboBox)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(2)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.orientationLabel = QtGui.QLabel(self.option_dashboard)
        self.orientationLabel.setEnabled(True)
        self.orientationLabel.setObjectName("orientationLabel")
        self.horizontalLayout_3.addWidget(self.orientationLabel)
        self.sliceComboBox = GlueComboBox(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sliceComboBox.sizePolicy().hasHeightForWidth())
        self.sliceComboBox.setSizePolicy(sizePolicy)
        self.sliceComboBox.setObjectName("sliceComboBox")
        self.horizontalLayout_3.addWidget(self.sliceComboBox)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.imageSlider = QtGui.QSlider(self.option_dashboard)
        self.imageSlider.setEnabled(True)
        self.imageSlider.setOrientation(QtCore.Qt.Horizontal)
        self.imageSlider.setInvertedAppearance(False)
        self.imageSlider.setInvertedControls(True)
        self.imageSlider.setTickPosition(QtGui.QSlider.NoTicks)
        self.imageSlider.setTickInterval(0)
        self.imageSlider.setObjectName("imageSlider")
        self.verticalLayout.addWidget(self.imageSlider)
        spacerItem = QtGui.QSpacerItem(5, 59, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.verticalLayout_2.addWidget(self.option_dashboard)
        self.verticalLayout_2.setStretch(0, 1)

        self.retranslateUi(ImageWidget)
        QtCore.QMetaObject.connectSlotsByName(ImageWidget)
Exemple #12
0
    def setupUi(self, LayerTree):
        font = QtGui.QFont()
        font.setPointSize(11)

        LayerTree.setObjectName("LayerTree")
        LayerTree.resize(241, 282)

        self.layout = QtGui.QVBoxLayout(LayerTree)
        self.layout.setSpacing(2)
        self.layout.setContentsMargins(5, 5, 5, 0)
        self.layout.setObjectName("layout")

        self.layerTree = DataCollectionView(LayerTree)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(
            self.layerTree.sizePolicy().hasHeightForWidth())
        self.layerTree.setSizePolicy(sizePolicy)
        self.layerTree.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.layerTree.setObjectName("layerTree")
        self.layout.addWidget(self.layerTree)

        self.button_row = QtGui.QHBoxLayout()
        self.button_row.setSpacing(3)
        self.button_row.setObjectName("button_row")

        self.layerAddButton = QtGui.QPushButton(LayerTree)
        self.layerAddButton.setFont(font)
        icon = get_icon('glue_open')
        self.layerAddButton.setIcon(icon)
        self.layerAddButton.setIconSize(QtCore.QSize(18, 18))
        self.layerAddButton.setDefault(False)
        self.layerAddButton.setObjectName("layerAddButton")

        self.button_row.addWidget(self.layerAddButton)
        self.newSubsetButton = GlueActionButton(LayerTree)
        self.newSubsetButton.setIcon(get_icon('glue_subset'))
        self.newSubsetButton.setIconSize(QtCore.QSize(19, 19))
        self.newSubsetButton.setObjectName("newSubsetButton")
        self.button_row.addWidget(self.newSubsetButton)
        self.newSubsetButton.setFont(font)

        self.layerRemoveButton = QtGui.QPushButton(LayerTree)
        self.layerRemoveButton.setEnabled(False)
        self.layerRemoveButton.setIcon(get_icon('glue_delete'))
        self.layerRemoveButton.setObjectName("layerRemoveButton")
        self.layerRemoveButton.setFont(font)
        self.button_row.addWidget(self.layerRemoveButton)

        self.linkButton = GlueActionButton(LayerTree)
        self.linkButton.setEnabled(True)
        self.linkButton.setIcon(get_icon('glue_link'))
        self.linkButton.setObjectName("linkButton")
        self.linkButton.setFont(font)
        self.button_row.addWidget(self.linkButton)

        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.button_row.addItem(spacerItem)
        self.layout.addLayout(self.button_row)

        self.retranslateUi(LayerTree)
        QtCore.QMetaObject.connectSlotsByName(LayerTree)
from viewer import ScatterViewer

data = Data(x=[1, 2, 3], y=[1, 3, 2])
dc = DataCollection([data])

app = get_qapp()

session = Session(application=app, data_collection=dc)

viewer = ScatterViewer(session)

window = QtGui.QWidget()

viewer.add_data(data)

vlayout = QtGui.QVBoxLayout()
vlayout.addWidget(viewer._layer_artist_container[0].style_editor)
vlayout.addWidget(viewer.options_widget())
vwidget = QtGui.QWidget()
vwidget.setLayout(vlayout)

hlayout = QtGui.QHBoxLayout()
hlayout.addWidget(vwidget)
hlayout.addWidget(viewer)

window.setLayout(hlayout)

window.show()

app.exec_()
Exemple #14
0
    def setupUi(self, LinkEquation):
        LinkEquation.setObjectName("LinkEquation")
        LinkEquation.resize(466, 605)
        self.horizontalLayout_4 = QtGui.QHBoxLayout(LinkEquation)
        self.horizontalLayout_4.setContentsMargins(4, 4, 4, 4)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.top_label = QtGui.QLabel(LinkEquation)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setWeight(50)
        font.setBold(False)
        self.top_label.setFont(font)
        self.top_label.setScaledContents(False)
        self.top_label.setAlignment(QtCore.Qt.AlignCenter)
        self.top_label.setObjectName("top_label")
        self.verticalLayout.addWidget(self.top_label)
        self.function = QtGui.QComboBox(LinkEquation)
        self.function.setObjectName("function")
        self.verticalLayout.addWidget(self.function)
        self.info = QtGui.QLabel(LinkEquation)
        font = QtGui.QFont()
        font.setPointSize(18)
        self.info.setFont(font)
        self.info.setAlignment(QtCore.Qt.AlignCenter)
        self.info.setObjectName("info")
        self.verticalLayout.addWidget(self.info)
        self.help_txt = QtGui.QLabel(LinkEquation)
        font = QtGui.QFont()
        font.setFamily("Helvetica")
        font.setPointSize(12)
        font.setItalic(True)
        self.help_txt.setFont(font)
        self.help_txt.setAlignment(QtCore.Qt.AlignCenter)
        self.help_txt.setMargin(0)
        self.help_txt.setObjectName("help_txt")
        self.verticalLayout.addWidget(self.help_txt)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.input_label = QtGui.QLabel(LinkEquation)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setWeight(75)
        font.setBold(True)
        self.input_label.setFont(font)
        self.input_label.setAlignment(QtCore.Qt.AlignLeading
                                      | QtCore.Qt.AlignLeft
                                      | QtCore.Qt.AlignTop)
        self.input_label.setObjectName("input_label")
        self.horizontalLayout.addWidget(self.input_label)
        self.input_canvas = QtGui.QWidget(LinkEquation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.input_canvas.sizePolicy().hasHeightForWidth())
        self.input_canvas.setSizePolicy(sizePolicy)
        self.input_canvas.setMinimumSize(QtCore.QSize(0, 0))
        self.input_canvas.setObjectName("input_canvas")
        self.horizontalLayout.addWidget(self.input_canvas)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.output_label = QtGui.QLabel(LinkEquation)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setWeight(75)
        font.setBold(True)
        self.output_label.setFont(font)
        self.output_label.setAlignment(QtCore.Qt.AlignLeading
                                       | QtCore.Qt.AlignLeft
                                       | QtCore.Qt.AlignTop)
        self.output_label.setObjectName("output_label")
        self.horizontalLayout_2.addWidget(self.output_label)
        self.output_canvas = QtGui.QWidget(LinkEquation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.output_canvas.sizePolicy().hasHeightForWidth())
        self.output_canvas.setSizePolicy(sizePolicy)
        self.output_canvas.setMinimumSize(QtCore.QSize(0, 0))
        self.output_canvas.setObjectName("output_canvas")
        self.horizontalLayout_2.addWidget(self.output_canvas)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.addButton = QtGui.QPushButton(LinkEquation)
        self.addButton.setObjectName("addButton")
        self.horizontalLayout_3.addWidget(self.addButton)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.verticalLayout.setStretch(4, 8)
        self.verticalLayout.setStretch(5, 8)
        self.horizontalLayout_4.addLayout(self.verticalLayout)

        self.retranslateUi(LinkEquation)
        QtCore.QMetaObject.connectSlotsByName(LinkEquation)
Exemple #15
0
    def setupUi(self, CustomComponentWidget):
        CustomComponentWidget.setObjectName("CustomComponentWidget")
        CustomComponentWidget.resize(804, 585)
        self.horizontalLayout_4 = QtGui.QHBoxLayout(CustomComponentWidget)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label = QtGui.QLabel(CustomComponentWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout_2.addWidget(self.label)
        self.component_list = QtGui.QListWidget(CustomComponentWidget)
        self.component_list.setDefaultDropAction(QtCore.Qt.IgnoreAction)
        self.component_list.setObjectName("component_list")
        self.verticalLayout_2.addWidget(self.component_list)
        self.verticalLayout_2.setStretch(0, 5)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_2 = QtGui.QLabel(CustomComponentWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.data_list = QtGui.QListWidget(CustomComponentWidget)
        self.data_list.setObjectName("data_list")
        self.verticalLayout.addWidget(self.data_list)
        self.verticalLayout.setStretch(0, 5)
        self.verticalLayout.setStretch(1, 1)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.horizontalLayout.setStretch(0, 1)
        self.horizontalLayout.setStretch(1, 1)
        self.verticalLayout_5.addLayout(self.horizontalLayout)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.label_3 = QtGui.QLabel(CustomComponentWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_3.addWidget(self.label_3)
        self.expression = QtGui.QLineEdit(CustomComponentWidget)
        self.expression.setAlignment(QtCore.Qt.AlignCenter)
        self.expression.setObjectName("expression")
        self.verticalLayout_3.addWidget(self.expression)
        self.verticalLayout_5.addLayout(self.verticalLayout_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_4 = QtGui.QLabel(CustomComponentWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_4.addWidget(self.label_4)
        self.new_label = QtGui.QLineEdit(CustomComponentWidget)
        self.new_label.setObjectName("new_label")
        self.verticalLayout_4.addWidget(self.new_label)
        self.verticalLayout_4.setStretch(0, 5)
        self.verticalLayout_4.setStretch(1, 1)
        self.horizontalLayout_2.addLayout(self.verticalLayout_4)
        self.buttonBox = QtGui.QDialogButtonBox(CustomComponentWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonBox.sizePolicy().hasHeightForWidth())
        self.buttonBox.setSizePolicy(sizePolicy)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.horizontalLayout_2.addWidget(self.buttonBox)
        self.horizontalLayout_2.setStretch(0, 10)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        self.verticalLayout_5.setStretch(0, 5)
        self.verticalLayout_5.setStretch(1, 1)
        self.verticalLayout_5.setStretch(2, 1)
        self.horizontalLayout_4.addLayout(self.verticalLayout_5)

        self.retranslateUi(CustomComponentWidget)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                               CustomComponentWidget.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"),
                               CustomComponentWidget.reject)
        QtCore.QMetaObject.connectSlotsByName(CustomComponentWidget)
    def setupUi(self, HistogramWidget):
        HistogramWidget.setObjectName("HistogramWidget")
        HistogramWidget.resize(240, 207)
        HistogramWidget.setFocusPolicy(QtCore.Qt.StrongFocus)
        HistogramWidget.setStyleSheet("")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(HistogramWidget)
        self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setContentsMargins(-1, -1, -1, 10)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.option_dashboard = QtGui.QWidget(HistogramWidget)
        self.option_dashboard.setObjectName("option_dashboard")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.option_dashboard)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(3)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.combo_layout = QtGui.QHBoxLayout()
        self.combo_layout.setSpacing(1)
        self.combo_layout.setObjectName("combo_layout")
        self.attribute_layout = QtGui.QVBoxLayout()
        self.attribute_layout.setSpacing(1)
        self.attribute_layout.setObjectName("attribute_layout")
        self.label_4 = QtGui.QLabel(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.attribute_layout.addWidget(self.label_4)
        self.attributeCombo = QtGui.QComboBox(self.option_dashboard)
        self.attributeCombo.setSizeAdjustPolicy(
            QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.attributeCombo.setObjectName("attributeCombo")
        self.attribute_layout.addWidget(self.attributeCombo)
        self.combo_layout.addLayout(self.attribute_layout)
        self.verticalLayout_3.addLayout(self.combo_layout)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.binSpinBox = QtGui.QDoubleSpinBox(self.option_dashboard)
        self.binSpinBox.setKeyboardTracking(False)
        self.binSpinBox.setDecimals(0)
        self.binSpinBox.setMinimum(1.0)
        self.binSpinBox.setMaximum(100000.0)
        self.binSpinBox.setSingleStep(3.0)
        self.binSpinBox.setProperty("value", 10.0)
        self.binSpinBox.setObjectName("binSpinBox")
        self.horizontalLayout_5.addWidget(self.binSpinBox)
        self.label = QtGui.QLabel(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.horizontalLayout_5.addWidget(self.label)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(-1, 2, -1, 2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_2 = QtGui.QLabel(self.option_dashboard)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2)
        self.xmin = QtGui.QLineEdit(self.option_dashboard)
        self.xmin.setMaxLength(18)
        self.xmin.setObjectName("xmin")
        self.horizontalLayout_3.addWidget(self.xmin)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_5 = QtGui.QLabel(self.option_dashboard)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_2.addWidget(self.label_5)
        self.xmax = QtGui.QLineEdit(self.option_dashboard)
        self.xmax.setMaxLength(18)
        self.xmax.setObjectName("xmax")
        self.horizontalLayout_2.addWidget(self.xmax)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.normalized_box = QtGui.QCheckBox(self.option_dashboard)
        self.normalized_box.setObjectName("normalized_box")
        self.verticalLayout.addWidget(self.normalized_box)
        self.autoscale_box = QtGui.QCheckBox(self.option_dashboard)
        self.autoscale_box.setChecked(True)
        self.autoscale_box.setObjectName("autoscale_box")
        self.verticalLayout.addWidget(self.autoscale_box)
        self.cumulative_box = QtGui.QCheckBox(self.option_dashboard)
        self.cumulative_box.setObjectName("cumulative_box")
        self.verticalLayout.addWidget(self.cumulative_box)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.xlog_box = QtGui.QCheckBox(self.option_dashboard)
        self.xlog_box.setObjectName("xlog_box")
        self.verticalLayout_2.addWidget(self.xlog_box)
        self.ylog_box = QtGui.QCheckBox(self.option_dashboard)
        self.ylog_box.setObjectName("ylog_box")
        self.verticalLayout_2.addWidget(self.ylog_box)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_4.addLayout(self.verticalLayout_3)
        self.verticalLayout_5.addWidget(self.option_dashboard)
        self.horizontalLayout_6.addLayout(self.verticalLayout_5)

        self.retranslateUi(HistogramWidget)
        QtCore.QMetaObject.connectSlotsByName(HistogramWidget)
Exemple #17
0
    def setupUi(self, ScatterWidget):
        ScatterWidget.setObjectName("ScatterWidget")
        ScatterWidget.resize(300, 349)
        ScatterWidget.setBaseSize(QtCore.QSize(555, 500))
        ScatterWidget.setFocusPolicy(QtCore.Qt.StrongFocus)
        ScatterWidget.setStyleSheet("")
        self.horizontalLayout = QtGui.QHBoxLayout(ScatterWidget)
        self.horizontalLayout.setContentsMargins(3, 2, 2, 4)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.option_dashboard = QtGui.QWidget(ScatterWidget)
        self.option_dashboard.setObjectName("option_dashboard")
        self.verticalLayout = QtGui.QVBoxLayout(self.option_dashboard)
        self.verticalLayout.setSpacing(4)
        self.verticalLayout.setContentsMargins(0, 0, 0, 10)
        self.verticalLayout.setObjectName("verticalLayout")
        self.xAxisLayout = QtGui.QHBoxLayout()
        self.xAxisLayout.setSpacing(8)
        self.xAxisLayout.setContentsMargins(0, 0, 0, 0)
        self.xAxisLayout.setObjectName("xAxisLayout")
        self.xlabel = QtGui.QLabel(self.option_dashboard)
        self.xlabel.setObjectName("xlabel")
        self.xAxisLayout.addWidget(self.xlabel)
        self.xAxisComboBox = QtGui.QComboBox(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.xAxisComboBox.sizePolicy().hasHeightForWidth())
        self.xAxisComboBox.setSizePolicy(sizePolicy)
        self.xAxisComboBox.setSizeAdjustPolicy(
            QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.xAxisComboBox.setObjectName("xAxisComboBox")
        self.xAxisLayout.addWidget(self.xAxisComboBox)
        self.xLogCheckBox = QtGui.QCheckBox(self.option_dashboard)
        self.xLogCheckBox.setObjectName("xLogCheckBox")
        self.xAxisLayout.addWidget(self.xLogCheckBox)
        self.xFlipCheckBox = QtGui.QCheckBox(self.option_dashboard)
        self.xFlipCheckBox.setObjectName("xFlipCheckBox")
        self.xAxisLayout.addWidget(self.xFlipCheckBox)
        self.xAxisLayout.setStretch(1, 4)
        self.verticalLayout.addLayout(self.xAxisLayout)
        self.yAxisLayout = QtGui.QHBoxLayout()
        self.yAxisLayout.setSpacing(8)
        self.yAxisLayout.setObjectName("yAxisLayout")
        self.ylabel = QtGui.QLabel(self.option_dashboard)
        self.ylabel.setObjectName("ylabel")
        self.yAxisLayout.addWidget(self.ylabel)
        self.yAxisComboBox = QtGui.QComboBox(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.yAxisComboBox.sizePolicy().hasHeightForWidth())
        self.yAxisComboBox.setSizePolicy(sizePolicy)
        self.yAxisComboBox.setSizeAdjustPolicy(
            QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.yAxisComboBox.setObjectName("yAxisComboBox")
        self.yAxisLayout.addWidget(self.yAxisComboBox)
        self.yLogCheckBox = QtGui.QCheckBox(self.option_dashboard)
        self.yLogCheckBox.setObjectName("yLogCheckBox")
        self.yAxisLayout.addWidget(self.yLogCheckBox)
        self.yFlipCheckBox = QtGui.QCheckBox(self.option_dashboard)
        self.yFlipCheckBox.setObjectName("yFlipCheckBox")
        self.yAxisLayout.addWidget(self.yFlipCheckBox)
        self.yAxisLayout.setStretch(1, 4)
        self.verticalLayout.addLayout(self.yAxisLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.snapLimits = QtGui.QPushButton(self.option_dashboard)
        self.snapLimits.setObjectName("snapLimits")
        self.horizontalLayout_3.addWidget(self.snapLimits)
        self.swapAxes = QtGui.QPushButton(self.option_dashboard)
        self.swapAxes.setObjectName("swapAxes")
        self.horizontalLayout_3.addWidget(self.swapAxes)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.hidden_attributes = QtGui.QCheckBox(self.option_dashboard)
        self.hidden_attributes.setObjectName("hidden_attributes")
        self.verticalLayout.addWidget(self.hidden_attributes)
        self.line = QtGui.QFrame(self.option_dashboard)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setLineWidth(2)
        self.line.setMidLineWidth(0)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.label = QtGui.QLabel(self.option_dashboard)
        self.label.setFrameShape(QtGui.QFrame.NoFrame)
        self.label.setFrameShadow(QtGui.QFrame.Sunken)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.xmin_label = QtGui.QLabel(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.xmin_label.sizePolicy().hasHeightForWidth())
        self.xmin_label.setSizePolicy(sizePolicy)
        self.xmin_label.setMinimumSize(QtCore.QSize(40, 0))
        self.xmin_label.setObjectName("xmin_label")
        self.horizontalLayout_4.addWidget(self.xmin_label)
        self.xmin = QtGui.QLineEdit(self.option_dashboard)
        self.xmin.setObjectName("xmin")
        self.horizontalLayout_4.addWidget(self.xmin)
        self.xmax_label = QtGui.QLabel(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.xmax_label.sizePolicy().hasHeightForWidth())
        self.xmax_label.setSizePolicy(sizePolicy)
        self.xmax_label.setMinimumSize(QtCore.QSize(40, 0))
        self.xmax_label.setObjectName("xmax_label")
        self.horizontalLayout_4.addWidget(self.xmax_label)
        self.xmax = QtGui.QLineEdit(self.option_dashboard)
        self.xmax.setObjectName("xmax")
        self.horizontalLayout_4.addWidget(self.xmax)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.ymin_label = QtGui.QLabel(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ymin_label.sizePolicy().hasHeightForWidth())
        self.ymin_label.setSizePolicy(sizePolicy)
        self.ymin_label.setMinimumSize(QtCore.QSize(40, 0))
        self.ymin_label.setObjectName("ymin_label")
        self.horizontalLayout_5.addWidget(self.ymin_label)
        self.ymin = QtGui.QLineEdit(self.option_dashboard)
        self.ymin.setObjectName("ymin")
        self.horizontalLayout_5.addWidget(self.ymin)
        self.ymax_label = QtGui.QLabel(self.option_dashboard)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ymax_label.sizePolicy().hasHeightForWidth())
        self.ymax_label.setSizePolicy(sizePolicy)
        self.ymax_label.setMinimumSize(QtCore.QSize(40, 0))
        self.ymax_label.setObjectName("ymax_label")
        self.horizontalLayout_5.addWidget(self.ymax_label)
        self.ymax = QtGui.QLineEdit(self.option_dashboard)
        self.ymax.setObjectName("ymax")
        self.horizontalLayout_5.addWidget(self.ymax)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        spacerItem = QtGui.QSpacerItem(1, 1, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout.addWidget(self.option_dashboard)

        self.retranslateUi(ScatterWidget)
        QtCore.QMetaObject.connectSlotsByName(ScatterWidget)
Exemple #18
0
    def setupUi(self, LayerTree):
        LayerTree.setObjectName("LayerTree")
        LayerTree.resize(241, 282)
        self.verticalLayout_2 = QtGui.QVBoxLayout(LayerTree)
        self.verticalLayout_2.setSpacing(5)
        self.verticalLayout_2.setContentsMargins(5, 5, 5, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(2)
        self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.layerTree = DataCollectionView(LayerTree)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(10)
        sizePolicy.setHeightForWidth(
            self.layerTree.sizePolicy().hasHeightForWidth())
        self.layerTree.setSizePolicy(sizePolicy)
        self.layerTree.setMinimumSize(QtCore.QSize(0, 0))
        self.layerTree.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.layerTree.setBaseSize(QtCore.QSize(0, 0))
        self.layerTree.setSelectionMode(
            QtGui.QAbstractItemView.ExtendedSelection)
        self.layerTree.setObjectName("layerTree")
        self.verticalLayout.addWidget(self.layerTree)
        self.button_row = QtGui.QHBoxLayout()
        self.button_row.setSpacing(3)
        self.button_row.setObjectName("button_row")
        self.layerAddButton = QtGui.QPushButton(LayerTree)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.layerAddButton.setFont(font)
        self.layerAddButton.setStatusTip("")
        self.layerAddButton.setWhatsThis("")
        self.layerAddButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/glue_open.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.layerAddButton.setIcon(icon)
        self.layerAddButton.setIconSize(QtCore.QSize(18, 18))
        self.layerAddButton.setDefault(False)
        self.layerAddButton.setFlat(False)
        self.layerAddButton.setObjectName("layerAddButton")
        self.button_row.addWidget(self.layerAddButton)
        self.newSubsetButton = GlueActionButton(LayerTree)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.newSubsetButton.setFont(font)
        self.newSubsetButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/glue_subset.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.newSubsetButton.setIcon(icon1)
        self.newSubsetButton.setIconSize(QtCore.QSize(19, 19))
        self.newSubsetButton.setObjectName("newSubsetButton")
        self.button_row.addWidget(self.newSubsetButton)
        self.layerRemoveButton = QtGui.QPushButton(LayerTree)
        self.layerRemoveButton.setEnabled(False)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.layerRemoveButton.setFont(font)
        self.layerRemoveButton.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/glue_delete.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.layerRemoveButton.setIcon(icon2)
        self.layerRemoveButton.setObjectName("layerRemoveButton")
        self.button_row.addWidget(self.layerRemoveButton)
        self.linkButton = GlueActionButton(LayerTree)
        self.linkButton.setEnabled(True)
        font = QtGui.QFont()
        font.setPointSize(11)
        self.linkButton.setFont(font)
        self.linkButton.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/glue_link.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.linkButton.setIcon(icon3)
        self.linkButton.setObjectName("linkButton")
        self.button_row.addWidget(self.linkButton)
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.button_row.addItem(spacerItem)
        self.verticalLayout.addLayout(self.button_row)
        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(LayerTree)
        QtCore.QMetaObject.connectSlotsByName(LayerTree)
Exemple #19
0
    def setupUi(self, LinkEditor):
        LinkEditor.setObjectName("LinkEditor")
        LinkEditor.resize(854, 507)
        LinkEditor.setSizeGripEnabled(False)
        self.horizontalLayout_6 = QtGui.QHBoxLayout(LinkEditor)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.left_components = ComponentSelector(LinkEditor)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.left_components.sizePolicy().hasHeightForWidth())
        self.left_components.setSizePolicy(sizePolicy)
        self.left_components.setMinimumSize(QtCore.QSize(200, 0))
        self.left_components.setObjectName("left_components")
        self.horizontalLayout_3.addWidget(self.left_components)
        self.right_components = ComponentSelector(LinkEditor)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.right_components.sizePolicy().hasHeightForWidth())
        self.right_components.setSizePolicy(sizePolicy)
        self.right_components.setMinimumSize(QtCore.QSize(200, 0))
        self.right_components.setObjectName("right_components")
        self.horizontalLayout_3.addWidget(self.right_components)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.toggle_editor = QtGui.QToolButton(LinkEditor)
        self.toggle_editor.setAutoRaise(True)
        self.toggle_editor.setObjectName("toggle_editor")
        self.verticalLayout_2.addWidget(self.toggle_editor)
        self.horizontalLayout_4.addLayout(self.verticalLayout_2)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtGui.QLabel(LinkEditor)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.current_links = GlueListWidget(LinkEditor)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.current_links.sizePolicy().hasHeightForWidth())
        self.current_links.setSizePolicy(sizePolicy)
        self.current_links.setMinimumSize(QtCore.QSize(400, 0))
        self.current_links.setObjectName("current_links")
        self.verticalLayout.addWidget(self.current_links)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.add_link = QtGui.QPushButton(LinkEditor)
        self.add_link.setObjectName("add_link")
        self.horizontalLayout_2.addWidget(self.add_link)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.remove_link = QtGui.QPushButton(LinkEditor)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.remove_link.sizePolicy().hasHeightForWidth())
        self.remove_link.setSizePolicy(sizePolicy)
        self.remove_link.setObjectName("remove_link")
        self.horizontalLayout_2.addWidget(self.remove_link)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.buttonBox = QtGui.QDialogButtonBox(LinkEditor)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName("buttonBox")
        self.horizontalLayout.addWidget(self.buttonBox)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_4.addLayout(self.verticalLayout)
        self.horizontalLayout_4.setStretch(0, 1)
        self.horizontalLayout_4.setStretch(1, 2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.signature_editor = LinkEquation(LinkEditor)
        self.signature_editor.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(100)
        sizePolicy.setVerticalStretch(100)
        sizePolicy.setHeightForWidth(
            self.signature_editor.sizePolicy().hasHeightForWidth())
        self.signature_editor.setSizePolicy(sizePolicy)
        self.signature_editor.setAcceptDrops(True)
        self.signature_editor.setObjectName("signature_editor")
        self.horizontalLayout_5.addWidget(self.signature_editor)
        spacerItem2 = QtGui.QSpacerItem(400, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6.addLayout(self.verticalLayout_3)

        self.retranslateUi(LinkEditor)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                               LinkEditor.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"),
                               LinkEditor.reject)
        QtCore.QMetaObject.connectSlotsByName(LinkEditor)
Exemple #20
0
    def setupUi(self, DataConnector):
        DataConnector.setObjectName("DataConnector")
        DataConnector.resize(856, 670)
        self.verticalLayout_7 = QtGui.QVBoxLayout(DataConnector)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.left_label = QtGui.QLabel(DataConnector)
        self.left_label.setAlignment(QtCore.Qt.AlignCenter)
        self.left_label.setObjectName("left_label")
        self.verticalLayout.addWidget(self.left_label)
        self.left_combo = QtGui.QComboBox(DataConnector)
        self.left_combo.setObjectName("left_combo")
        self.verticalLayout.addWidget(self.left_combo)
        self.left_list = QtGui.QListWidget(DataConnector)
        self.left_list.setObjectName("left_list")
        self.verticalLayout.addWidget(self.left_list)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.right_label = QtGui.QLabel(DataConnector)
        self.right_label.setAlignment(QtCore.Qt.AlignCenter)
        self.right_label.setObjectName("right_label")
        self.verticalLayout_2.addWidget(self.right_label)
        self.right_combo = QtGui.QComboBox(DataConnector)
        self.right_combo.setObjectName("right_combo")
        self.verticalLayout_2.addWidget(self.right_combo)
        self.right_list = QtGui.QListWidget(DataConnector)
        self.right_list.setObjectName("right_list")
        self.verticalLayout_2.addWidget(self.right_list)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem)
        self.glue_button = QtGui.QPushButton(DataConnector)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.glue_button.sizePolicy().hasHeightForWidth())
        self.glue_button.setSizePolicy(sizePolicy)
        self.glue_button.setObjectName("glue_button")
        self.horizontalLayout_5.addWidget(self.glue_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem1)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6.addLayout(self.verticalLayout_4)
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.link_label = QtGui.QLabel(DataConnector)
        self.link_label.setAlignment(QtCore.Qt.AlignCenter)
        self.link_label.setObjectName("link_label")
        self.verticalLayout_3.addWidget(self.link_label)
        self.link_list = QtGui.QListWidget(DataConnector)
        self.link_list.setObjectName("link_list")
        self.verticalLayout_3.addWidget(self.link_list)
        self.verticalLayout_5.addLayout(self.verticalLayout_3)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.un_glue_button = QtGui.QPushButton(DataConnector)
        self.un_glue_button.setObjectName("un_glue_button")
        self.horizontalLayout_3.addWidget(self.un_glue_button)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6.addLayout(self.verticalLayout_5)
        self.verticalLayout_6.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.ok = QtGui.QPushButton(DataConnector)
        self.ok.setObjectName("ok")
        self.horizontalLayout.addWidget(self.ok)
        self.cancel = QtGui.QPushButton(DataConnector)
        self.cancel.setObjectName("cancel")
        self.horizontalLayout.addWidget(self.cancel)
        self.horizontalLayout_4.addLayout(self.horizontalLayout)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        self.verticalLayout_7.addLayout(self.verticalLayout_6)

        self.retranslateUi(DataConnector)
        QtCore.QMetaObject.connectSlotsByName(DataConnector)
Exemple #21
0
    def setupUi(self, SubsetFacet):
        SubsetFacet.setObjectName("SubsetFacet")
        SubsetFacet.resize(366, 405)
        self.verticalLayout = QtGui.QVBoxLayout(SubsetFacet)
        self.verticalLayout.setContentsMargins(4, 4, 4, 4)
        self.verticalLayout.setObjectName("verticalLayout")
        self.component_selector = ComponentSelector(SubsetFacet)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.component_selector.sizePolicy().hasHeightForWidth())
        self.component_selector.setSizePolicy(sizePolicy)
        self.component_selector.setObjectName("component_selector")
        self.verticalLayout.addWidget(self.component_selector)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label = QtGui.QLabel(SubsetFacet)
        self.label.setObjectName("label")
        self.horizontalLayout_5.addWidget(self.label)
        self.num = QtGui.QSpinBox(SubsetFacet)
        self.num.setMaximum(20)
        self.num.setProperty("value", 5)
        self.num.setObjectName("num")
        self.horizontalLayout_5.addWidget(self.num)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtGui.QLabel(SubsetFacet)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.min = QtGui.QLineEdit(SubsetFacet)
        self.min.setObjectName("min")
        self.horizontalLayout_3.addWidget(self.min)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_4 = QtGui.QLabel(SubsetFacet)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_2.addWidget(self.label_4)
        self.max = QtGui.QLineEdit(SubsetFacet)
        self.max.setObjectName("max")
        self.horizontalLayout_2.addWidget(self.max)
        self.log = QtGui.QCheckBox(SubsetFacet)
        self.log.setObjectName("log")
        self.horizontalLayout_2.addWidget(self.log)
        self.horizontalLayout_4.addLayout(self.horizontalLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_2 = QtGui.QLabel(SubsetFacet)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.color_scale = QtGui.QComboBox(SubsetFacet)
        self.color_scale.setObjectName("color_scale")
        self.horizontalLayout.addWidget(self.color_scale)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.buttonBox = QtGui.QDialogButtonBox(SubsetFacet)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)
        self.verticalLayout.setStretch(0, 5)

        self.retranslateUi(SubsetFacet)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), SubsetFacet.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), SubsetFacet.reject)
        QtCore.QMetaObject.connectSlotsByName(SubsetFacet)