Example #1
0
def run_electre_tri():
    etri = ElectreTri(c, cv, ptb, lbda, cps)
    affectations = etri.pessimist(pt)
    cat_colors = colors.ncategories_colors[len(b) + 1]
    perf_table.add_affectations(affectations, None)


if __name__ == "__main__":

    if len(sys.argv) == 2 and sys.argv[1] == "-l":
        from data_loulouka_new import *
    else:
        from data_ticino_new import *

    app = QtGui.QApplication(sys.argv)
    perf_table = qt_performance_table(None, c, a, pt)
    crit_table = qt_criteria_table(None)
    crit_table.add_criteria(c, cv)
    prof_table = qt_performance_table(None, c, b, ptb)

    thresh_cbox = QtGui.QCheckBox('Use same thresholds for all profiles')
    indif_table = qt_threshold_table(None, c)
    pref_table = qt_threshold_table(None, c)
    veto_table = qt_threshold_table(None, c)

    crit = next(c.itervalues())
    for thres in crit.thresholds:
        print thres
    if crit.thresholds.has_threshold('q'):
        indif_table.add_threshold('q', 'q')
        pref_table.add_threshold('p', 'p')
Example #2
0
    def setupUi(self, inference_results):
        inference_results.setObjectName(_fromUtf8("inference_results"))
        inference_results.resize(800, 600)
        self.verticalLayout = QtGui.QVBoxLayout(inference_results)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(inference_results)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.graph_model = _MyGraphicsview(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(self.graph_model.sizePolicy().hasHeightForWidth())
        self.graph_model.setSizePolicy(sizePolicy)
        self.graph_model.setStyleSheet(_fromUtf8("background-color: transparent;"))
        self.graph_model.setFrameShape(QtGui.QFrame.NoFrame)
        self.graph_model.setFrameShadow(QtGui.QFrame.Sunken)
        self.graph_model.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graph_model.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.graph_model.setAlignment(QtCore.Qt.AlignCenter)
        self.graph_model.setRenderHints(QtGui.QPainter.Antialiasing|QtGui.QPainter.TextAntialiasing)
        self.graph_model.setObjectName(_fromUtf8("graph_model"))
        self.verticalLayout_2.addWidget(self.graph_model)
        self.label_lambda = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_lambda.setFont(font)
        self.label_lambda.setText(_fromUtf8(""))
        self.label_lambda.setObjectName(_fromUtf8("label_lambda"))
        self.verticalLayout_2.addWidget(self.label_lambda)
        self.verticalLayout.addWidget(self.groupBox)
        self.tabWidget = QtGui.QTabWidget(inference_results)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.table_comp = qt_performance_table(self.tab)
        self.table_comp.setObjectName(_fromUtf8("table_comp"))
        self.table_comp.setColumnCount(0)
        self.table_comp.setRowCount(0)
        self.verticalLayout_5.addWidget(self.table_comp)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.table_incomp = qt_performance_table(self.tab_2)
        self.table_incomp.setObjectName(_fromUtf8("table_incomp"))
        self.table_incomp.setColumnCount(0)
        self.table_incomp.setRowCount(0)
        self.verticalLayout_4.addWidget(self.table_incomp)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.buttonBox = QtGui.QDialogButtonBox(inference_results)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close|QtGui.QDialogButtonBox.Save)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(inference_results)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), inference_results.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), inference_results.reject)
        QtCore.QMetaObject.connectSlotsByName(inference_results)
Example #3
0
    string, ok = QtGui.QInputDialog.getText(None, "Add criterion", "Criterion name")
    if ok and not string.isEmpty():
        name = str(string.toUtf8())
        crit = criterion(name, name, 0, 1, 10)
        pt_table.add_criterion(crit)
        c.append(crit)

if __name__ == "__main__":

    if len(sys.argv) == 2 and sys.argv[1] == "-l":
        from data_loulouka_new import *
    else:
        from data_ticino_new import *

    app = QtGui.QApplication(sys.argv)
    pt_table = qt_performance_table(None, c, a, pt)

    button_add = QtGui.QPushButton("Add alternative")
    button_addc = QtGui.QPushButton("Add criterion")
    button_to_xmcda = QtGui.QPushButton("Save to XMCDA")
    button_from_xmcda = QtGui.QPushButton("Load from XMCDA")

    button_to_xmcda.connect(button_add,
                            QtCore.SIGNAL("clicked()"),
                            add_alternative)
    button_to_xmcda.connect(button_addc,
                            QtCore.SIGNAL("clicked()"),
                            add_criterion)
    button_to_xmcda.connect(button_to_xmcda,
                            QtCore.SIGNAL("clicked()"),
                            save_to_xmcda)
Example #4
0
def run_electre_tri():
    etri = ElectreTri(c, cv, ptb, lbda, cps)
    affectations = etri.pessimist(pt)
    cat_colors = colors.ncategories_colors[len(b)+1]
    perf_table.add_affectations(affectations, None)

