Exemple #1
0
    def __init__(self, parent=None):
        super(EquivalentWidthDockWidget, self).__init__(parent)
        self.setWindowTitle("Equivalent Width")

        self.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea |
                             QtCore.Qt.RightDockWidgetArea)

        self.lbl_data_set = QtGui.QLabel()
        self.lbl_layer = QtGui.QLabel()

        title_form_layout = QtGui.QFormLayout()
        title_form_layout.addRow(self.tr("Data set:"), self.lbl_data_set)
        title_form_layout.addRow(self.tr("Layer:"), self.lbl_layer)

        # Equivalent width tab
        self.stats_box1 = StatisticsGroupBox("Statistics 1")
        self.stats_box2 = StatisticsGroupBox("Statistics 2")
        self.lbl_equiv_width = QtGui.QLabel()

        ew_form_layout = QtGui.QFormLayout()

        ew_form_layout.addRow(self.tr("Equivalent Width:"),
                              self.lbl_equiv_width)

        self.add_layout(title_form_layout)
        self.add_widget(self.stats_box1)
        self.add_widget(self.stats_box2)
        self.add_layout(ew_form_layout)
Exemple #2
0
class MeasurementDockWidget(BaseDockWidget):
    def __init__(self, parent=None):
        super(MeasurementDockWidget, self).__init__(parent)
        self.setWindowTitle("Measurement Info")

        self.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea |
                             QtCore.Qt.RightDockWidgetArea)

        self.lbl_data_set = QtGui.QLabel()
        self.lbl_layer = QtGui.QLabel()

        title_form_layout = QtGui.QFormLayout()
        title_form_layout.addRow(self.tr("Data set:"), self.lbl_data_set)
        title_form_layout.addRow(self.tr("Layer:"), self.lbl_layer)

        # Measurements tab
        self.measurement_stats_box = StatisticsGroupBox("Statistics")

        self.add_layout(title_form_layout)
        self.add_widget(self.measurement_stats_box)

    def set_labels(self, stats, data_name="", layer_name=""):
        self.lbl_data_set.setText(data_name)
        self.lbl_layer.setText(layer_name)
        self.measurement_stats_box.set_labels(stats)
Exemple #3
0
    def __init__(self, parent=None):
        super(EquivalentWidthDockWidget, self).__init__(parent)
        self.setWindowTitle("Equivalent Width")

        self.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea
                             | QtCore.Qt.RightDockWidgetArea)

        self.lbl_data_set = QtGui.QLabel()
        self.lbl_layer = QtGui.QLabel()

        title_form_layout = QtGui.QFormLayout()
        title_form_layout.addRow(self.tr("Data set:"), self.lbl_data_set)
        title_form_layout.addRow(self.tr("Layer:"), self.lbl_layer)

        # Equivalent width tab
        self.stats_box1 = StatisticsGroupBox("Statistics 1")
        self.stats_box2 = StatisticsGroupBox("Statistics 2")
        self.lbl_equiv_width = QtGui.QLabel()

        ew_form_layout = QtGui.QFormLayout()

        ew_form_layout.addRow(self.tr("Equivalent Width:"),
                              self.lbl_equiv_width)

        self.add_layout(title_form_layout)
        self.add_widget(self.stats_box1)
        self.add_widget(self.stats_box2)
        self.add_layout(ew_form_layout)
Exemple #4
0
class MeasurementDockWidget(BaseDockWidget):
    def __init__(self, parent=None):
        super(MeasurementDockWidget, self).__init__(parent)
        self.setWindowTitle("Measurement Info")

        self.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea
                             | QtCore.Qt.RightDockWidgetArea)

        self.lbl_data_set = QtGui.QLabel()
        self.lbl_layer = QtGui.QLabel()

        title_form_layout = QtGui.QFormLayout()
        title_form_layout.addRow(self.tr("Data set:"), self.lbl_data_set)
        title_form_layout.addRow(self.tr("Layer:"), self.lbl_layer)

        # Measurements tab
        self.measurement_stats_box = StatisticsGroupBox("Statistics")

        self.add_layout(title_form_layout)
        self.add_widget(self.measurement_stats_box)

    def set_labels(self, stats, data_name="", layer_name=""):
        self.lbl_data_set.setText(data_name)
        self.lbl_layer.setText(layer_name)
        self.measurement_stats_box.set_labels(stats)
Exemple #5
0
class EquivalentWidthDockWidget(BaseDockWidget):
    def __init__(self, parent=None):
        super(EquivalentWidthDockWidget, self).__init__(parent)
        self.setWindowTitle("Equivalent Width")

        self.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea |
                             QtCore.Qt.RightDockWidgetArea)

        self.lbl_data_set = QtGui.QLabel()
        self.lbl_layer = QtGui.QLabel()

        title_form_layout = QtGui.QFormLayout()
        title_form_layout.addRow(self.tr("Data set:"), self.lbl_data_set)
        title_form_layout.addRow(self.tr("Layer:"), self.lbl_layer)

        # Equivalent width tab
        self.stats_box1 = StatisticsGroupBox("Statistics 1")
        self.stats_box2 = StatisticsGroupBox("Statistics 2")
        self.lbl_equiv_width = QtGui.QLabel()

        ew_form_layout = QtGui.QFormLayout()

        ew_form_layout.addRow(self.tr("Equivalent Width:"),
                              self.lbl_equiv_width)

        self.add_layout(title_form_layout)
        self.add_widget(self.stats_box1)
        self.add_widget(self.stats_box2)
        self.add_layout(ew_form_layout)

    def set_labels(self, value, stats1, stats2, data_name="", layer_name=""):
        self.lbl_data_set.setText(data_name)
        self.lbl_layer.setText(layer_name)
        self.stats_box1.set_labels(stats1)
        self.stats_box2.set_labels(stats2)
        self.lbl_equiv_width.setText(str(value))
Exemple #6
0
class EquivalentWidthDockWidget(BaseDockWidget):
    def __init__(self, parent=None):
        super(EquivalentWidthDockWidget, self).__init__(parent)
        self.setWindowTitle("Equivalent Width")

        self.setAllowedAreas(QtCore.Qt.LeftDockWidgetArea
                             | QtCore.Qt.RightDockWidgetArea)

        self.lbl_data_set = QtGui.QLabel()
        self.lbl_layer = QtGui.QLabel()

        title_form_layout = QtGui.QFormLayout()
        title_form_layout.addRow(self.tr("Data set:"), self.lbl_data_set)
        title_form_layout.addRow(self.tr("Layer:"), self.lbl_layer)

        # Equivalent width tab
        self.stats_box1 = StatisticsGroupBox("Statistics 1")
        self.stats_box2 = StatisticsGroupBox("Statistics 2")
        self.lbl_equiv_width = QtGui.QLabel()

        ew_form_layout = QtGui.QFormLayout()

        ew_form_layout.addRow(self.tr("Equivalent Width:"),
                              self.lbl_equiv_width)

        self.add_layout(title_form_layout)
        self.add_widget(self.stats_box1)
        self.add_widget(self.stats_box2)
        self.add_layout(ew_form_layout)

    def set_labels(self, value, stats1, stats2, data_name="", layer_name=""):
        self.lbl_data_set.setText(data_name)
        self.lbl_layer.setText(layer_name)
        self.stats_box1.set_labels(stats1)
        self.stats_box2.set_labels(stats2)
        self.lbl_equiv_width.setText(str(value))