if __name__ == "__main__":

    if len(sys.argv) == 2 and sys.argv[1] == "-l":
        from data_loulouka_new import *
    else:
        from data_ticino_new import *

    app = QtGui.QApplication(sys.argv)
    perf_table = qt_performance_table(None, c, a, pt)
    crit_table = qt_criteria_table(None)
    crit_table.add_criteria(c, cv)
    prof_table = qt_performance_table(None, c, b, ptb)

    thresh_cbox = QtGui.QCheckBox('Use same thresholds for all profiles')
    indif_table = qt_threshold_table(None, c)
    pref_table = qt_threshold_table(None, c)
    veto_table = qt_threshold_table(None, c)

    crit = next(c.itervalues())
    for thres in crit.thresholds:
        print thres
    if crit.thresholds.has_threshold('q'):
        indif_table.add_threshold('q', 'q')
        pref_table.add_threshold('p', 'p')
Example #5
0
    def setupUi(self, main_window):
        main_window.setObjectName(_fromUtf8("main_window"))
        main_window.resize(800, 606)
        self.horizontalLayout = QtGui.QHBoxLayout(main_window)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.tab_parameters = QtGui.QTabWidget(main_window)
        self.tab_parameters.setObjectName(_fromUtf8("tab_parameters"))
        self.tab_criteria = QtGui.QWidget()
        self.tab_criteria.setObjectName(_fromUtf8("tab_criteria"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab_criteria)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.table_criteria = qt_criteria_table(self.tab_criteria)
        self.table_criteria.setColumnCount(3)
        self.table_criteria.setObjectName(_fromUtf8("table_criteria"))
        self.table_criteria.setRowCount(0)
        self.gridLayout_2.addWidget(self.table_criteria, 0, 0, 1, 1)
        self.tab_parameters.addTab(self.tab_criteria, _fromUtf8(""))
        self.tab_profiles = QtGui.QWidget()
        self.tab_profiles.setObjectName(_fromUtf8("tab_profiles"))
        self.gridLayout_5 = QtGui.QGridLayout(self.tab_profiles)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.graph_plot = _MyGraphicsview(self.tab_profiles)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(self.graph_plot.sizePolicy().hasHeightForWidth())
        self.graph_plot.setSizePolicy(sizePolicy)
        self.graph_plot.setStyleSheet(_fromUtf8("background-color: transparent;"))
        self.graph_plot.setFrameShape(QtGui.QFrame.NoFrame)
        self.graph_plot.setFrameShadow(QtGui.QFrame.Sunken)
        self.graph_plot.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graph_plot.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.graph_plot.setAlignment(QtCore.Qt.AlignCenter)
        self.graph_plot.setRenderHints(QtGui.QPainter.Antialiasing|QtGui.QPainter.TextAntialiasing)
        self.graph_plot.setObjectName(_fromUtf8("graph_plot"))
        self.gridLayout_5.addWidget(self.graph_plot, 1, 0, 1, 1)
        self.table_prof = qt_performance_table(self.tab_profiles)
        self.table_prof.setObjectName(_fromUtf8("table_prof"))
        self.table_prof.setColumnCount(0)
        self.table_prof.setRowCount(0)
        self.gridLayout_5.addWidget(self.table_prof, 0, 0, 1, 1)
        self.tab_parameters.addTab(self.tab_profiles, _fromUtf8(""))
        self.tab_plot = QtGui.QWidget()
        self.tab_plot.setObjectName(_fromUtf8("tab_plot"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_plot)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.tab_thresholds = QtGui.QTabWidget(self.tab_plot)
        self.tab_thresholds.setTabPosition(QtGui.QTabWidget.North)
        self.tab_thresholds.setTabShape(QtGui.QTabWidget.Rounded)
        self.tab_thresholds.setDocumentMode(False)
        self.tab_thresholds.setObjectName(_fromUtf8("tab_thresholds"))
        self.tab_indiff = QtGui.QWidget()
        self.tab_indiff.setObjectName(_fromUtf8("tab_indiff"))
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_indiff)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.table_indiff = qt_performance_table(self.tab_indiff)
        self.table_indiff.setObjectName(_fromUtf8("table_indiff"))
        self.table_indiff.setColumnCount(0)
        self.table_indiff.setRowCount(0)
        self.gridLayout_3.addWidget(self.table_indiff, 0, 0, 1, 1)
        self.tab_thresholds.addTab(self.tab_indiff, _fromUtf8(""))
        self.tab_pref = QtGui.QWidget()
        self.tab_pref.setObjectName(_fromUtf8("tab_pref"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_pref)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.table_pref = qt_performance_table(self.tab_pref)
        self.table_pref.setObjectName(_fromUtf8("table_pref"))
        self.table_pref.setColumnCount(0)
        self.table_pref.setRowCount(0)
        self.gridLayout_4.addWidget(self.table_pref, 0, 0, 1, 1)
        self.tab_thresholds.addTab(self.tab_pref, _fromUtf8(""))
        self.tab_veto = QtGui.QWidget()
        self.tab_veto.setObjectName(_fromUtf8("tab_veto"))
        self.gridLayout_7 = QtGui.QGridLayout(self.tab_veto)
        self.gridLayout_7.setMargin(0)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.table_veto = qt_performance_table(self.tab_veto)
        self.table_veto.setObjectName(_fromUtf8("table_veto"))
        self.table_veto.setColumnCount(0)
        self.table_veto.setRowCount(0)
        self.gridLayout_7.addWidget(self.table_veto, 0, 0, 1, 1)
        self.tab_thresholds.addTab(self.tab_veto, _fromUtf8(""))
        self.verticalLayout_4.addWidget(self.tab_thresholds)
        self.graph_plot2 = _MyGraphicsview(self.tab_plot)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(self.graph_plot2.sizePolicy().hasHeightForWidth())
        self.graph_plot2.setSizePolicy(sizePolicy)
        self.graph_plot2.setStyleSheet(_fromUtf8("background-color: transparent;"))
        self.graph_plot2.setFrameShape(QtGui.QFrame.NoFrame)
        self.graph_plot2.setFrameShadow(QtGui.QFrame.Sunken)
        self.graph_plot2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.graph_plot2.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.graph_plot2.setAlignment(QtCore.Qt.AlignCenter)
        self.graph_plot2.setRenderHints(QtGui.QPainter.Antialiasing|QtGui.QPainter.TextAntialiasing)
        self.graph_plot2.setObjectName(_fromUtf8("graph_plot2"))
        self.verticalLayout_4.addWidget(self.graph_plot2)
        self.tab_parameters.addTab(self.tab_plot, _fromUtf8(""))
        self.tab_inference = QtGui.QWidget()
        self.tab_inference.setObjectName(_fromUtf8("tab_inference"))
        self.gridLayout_6 = QtGui.QGridLayout(self.tab_inference)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.group_refs = QtGui.QGroupBox(self.tab_inference)
        self.group_refs.setObjectName(_fromUtf8("group_refs"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.group_refs)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.table_refs = qt_performance_table(self.group_refs)
        self.table_refs.setObjectName(_fromUtf8("table_refs"))
        self.table_refs.setColumnCount(0)
        self.table_refs.setRowCount(0)
        self.verticalLayout_3.addWidget(self.table_refs)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.button_chooseassign = QtGui.QPushButton(self.group_refs)
        self.button_chooseassign.setEnabled(False)
        self.button_chooseassign.setObjectName(_fromUtf8("button_chooseassign"))
        self.gridLayout.addWidget(self.button_chooseassign, 0, 0, 1, 1)
        self.button_infer = QtGui.QPushButton(self.group_refs)
        self.button_infer.setEnabled(False)
        self.button_infer.setObjectName(_fromUtf8("button_infer"))
        self.gridLayout.addWidget(self.button_infer, 0, 2, 1, 1)
        self.button_show = QtGui.QPushButton(self.group_refs)
        self.button_show.setEnabled(False)
        self.button_show.setObjectName(_fromUtf8("button_show"))
        self.gridLayout.addWidget(self.button_show, 1, 0, 1, 1)
        self.button_zoom = QtGui.QPushButton(self.group_refs)
        self.button_zoom.setEnabled(False)
        self.button_zoom.setObjectName(_fromUtf8("button_zoom"))
        self.gridLayout.addWidget(self.button_zoom, 1, 2, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout)
        self.gridLayout_6.addWidget(self.group_refs, 1, 0, 1, 1)
        self.group_infparams = QtGui.QGroupBox(self.tab_inference)
        self.group_infparams.setObjectName(_fromUtf8("group_infparams"))
        self.verticalLayout = QtGui.QVBoxLayout(self.group_infparams)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.layout_model = QtGui.QHBoxLayout()
        self.layout_model.setObjectName(_fromUtf8("layout_model"))
        self.label_combo = QtGui.QLabel(self.group_infparams)
        self.label_combo.setObjectName(_fromUtf8("label_combo"))
        self.layout_model.addWidget(self.label_combo)
        self.combo_model = QtGui.QComboBox(self.group_infparams)
        self.combo_model.setObjectName(_fromUtf8("combo_model"))
        self.combo_model.addItem(_fromUtf8(""))
        self.layout_model.addWidget(self.combo_model)
        self.verticalLayout.addLayout(self.layout_model)
        self.layout_inference = QtGui.QHBoxLayout()
        self.layout_inference.setObjectName(_fromUtf8("layout_inference"))
        self.label_inference = QtGui.QLabel(self.group_infparams)
        self.label_inference.setObjectName(_fromUtf8("label_inference"))
        self.layout_inference.addWidget(self.label_inference)
        self.combo_inference = QtGui.QComboBox(self.group_infparams)
        self.combo_inference.setObjectName(_fromUtf8("combo_inference"))
        self.combo_inference.addItem(_fromUtf8(""))
        self.combo_inference.addItem(_fromUtf8(""))
        self.combo_inference.addItem(_fromUtf8(""))
        self.layout_inference.addWidget(self.combo_inference)
        self.verticalLayout.addLayout(self.layout_inference)
        self.gridLayout_6.addWidget(self.group_infparams, 0, 0, 1, 1)
        self.tab_parameters.addTab(self.tab_inference, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tab_parameters)
        self.right_layout = QtGui.QVBoxLayout()
        self.right_layout.setObjectName(_fromUtf8("right_layout"))
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.right_layout.addItem(spacerItem)
        self.group_options = QtGui.QGroupBox(main_window)
        self.group_options.setObjectName(_fromUtf8("group_options"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.group_options)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.button_loadxmcda = QtGui.QPushButton(self.group_options)
        self.button_loadxmcda.setEnabled(False)
        self.button_loadxmcda.setObjectName(_fromUtf8("button_loadxmcda"))
        self.verticalLayout_2.addWidget(self.button_loadxmcda)
        self.button_savexmcda = QtGui.QPushButton(self.group_options)
        self.button_savexmcda.setEnabled(False)
        self.button_savexmcda.setObjectName(_fromUtf8("button_savexmcda"))
        self.verticalLayout_2.addWidget(self.button_savexmcda)
        self.right_layout.addWidget(self.group_options)
        self.group_input = QtGui.QGroupBox(main_window)
        self.group_input.setObjectName(_fromUtf8("group_input"))
        self.gridLayout_9 = QtGui.QGridLayout(self.group_input)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.combo_layer = QtGui.QComboBox(self.group_input)
        self.combo_layer.setObjectName(_fromUtf8("combo_layer"))
        self.gridLayout_9.addWidget(self.combo_layer, 0, 0, 1, 1)
        self.button_loadlayer = QtGui.QPushButton(self.group_input)
        self.button_loadlayer.setObjectName(_fromUtf8("button_loadlayer"))
        self.gridLayout_9.addWidget(self.button_loadlayer, 0, 1, 1, 1)
        self.right_layout.addWidget(self.group_input)
        self.group_profiles = QtGui.QGroupBox(main_window)
        self.group_profiles.setObjectName(_fromUtf8("group_profiles"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.group_profiles)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.button_add_profile = QtGui.QPushButton(self.group_profiles)
        self.button_add_profile.setEnabled(False)
        self.button_add_profile.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/etri/images/plus.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_add_profile.setIcon(icon)
        self.button_add_profile.setObjectName(_fromUtf8("button_add_profile"))
        self.horizontalLayout_2.addWidget(self.button_add_profile)
        self.label_ncategories = QtGui.QLabel(self.group_profiles)
        self.label_ncategories.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_ncategories.setStyleSheet(_fromUtf8("font: 18pt \"Sans Serif\";"))
        self.label_ncategories.setText(_fromUtf8("-"))
        self.label_ncategories.setTextFormat(QtCore.Qt.PlainText)
        self.label_ncategories.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ncategories.setObjectName(_fromUtf8("label_ncategories"))
        self.horizontalLayout_2.addWidget(self.label_ncategories)
        self.button_del_profile = QtGui.QPushButton(self.group_profiles)
        self.button_del_profile.setEnabled(False)
        self.button_del_profile.setText(_fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/etri/images/min.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_del_profile.setIcon(icon1)
        self.button_del_profile.setObjectName(_fromUtf8("button_del_profile"))
        self.horizontalLayout_2.addWidget(self.button_del_profile)
        self.right_layout.addWidget(self.group_profiles)
        self.group_thresholds = QtGui.QGroupBox(main_window)
        self.group_thresholds.setMaximumSize(QtCore.QSize(388, 16777215))
        self.group_thresholds.setObjectName(_fromUtf8("group_thresholds"))
        self.formLayout = QtGui.QFormLayout(self.group_thresholds)
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.cbox_samethresholds = QtGui.QCheckBox(self.group_thresholds)
        self.cbox_samethresholds.setObjectName(_fromUtf8("cbox_samethresholds"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.cbox_samethresholds)
        self.cbox_noveto = QtGui.QCheckBox(self.group_thresholds)
        self.cbox_noveto.setObjectName(_fromUtf8("cbox_noveto"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.cbox_noveto)
        self.cbox_mrsort = QtGui.QCheckBox(self.group_thresholds)
        self.cbox_mrsort.setObjectName(_fromUtf8("cbox_mrsort"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.cbox_mrsort)
        self.right_layout.addWidget(self.group_thresholds)
        self.group_affectation = QtGui.QGroupBox(main_window)
        self.group_affectation.setObjectName(_fromUtf8("group_affectation"))
        self.gridLayout_8 = QtGui.QGridLayout(self.group_affectation)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.layout_cutlevel = QtGui.QHBoxLayout()
        self.layout_cutlevel.setObjectName(_fromUtf8("layout_cutlevel"))
        self.label_cutlevel = QtGui.QLabel(self.group_affectation)
        self.label_cutlevel.setObjectName(_fromUtf8("label_cutlevel"))
        self.layout_cutlevel.addWidget(self.label_cutlevel)
        self.spinbox_cutlevel = QtGui.QDoubleSpinBox(self.group_affectation)
        self.spinbox_cutlevel.setMinimum(0.5)
        self.spinbox_cutlevel.setMaximum(1.0)
        self.spinbox_cutlevel.setSingleStep(0.01)
        self.spinbox_cutlevel.setProperty("value", 0.75)
        self.spinbox_cutlevel.setObjectName(_fromUtf8("spinbox_cutlevel"))
        self.layout_cutlevel.addWidget(self.spinbox_cutlevel)
        self.gridLayout_8.addLayout(self.layout_cutlevel, 0, 0, 1, 1)
        self.layout_procedure = QtGui.QHBoxLayout()
        self.layout_procedure.setObjectName(_fromUtf8("layout_procedure"))
        self.label_procedure = QtGui.QLabel(self.group_affectation)
        self.label_procedure.setObjectName(_fromUtf8("label_procedure"))
        self.layout_procedure.addWidget(self.label_procedure)
        self.combo_procedure = QtGui.QComboBox(self.group_affectation)
        self.combo_procedure.setObjectName(_fromUtf8("combo_procedure"))
        self.combo_procedure.addItem(_fromUtf8(""))
        self.combo_procedure.addItem(_fromUtf8(""))
        self.layout_procedure.addWidget(self.combo_procedure)
        self.gridLayout_8.addLayout(self.layout_procedure, 1, 0, 1, 1)
        self.right_layout.addWidget(self.group_affectation)
        self.button_generate = QtGui.QPushButton(main_window)
        self.button_generate.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/etri/images/etri.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_generate.setIcon(icon2)
        self.button_generate.setObjectName(_fromUtf8("button_generate"))
        self.right_layout.addWidget(self.button_generate)
        self.horizontalLayout.addLayout(self.right_layout)

        self.retranslateUi(main_window)
        self.tab_parameters.setCurrentIndex(0)
        self.tab_thresholds.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(main_window)
Example #6
0
    def setupUi(self, inference_results):
        inference_results.setObjectName(_fromUtf8("inference_results"))
        inference_results.resize(800, 600)
        self.verticalLayout = QtGui.QVBoxLayout(inference_results)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(inference_results)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.graph_model = _MyGraphicsview(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(
            self.graph_model.sizePolicy().hasHeightForWidth())
        self.graph_model.setSizePolicy(sizePolicy)
        self.graph_model.setStyleSheet(
            _fromUtf8("background-color: transparent;"))
        self.graph_model.setFrameShape(QtGui.QFrame.NoFrame)
        self.graph_model.setFrameShadow(QtGui.QFrame.Sunken)
        self.graph_model.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.graph_model.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAsNeeded)
        self.graph_model.setAlignment(QtCore.Qt.AlignCenter)
        self.graph_model.setRenderHints(QtGui.QPainter.Antialiasing
                                        | QtGui.QPainter.TextAntialiasing)
        self.graph_model.setObjectName(_fromUtf8("graph_model"))
        self.verticalLayout_2.addWidget(self.graph_model)
        self.label_lambda = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_lambda.setFont(font)
        self.label_lambda.setText(_fromUtf8(""))
        self.label_lambda.setObjectName(_fromUtf8("label_lambda"))
        self.verticalLayout_2.addWidget(self.label_lambda)
        self.verticalLayout.addWidget(self.groupBox)
        self.tabWidget = QtGui.QTabWidget(inference_results)
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.table_comp = qt_performance_table(self.tab)
        self.table_comp.setObjectName(_fromUtf8("table_comp"))
        self.table_comp.setColumnCount(0)
        self.table_comp.setRowCount(0)
        self.verticalLayout_5.addWidget(self.table_comp)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_2)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.table_incomp = qt_performance_table(self.tab_2)
        self.table_incomp.setObjectName(_fromUtf8("table_incomp"))
        self.table_incomp.setColumnCount(0)
        self.table_incomp.setRowCount(0)
        self.verticalLayout_4.addWidget(self.table_incomp)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.buttonBox = QtGui.QDialogButtonBox(inference_results)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close
                                          | QtGui.QDialogButtonBox.Save)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(inference_results)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               inference_results.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               inference_results.reject)
        QtCore.QMetaObject.connectSlotsByName(inference_results)
Example #7
0
    def setupUi(self, main_window):
        main_window.setObjectName(_fromUtf8("main_window"))
        main_window.resize(800, 606)
        self.horizontalLayout = QtGui.QHBoxLayout(main_window)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.tab_parameters = QtGui.QTabWidget(main_window)
        self.tab_parameters.setObjectName(_fromUtf8("tab_parameters"))
        self.tab_criteria = QtGui.QWidget()
        self.tab_criteria.setObjectName(_fromUtf8("tab_criteria"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab_criteria)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.table_criteria = qt_criteria_table(self.tab_criteria)
        self.table_criteria.setColumnCount(3)
        self.table_criteria.setObjectName(_fromUtf8("table_criteria"))
        self.table_criteria.setRowCount(0)
        self.gridLayout_2.addWidget(self.table_criteria, 0, 0, 1, 1)
        self.tab_parameters.addTab(self.tab_criteria, _fromUtf8(""))
        self.tab_profiles = QtGui.QWidget()
        self.tab_profiles.setObjectName(_fromUtf8("tab_profiles"))
        self.gridLayout_5 = QtGui.QGridLayout(self.tab_profiles)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.graph_plot = _MyGraphicsview(self.tab_profiles)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(
            self.graph_plot.sizePolicy().hasHeightForWidth())
        self.graph_plot.setSizePolicy(sizePolicy)
        self.graph_plot.setStyleSheet(
            _fromUtf8("background-color: transparent;"))
        self.graph_plot.setFrameShape(QtGui.QFrame.NoFrame)
        self.graph_plot.setFrameShadow(QtGui.QFrame.Sunken)
        self.graph_plot.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.graph_plot.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAsNeeded)
        self.graph_plot.setAlignment(QtCore.Qt.AlignCenter)
        self.graph_plot.setRenderHints(QtGui.QPainter.Antialiasing
                                       | QtGui.QPainter.TextAntialiasing)
        self.graph_plot.setObjectName(_fromUtf8("graph_plot"))
        self.gridLayout_5.addWidget(self.graph_plot, 1, 0, 1, 1)
        self.table_prof = qt_performance_table(self.tab_profiles)
        self.table_prof.setObjectName(_fromUtf8("table_prof"))
        self.table_prof.setColumnCount(0)
        self.table_prof.setRowCount(0)
        self.gridLayout_5.addWidget(self.table_prof, 0, 0, 1, 1)
        self.tab_parameters.addTab(self.tab_profiles, _fromUtf8(""))
        self.tab_plot = QtGui.QWidget()
        self.tab_plot.setObjectName(_fromUtf8("tab_plot"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_plot)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.tab_thresholds = QtGui.QTabWidget(self.tab_plot)
        self.tab_thresholds.setTabPosition(QtGui.QTabWidget.North)
        self.tab_thresholds.setTabShape(QtGui.QTabWidget.Rounded)
        self.tab_thresholds.setDocumentMode(False)
        self.tab_thresholds.setObjectName(_fromUtf8("tab_thresholds"))
        self.tab_indiff = QtGui.QWidget()
        self.tab_indiff.setObjectName(_fromUtf8("tab_indiff"))
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_indiff)
        self.gridLayout_3.setMargin(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.table_indiff = qt_performance_table(self.tab_indiff)
        self.table_indiff.setObjectName(_fromUtf8("table_indiff"))
        self.table_indiff.setColumnCount(0)
        self.table_indiff.setRowCount(0)
        self.gridLayout_3.addWidget(self.table_indiff, 0, 0, 1, 1)
        self.tab_thresholds.addTab(self.tab_indiff, _fromUtf8(""))
        self.tab_pref = QtGui.QWidget()
        self.tab_pref.setObjectName(_fromUtf8("tab_pref"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_pref)
        self.gridLayout_4.setMargin(0)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.table_pref = qt_performance_table(self.tab_pref)
        self.table_pref.setObjectName(_fromUtf8("table_pref"))
        self.table_pref.setColumnCount(0)
        self.table_pref.setRowCount(0)
        self.gridLayout_4.addWidget(self.table_pref, 0, 0, 1, 1)
        self.tab_thresholds.addTab(self.tab_pref, _fromUtf8(""))
        self.tab_veto = QtGui.QWidget()
        self.tab_veto.setObjectName(_fromUtf8("tab_veto"))
        self.gridLayout_7 = QtGui.QGridLayout(self.tab_veto)
        self.gridLayout_7.setMargin(0)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.table_veto = qt_performance_table(self.tab_veto)
        self.table_veto.setObjectName(_fromUtf8("table_veto"))
        self.table_veto.setColumnCount(0)
        self.table_veto.setRowCount(0)
        self.gridLayout_7.addWidget(self.table_veto, 0, 0, 1, 1)
        self.tab_thresholds.addTab(self.tab_veto, _fromUtf8(""))
        self.verticalLayout_4.addWidget(self.tab_thresholds)
        self.graph_plot2 = _MyGraphicsview(self.tab_plot)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(5)
        sizePolicy.setHeightForWidth(
            self.graph_plot2.sizePolicy().hasHeightForWidth())
        self.graph_plot2.setSizePolicy(sizePolicy)
        self.graph_plot2.setStyleSheet(
            _fromUtf8("background-color: transparent;"))
        self.graph_plot2.setFrameShape(QtGui.QFrame.NoFrame)
        self.graph_plot2.setFrameShadow(QtGui.QFrame.Sunken)
        self.graph_plot2.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.graph_plot2.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAsNeeded)
        self.graph_plot2.setAlignment(QtCore.Qt.AlignCenter)
        self.graph_plot2.setRenderHints(QtGui.QPainter.Antialiasing
                                        | QtGui.QPainter.TextAntialiasing)
        self.graph_plot2.setObjectName(_fromUtf8("graph_plot2"))
        self.verticalLayout_4.addWidget(self.graph_plot2)
        self.tab_parameters.addTab(self.tab_plot, _fromUtf8(""))
        self.tab_inference = QtGui.QWidget()
        self.tab_inference.setObjectName(_fromUtf8("tab_inference"))
        self.gridLayout_6 = QtGui.QGridLayout(self.tab_inference)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.group_refs = QtGui.QGroupBox(self.tab_inference)
        self.group_refs.setObjectName(_fromUtf8("group_refs"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.group_refs)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.table_refs = qt_performance_table(self.group_refs)
        self.table_refs.setObjectName(_fromUtf8("table_refs"))
        self.table_refs.setColumnCount(0)
        self.table_refs.setRowCount(0)
        self.verticalLayout_3.addWidget(self.table_refs)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.button_chooseassign = QtGui.QPushButton(self.group_refs)
        self.button_chooseassign.setEnabled(False)
        self.button_chooseassign.setObjectName(
            _fromUtf8("button_chooseassign"))
        self.gridLayout.addWidget(self.button_chooseassign, 0, 0, 1, 1)
        self.button_infer = QtGui.QPushButton(self.group_refs)
        self.button_infer.setEnabled(False)
        self.button_infer.setObjectName(_fromUtf8("button_infer"))
        self.gridLayout.addWidget(self.button_infer, 0, 2, 1, 1)
        self.button_show = QtGui.QPushButton(self.group_refs)
        self.button_show.setEnabled(False)
        self.button_show.setObjectName(_fromUtf8("button_show"))
        self.gridLayout.addWidget(self.button_show, 1, 0, 1, 1)
        self.button_zoom = QtGui.QPushButton(self.group_refs)
        self.button_zoom.setEnabled(False)
        self.button_zoom.setObjectName(_fromUtf8("button_zoom"))
        self.gridLayout.addWidget(self.button_zoom, 1, 2, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout)
        self.gridLayout_6.addWidget(self.group_refs, 1, 0, 1, 1)
        self.group_infparams = QtGui.QGroupBox(self.tab_inference)
        self.group_infparams.setObjectName(_fromUtf8("group_infparams"))
        self.verticalLayout = QtGui.QVBoxLayout(self.group_infparams)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.layout_model = QtGui.QHBoxLayout()
        self.layout_model.setObjectName(_fromUtf8("layout_model"))
        self.label_combo = QtGui.QLabel(self.group_infparams)
        self.label_combo.setObjectName(_fromUtf8("label_combo"))
        self.layout_model.addWidget(self.label_combo)
        self.combo_model = QtGui.QComboBox(self.group_infparams)
        self.combo_model.setObjectName(_fromUtf8("combo_model"))
        self.combo_model.addItem(_fromUtf8(""))
        self.layout_model.addWidget(self.combo_model)
        self.verticalLayout.addLayout(self.layout_model)
        self.layout_inference = QtGui.QHBoxLayout()
        self.layout_inference.setObjectName(_fromUtf8("layout_inference"))
        self.label_inference = QtGui.QLabel(self.group_infparams)
        self.label_inference.setObjectName(_fromUtf8("label_inference"))
        self.layout_inference.addWidget(self.label_inference)
        self.combo_inference = QtGui.QComboBox(self.group_infparams)
        self.combo_inference.setObjectName(_fromUtf8("combo_inference"))
        self.combo_inference.addItem(_fromUtf8(""))
        self.combo_inference.addItem(_fromUtf8(""))
        self.combo_inference.addItem(_fromUtf8(""))
        self.layout_inference.addWidget(self.combo_inference)
        self.verticalLayout.addLayout(self.layout_inference)
        self.gridLayout_6.addWidget(self.group_infparams, 0, 0, 1, 1)
        self.tab_parameters.addTab(self.tab_inference, _fromUtf8(""))
        self.horizontalLayout.addWidget(self.tab_parameters)
        self.right_layout = QtGui.QVBoxLayout()
        self.right_layout.setObjectName(_fromUtf8("right_layout"))
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.right_layout.addItem(spacerItem)
        self.group_options = QtGui.QGroupBox(main_window)
        self.group_options.setObjectName(_fromUtf8("group_options"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.group_options)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.button_loadxmcda = QtGui.QPushButton(self.group_options)
        self.button_loadxmcda.setEnabled(False)
        self.button_loadxmcda.setObjectName(_fromUtf8("button_loadxmcda"))
        self.verticalLayout_2.addWidget(self.button_loadxmcda)
        self.button_savexmcda = QtGui.QPushButton(self.group_options)
        self.button_savexmcda.setEnabled(False)
        self.button_savexmcda.setObjectName(_fromUtf8("button_savexmcda"))
        self.verticalLayout_2.addWidget(self.button_savexmcda)
        self.right_layout.addWidget(self.group_options)
        self.group_input = QtGui.QGroupBox(main_window)
        self.group_input.setObjectName(_fromUtf8("group_input"))
        self.gridLayout_9 = QtGui.QGridLayout(self.group_input)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.combo_layer = QtGui.QComboBox(self.group_input)
        self.combo_layer.setObjectName(_fromUtf8("combo_layer"))
        self.gridLayout_9.addWidget(self.combo_layer, 0, 0, 1, 1)
        self.button_loadlayer = QtGui.QPushButton(self.group_input)
        self.button_loadlayer.setObjectName(_fromUtf8("button_loadlayer"))
        self.gridLayout_9.addWidget(self.button_loadlayer, 0, 1, 1, 1)
        self.right_layout.addWidget(self.group_input)
        self.group_profiles = QtGui.QGroupBox(main_window)
        self.group_profiles.setObjectName(_fromUtf8("group_profiles"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.group_profiles)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.button_add_profile = QtGui.QPushButton(self.group_profiles)
        self.button_add_profile.setEnabled(False)
        self.button_add_profile.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/plugins/etri/images/plus.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_add_profile.setIcon(icon)
        self.button_add_profile.setObjectName(_fromUtf8("button_add_profile"))
        self.horizontalLayout_2.addWidget(self.button_add_profile)
        self.label_ncategories = QtGui.QLabel(self.group_profiles)
        self.label_ncategories.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_ncategories.setStyleSheet(
            _fromUtf8("font: 18pt \"Sans Serif\";"))
        self.label_ncategories.setText(_fromUtf8("-"))
        self.label_ncategories.setTextFormat(QtCore.Qt.PlainText)
        self.label_ncategories.setAlignment(QtCore.Qt.AlignCenter)
        self.label_ncategories.setObjectName(_fromUtf8("label_ncategories"))
        self.horizontalLayout_2.addWidget(self.label_ncategories)
        self.button_del_profile = QtGui.QPushButton(self.group_profiles)
        self.button_del_profile.setEnabled(False)
        self.button_del_profile.setText(_fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/plugins/etri/images/min.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_del_profile.setIcon(icon1)
        self.button_del_profile.setObjectName(_fromUtf8("button_del_profile"))
        self.horizontalLayout_2.addWidget(self.button_del_profile)
        self.right_layout.addWidget(self.group_profiles)
        self.group_thresholds = QtGui.QGroupBox(main_window)
        self.group_thresholds.setMaximumSize(QtCore.QSize(388, 16777215))
        self.group_thresholds.setObjectName(_fromUtf8("group_thresholds"))
        self.formLayout = QtGui.QFormLayout(self.group_thresholds)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.cbox_samethresholds = QtGui.QCheckBox(self.group_thresholds)
        self.cbox_samethresholds.setObjectName(
            _fromUtf8("cbox_samethresholds"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole,
                                  self.cbox_samethresholds)
        self.cbox_noveto = QtGui.QCheckBox(self.group_thresholds)
        self.cbox_noveto.setObjectName(_fromUtf8("cbox_noveto"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole,
                                  self.cbox_noveto)
        self.cbox_mrsort = QtGui.QCheckBox(self.group_thresholds)
        self.cbox_mrsort.setObjectName(_fromUtf8("cbox_mrsort"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole,
                                  self.cbox_mrsort)
        self.right_layout.addWidget(self.group_thresholds)
        self.group_affectation = QtGui.QGroupBox(main_window)
        self.group_affectation.setObjectName(_fromUtf8("group_affectation"))
        self.gridLayout_8 = QtGui.QGridLayout(self.group_affectation)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.layout_cutlevel = QtGui.QHBoxLayout()
        self.layout_cutlevel.setObjectName(_fromUtf8("layout_cutlevel"))
        self.label_cutlevel = QtGui.QLabel(self.group_affectation)
        self.label_cutlevel.setObjectName(_fromUtf8("label_cutlevel"))
        self.layout_cutlevel.addWidget(self.label_cutlevel)
        self.spinbox_cutlevel = QtGui.QDoubleSpinBox(self.group_affectation)
        self.spinbox_cutlevel.setMinimum(0.5)
        self.spinbox_cutlevel.setMaximum(1.0)
        self.spinbox_cutlevel.setSingleStep(0.01)
        self.spinbox_cutlevel.setProperty("value", 0.75)
        self.spinbox_cutlevel.setObjectName(_fromUtf8("spinbox_cutlevel"))
        self.layout_cutlevel.addWidget(self.spinbox_cutlevel)
        self.gridLayout_8.addLayout(self.layout_cutlevel, 0, 0, 1, 1)
        self.layout_procedure = QtGui.QHBoxLayout()
        self.layout_procedure.setObjectName(_fromUtf8("layout_procedure"))
        self.label_procedure = QtGui.QLabel(self.group_affectation)
        self.label_procedure.setObjectName(_fromUtf8("label_procedure"))
        self.layout_procedure.addWidget(self.label_procedure)
        self.combo_procedure = QtGui.QComboBox(self.group_affectation)
        self.combo_procedure.setObjectName(_fromUtf8("combo_procedure"))
        self.combo_procedure.addItem(_fromUtf8(""))
        self.combo_procedure.addItem(_fromUtf8(""))
        self.layout_procedure.addWidget(self.combo_procedure)
        self.gridLayout_8.addLayout(self.layout_procedure, 1, 0, 1, 1)
        self.right_layout.addWidget(self.group_affectation)
        self.button_generate = QtGui.QPushButton(main_window)
        self.button_generate.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/plugins/etri/images/etri.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.button_generate.setIcon(icon2)
        self.button_generate.setObjectName(_fromUtf8("button_generate"))
        self.right_layout.addWidget(self.button_generate)
        self.horizontalLayout.addLayout(self.right_layout)

        self.retranslateUi(main_window)
        self.tab_parameters.setCurrentIndex(0)
        self.tab_thresholds.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(main_window)