예제 #1
0
    def __init__(self):
        super().__init__()

        self.data = None
        self.preprocessors = None

        box = gui.widgetBox(self.controlArea, self.tr("Name"))
        gui.lineEdit(box, self, "learner_name")

        form = QGridLayout()
        typebox = gui.radioButtonsInBox(
            self.controlArea,
            self,
            "lossfunc",
            [],
            orientation=form,
        )

        # Loss function control
        box = gui.widgetBox(self.controlArea,
                            self.tr("Loss function to be used"))
        buttonbox = gui.radioButtonsInBox(box,
                                          self,
                                          "loss_function",
                                          btnLabels=[
                                              "Squared loss", "Huber",
                                              "Epsilon insensitive",
                                              "Squared Epsilon insensitive"
                                          ],
                                          callback=self._on_func_changed)

        parambox = gui.widgetBox(box, orientation="horizontal")

        box = gui.widgetBox(self.controlArea, self.tr("Penalty"))
        buttonbox = gui.radioButtonsInBox(box,
                                          self,
                                          "penalty_type",
                                          btnLabels=[
                                              "Absolute norm (L1)",
                                              "Euclidean norm (L2)",
                                              "Elastic Net (both)"
                                          ],
                                          callback=self._on_penalty_changed)

        parambox = gui.widgetBox(box, orientation="horizontal")

        box = gui.widgetBox(self.controlArea, self.tr("Learning rate"))
        buttonbox = gui.radioButtonsInBox(
            box,
            self,
            "learning_rate",
            btnLabels=["Inverse scaling", "Constant"],
            callback=self._on_lrate_changed)

        box = gui.widgetBox(self.controlArea, self.tr("Constants"))

        form = QtGui.QFormLayout()
        form.setContentsMargins(0, 0, 0, 0)

        box.layout().addLayout(form)

        alpha = gui.doubleSpin(box, self, "alpha", 0.0, 10.0, step=0.0001)
        form.addRow("Alpha:", alpha)

        spin = gui.doubleSpin(box, self, "eta0", 0.0, 10, step=0.01)
        form.addRow("Eta0:", spin)

        epsilon = gui.doubleSpin(box, self, "epsilon", 0.0, 10.0, step=0.01)
        form.addRow("Epsilon:", epsilon)

        l1_ratio = gui.doubleSpin(box, self, "l1_ratio", 0.0, 10.0, step=0.01)
        form.addRow("L1 ratio:", l1_ratio)

        power_t = gui.doubleSpin(box, self, "power_t", 0.0, 10.0, step=0.01)
        form.addRow("Power t:", power_t)

        # Number of iterations control
        box = gui.widgetBox(self.controlArea, "Number of iterations")
        gui.doubleSpin(box, self, "n_iter", 0, 1e+6, step=1)

        self._func_params = [epsilon]
        self._penalty_params = [l1_ratio]
        self._lrate_params = [power_t]

        gui.button(self.controlArea,
                   self,
                   "&Apply",
                   callback=self.apply,
                   default=True)

        self._on_func_changed()

        self.apply()
예제 #2
0
    def setupUi(self):
        self.setObjectName(_fromUtf8("Dialog"))
        self.resize(561, 263)
        self.gridLayout = QtGui.QGridLayout(self)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.pushButton_2 = QtGui.QPushButton(self)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout_4.addWidget(self.pushButton_2)
        self.pushButton_3 = QtGui.QPushButton(self)
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.horizontalLayout_4.addWidget(self.pushButton_3)
        self.pushButton = QtGui.QPushButton(self)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout_4.addWidget(self.pushButton)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.doubleSpinBox = QtGui.QDoubleSpinBox(self)
        self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.doubleSpinBox)
        self.label_2 = QtGui.QLabel(self)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.doubleSpinBox_2 = QtGui.QDoubleSpinBox(self)
        self.doubleSpinBox_2.setObjectName(_fromUtf8("doubleSpinBox_2"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.doubleSpinBox_2)
        self.label_3 = QtGui.QLabel(self)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.doubleSpinBox_3 = QtGui.QDoubleSpinBox(self)
        self.doubleSpinBox_3.setObjectName(_fromUtf8("doubleSpinBox_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.doubleSpinBox_3)
        self.label_4 = QtGui.QLabel(self)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.doubleSpinBox_4 = QtGui.QDoubleSpinBox(self)
        self.doubleSpinBox_4.setObjectName(_fromUtf8("doubleSpinBox_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.doubleSpinBox_4)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(4, QtGui.QFormLayout.FieldRole, spacerItem1)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)

        self.retranslateUi()
        QtCore.QMetaObject.connectSlotsByName(self)
예제 #3
0
 def setupUi(self):
     """
     Configure the UI elements for the tab.
     """
     self.setObjectName('AdvancedTab')
     super(AdvancedTab, self).setupUi()
     self.ui_group_box = QtGui.QGroupBox(self.left_column)
     self.ui_group_box.setObjectName('ui_group_box')
     self.ui_layout = QtGui.QFormLayout(self.ui_group_box)
     self.ui_layout.setObjectName('ui_layout')
     self.recent_label = QtGui.QLabel(self.ui_group_box)
     self.recent_label.setObjectName('recent_label')
     self.recent_spin_box = QtGui.QSpinBox(self.ui_group_box)
     self.recent_spin_box.setObjectName('recent_spin_box')
     self.recent_spin_box.setMinimum(0)
     self.ui_layout.addRow(self.recent_label, self.recent_spin_box)
     self.media_plugin_check_box = QtGui.QCheckBox(self.ui_group_box)
     self.media_plugin_check_box.setObjectName('media_plugin_check_box')
     self.ui_layout.addRow(self.media_plugin_check_box)
     self.double_click_live_check_box = QtGui.QCheckBox(self.ui_group_box)
     self.double_click_live_check_box.setObjectName(
         'double_click_live_check_box')
     self.ui_layout.addRow(self.double_click_live_check_box)
     self.single_click_preview_check_box = QtGui.QCheckBox(
         self.ui_group_box)
     self.single_click_preview_check_box.setObjectName(
         'single_click_preview_check_box')
     self.ui_layout.addRow(self.single_click_preview_check_box)
     self.expand_service_item_check_box = QtGui.QCheckBox(self.ui_group_box)
     self.expand_service_item_check_box.setObjectName(
         'expand_service_item_check_box')
     self.ui_layout.addRow(self.expand_service_item_check_box)
     self.enable_auto_close_check_box = QtGui.QCheckBox(self.ui_group_box)
     self.enable_auto_close_check_box.setObjectName(
         'enable_auto_close_check_box')
     self.ui_layout.addRow(self.enable_auto_close_check_box)
     self.left_layout.addWidget(self.ui_group_box)
     # Default service name
     self.service_name_group_box = QtGui.QGroupBox(self.left_column)
     self.service_name_group_box.setObjectName('service_name_group_box')
     self.service_name_layout = QtGui.QFormLayout(
         self.service_name_group_box)
     self.service_name_check_box = QtGui.QCheckBox(
         self.service_name_group_box)
     self.service_name_check_box.setObjectName('service_name_check_box')
     self.service_name_layout.setObjectName('service_name_layout')
     self.service_name_layout.addRow(self.service_name_check_box)
     self.service_name_time_label = QtGui.QLabel(
         self.service_name_group_box)
     self.service_name_time_label.setObjectName('service_name_time_label')
     self.service_name_day = QtGui.QComboBox(self.service_name_group_box)
     self.service_name_day.addItems(['', '', '', '', '', '', '', ''])
     self.service_name_day.setObjectName('service_name_day')
     self.service_name_time = QtGui.QTimeEdit(self.service_name_group_box)
     self.service_name_time.setObjectName('service_name_time')
     self.service_name_time_layout = QtGui.QHBoxLayout()
     self.service_name_time_layout.setObjectName('service_name_time_layout')
     self.service_name_time_layout.addWidget(self.service_name_day)
     self.service_name_time_layout.addWidget(self.service_name_time)
     self.service_name_layout.addRow(self.service_name_time_label,
                                     self.service_name_time_layout)
     self.service_name_label = QtGui.QLabel(self.service_name_group_box)
     self.service_name_label.setObjectName('service_name_label')
     self.service_name_edit = QtGui.QLineEdit(self.service_name_group_box)
     self.service_name_edit.setObjectName('service_name_edit')
     self.service_name_edit.setValidator(
         QtGui.QRegExpValidator(QtCore.QRegExp(r'[^/\\?*|<>\[\]":+]+'),
                                self))
     self.service_name_revert_button = QtGui.QToolButton(
         self.service_name_group_box)
     self.service_name_revert_button.setObjectName(
         'service_name_revert_button')
     self.service_name_revert_button.setIcon(
         build_icon(':/general/general_revert.png'))
     self.service_name_button_layout = QtGui.QHBoxLayout()
     self.service_name_button_layout.setObjectName(
         'service_name_button_layout')
     self.service_name_button_layout.addWidget(self.service_name_edit)
     self.service_name_button_layout.addWidget(
         self.service_name_revert_button)
     self.service_name_layout.addRow(self.service_name_label,
                                     self.service_name_button_layout)
     self.service_name_example_label = QtGui.QLabel(
         self.service_name_group_box)
     self.service_name_example_label.setObjectName(
         'service_name_example_label')
     self.service_name_example = QtGui.QLabel(self.service_name_group_box)
     self.service_name_example.setObjectName('service_name_example')
     self.service_name_layout.addRow(self.service_name_example_label,
                                     self.service_name_example)
     self.left_layout.addWidget(self.service_name_group_box)
     # Data Directory
     self.data_directory_group_box = QtGui.QGroupBox(self.left_column)
     self.data_directory_group_box.setObjectName('data_directory_group_box')
     self.data_directory_layout = QtGui.QFormLayout(
         self.data_directory_group_box)
     self.data_directory_layout.setObjectName('data_directory_layout')
     self.data_directory_current_label = QtGui.QLabel(
         self.data_directory_group_box)
     self.data_directory_current_label.setObjectName(
         'data_directory_current_label')
     self.data_directory_label = QtGui.QLabel(self.data_directory_group_box)
     self.data_directory_label.setObjectName('data_directory_label')
     self.data_directory_new_label = QtGui.QLabel(
         self.data_directory_group_box)
     self.data_directory_new_label.setObjectName(
         'data_directory_current_label')
     self.new_data_directory_edit = QtGui.QLineEdit(
         self.data_directory_group_box)
     self.new_data_directory_edit.setObjectName('new_data_directory_edit')
     self.new_data_directory_edit.setReadOnly(True)
     self.new_data_directory_has_files_label = QtGui.QLabel(
         self.data_directory_group_box)
     self.new_data_directory_has_files_label.setObjectName(
         'new_data_directory_has_files_label')
     self.new_data_directory_has_files_label.setWordWrap(True)
     self.data_directory_browse_button = QtGui.QToolButton(
         self.data_directory_group_box)
     self.data_directory_browse_button.setObjectName(
         'data_directory_browse_button')
     self.data_directory_browse_button.setIcon(
         build_icon(':/general/general_open.png'))
     self.data_directory_default_button = QtGui.QToolButton(
         self.data_directory_group_box)
     self.data_directory_default_button.setObjectName(
         'data_directory_default_button')
     self.data_directory_default_button.setIcon(
         build_icon(':/general/general_revert.png'))
     self.data_directory_cancel_button = QtGui.QToolButton(
         self.data_directory_group_box)
     self.data_directory_cancel_button.setObjectName(
         'data_directory_cancel_button')
     self.data_directory_cancel_button.setIcon(
         build_icon(':/general/general_delete.png'))
     self.new_data_directory_label_layout = QtGui.QHBoxLayout()
     self.new_data_directory_label_layout.setObjectName(
         'new_data_directory_label_layout')
     self.new_data_directory_label_layout.addWidget(
         self.new_data_directory_edit)
     self.new_data_directory_label_layout.addWidget(
         self.data_directory_browse_button)
     self.new_data_directory_label_layout.addWidget(
         self.data_directory_default_button)
     self.data_directory_copy_check_layout = QtGui.QHBoxLayout()
     self.data_directory_copy_check_layout.setObjectName(
         'data_directory_copy_check_layout')
     self.data_directory_copy_check_box = QtGui.QCheckBox(
         self.data_directory_group_box)
     self.data_directory_copy_check_box.setObjectName(
         'data_directory_copy_check_box')
     self.data_directory_copy_check_layout.addWidget(
         self.data_directory_copy_check_box)
     self.data_directory_copy_check_layout.addStretch()
     self.data_directory_copy_check_layout.addWidget(
         self.data_directory_cancel_button)
     self.data_directory_layout.addRow(self.data_directory_current_label,
                                       self.data_directory_label)
     self.data_directory_layout.addRow(self.data_directory_new_label,
                                       self.new_data_directory_label_layout)
     self.data_directory_layout.addRow(
         self.data_directory_copy_check_layout)
     self.data_directory_layout.addRow(
         self.new_data_directory_has_files_label)
     self.left_layout.addWidget(self.data_directory_group_box)
     self.left_layout.addStretch()
     # Default Image
     self.default_image_group_box = QtGui.QGroupBox(self.right_column)
     self.default_image_group_box.setObjectName('default_image_group_box')
     self.default_image_layout = QtGui.QFormLayout(
         self.default_image_group_box)
     self.default_image_layout.setObjectName('default_image_layout')
     self.default_color_label = QtGui.QLabel(self.default_image_group_box)
     self.default_color_label.setObjectName('default_color_label')
     self.default_color_button = ColorButton(self.default_image_group_box)
     self.default_color_button.setObjectName('default_color_button')
     self.default_image_layout.addRow(self.default_color_label,
                                      self.default_color_button)
     self.default_file_label = QtGui.QLabel(self.default_image_group_box)
     self.default_file_label.setObjectName('default_file_label')
     self.default_file_edit = QtGui.QLineEdit(self.default_image_group_box)
     self.default_file_edit.setObjectName('default_file_edit')
     self.default_browse_button = QtGui.QToolButton(
         self.default_image_group_box)
     self.default_browse_button.setObjectName('default_browse_button')
     self.default_browse_button.setIcon(
         build_icon(':/general/general_open.png'))
     self.default_revert_button = QtGui.QToolButton(
         self.default_image_group_box)
     self.default_revert_button.setObjectName('default_revert_button')
     self.default_revert_button.setIcon(
         build_icon(':/general/general_revert.png'))
     self.default_file_layout = QtGui.QHBoxLayout()
     self.default_file_layout.setObjectName('default_file_layout')
     self.default_file_layout.addWidget(self.default_file_edit)
     self.default_file_layout.addWidget(self.default_browse_button)
     self.default_file_layout.addWidget(self.default_revert_button)
     self.default_image_layout.addRow(self.default_file_label,
                                      self.default_file_layout)
     self.right_layout.addWidget(self.default_image_group_box)
     # Hide mouse
     self.hide_mouse_group_box = QtGui.QGroupBox(self.right_column)
     self.hide_mouse_group_box.setObjectName('hide_mouse_group_box')
     self.hide_mouse_layout = QtGui.QVBoxLayout(self.hide_mouse_group_box)
     self.hide_mouse_layout.setObjectName('hide_mouse_layout')
     self.hide_mouse_check_box = QtGui.QCheckBox(self.hide_mouse_group_box)
     self.hide_mouse_check_box.setObjectName('hide_mouse_check_box')
     self.hide_mouse_layout.addWidget(self.hide_mouse_check_box)
     self.right_layout.addWidget(self.hide_mouse_group_box)
     # Service Item Slide Limits
     self.slide_group_box = QtGui.QGroupBox(self.right_column)
     self.slide_group_box.setObjectName('slide_group_box')
     self.slide_layout = QtGui.QVBoxLayout(self.slide_group_box)
     self.slide_layout.setObjectName('slide_layout')
     self.slide_label = QtGui.QLabel(self.slide_group_box)
     self.slide_label.setWordWrap(True)
     self.slide_layout.addWidget(self.slide_label)
     self.end_slide_radio_button = QtGui.QRadioButton(self.slide_group_box)
     self.end_slide_radio_button.setObjectName('end_slide_radio_button')
     self.slide_layout.addWidget(self.end_slide_radio_button)
     self.wrap_slide_radio_button = QtGui.QRadioButton(self.slide_group_box)
     self.wrap_slide_radio_button.setObjectName('wrap_slide_radio_button')
     self.slide_layout.addWidget(self.wrap_slide_radio_button)
     self.next_item_radio_button = QtGui.QRadioButton(self.slide_group_box)
     self.next_item_radio_button.setObjectName('next_item_radio_button')
     self.slide_layout.addWidget(self.next_item_radio_button)
     self.right_layout.addWidget(self.slide_group_box)
     # Display Workarounds
     self.display_workaround_group_box = QtGui.QGroupBox(self.left_column)
     self.display_workaround_group_box.setObjectName(
         'display_workaround_group_box')
     self.display_workaround_layout = QtGui.QVBoxLayout(
         self.display_workaround_group_box)
     self.display_workaround_layout.setObjectName(
         'display_workaround_layout')
     self.x11_bypass_check_box = QtGui.QCheckBox(
         self.display_workaround_group_box)
     self.x11_bypass_check_box.setObjectName('x11_bypass_check_box')
     self.display_workaround_layout.addWidget(self.x11_bypass_check_box)
     self.alternate_rows_check_box = QtGui.QCheckBox(
         self.display_workaround_group_box)
     self.alternate_rows_check_box.setObjectName('alternate_rows_check_box')
     self.display_workaround_layout.addWidget(self.alternate_rows_check_box)
     self.right_layout.addWidget(self.display_workaround_group_box)
     self.right_layout.addStretch()
     self.should_update_service_name_example = False
     self.service_name_check_box.toggled.connect(
         self.service_name_check_box_toggled)
     self.service_name_day.currentIndexChanged.connect(
         self.on_service_name_day_changed)
     self.service_name_time.timeChanged.connect(
         self.update_service_name_example)
     self.service_name_edit.textChanged.connect(
         self.update_service_name_example)
     self.service_name_revert_button.clicked.connect(
         self.on_service_name_revert_button_clicked)
     self.default_color_button.colorChanged.connect(
         self.on_background_color_changed)
     self.default_browse_button.clicked.connect(
         self.on_default_browse_button_clicked)
     self.default_revert_button.clicked.connect(
         self.on_default_revert_button_clicked)
     self.alternate_rows_check_box.toggled.connect(
         self.on_alternate_rows_check_box_toggled)
     self.data_directory_browse_button.clicked.connect(
         self.on_data_directory_browse_button_clicked)
     self.data_directory_default_button.clicked.connect(
         self.on_data_directory_default_button_clicked)
     self.data_directory_cancel_button.clicked.connect(
         self.on_data_directory_cancel_button_clicked)
     self.data_directory_copy_check_box.toggled.connect(
         self.on_data_directory_copy_check_box_toggled)
     self.end_slide_radio_button.clicked.connect(
         self.on_end_slide_button_clicked)
     self.wrap_slide_radio_button.clicked.connect(
         self.on_wrap_slide_button_clicked)
     self.next_item_radio_button.clicked.connect(
         self.on_next_item_button_clicked)
예제 #4
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(318, 386)
        self.verticalLayout = QtGui.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_explication = QtGui.QLabel(Dialog)
        self.label_explication.setObjectName(_fromUtf8("label_explication"))
        self.verticalLayout.addWidget(self.label_explication)
        self.listView = QtGui.QListView(Dialog)
        self.listView.setMinimumSize(QtCore.QSize(300, 0))
        self.listView.setObjectName(_fromUtf8("listView"))
        self.verticalLayout.addWidget(self.listView)
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_basepath = QtGui.QLabel(Dialog)
        self.label_basepath.setObjectName(_fromUtf8("label_basepath"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.label_basepath)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.pushButton_base = QtGui.QPushButton(Dialog)
        self.pushButton_base.setObjectName(_fromUtf8("pushButton_base"))
        self.horizontalLayout_3.addWidget(self.pushButton_base)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.formLayout.setLayout(0, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_3)
        self.label_basepath1 = QtGui.QLabel(Dialog)
        self.label_basepath1.setObjectName(_fromUtf8("label_basepath1"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.label_basepath1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_basepath2 = QtGui.QLabel(Dialog)
        self.label_basepath2.setObjectName(_fromUtf8("label_basepath2"))
        self.horizontalLayout_2.addWidget(self.label_basepath2)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.formLayout.setLayout(1, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_2)
        self.label_basename = QtGui.QLabel(Dialog)
        self.label_basename.setObjectName(_fromUtf8("label_basename"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.label_basename)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.lineEdit_nom_base = QtGui.QLineEdit(Dialog)
        self.lineEdit_nom_base.setMinimumSize(QtCore.QSize(100, 0))
        self.lineEdit_nom_base.setObjectName(_fromUtf8("lineEdit_nom_base"))
        self.horizontalLayout.addWidget(self.lineEdit_nom_base)
        self.label_nom_base_extension = QtGui.QLabel(Dialog)
        self.label_nom_base_extension.setObjectName(
            _fromUtf8("label_nom_base_extension"))
        self.horizontalLayout.addWidget(self.label_nom_base_extension)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.formLayout.setLayout(2, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.label_test = QtGui.QLabel(Dialog)
        self.label_test.setObjectName(_fromUtf8("label_test"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.label_test)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.checkBox_test = QtGui.QCheckBox(Dialog)
        self.checkBox_test.setText(_fromUtf8(""))
        self.checkBox_test.setObjectName(_fromUtf8("checkBox_test"))
        self.horizontalLayout_5.addWidget(self.checkBox_test)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem3)
        self.formLayout.setLayout(3, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_5)
        self.verticalLayout.addLayout(self.formLayout)
        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #5
0
    def setupUi(self, ComboEditWidget):
        ComboEditWidget.setObjectName(_fromUtf8("ComboEditWidget"))
        ComboEditWidget.resize(412, 32)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            ComboEditWidget.sizePolicy().hasHeightForWidth())
        ComboEditWidget.setSizePolicy(sizePolicy)
        self.formLayout = QtGui.QFormLayout(ComboEditWidget)
        self.formLayout.setMargin(2)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.horizontalLayout_1 = QtGui.QHBoxLayout()
        self.horizontalLayout_1.setObjectName(_fromUtf8("horizontalLayout_1"))
        self.label_1 = QtGui.QLabel(ComboEditWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_1.sizePolicy().hasHeightForWidth())
        self.label_1.setSizePolicy(sizePolicy)
        self.label_1.setMinimumSize(QtCore.QSize(70, 0))
        self.label_1.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_1.setObjectName(_fromUtf8("label_1"))
        self.horizontalLayout_1.addWidget(self.label_1)
        self.comboBox = QtGui.QComboBox(ComboEditWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox.sizePolicy().hasHeightForWidth())
        self.comboBox.setSizePolicy(sizePolicy)
        self.comboBox.setMinimumSize(QtCore.QSize(120, 0))
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.horizontalLayout_1.addWidget(self.comboBox)
        self.formLayout.setLayout(0, QtGui.QFormLayout.LabelRole,
                                  self.horizontalLayout_1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_2 = QtGui.QLabel(ComboEditWidget)
        self.label_2.setMinimumSize(QtCore.QSize(40, 0))
        self.label_2.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.lineEdit = QtGui.QLineEdit(ComboEditWidget)
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.horizontalLayout_2.addWidget(self.lineEdit)
        self.toolButton = QtGui.QToolButton(ComboEditWidget)
        self.toolButton.setObjectName(_fromUtf8("toolButton"))
        self.horizontalLayout_2.addWidget(self.toolButton)
        self.formLayout.setLayout(0, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_2)

        self.retranslateUi(ComboEditWidget)
        QtCore.QMetaObject.connectSlotsByName(ComboEditWidget)
예제 #6
0
    def setupUi(self, modify_my_teacher):
        modify_my_teacher.setObjectName(_fromUtf8("modify_my_teacher"))
        modify_my_teacher.resize(720, 538)
        self.formLayoutWidget = QtGui.QWidget(modify_my_teacher)
        self.formLayoutWidget.setGeometry(QtCore.QRect(10, 10, 701, 521))
        self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
        self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.NameLabel = QtGui.QLabel(self.formLayoutWidget)
        self.NameLabel.setObjectName(_fromUtf8("NameLabel"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.NameLabel)
        self.nameLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.nameLineEdit.setObjectName(_fromUtf8("nameLineEdit"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.nameLineEdit)
        self.DOBlabel = QtGui.QLabel(self.formLayoutWidget)
        self.DOBlabel.setObjectName(_fromUtf8("DOBlabel"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.DOBlabel)
        self.DOBDateEdit = QtGui.QDateEdit(self.formLayoutWidget)
        self.DOBDateEdit.setDate(QtCore.QDate(1970, 1, 1))
        self.DOBDateEdit.setObjectName(_fromUtf8("DOBDateEdit"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.DOBDateEdit)
        self.homePhoneLabel = QtGui.QLabel(self.formLayoutWidget)
        self.homePhoneLabel.setObjectName(_fromUtf8("homePhoneLabel"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.homePhoneLabel)
        self.homePhoneLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.homePhoneLineEdit.setObjectName(_fromUtf8("homePhoneLineEdit"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.homePhoneLineEdit)
        self.cellPhoneLabel = QtGui.QLabel(self.formLayoutWidget)
        self.cellPhoneLabel.setObjectName(_fromUtf8("cellPhoneLabel"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.cellPhoneLabel)
        self.cellPhoneLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.cellPhoneLineEdit.setObjectName(_fromUtf8("cellPhoneLineEdit"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.cellPhoneLineEdit)
        self.workPhoneLabel = QtGui.QLabel(self.formLayoutWidget)
        self.workPhoneLabel.setObjectName(_fromUtf8("workPhoneLabel"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole,
                                  self.workPhoneLabel)
        self.workPhoneLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.workPhoneLineEdit.setObjectName(_fromUtf8("workPhoneLineEdit"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole,
                                  self.workPhoneLineEdit)
        self.addressLabel = QtGui.QLabel(self.formLayoutWidget)
        self.addressLabel.setObjectName(_fromUtf8("addressLabel"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole,
                                  self.addressLabel)
        self.addressLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.addressLineEdit.setObjectName(_fromUtf8("addressLineEdit"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole,
                                  self.addressLineEdit)
        self.cityLabel = QtGui.QLabel(self.formLayoutWidget)
        self.cityLabel.setObjectName(_fromUtf8("cityLabel"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole,
                                  self.cityLabel)
        self.cityLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.cityLineEdit.setObjectName(_fromUtf8("cityLineEdit"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole,
                                  self.cityLineEdit)
        self.stateLabel = QtGui.QLabel(self.formLayoutWidget)
        self.stateLabel.setObjectName(_fromUtf8("stateLabel"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole,
                                  self.stateLabel)
        self.stateComboBox = QtGui.QComboBox(self.formLayoutWidget)
        self.stateComboBox.setObjectName(_fromUtf8("stateComboBox"))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.stateComboBox.addItem(_fromUtf8(""))
        self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole,
                                  self.stateComboBox)
        self.zipcodeLabel = QtGui.QLabel(self.formLayoutWidget)
        self.zipcodeLabel.setObjectName(_fromUtf8("zipcodeLabel"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole,
                                  self.zipcodeLabel)
        self.zipLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.zipLineEdit.setObjectName(_fromUtf8("zipLineEdit"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole,
                                  self.zipLineEdit)
        self.emailLabel = QtGui.QLabel(self.formLayoutWidget)
        self.emailLabel.setObjectName(_fromUtf8("emailLabel"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole,
                                  self.emailLabel)
        self.emailLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.emailLineEdit.setObjectName(_fromUtf8("emailLineEdit"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole,
                                  self.emailLineEdit)
        self.genderLabel = QtGui.QLabel(self.formLayoutWidget)
        self.genderLabel.setObjectName(_fromUtf8("genderLabel"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole,
                                  self.genderLabel)
        self.genderComboBox = QtGui.QComboBox(self.formLayoutWidget)
        self.genderComboBox.setObjectName(_fromUtf8("genderComboBox"))
        self.genderComboBox.addItem(_fromUtf8(""))
        self.genderComboBox.addItem(_fromUtf8(""))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole,
                                  self.genderComboBox)
        self.SSNLabel = QtGui.QLabel(self.formLayoutWidget)
        self.SSNLabel.setObjectName(_fromUtf8("SSNLabel"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.LabelRole,
                                  self.SSNLabel)
        self.SSNLineEdit = QtGui.QLineEdit(self.formLayoutWidget)
        self.SSNLineEdit.setObjectName(_fromUtf8("SSNLineEdit"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.FieldRole,
                                  self.SSNLineEdit)
        self.medicalLabel = QtGui.QLabel(self.formLayoutWidget)
        self.medicalLabel.setObjectName(_fromUtf8("medicalLabel"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole,
                                  self.medicalLabel)
        self.medicalTextEdit = QtGui.QTextEdit(self.formLayoutWidget)
        self.medicalTextEdit.setObjectName(_fromUtf8("medicalTextEdit"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.FieldRole,
                                  self.medicalTextEdit)
        self.requiredLabel = QtGui.QLabel(self.formLayoutWidget)
        self.requiredLabel.setObjectName(_fromUtf8("requiredLabel"))
        self.formLayout.setWidget(13, QtGui.QFormLayout.LabelRole,
                                  self.requiredLabel)
        self.Submit_btn = QtGui.QPushButton(self.formLayoutWidget)
        self.Submit_btn.setObjectName(_fromUtf8("Submit_btn"))
        self.formLayout.setWidget(13, QtGui.QFormLayout.FieldRole,
                                  self.Submit_btn)

        self.retranslateUi(modify_my_teacher)
        QtCore.QMetaObject.connectSlotsByName(modify_my_teacher)
예제 #7
0
    def setupUi(self, ComputerVisionWidget):
        ComputerVisionWidget.setObjectName(_fromUtf8("ComputerVisionWidget"))
        ComputerVisionWidget.resize(807, 542)
        self.horizontalLayout = QtGui.QHBoxLayout(ComputerVisionWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.Left_Camera = QtGui.QLabel(ComputerVisionWidget)
        self.Left_Camera.setEnabled(True)
        self.Left_Camera.setMinimumSize(QtCore.QSize(30, 30))
        self.Left_Camera.setScaledContents(True)
        self.Left_Camera.setObjectName(_fromUtf8("Left_Camera"))
        self.horizontalLayout_2.addWidget(self.Left_Camera)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.hideSettingsButton = QtGui.QPushButton(ComputerVisionWidget)
        self.hideSettingsButton.setObjectName(_fromUtf8("hideSettingsButton"))
        self.verticalLayout_2.addWidget(self.hideSettingsButton)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.settingsWidget = QtGui.QWidget(ComputerVisionWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.settingsWidget.sizePolicy().hasHeightForWidth())
        self.settingsWidget.setSizePolicy(sizePolicy)
        self.settingsWidget.setObjectName(_fromUtf8("settingsWidget"))
        self.gridLayout = QtGui.QGridLayout(self.settingsWidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label = QtGui.QLabel(self.settingsWidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
        self.selectCameraCB = QtGui.QComboBox(self.settingsWidget)
        self.selectCameraCB.setObjectName(_fromUtf8("selectCameraCB"))
        self.selectCameraCB.addItem(_fromUtf8(""))
        self.selectCameraCB.addItem(_fromUtf8(""))
        self.selectCameraCB.addItem(_fromUtf8(""))
        self.selectCameraCB.addItem(_fromUtf8(""))
        self.selectCameraCB.addItem(_fromUtf8(""))
        self.selectCameraCB.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.selectCameraCB)
        self.label_3 = QtGui.QLabel(self.settingsWidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_3)
        self.label_2 = QtGui.QLabel(self.settingsWidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_2)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.formLayout_2.setLayout(5, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_9)
        self.label_4 = QtGui.QLabel(self.settingsWidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_2.setWidget(7, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.formLayout_2.setLayout(7, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_10)
        self.label_5 = QtGui.QLabel(self.settingsWidget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(8, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.formLayout_2.setLayout(8, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_4)
        self.label_6 = QtGui.QLabel(self.settingsWidget)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(9, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName(
            _fromUtf8("horizontalLayout_11"))
        self.verticalLayout_8 = QtGui.QVBoxLayout()
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.verticalLayout_8.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.verticalLayout_8.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.verticalLayout_8.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.verticalLayout_8.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_15 = QtGui.QHBoxLayout()
        self.horizontalLayout_15.setObjectName(
            _fromUtf8("horizontalLayout_15"))
        self.verticalLayout_8.addLayout(self.horizontalLayout_15)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName(
            _fromUtf8("horizontalLayout_13"))
        self.verticalLayout_8.addLayout(self.horizontalLayout_13)
        self.horizontalLayout_11.addLayout(self.verticalLayout_8)
        self.formLayout_2.setLayout(9, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_11)
        self.missionList = QtGui.QComboBox(self.settingsWidget)
        self.missionList.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.missionList.setObjectName(_fromUtf8("missionList"))
        self.missionList.addItem(_fromUtf8(""))
        self.missionList.addItem(_fromUtf8(""))
        self.missionList.addItem(_fromUtf8(""))
        self.missionList.addItem(_fromUtf8(""))
        self.missionList.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(12, QtGui.QFormLayout.FieldRole,
                                    self.missionList)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.saveImageSettingsButton = QtGui.QPushButton(self.settingsWidget)
        self.saveImageSettingsButton.setObjectName(
            _fromUtf8("saveImageSettingsButton"))
        self.horizontalLayout_3.addWidget(self.saveImageSettingsButton)
        self.formLayout_2.setLayout(13, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_3)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(
            _fromUtf8("horizontalLayout_12"))
        self.useImageButton = QtGui.QPushButton(self.settingsWidget)
        self.useImageButton.setObjectName(_fromUtf8("useImageButton"))
        self.horizontalLayout_12.addWidget(self.useImageButton)
        self.imagePathLineEdit = QtGui.QLineEdit(self.settingsWidget)
        self.imagePathLineEdit.setObjectName(_fromUtf8("imagePathLineEdit"))
        self.horizontalLayout_12.addWidget(self.imagePathLineEdit)
        self.runImageButton = QtGui.QPushButton(self.settingsWidget)
        self.runImageButton.setObjectName(_fromUtf8("runImageButton"))
        self.horizontalLayout_12.addWidget(self.runImageButton)
        self.formLayout_2.setLayout(14, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_12)
        self.horizontalLayout_14 = QtGui.QHBoxLayout()
        self.horizontalLayout_14.setObjectName(
            _fromUtf8("horizontalLayout_14"))
        self.useVideoButton = QtGui.QPushButton(self.settingsWidget)
        self.useVideoButton.setObjectName(_fromUtf8("useVideoButton"))
        self.horizontalLayout_14.addWidget(self.useVideoButton)
        self.videoPathLineEdit = QtGui.QLineEdit(self.settingsWidget)
        self.videoPathLineEdit.setObjectName(_fromUtf8("videoPathLineEdit"))
        self.horizontalLayout_14.addWidget(self.videoPathLineEdit)
        self.runVideoButton = QtGui.QPushButton(self.settingsWidget)
        self.runVideoButton.setObjectName(_fromUtf8("runVideoButton"))
        self.horizontalLayout_14.addWidget(self.runVideoButton)
        self.formLayout_2.setLayout(16, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_14)
        self.horizontalLayout_16 = QtGui.QHBoxLayout()
        self.horizontalLayout_16.setObjectName(
            _fromUtf8("horizontalLayout_16"))
        self.formLayout_2.setLayout(2, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_16)
        self.horizontalLayout_17 = QtGui.QHBoxLayout()
        self.horizontalLayout_17.setObjectName(
            _fromUtf8("horizontalLayout_17"))
        self.findModelButton = QtGui.QPushButton(self.settingsWidget)
        self.findModelButton.setObjectName(_fromUtf8("findModelButton"))
        self.horizontalLayout_17.addWidget(self.findModelButton)
        self.useNNCheckBox = QtGui.QCheckBox(self.settingsWidget)
        self.useNNCheckBox.setObjectName(_fromUtf8("useNNCheckBox"))
        self.horizontalLayout_17.addWidget(self.useNNCheckBox)
        self.modelPathLineEdit = QtGui.QLineEdit(self.settingsWidget)
        self.modelPathLineEdit.setObjectName(_fromUtf8("modelPathLineEdit"))
        self.horizontalLayout_17.addWidget(self.modelPathLineEdit)
        self.formLayout_2.setLayout(3, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_17)
        self.hsiMaxLayout = QtGui.QHBoxLayout()
        self.hsiMaxLayout.setObjectName(_fromUtf8("hsiMaxLayout"))
        self.formLayout_2.setLayout(10, QtGui.QFormLayout.FieldRole,
                                    self.hsiMaxLayout)
        self.label_7 = QtGui.QLabel(self.settingsWidget)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_2.setWidget(10, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.hsiMinLayout = QtGui.QHBoxLayout()
        self.hsiMinLayout.setObjectName(_fromUtf8("hsiMinLayout"))
        self.formLayout_2.setLayout(11, QtGui.QFormLayout.FieldRole,
                                    self.hsiMinLayout)
        self.label_8 = QtGui.QLabel(self.settingsWidget)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(11, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.gridLayout.addLayout(self.formLayout_2, 1, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.settingsWidget)
        self.verticalLayout_2.addLayout(self.verticalLayout_3)
        self.horizontalLayout.addLayout(self.verticalLayout_2)

        self.retranslateUi(ComputerVisionWidget)
        QtCore.QMetaObject.connectSlotsByName(ComputerVisionWidget)
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(545, 625)
        MainWindow.setMinimumSize(QtCore.QSize(345, 425))
        MainWindow.setMaximumSize(QtCore.QSize(545, 625))
        font = QtGui.QFont()
        font.setPointSize(13)
        MainWindow.setFont(font)
        MainWindow.setContextMenuPolicy(QtCore.Qt.PreventContextMenu)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("bbc.png")), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setMaximumSize(QtCore.QSize(800, 559))
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.formLayout = QtGui.QFormLayout(self.centralwidget)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.listWidget = QtGui.QListWidget(self.centralwidget)
        self.listWidget.setEnabled(True)
        self.listWidget.setMinimumSize(QtCore.QSize(300, 470))
        self.listWidget.setMaximumSize(QtCore.QSize(500, 490))
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.SpanningRole,
                                  self.listWidget)
        self.checkBox = QtGui.QCheckBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.checkBox.setFont(font)
        self.checkBox.setObjectName(_fromUtf8("checkBox"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.SpanningRole,
                                  self.checkBox)
        self.go_button = QtGui.QPushButton(self.centralwidget)
        self.go_button.setMinimumSize(QtCore.QSize(45, 35))
        self.go_button.setMaximumSize(QtCore.QSize(45, 28))
        self.go_button.setDefault(False)
        self.go_button.setFlat(False)
        self.go_button.setObjectName(_fromUtf8("go_button"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.go_button)
        self.query_text = QtGui.QPlainTextEdit(self.centralwidget)
        self.query_text.setMinimumSize(QtCore.QSize(200, 35))
        self.query_text.setMaximumSize(QtCore.QSize(450, 35))
        font = QtGui.QFont()
        font.setPointSize(14)
        self.query_text.setFont(font)
        self.query_text.setObjectName(_fromUtf8("query_text"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.query_text)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 545, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionPreproces_Setup = QtGui.QAction(MainWindow)
        self.actionPreproces_Setup.setObjectName(
            _fromUtf8("actionPreproces_Setup"))

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #9
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(282, 398)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.ip_c = QtGui.QLineEdit(self.centralwidget)
        self.ip_c.setObjectName(_fromUtf8("ip_c"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.ip_c)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.port_c = QtGui.QLineEdit(self.centralwidget)
        self.port_c.setObjectName(_fromUtf8("port_c"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.port_c)
        self.label_6 = QtGui.QLabel(self.centralwidget)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_6)
        self.comboServers = QtGui.QComboBox(self.centralwidget)
        self.comboServers.setObjectName(_fromUtf8("comboServers"))
        self.comboServers.addItem(_fromUtf8(""))
        self.comboServers.addItem(_fromUtf8(""))
        self.comboServers.addItem(_fromUtf8(""))
        self.comboServers.addItem(_fromUtf8(""))
        self.comboServers.addItem(_fromUtf8(""))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.comboServers)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.SpanningRole, self.line)
        self.label_7 = QtGui.QLabel(self.centralwidget)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_7)
        self.network_c = QtGui.QLineEdit(self.centralwidget)
        self.network_c.setObjectName(_fromUtf8("network_c"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.FieldRole, self.network_c)
        self.label_8 = QtGui.QLabel(self.centralwidget)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_8)
        self.station_c = QtGui.QLineEdit(self.centralwidget)
        self.station_c.setObjectName(_fromUtf8("station_c"))
        self.formLayout_2.setWidget(5, QtGui.QFormLayout.FieldRole, self.station_c)
        self.label_9 = QtGui.QLabel(self.centralwidget)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_2.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_9)
        self.channel_c = QtGui.QLineEdit(self.centralwidget)
        self.channel_c.setObjectName(_fromUtf8("channel_c"))
        self.formLayout_2.setWidget(6, QtGui.QFormLayout.FieldRole, self.channel_c)
        self.label_10 = QtGui.QLabel(self.centralwidget)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_2.setWidget(7, QtGui.QFormLayout.LabelRole, self.label_10)
        self.location_c = QtGui.QLineEdit(self.centralwidget)
        self.location_c.setObjectName(_fromUtf8("location_c"))
        self.formLayout_2.setWidget(7, QtGui.QFormLayout.FieldRole, self.location_c)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.formLayout_2.setWidget(8, QtGui.QFormLayout.SpanningRole, self.line_2)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout_2.setWidget(10, QtGui.QFormLayout.LabelRole, self.label_3)
        self.startTime = QtGui.QDateTimeEdit(self.centralwidget)
        self.startTime.setObjectName(_fromUtf8("startTime"))
        self.formLayout_2.setWidget(10, QtGui.QFormLayout.FieldRole, self.startTime)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(11, QtGui.QFormLayout.LabelRole, self.label_5)
        self.endTime = QtGui.QDateTimeEdit(self.centralwidget)
        self.endTime.setObjectName(_fromUtf8("endTime"))
        self.formLayout_2.setWidget(11, QtGui.QFormLayout.FieldRole, self.endTime)
        self.label_filename_2 = QtGui.QLabel(self.centralwidget)
        self.label_filename_2.setText(_fromUtf8(""))
        self.label_filename_2.setObjectName(_fromUtf8("label_filename_2"))
        self.formLayout_2.setWidget(12, QtGui.QFormLayout.FieldRole, self.label_filename_2)
        self.verticalLayout.addLayout(self.formLayout_2)
        self.requestbutton = QtGui.QPushButton(self.centralwidget)
        self.requestbutton.setObjectName(_fromUtf8("requestbutton"))
        self.verticalLayout.addWidget(self.requestbutton)
        self.verticalLayout_2.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #10
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(223, 420)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
        Form.setSizePolicy(sizePolicy)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.pushButton = QtGui.QPushButton(Form)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.SpanningRole,
                                  self.pushButton)
        self.pushButton_3 = QtGui.QPushButton(Form)
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.SpanningRole,
                                  self.pushButton_3)
        self.msg = QtGui.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.msg.setFont(font)
        self.msg.setText(_fromUtf8(""))
        self.msg.setObjectName(_fromUtf8("msg"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.SpanningRole, self.msg)
        self.CLabel = QtGui.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.CLabel.setFont(font)
        self.CLabel.setText(_fromUtf8(""))
        self.CLabel.setObjectName(_fromUtf8("CLabel"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.SpanningRole,
                                  self.CLabel)
        self.LLabel = QtGui.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.LLabel.setFont(font)
        self.LLabel.setText(_fromUtf8(""))
        self.LLabel.setObjectName(_fromUtf8("LLabel"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.SpanningRole,
                                  self.LLabel)
        self.RLabel = QtGui.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.RLabel.setFont(font)
        self.RLabel.setText(_fromUtf8(""))
        self.RLabel.setObjectName(_fromUtf8("RLabel"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.SpanningRole,
                                  self.RLabel)
        self.LCLabel = QtGui.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.LCLabel.setFont(font)
        self.LCLabel.setText(_fromUtf8(""))
        self.LCLabel.setObjectName(_fromUtf8("LCLabel"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.SpanningRole,
                                  self.LCLabel)
        self.ILabel = QtGui.QLabel(Form)
        font = QtGui.QFont()
        font.setPointSize(9)
        self.ILabel.setFont(font)
        self.ILabel.setText(_fromUtf8(""))
        self.ILabel.setObjectName(_fromUtf8("ILabel"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.SpanningRole,
                                  self.ILabel)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(9, QtGui.QFormLayout.SpanningRole, spacerItem)
        self.pushButton_2 = QtGui.QPushButton(Form)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.SpanningRole,
                                  self.pushButton_2)
        self.indicator = QtGui.QLabel(Form)
        self.indicator.setMinimumSize(QtCore.QSize(0, 15))
        self.indicator.setMaximumSize(QtCore.QSize(16777215, 10))
        self.indicator.setObjectName(_fromUtf8("indicator"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.SpanningRole,
                                  self.indicator)
        self.gridLayout.addLayout(self.formLayout, 0, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QObject.connect(self.pushButton_2,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               Form.showData)
        QtCore.QObject.connect(self.pushButton,
                               QtCore.SIGNAL(_fromUtf8("clicked()")), Form.run)
        QtCore.QObject.connect(self.pushButton_3,
                               QtCore.SIGNAL(_fromUtf8("clicked()")), Form.fit)
        QtCore.QMetaObject.connectSlotsByName(Form)
예제 #11
0
    def setupUi(self, NameSearchWidget):
        NameSearchWidget.setObjectName(_fromUtf8("NameSearchWidget"))
        NameSearchWidget.resize(529, 373)
        NameSearchWidget.setWindowTitle(
            QtGui.QApplication.translate("NameSearchWidget", "Form", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.verticalLayout = QtGui.QVBoxLayout(NameSearchWidget)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabs = QtGui.QTabWidget(NameSearchWidget)
        self.tabs.setObjectName(_fromUtf8("tabs"))
        self.tabSearch = QtGui.QWidget()
        self.tabSearch.setObjectName(_fromUtf8("tabSearch"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabSearch)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.uSearchText = QtGui.QLineEdit(self.tabSearch)
        self.uSearchText.setObjectName(_fromUtf8("uSearchText"))
        self.horizontalLayout.addWidget(self.uSearchText)
        self.uSearchButton = QtGui.QToolButton(self.tabSearch)
        self.uSearchButton.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Search", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.uSearchButton.setObjectName(_fromUtf8("uSearchButton"))
        self.horizontalLayout.addWidget(self.uSearchButton)
        self.uClearSearch = QtGui.QToolButton(self.tabSearch)
        self.uClearSearch.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Clear", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.uClearSearch.setObjectName(_fromUtf8("uClearSearch"))
        self.horizontalLayout.addWidget(self.uClearSearch)
        self.uToggleAdvanced = QtGui.QToolButton(self.tabSearch)
        self.uToggleAdvanced.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Advanced", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.uToggleAdvanced.setObjectName(_fromUtf8("uToggleAdvanced"))
        self.horizontalLayout.addWidget(self.uToggleAdvanced)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.uSearchAdvanced = QtGui.QFrame(self.tabSearch)
        self.uSearchAdvanced.setFrameShape(QtGui.QFrame.StyledPanel)
        self.uSearchAdvanced.setFrameShadow(QtGui.QFrame.Raised)
        self.uSearchAdvanced.setObjectName(_fromUtf8("uSearchAdvanced"))
        self.formLayout_3 = QtGui.QFormLayout(self.uSearchAdvanced)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_2 = QtGui.QLabel(self.uSearchAdvanced)
        self.label_2.setText(
            QtGui.QApplication.translate("NameSearchWidget",
                                         "Feature class/type", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_2)
        self.label_3 = QtGui.QLabel(self.uSearchAdvanced)
        self.label_3.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Name status",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_3)
        self.uSearchNameStatus = QtGui.QComboBox(self.uSearchAdvanced)
        self.uSearchNameStatus.setObjectName(_fromUtf8("uSearchNameStatus"))
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.uSearchNameStatus)
        self.uSearchMapExtent = QtGui.QCheckBox(self.uSearchAdvanced)
        self.uSearchMapExtent.setText(
            QtGui.QApplication.translate("NameSearchWidget",
                                         "Limit search to map area", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.uSearchMapExtent.setObjectName(_fromUtf8("uSearchMapExtent"))
        self.formLayout_3.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.uSearchMapExtent)
        self.uSearchUnpublished = QtGui.QCheckBox(self.uSearchAdvanced)
        self.uSearchUnpublished.setText(
            QtGui.QApplication.translate(
                "NameSearchWidget",
                "Only names with \"Not published\" annotation", None,
                QtGui.QApplication.UnicodeUTF8))
        self.uSearchUnpublished.setObjectName(_fromUtf8("uSearchUnpublished"))
        self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.uSearchUnpublished)
        self.label_4 = QtGui.QLabel(self.uSearchAdvanced)
        self.label_4.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Maximum matches",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_3.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.uSearchMaxResults = QtGui.QSpinBox(self.uSearchAdvanced)
        self.uSearchMaxResults.setMinimum(10)
        self.uSearchMaxResults.setMaximum(1000000)
        self.uSearchMaxResults.setSingleStep(100)
        self.uSearchMaxResults.setProperty("value", 100)
        self.uSearchMaxResults.setObjectName(_fromUtf8("uSearchMaxResults"))
        self.horizontalLayout_2.addWidget(self.uSearchMaxResults)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.formLayout_3.setLayout(5, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.uSearchFeatClass = QtGui.QComboBox(self.uSearchAdvanced)
        self.uSearchFeatClass.setObjectName(_fromUtf8("uSearchFeatClass"))
        self.horizontalLayout_4.addWidget(self.uSearchFeatClass)
        self.uSearchFeatType = QtGui.QComboBox(self.uSearchAdvanced)
        self.uSearchFeatType.setObjectName(_fromUtf8("uSearchFeatType"))
        self.horizontalLayout_4.addWidget(self.uSearchFeatType)
        self.formLayout_3.setLayout(0, QtGui.QFormLayout.FieldRole,
                                    self.horizontalLayout_4)
        self.verticalLayout_2.addWidget(self.uSearchAdvanced)
        self.uSearchResults = ListModelTableView(self.tabSearch)
        self.uSearchResults.setObjectName(_fromUtf8("uSearchResults"))
        self.verticalLayout_2.addWidget(self.uSearchResults)
        self.uSearchStatus = QtGui.QLabel(self.tabSearch)
        self.uSearchStatus.setText(_fromUtf8(""))
        self.uSearchStatus.setObjectName(_fromUtf8("uSearchStatus"))
        self.verticalLayout_2.addWidget(self.uSearchStatus)
        self.tabs.addTab(self.tabSearch, _fromUtf8(""))
        self.tabRecent = QtGui.QWidget()
        self.tabRecent.setObjectName(_fromUtf8("tabRecent"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabRecent)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.uAllUsers = QtGui.QCheckBox(self.tabRecent)
        self.uAllUsers.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Any user", None,
                                         QtGui.QApplication.UnicodeUTF8))
        self.uAllUsers.setObjectName(_fromUtf8("uAllUsers"))
        self.horizontalLayout_3.addWidget(self.uAllUsers)
        self.uEditOnly = QtGui.QCheckBox(self.tabRecent)
        self.uEditOnly.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Edited only",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.uEditOnly.setObjectName(_fromUtf8("uEditOnly"))
        self.horizontalLayout_3.addWidget(self.uEditOnly)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.label = QtGui.QLabel(self.tabRecent)
        self.label.setText(
            QtGui.QApplication.translate("NameSearchWidget", "Max count ",
                                         None, QtGui.QApplication.UnicodeUTF8))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_3.addWidget(self.label)
        self.uMaxRecent = QtGui.QSpinBox(self.tabRecent)
        self.uMaxRecent.setMinimum(10)
        self.uMaxRecent.setMaximum(1000)
        self.uMaxRecent.setProperty("value", 50)
        self.uMaxRecent.setObjectName(_fromUtf8("uMaxRecent"))
        self.horizontalLayout_3.addWidget(self.uMaxRecent)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.uRecentNames = ListModelTableView(self.tabRecent)
        self.uRecentNames.setObjectName(_fromUtf8("uRecentNames"))
        self.verticalLayout_4.addWidget(self.uRecentNames)
        self.tabs.addTab(self.tabRecent, _fromUtf8(""))
        self.tabFavourites = QtGui.QWidget()
        self.tabFavourites.setObjectName(_fromUtf8("tabFavourites"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tabFavourites)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.uFavourites = ListModelTableView(self.tabFavourites)
        self.uFavourites.setObjectName(_fromUtf8("uFavourites"))
        self.verticalLayout_3.addWidget(self.uFavourites)
        self.tabs.addTab(self.tabFavourites, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabs)

        self.retranslateUi(NameSearchWidget)
        self.tabs.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(NameSearchWidget)
예제 #12
0
    def setupUi(self, NewMapDialog):
        NewMapDialog.setObjectName(_fromUtf8("NewMapDialog"))
        NewMapDialog.resize(274, 242)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            NewMapDialog.sizePolicy().hasHeightForWidth())
        NewMapDialog.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(NewMapDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox = QtGui.QGroupBox(NewMapDialog)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.layoutWidget = QtGui.QWidget(self.groupBox)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 30, 231, 143))
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.formLayout = QtGui.QFormLayout(self.layoutWidget)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.formLayout.setFormAlignment(QtCore.Qt.AlignLeading
                                         | QtCore.Qt.AlignLeft
                                         | QtCore.Qt.AlignTop)
        self.formLayout.setMargin(0)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.lblMapName = QtGui.QLabel(self.layoutWidget)
        self.lblMapName.setObjectName(_fromUtf8("lblMapName"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.lblMapName)
        self.txtMapName = QtGui.QLineEdit(self.layoutWidget)
        self.txtMapName.setWhatsThis(_fromUtf8(""))
        self.txtMapName.setObjectName(_fromUtf8("txtMapName"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.txtMapName)
        self.lblWidth = QtGui.QLabel(self.layoutWidget)
        self.lblWidth.setObjectName(_fromUtf8("lblWidth"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.lblWidth)
        self.spnWidth = QtGui.QSpinBox(self.layoutWidget)
        self.spnWidth.setWhatsThis(_fromUtf8(""))
        self.spnWidth.setMinimum(1)
        self.spnWidth.setMaximum(99999)
        self.spnWidth.setProperty(_fromUtf8("value"), 16)
        self.spnWidth.setObjectName(_fromUtf8("spnWidth"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.spnWidth)
        self.lblHeight = QtGui.QLabel(self.layoutWidget)
        self.lblHeight.setObjectName(_fromUtf8("lblHeight"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.lblHeight)
        self.spnHeight = QtGui.QSpinBox(self.layoutWidget)
        self.spnHeight.setWhatsThis(_fromUtf8(""))
        self.spnHeight.setMinimum(1)
        self.spnHeight.setMaximum(99999)
        self.spnHeight.setProperty(_fromUtf8("value"), 16)
        self.spnHeight.setObjectName(_fromUtf8("spnHeight"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.spnHeight)
        self.lblDepth = QtGui.QLabel(self.layoutWidget)
        self.lblDepth.setObjectName(_fromUtf8("lblDepth"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                                  self.lblDepth)
        self.spnDepth = QtGui.QSpinBox(self.layoutWidget)
        self.spnDepth.setMinimum(5)
        self.spnDepth.setMaximum(99999999)
        self.spnDepth.setObjectName(_fromUtf8("spnDepth"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.spnDepth)
        self.playerDepthLabel = QtGui.QLabel(self.layoutWidget)
        self.playerDepthLabel.setObjectName(_fromUtf8("playerDepthLabel"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole,
                                  self.playerDepthLabel)
        self.playerDepthSpin = QtGui.QSpinBox(self.layoutWidget)
        self.playerDepthSpin.setMaximum(4)
        self.playerDepthSpin.setProperty(_fromUtf8("value"), 2)
        self.playerDepthSpin.setObjectName(_fromUtf8("playerDepthSpin"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole,
                                  self.playerDepthSpin)
        self.verticalLayout.addWidget(self.groupBox)
        self.buttonBox = QtGui.QDialogButtonBox(NewMapDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(NewMapDialog)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               NewMapDialog.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               NewMapDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(NewMapDialog)
예제 #13
0
파일: sample3.py 프로젝트: cwleung/practice
 def setupUi(self, Form):
     Form.setObjectName(_fromUtf8("Form"))
     Form.resize(607, 441)
     self.formLayout = QtGui.QFormLayout(Form)
     self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
     self.formLayout.setObjectName(_fromUtf8("formLayout"))
     self.verticalLayout = QtGui.QVBoxLayout()
     self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
     self.pitcher_button = QtGui.QPushButton(Form)
     self.pitcher_button.setObjectName(_fromUtf8("pitcher_button"))
     self.verticalLayout.addWidget(self.pitcher_button)
     self.catcher_button = QtGui.QPushButton(Form)
     self.catcher_button.setObjectName(_fromUtf8("catcher_button"))
     self.verticalLayout.addWidget(self.catcher_button)
     self.first_button = QtGui.QPushButton(Form)
     self.first_button.setObjectName(_fromUtf8("first_button"))
     self.verticalLayout.addWidget(self.first_button)
     self.second_button = QtGui.QPushButton(Form)
     self.second_button.setObjectName(_fromUtf8("second_button"))
     self.verticalLayout.addWidget(self.second_button)
     self.third_button = QtGui.QPushButton(Form)
     self.third_button.setObjectName(_fromUtf8("third_button"))
     self.verticalLayout.addWidget(self.third_button)
     self.rf_button = QtGui.QPushButton(Form)
     self.rf_button.setObjectName(_fromUtf8("rf_button"))
     self.verticalLayout.addWidget(self.rf_button)
     self.cf_button = QtGui.QPushButton(Form)
     self.cf_button.setObjectName(_fromUtf8("cf_button"))
     self.verticalLayout.addWidget(self.cf_button)
     self.LF_button = QtGui.QPushButton(Form)
     self.LF_button.setObjectName(_fromUtf8("LF_button"))
     self.verticalLayout.addWidget(self.LF_button)
     self.ss_button = QtGui.QPushButton(Form)
     self.ss_button.setObjectName(_fromUtf8("ss_button"))
     self.verticalLayout.addWidget(self.ss_button)
     self.formLayout.setLayout(0, QtGui.QFormLayout.LabelRole, self.verticalLayout)
     self.gridLayout = QtGui.QGridLayout()
     self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
     self.label = QtGui.QLabel(Form)
     self.label.setText(_fromUtf8(""))
     self.label.setScaledContents(True)
     self.label.setPixmap(QtGui.QPixmap(_fromUtf8("images/unknown.jpg")))
     self.label.setObjectName(_fromUtf8("label"))
     self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
     self.label_2 = QtGui.QLabel(Form)
     self.label_2.setText(_fromUtf8(""))
     self.label_2.setScaledContents(True)
     self.label_2.setPixmap(QtGui.QPixmap(_fromUtf8("images/unknown.jpg")))
     
     self.label_2.setObjectName(_fromUtf8("label_2"))
     self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
     self.formLayout.setLayout(0, QtGui.QFormLayout.FieldRole, self.gridLayout)
     self.horizontalLayout = QtGui.QHBoxLayout()
     self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
     self.lineEdit = QtGui.QLineEdit(Form)
     self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
     self.horizontalLayout.addWidget(self.lineEdit)
     self.lineEdit_2 = QtGui.QLineEdit(Form)
     self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
     self.horizontalLayout.addWidget(self.lineEdit_2)
     self.formLayout.setLayout(1, QtGui.QFormLayout.FieldRole, self.horizontalLayout)
     self.horizontalLayout_2 = QtGui.QHBoxLayout()
     self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
     self.textEdit = QtGui.QTextEdit(Form)
     self.textEdit.setObjectName(_fromUtf8("textEdit"))
     self.horizontalLayout_2.addWidget(self.textEdit)
     self.textEdit_2 = QtGui.QTextEdit(Form)
     self.textEdit_2.setObjectName(_fromUtf8("textEdit_2"))
     self.horizontalLayout_2.addWidget(self.textEdit_2)
     self.formLayout.setLayout(2, QtGui.QFormLayout.FieldRole, self.horizontalLayout_2)
     self.retranslateUi(Form)
     ##self.hello()
     ##QtCore.QObject.connect(self.pitcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.pitcher_fan)
     QtCore.QObject.connect(self.pitcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.label_2.show)
     QtCore.QObject.connect(self.pitcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.lineEdit.show)
     QtCore.QObject.connect(self.pitcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.lineEdit_2.show)
     QtCore.QObject.connect(self.pitcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.textEdit.show)
     QtCore.QObject.connect(self.pitcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.textEdit_2.show)
     #QtCore.QObject.connect(self.catcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.catcher_fun)
     QtCore.QObject.connect(self.catcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.lineEdit.show)
     QtCore.QObject.connect(self.catcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.textEdit.show)
     ##QtCore.QObject.connect(self.catcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.label_2.show)
     QtCore.QObject.connect(self.catcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.textEdit_2.show)
     QtCore.QObject.connect(self.catcher_button, QtCore.SIGNAL(_fromUtf8("clicked()")), self.lineEdit_2.show)
     QtCore.QMetaObject.connectSlotsByName(Form)
예제 #14
0
    def __init__(self, parent=None):
        super(BackgroundDialog, self).__init__(parent)
        self.formLayoutWidget_4 = QtGui.QWidget(self)
        self.formLayoutWidget_4.setGeometry(QtCore.QRect(510, 0, 231, 15))
        self.formLayoutWidget_4.setObjectName(_fromUtf8("formLayoutWidget_4"))
        self.formLayout_4 = QtGui.QFormLayout(self.formLayoutWidget_4)
        self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        # self.mat_index = QtGui.QSpinBox(self.formLayoutWidget_4)
        # self.mat_index.setMinimum(1)
        # self.mat_index.setMaximum(25)
        # self.mat_index.setProperty("value", 1)
        # self.mat_index.setObjectName(_fromUtf8("background_color"))
        # self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.mat_index)
        self.label_2 = QtGui.QLabel(self.formLayoutWidget_4)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_2)
        self.mat_color = QtGui.QComboBox(self.formLayoutWidget_4)
        self.mat_color.setObjectName(_fromUtf8("background_color"))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.mat_color.addItem(_fromUtf8(""))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.mat_color)
        # self.label_4 = QtGui.QLabel(self.formLayoutWidget_4)
        # self.label_4.setObjectName(_fromUtf8("label_4"))
        # self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_4)
        # self.mat_color_txt = QtGui.QLineEdit(self.formLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        # sizePolicy.setHeightForWidth(self.mat_color_txt.sizePolicy().hasHeightForWidth())
        # self.mat_color_txt.setSizePolicy(sizePolicy)
        # self.mat_color_txt.setText(_fromUtf8(""))
        # self.mat_color_txt.setObjectName(_fromUtf8("mat_color_txt"))
        # self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.mat_color_txt)
        self.applyColor = QtGui.QPushButton(self.formLayoutWidget_4)
        self.applyColor.setObjectName(_fromUtf8("applyColor"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.applyColor)
        self.cancelColor = QtGui.QPushButton(self.formLayoutWidget_4)
        self.cancelColor.setObjectName(_fromUtf8("cancelColor"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.cancelColor)
        self.label = QtGui.QLabel(self.formLayoutWidget_4)
        self.label.setObjectName(_fromUtf8("label"))
        # self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)

        self.label_2.setText(_translate("MainWindow", "Background Color:", None))
        self.mat_color.setItemText(0, _translate("MainWindow", "White", None))
        self.mat_color.setItemText(29, _translate("MainWindow", "Black", None))
        self.mat_color.setItemText(1, _translate("MainWindow", "Dark Grey", None))
        self.mat_color.setItemText(2, _translate("MainWindow", "Pink", None))
        self.mat_color.setItemText(3, _translate("MainWindow", "Red", None))
        self.mat_color.setItemText(4, _translate("MainWindow", "Dark Red", None))
        self.mat_color.setItemText(5, _translate("MainWindow", "Web-Green", None))
        self.mat_color.setItemText(6, _translate("MainWindow", "Green", None))
        self.mat_color.setItemText(7, _translate("MainWindow", "Dark Spring Green", None))
        self.mat_color.setItemText(8, _translate("MainWindow", "Dark Green", None))
        self.mat_color.setItemText(9, _translate("MainWindow", "Royal Blue", None))
        self.mat_color.setItemText(10, _translate("MainWindow", "Navy", None))
        self.mat_color.setItemText(11, _translate("MainWindow", "Blue", None))
        self.mat_color.setItemText(12, _translate("MainWindow", "Web-Blue", None))
        self.mat_color.setItemText(13, _translate("MainWindow", "Dark Blue", None))
        self.mat_color.setItemText(14, _translate("MainWindow", "Steel Blue", None))
        self.mat_color.setItemText(15, _translate("MainWindow", "Aquamarine", None))
        self.mat_color.setItemText(16, _translate("MainWindow", "Light-Turquoise", None))
        self.mat_color.setItemText(17, _translate("MainWindow", "Cyan", None))
        self.mat_color.setItemText(18, _translate("MainWindow", "Dark Cyan", None))
        self.mat_color.setItemText(19, _translate("MainWindow", "Yellow", None))
        self.mat_color.setItemText(20, _translate("MainWindow", "Dark Yellow", None))
        self.mat_color.setItemText(21, _translate("MainWindow", "Orange", None))
        self.mat_color.setItemText(22, _translate("MainWindow", "Brown", None))
        self.mat_color.setItemText(23, _translate("MainWindow", "Khaki", None))
        self.mat_color.setItemText(24, _translate("MainWindow", "Purple", None))
        self.mat_color.setItemText(25, _translate("MainWindow", "Magenta", None))
        self.mat_color.setItemText(26, _translate("MainWindow", "Medium Purple", None))
        self.mat_color.setItemText(27, _translate("MainWindow", "Plum", None))
        self.mat_color.setItemText(28, _translate("MainWindow", "Dark-Plum", None))
        self.mat_color.setItemText(30, _translate("MainWindow", "Violet", None))
        self.mat_color.setItemText(31, _translate("MainWindow", "Dark-Violet", None))
        # self.label_4.setText(_translate("MainWindow", "Material Color:", None))
        self.applyColor.setText(_translate("MainWindow", "Apply", None))
        self.cancelColor.setText(_translate("MainWindow", "Cancel", None))
        # self.label.setText(_translate("MainWindow", "Material Index:", None))
        self.setLayout(self.formLayout_4)
        self.connect(self.applyColor, QtCore.SIGNAL("clicked()"), self.ok_callback)
        self.connect(self.cancelColor, QtCore.SIGNAL("clicked()"), self.cancel_callback)
        self.setWindowTitle("Background Color")
        self.applyColor.setFocus()
예제 #15
0
    def setupUi(self, QSpectrumAnalyzerMainWindow):
        QSpectrumAnalyzerMainWindow.setObjectName(
            _fromUtf8("QSpectrumAnalyzerMainWindow"))
        QSpectrumAnalyzerMainWindow.resize(1200, 810)
        self.centralwidget = QtGui.QWidget(QSpectrumAnalyzerMainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.plotSplitter = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.plotSplitter.sizePolicy().hasHeightForWidth())
        self.plotSplitter.setSizePolicy(sizePolicy)
        self.plotSplitter.setOrientation(QtCore.Qt.Vertical)
        self.plotSplitter.setObjectName(_fromUtf8("plotSplitter"))
        self.mainPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mainPlotLayout.sizePolicy().hasHeightForWidth())
        self.mainPlotLayout.setSizePolicy(sizePolicy)
        self.mainPlotLayout.setObjectName(_fromUtf8("mainPlotLayout"))
        self.waterfallPlotLayout = GraphicsLayoutWidget(self.plotSplitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.waterfallPlotLayout.sizePolicy().hasHeightForWidth())
        self.waterfallPlotLayout.setSizePolicy(sizePolicy)
        self.waterfallPlotLayout.setObjectName(
            _fromUtf8("waterfallPlotLayout"))
        self.horizontalLayout.addWidget(self.plotSplitter)
        QSpectrumAnalyzerMainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(QSpectrumAnalyzerMainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1200, 30))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menu_File = QtGui.QMenu(self.menubar)
        self.menu_File.setObjectName(_fromUtf8("menu_File"))
        self.menu_Help = QtGui.QMenu(self.menubar)
        self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
        QSpectrumAnalyzerMainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(QSpectrumAnalyzerMainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        QSpectrumAnalyzerMainWindow.setStatusBar(self.statusbar)
        self.controlsDockWidget = QtGui.QDockWidget(
            QSpectrumAnalyzerMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.controlsDockWidget.sizePolicy().hasHeightForWidth())
        self.controlsDockWidget.setSizePolicy(sizePolicy)
        self.controlsDockWidget.setMinimumSize(QtCore.QSize(10, 10))
        self.controlsDockWidget.setFeatures(
            QtGui.QDockWidget.DockWidgetFloatable
            | QtGui.QDockWidget.DockWidgetMovable)
        self.controlsDockWidget.setObjectName(_fromUtf8("controlsDockWidget"))
        self.controlsDockWidgetContents = QtGui.QWidget()
        self.controlsDockWidgetContents.setObjectName(
            _fromUtf8("controlsDockWidgetContents"))
        self.gridLayout_2 = QtGui.QGridLayout(self.controlsDockWidgetContents)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.startButton = QtGui.QPushButton(self.controlsDockWidgetContents)
        self.startButton.setObjectName(_fromUtf8("startButton"))
        self.gridLayout_2.addWidget(self.startButton, 0, 0, 1, 1)
        self.stopButton = QtGui.QPushButton(self.controlsDockWidgetContents)
        self.stopButton.setObjectName(_fromUtf8("stopButton"))
        self.gridLayout_2.addWidget(self.stopButton, 0, 1, 1, 1)
        self.singleShotButton = QtGui.QPushButton(
            self.controlsDockWidgetContents)
        self.singleShotButton.setObjectName(_fromUtf8("singleShotButton"))
        self.gridLayout_2.addWidget(self.singleShotButton, 1, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(20, 561, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1)
        self.controlsDockWidget.setWidget(self.controlsDockWidgetContents)
        QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2),
                                                  self.controlsDockWidget)
        self.frequencyDockWidget = QtGui.QDockWidget(
            QSpectrumAnalyzerMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frequencyDockWidget.sizePolicy().hasHeightForWidth())
        self.frequencyDockWidget.setSizePolicy(sizePolicy)
        self.frequencyDockWidget.setMinimumSize(QtCore.QSize(10, 10))
        self.frequencyDockWidget.setFeatures(
            QtGui.QDockWidget.DockWidgetFloatable
            | QtGui.QDockWidget.DockWidgetMovable)
        self.frequencyDockWidget.setObjectName(
            _fromUtf8("frequencyDockWidget"))
        self.frequencyDockWidgetContents = QtGui.QWidget()
        self.frequencyDockWidgetContents.setObjectName(
            _fromUtf8("frequencyDockWidgetContents"))
        self.formLayout = QtGui.QFormLayout(self.frequencyDockWidgetContents)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_2 = QtGui.QLabel(self.frequencyDockWidgetContents)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
        self.startFreqSpinBox = QtGui.QDoubleSpinBox(
            self.frequencyDockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.startFreqSpinBox.sizePolicy().hasHeightForWidth())
        self.startFreqSpinBox.setSizePolicy(sizePolicy)
        self.startFreqSpinBox.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.startFreqSpinBox.setDecimals(3)
        self.startFreqSpinBox.setMinimum(24.0)
        self.startFreqSpinBox.setMaximum(1766.0)
        self.startFreqSpinBox.setProperty("value", 87.0)
        self.startFreqSpinBox.setObjectName(_fromUtf8("startFreqSpinBox"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.startFreqSpinBox)
        self.label_3 = QtGui.QLabel(self.frequencyDockWidgetContents)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
        self.stopFreqSpinBox = QtGui.QDoubleSpinBox(
            self.frequencyDockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.stopFreqSpinBox.sizePolicy().hasHeightForWidth())
        self.stopFreqSpinBox.setSizePolicy(sizePolicy)
        self.stopFreqSpinBox.setAlignment(QtCore.Qt.AlignRight
                                          | QtCore.Qt.AlignTrailing
                                          | QtCore.Qt.AlignVCenter)
        self.stopFreqSpinBox.setDecimals(3)
        self.stopFreqSpinBox.setMinimum(24.0)
        self.stopFreqSpinBox.setMaximum(1766.0)
        self.stopFreqSpinBox.setProperty("value", 108.0)
        self.stopFreqSpinBox.setObjectName(_fromUtf8("stopFreqSpinBox"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.stopFreqSpinBox)
        self.label = QtGui.QLabel(self.frequencyDockWidgetContents)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.binSizeSpinBox = QtGui.QDoubleSpinBox(
            self.frequencyDockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.binSizeSpinBox.sizePolicy().hasHeightForWidth())
        self.binSizeSpinBox.setSizePolicy(sizePolicy)
        self.binSizeSpinBox.setAlignment(QtCore.Qt.AlignRight
                                         | QtCore.Qt.AlignTrailing
                                         | QtCore.Qt.AlignVCenter)
        self.binSizeSpinBox.setDecimals(3)
        self.binSizeSpinBox.setMaximum(2800.0)
        self.binSizeSpinBox.setProperty("value", 10.0)
        self.binSizeSpinBox.setObjectName(_fromUtf8("binSizeSpinBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.binSizeSpinBox)
        spacerItem1 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(3, QtGui.QFormLayout.SpanningRole, spacerItem1)
        self.frequencyDockWidget.setWidget(self.frequencyDockWidgetContents)
        QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2),
                                                  self.frequencyDockWidget)
        self.settingsDockWidget = QtGui.QDockWidget(
            QSpectrumAnalyzerMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.settingsDockWidget.sizePolicy().hasHeightForWidth())
        self.settingsDockWidget.setSizePolicy(sizePolicy)
        self.settingsDockWidget.setFeatures(
            QtGui.QDockWidget.DockWidgetFloatable
            | QtGui.QDockWidget.DockWidgetMovable)
        self.settingsDockWidget.setObjectName(_fromUtf8("settingsDockWidget"))
        self.settingsDockWidgetContents = QtGui.QWidget()
        self.settingsDockWidgetContents.setObjectName(
            _fromUtf8("settingsDockWidgetContents"))
        self.gridLayout = QtGui.QGridLayout(self.settingsDockWidgetContents)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_4 = QtGui.QLabel(self.settingsDockWidgetContents)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.label_6 = QtGui.QLabel(self.settingsDockWidgetContents)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1)
        self.intervalSpinBox = QtGui.QDoubleSpinBox(
            self.settingsDockWidgetContents)
        self.intervalSpinBox.setAlignment(QtCore.Qt.AlignRight
                                          | QtCore.Qt.AlignTrailing
                                          | QtCore.Qt.AlignVCenter)
        self.intervalSpinBox.setMaximum(999.0)
        self.intervalSpinBox.setProperty("value", 1.0)
        self.intervalSpinBox.setObjectName(_fromUtf8("intervalSpinBox"))
        self.gridLayout.addWidget(self.intervalSpinBox, 1, 0, 1, 1)
        self.gainSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents)
        self.gainSpinBox.setAlignment(QtCore.Qt.AlignRight
                                      | QtCore.Qt.AlignTrailing
                                      | QtCore.Qt.AlignVCenter)
        self.gainSpinBox.setMinimum(-1)
        self.gainSpinBox.setMaximum(49)
        self.gainSpinBox.setProperty("value", -1)
        self.gainSpinBox.setObjectName(_fromUtf8("gainSpinBox"))
        self.gridLayout.addWidget(self.gainSpinBox, 1, 1, 1, 2)
        self.label_5 = QtGui.QLabel(self.settingsDockWidgetContents)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1)
        self.label_7 = QtGui.QLabel(self.settingsDockWidgetContents)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 2, 1, 1, 1)
        self.ppmSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents)
        self.ppmSpinBox.setAlignment(QtCore.Qt.AlignRight
                                     | QtCore.Qt.AlignTrailing
                                     | QtCore.Qt.AlignVCenter)
        self.ppmSpinBox.setMinimum(-999)
        self.ppmSpinBox.setMaximum(999)
        self.ppmSpinBox.setObjectName(_fromUtf8("ppmSpinBox"))
        self.gridLayout.addWidget(self.ppmSpinBox, 3, 0, 1, 1)
        self.mainCurveCheckBox = QtGui.QCheckBox(
            self.settingsDockWidgetContents)
        self.mainCurveCheckBox.setChecked(True)
        self.mainCurveCheckBox.setObjectName(_fromUtf8("mainCurveCheckBox"))
        self.gridLayout.addWidget(self.mainCurveCheckBox, 4, 0, 1, 1)
        self.colorsButton = QtGui.QPushButton(self.settingsDockWidgetContents)
        self.colorsButton.setObjectName(_fromUtf8("colorsButton"))
        self.gridLayout.addWidget(self.colorsButton, 4, 1, 1, 2)
        self.peakHoldMaxCheckBox = QtGui.QCheckBox(
            self.settingsDockWidgetContents)
        self.peakHoldMaxCheckBox.setObjectName(
            _fromUtf8("peakHoldMaxCheckBox"))
        self.gridLayout.addWidget(self.peakHoldMaxCheckBox, 5, 0, 1, 1)
        self.peakHoldMinCheckBox = QtGui.QCheckBox(
            self.settingsDockWidgetContents)
        self.peakHoldMinCheckBox.setObjectName(
            _fromUtf8("peakHoldMinCheckBox"))
        self.gridLayout.addWidget(self.peakHoldMinCheckBox, 5, 1, 1, 2)
        self.averageCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents)
        self.averageCheckBox.setObjectName(_fromUtf8("averageCheckBox"))
        self.gridLayout.addWidget(self.averageCheckBox, 6, 0, 1, 1)
        self.smoothCheckBox = QtGui.QCheckBox(self.settingsDockWidgetContents)
        self.smoothCheckBox.setObjectName(_fromUtf8("smoothCheckBox"))
        self.gridLayout.addWidget(self.smoothCheckBox, 7, 0, 1, 1)
        self.smoothButton = QtGui.QToolButton(self.settingsDockWidgetContents)
        self.smoothButton.setAutoRaise(False)
        self.smoothButton.setObjectName(_fromUtf8("smoothButton"))
        self.gridLayout.addWidget(self.smoothButton, 7, 2, 1, 1)
        self.persistenceCheckBox = QtGui.QCheckBox(
            self.settingsDockWidgetContents)
        self.persistenceCheckBox.setObjectName(
            _fromUtf8("persistenceCheckBox"))
        self.gridLayout.addWidget(self.persistenceCheckBox, 8, 0, 1, 1)
        self.persistenceButton = QtGui.QToolButton(
            self.settingsDockWidgetContents)
        self.persistenceButton.setAutoRaise(False)
        self.persistenceButton.setObjectName(_fromUtf8("persistenceButton"))
        self.gridLayout.addWidget(self.persistenceButton, 8, 2, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(20, 1, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 9, 0, 1, 1)
        self.cropSpinBox = QtGui.QSpinBox(self.settingsDockWidgetContents)
        self.cropSpinBox.setAlignment(QtCore.Qt.AlignRight
                                      | QtCore.Qt.AlignTrailing
                                      | QtCore.Qt.AlignVCenter)
        self.cropSpinBox.setObjectName(_fromUtf8("cropSpinBox"))
        self.gridLayout.addWidget(self.cropSpinBox, 3, 1, 1, 2)
        self.settingsDockWidget.setWidget(self.settingsDockWidgetContents)
        QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2),
                                                  self.settingsDockWidget)
        self.levelsDockWidget = QtGui.QDockWidget(QSpectrumAnalyzerMainWindow)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.levelsDockWidget.sizePolicy().hasHeightForWidth())
        self.levelsDockWidget.setSizePolicy(sizePolicy)
        self.levelsDockWidget.setFeatures(
            QtGui.QDockWidget.DockWidgetFloatable
            | QtGui.QDockWidget.DockWidgetMovable)
        self.levelsDockWidget.setObjectName(_fromUtf8("levelsDockWidget"))
        self.levelsDockWidgetContents = QtGui.QWidget()
        self.levelsDockWidgetContents.setObjectName(
            _fromUtf8("levelsDockWidgetContents"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(
            self.levelsDockWidgetContents)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.histogramPlotLayout = GraphicsLayoutWidget(
            self.levelsDockWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.histogramPlotLayout.sizePolicy().hasHeightForWidth())
        self.histogramPlotLayout.setSizePolicy(sizePolicy)
        self.histogramPlotLayout.setObjectName(
            _fromUtf8("histogramPlotLayout"))
        self.verticalLayout_6.addWidget(self.histogramPlotLayout)
        self.levelsDockWidget.setWidget(self.levelsDockWidgetContents)
        QSpectrumAnalyzerMainWindow.addDockWidget(QtCore.Qt.DockWidgetArea(2),
                                                  self.levelsDockWidget)
        self.action_Settings = QtGui.QAction(QSpectrumAnalyzerMainWindow)
        self.action_Settings.setObjectName(_fromUtf8("action_Settings"))
        self.action_Quit = QtGui.QAction(QSpectrumAnalyzerMainWindow)
        self.action_Quit.setObjectName(_fromUtf8("action_Quit"))
        self.action_About = QtGui.QAction(QSpectrumAnalyzerMainWindow)
        self.action_About.setObjectName(_fromUtf8("action_About"))
        self.menu_File.addAction(self.action_Settings)
        self.menu_File.addSeparator()
        self.menu_File.addAction(self.action_Quit)
        self.menu_Help.addAction(self.action_About)
        self.menubar.addAction(self.menu_File.menuAction())
        self.menubar.addAction(self.menu_Help.menuAction())
        self.label_2.setBuddy(self.startFreqSpinBox)
        self.label_3.setBuddy(self.stopFreqSpinBox)
        self.label.setBuddy(self.binSizeSpinBox)
        self.label_4.setBuddy(self.intervalSpinBox)
        self.label_6.setBuddy(self.gainSpinBox)
        self.label_5.setBuddy(self.ppmSpinBox)
        self.label_7.setBuddy(self.cropSpinBox)

        self.retranslateUi(QSpectrumAnalyzerMainWindow)
        QtCore.QMetaObject.connectSlotsByName(QSpectrumAnalyzerMainWindow)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.startButton,
                                                self.stopButton)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.stopButton,
                                                self.singleShotButton)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.singleShotButton,
                                                self.startFreqSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.startFreqSpinBox,
                                                self.stopFreqSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.stopFreqSpinBox,
                                                self.binSizeSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.binSizeSpinBox,
                                                self.intervalSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.intervalSpinBox,
                                                self.gainSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.gainSpinBox,
                                                self.ppmSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.ppmSpinBox,
                                                self.cropSpinBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.cropSpinBox,
                                                self.mainCurveCheckBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.mainCurveCheckBox,
                                                self.colorsButton)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.colorsButton,
                                                self.peakHoldMaxCheckBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.peakHoldMaxCheckBox,
                                                self.peakHoldMinCheckBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.peakHoldMinCheckBox,
                                                self.averageCheckBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.averageCheckBox,
                                                self.smoothCheckBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.smoothCheckBox,
                                                self.smoothButton)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.smoothButton,
                                                self.persistenceCheckBox)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.persistenceCheckBox,
                                                self.persistenceButton)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.persistenceButton,
                                                self.histogramPlotLayout)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.histogramPlotLayout,
                                                self.mainPlotLayout)
        QSpectrumAnalyzerMainWindow.setTabOrder(self.mainPlotLayout,
                                                self.waterfallPlotLayout)
예제 #16
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(419, 571)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_6 = QtGui.QLabel(self.centralwidget)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Comic Sans MS"))
        font.setPointSize(11)
        font.setBold(True)
        font.setWeight(75)
        self.label_6.setFont(font)
        self.label_6.setFrameShape(QtGui.QFrame.WinPanel)
        self.label_6.setFrameShadow(QtGui.QFrame.Sunken)
        self.label_6.setTextFormat(QtCore.Qt.PlainText)
        self.label_6.setWordWrap(False)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 0, 1, 1)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setSpacing(9)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_3)
        self.txtId = QtGui.QLineEdit(self.centralwidget)
        self.txtId.setEnabled(True)
        self.txtId.setCursorMoveStyle(QtCore.Qt.LogicalMoveStyle)
        self.txtId.setObjectName(_fromUtf8("txtId"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.txtId)
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
        self.txtFirstName = QtGui.QLineEdit(self.centralwidget)
        self.txtFirstName.setEnabled(True)
        self.txtFirstName.setObjectName(_fromUtf8("txtFirstName"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.txtFirstName)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_2)
        self.txtLastName = QtGui.QLineEdit(self.centralwidget)
        self.txtLastName.setEnabled(True)
        self.txtLastName.setObjectName(_fromUtf8("txtLastName"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.txtLastName)
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_4)
        self.txtSection = QtGui.QLineEdit(self.centralwidget)
        self.txtSection.setObjectName(_fromUtf8("txtSection"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole,
                                  self.txtSection)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_5)
        self.txtYear = QtGui.QLineEdit(self.centralwidget)
        self.txtYear.setObjectName(_fromUtf8("txtYear"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.txtYear)
        self.txtCourse = QtGui.QLineEdit(self.centralwidget)
        self.txtCourse.setObjectName(_fromUtf8("txtCourse"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole,
                                  self.txtCourse)
        self.label_7 = QtGui.QLabel(self.centralwidget)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_7)
        self.horizontalLayout_3.addLayout(self.formLayout)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.btnClear = QtGui.QPushButton(self.centralwidget)
        self.btnClear.setObjectName(_fromUtf8("btnClear"))
        self.verticalLayout.addWidget(self.btnClear)
        self.btnSearch = QtGui.QPushButton(self.centralwidget)
        self.btnSearch.setObjectName(_fromUtf8("btnSearch"))
        self.verticalLayout.addWidget(self.btnSearch)
        self.btnExit = QtGui.QPushButton(self.centralwidget)
        self.btnExit.setObjectName(_fromUtf8("btnExit"))
        self.verticalLayout.addWidget(self.btnExit)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        spacerItem = QtGui.QSpacerItem(20, 18, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.btnFirst = QtGui.QPushButton(self.centralwidget)
        self.btnFirst.setObjectName(_fromUtf8("btnFirst"))
        self.horizontalLayout.addWidget(self.btnFirst)
        self.btnNext = QtGui.QPushButton(self.centralwidget)
        self.btnNext.setObjectName(_fromUtf8("btnNext"))
        self.horizontalLayout.addWidget(self.btnNext)
        self.btnPrev = QtGui.QPushButton(self.centralwidget)
        self.btnPrev.setObjectName(_fromUtf8("btnPrev"))
        self.horizontalLayout.addWidget(self.btnPrev)
        self.btnLast = QtGui.QPushButton(self.centralwidget)
        self.btnLast.setObjectName(_fromUtf8("btnLast"))
        self.horizontalLayout.addWidget(self.btnLast)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        spacerItem1 = QtGui.QSpacerItem(20, 17, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.btnAdd = QtGui.QPushButton(self.centralwidget)
        self.btnAdd.setObjectName(_fromUtf8("btnAdd"))
        self.horizontalLayout_2.addWidget(self.btnAdd)
        self.btnEdit = QtGui.QPushButton(self.centralwidget)
        self.btnEdit.setObjectName(_fromUtf8("btnEdit"))
        self.horizontalLayout_2.addWidget(self.btnEdit)
        self.btnUpdate = QtGui.QPushButton(self.centralwidget)
        self.btnUpdate.setObjectName(_fromUtf8("btnUpdate"))
        self.horizontalLayout_2.addWidget(self.btnUpdate)
        self.btnDelete = QtGui.QPushButton(self.centralwidget)
        self.btnDelete.setObjectName(_fromUtf8("btnDelete"))
        self.horizontalLayout_2.addWidget(self.btnDelete)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        spacerItem2 = QtGui.QSpacerItem(20, 28, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem2)
        self.gridLayout.addLayout(self.verticalLayout_2, 1, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 419, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuEdit = QtGui.QMenu(self.menubar)
        self.menuEdit.setObjectName(_fromUtf8("menuEdit"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionSave = QtGui.QAction(MainWindow)
        self.actionSave.setObjectName(_fromUtf8("actionSave"))
        self.actionAdd_Record = QtGui.QAction(MainWindow)
        self.actionAdd_Record.setObjectName(_fromUtf8("actionAdd_Record"))
        self.actionUpdate = QtGui.QAction(MainWindow)
        self.actionUpdate.setObjectName(_fromUtf8("actionUpdate"))
        self.actionDelete = QtGui.QAction(MainWindow)
        self.actionDelete.setObjectName(_fromUtf8("actionDelete"))
        self.actionSave_2 = QtGui.QAction(MainWindow)
        self.actionSave_2.setObjectName(_fromUtf8("actionSave_2"))
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionSearch = QtGui.QAction(MainWindow)
        self.actionSearch.setIconVisibleInMenu(True)
        self.actionSearch.setObjectName(_fromUtf8("actionSearch"))
        self.actionSave_3 = QtGui.QAction(MainWindow)
        self.actionSave_3.setObjectName(_fromUtf8("actionSave_3"))
        self.actionExit_2 = QtGui.QAction(MainWindow)
        self.actionExit_2.setObjectName(_fromUtf8("actionExit_2"))
        self.menuFile.addAction(self.actionSearch)
        self.menuFile.addAction(self.actionSave_3)
        self.menuFile.addAction(self.actionExit_2)
        self.menuEdit.addAction(self.actionAdd_Record)
        self.menuEdit.addAction(self.actionDelete)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuEdit.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.btnClear,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               self.txtLastName.clear)
        QtCore.QObject.connect(self.btnClear,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               self.txtId.clear)
        QtCore.QObject.connect(self.btnClear,
                               QtCore.SIGNAL(_fromUtf8("clicked()")),
                               self.txtFirstName.clear)
        QtCore.QObject.connect(self.actionExit_2,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               MainWindow.close)
        QtCore.QObject.connect(self.btnClear,
                               QtCore.SIGNAL(_fromUtf8("clicked(bool)")),
                               self.txtId.setEnabled)
        QtCore.QObject.connect(self.btnClear,
                               QtCore.SIGNAL(_fromUtf8("clicked(bool)")),
                               self.txtFirstName.setEnabled)
        QtCore.QObject.connect(self.btnClear,
                               QtCore.SIGNAL(_fromUtf8("clicked(bool)")),
                               self.txtLastName.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #17
0
    def setupUi(self, BarConfigDialog):
        BarConfigDialog.setObjectName("BarConfigDialog")
        BarConfigDialog.resize(398, 241)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            BarConfigDialog.sizePolicy().hasHeightForWidth())
        BarConfigDialog.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../../../../../icons/programIcon.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        BarConfigDialog.setWindowIcon(icon)
        self.verticalLayout_4 = QtGui.QVBoxLayout(BarConfigDialog)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblFieldToPlot = QtGui.QLabel(BarConfigDialog)
        self.lblFieldToPlot.setObjectName("lblFieldToPlot")
        self.horizontalLayout.addWidget(self.lblFieldToPlot)
        self.cboFieldToPlot = QtGui.QComboBox(BarConfigDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboFieldToPlot.sizePolicy().hasHeightForWidth())
        self.cboFieldToPlot.setSizePolicy(sizePolicy)
        self.cboFieldToPlot.setObjectName("cboFieldToPlot")
        self.horizontalLayout.addWidget(self.cboFieldToPlot)
        self.chkSort = QtGui.QCheckBox(BarConfigDialog)
        self.chkSort.setObjectName("chkSort")
        self.horizontalLayout.addWidget(self.chkSort)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.groupBox_2 = QtGui.QGroupBox(BarConfigDialog)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.lblSampleName1 = QtGui.QLabel(self.groupBox_2)
        self.lblSampleName1.setObjectName("lblSampleName1")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.lblSampleName1)
        self.txtSampleName1 = QtGui.QLineEdit(self.groupBox_2)
        self.txtSampleName1.setObjectName("txtSampleName1")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.txtSampleName1)
        self.lblSampleName2 = QtGui.QLabel(self.groupBox_2)
        self.lblSampleName2.setObjectName("lblSampleName2")
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.lblSampleName2)
        self.txtSampleName2 = QtGui.QLineEdit(self.groupBox_2)
        self.txtSampleName2.setObjectName("txtSampleName2")
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.txtSampleName2)
        self.verticalLayout_2.addLayout(self.formLayout)
        self.horizontalLayout_2.addWidget(self.groupBox_2)
        self.groupBox_3 = QtGui.QGroupBox(BarConfigDialog)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setObjectName("formLayout_2")
        self.lblFigureWidth = QtGui.QLabel(self.groupBox_3)
        self.lblFigureWidth.setObjectName("lblFigureWidth")
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.lblFigureWidth)
        self.spinFigWidth = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.spinFigWidth.setDecimals(2)
        self.spinFigWidth.setMinimum(2.0)
        self.spinFigWidth.setMaximum(20.0)
        self.spinFigWidth.setSingleStep(0.5)
        self.spinFigWidth.setProperty("value", 8.5)
        self.spinFigWidth.setObjectName("spinFigWidth")
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.spinFigWidth)
        self.lblFigureHeight = QtGui.QLabel(self.groupBox_3)
        self.lblFigureHeight.setObjectName("lblFigureHeight")
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.lblFigureHeight)
        self.spinFigRowHeight = QtGui.QDoubleSpinBox(self.groupBox_3)
        self.spinFigRowHeight.setMinimum(0.1)
        self.spinFigRowHeight.setMaximum(1.0)
        self.spinFigRowHeight.setSingleStep(0.05)
        self.spinFigRowHeight.setProperty("value", 0.25)
        self.spinFigRowHeight.setObjectName("spinFigRowHeight")
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.spinFigRowHeight)
        self.verticalLayout_3.addLayout(self.formLayout_2)
        self.horizontalLayout_2.addWidget(self.groupBox_3)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.groupBox = QtGui.QGroupBox(BarConfigDialog)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.radioLegendPosBest = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosBest.setChecked(True)
        self.radioLegendPosBest.setObjectName("radioLegendPosBest")
        self.gridLayout.addWidget(self.radioLegendPosBest, 0, 0, 1, 1)
        self.radioLegendPosUpperLeft = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosUpperLeft.setObjectName("radioLegendPosUpperLeft")
        self.gridLayout.addWidget(self.radioLegendPosUpperLeft, 0, 1, 1, 1)
        self.radioLegendPosCentreLeft = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosCentreLeft.setObjectName("radioLegendPosCentreLeft")
        self.gridLayout.addWidget(self.radioLegendPosCentreLeft, 0, 2, 1, 1)
        self.radioLegendPosLowerLeft = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosLowerLeft.setChecked(False)
        self.radioLegendPosLowerLeft.setObjectName("radioLegendPosLowerLeft")
        self.gridLayout.addWidget(self.radioLegendPosLowerLeft, 0, 3, 1, 1)
        self.radioLegendPosUpperRight = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosUpperRight.setObjectName("radioLegendPosUpperRight")
        self.gridLayout.addWidget(self.radioLegendPosUpperRight, 1, 1, 1, 1)
        self.radioLegendPosCentreRight = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosCentreRight.setObjectName(
            "radioLegendPosCentreRight")
        self.gridLayout.addWidget(self.radioLegendPosCentreRight, 1, 2, 1, 1)
        self.radioLegendPosLowerRight = QtGui.QRadioButton(self.groupBox)
        self.radioLegendPosLowerRight.setObjectName("radioLegendPosLowerRight")
        self.gridLayout.addWidget(self.radioLegendPosLowerRight, 1, 3, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem = QtGui.QSpacerItem(100, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.buttonBox = QtGui.QDialogButtonBox(BarConfigDialog)
        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_3.addWidget(self.buttonBox)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)

        self.retranslateUi(BarConfigDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"),
                               BarConfigDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"),
                               BarConfigDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(BarConfigDialog)
예제 #18
0
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(1091, 572)
        Dialog.setSizeGripEnabled(True)
        self.gridLayout = QtGui.QGridLayout(Dialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.btnOK = QtGui.QPushButton(Dialog)
        self.btnOK.setObjectName(_fromUtf8("btnOK"))
        self.gridLayout.addWidget(self.btnOK, 1, 0, 1, 1)
        self.btnCancel = QtGui.QPushButton(Dialog)
        self.btnCancel.setObjectName(_fromUtf8("btnCancel"))
        self.gridLayout.addWidget(self.btnCancel, 1, 1, 1, 1)
        self.tabWidget = QtGui.QTabWidget(Dialog)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_10 = QtGui.QGridLayout(self.tab)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.tab)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.txtFootprintName = QtGui.QLineEdit(self.tab)
        self.txtFootprintName.setObjectName(_fromUtf8("txtFootprintName"))
        self.verticalLayout.addWidget(self.txtFootprintName)
        self.label_2 = QtGui.QLabel(self.tab)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.cmbFootprints = QtGui.QComboBox(self.tab)
        self.cmbFootprints.setObjectName(_fromUtf8("cmbFootprints"))
        self.verticalLayout.addWidget(self.cmbFootprints)
        self.label_21 = QtGui.QLabel(self.tab)
        self.label_21.setText(_fromUtf8(""))
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.verticalLayout.addWidget(self.label_21)
        self.label_14 = QtGui.QLabel(self.tab)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.verticalLayout.addWidget(self.label_14)
        self.sldTestDepth = QtGui.QSlider(self.tab)
        self.sldTestDepth.setMaximum(6)
        self.sldTestDepth.setPageStep(1)
        self.sldTestDepth.setOrientation(QtCore.Qt.Horizontal)
        self.sldTestDepth.setObjectName(_fromUtf8("sldTestDepth"))
        self.verticalLayout.addWidget(self.sldTestDepth)
        self.lblDepthCategory = QtGui.QLabel(self.tab)
        self.lblDepthCategory.setObjectName(_fromUtf8("lblDepthCategory"))
        self.verticalLayout.addWidget(self.lblDepthCategory)
        self.lblDepthDescription = QtGui.QLabel(self.tab)
        self.lblDepthDescription.setObjectName(
            _fromUtf8("lblDepthDescription"))
        self.verticalLayout.addWidget(self.lblDepthDescription)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.gridLayout_10.addLayout(self.verticalLayout, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_10 = QtGui.QWidget()
        self.tab_10.setObjectName(_fromUtf8("tab_10"))
        self.gridLayout_11 = QtGui.QGridLayout(self.tab_10)
        self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
        self.groupBox = QtGui.QGroupBox(self.tab_10)
        self.groupBox.setMaximumSize(QtCore.QSize(450, 16777215))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_12 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.tblHostEnumerationPlugins = QtGui.QTableWidget(self.groupBox)
        self.tblHostEnumerationPlugins.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tblHostEnumerationPlugins.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tblHostEnumerationPlugins.setObjectName(
            _fromUtf8("tblHostEnumerationPlugins"))
        self.tblHostEnumerationPlugins.setColumnCount(2)
        self.tblHostEnumerationPlugins.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblHostEnumerationPlugins.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tblHostEnumerationPlugins.setHorizontalHeaderItem(1, item)
        self.gridLayout_12.addWidget(self.tblHostEnumerationPlugins, 0, 0, 1,
                                     1)
        self.gridLayout_11.addWidget(self.groupBox, 0, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.tab_10)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_13 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13"))
        self.cbxRunHostEnumerationPlugin = QtGui.QCheckBox(self.groupBox_2)
        self.cbxRunHostEnumerationPlugin.setObjectName(
            _fromUtf8("cbxRunHostEnumerationPlugin"))
        self.gridLayout_13.addWidget(self.cbxRunHostEnumerationPlugin, 0, 0, 1,
                                     1)
        self.lblHostEnumerationPluginDescription = QtGui.QLabel(
            self.groupBox_2)
        self.lblHostEnumerationPluginDescription.setAlignment(
            QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop)
        self.lblHostEnumerationPluginDescription.setObjectName(
            _fromUtf8("lblHostEnumerationPluginDescription"))
        self.gridLayout_13.addWidget(self.lblHostEnumerationPluginDescription,
                                     1, 0, 1, 1)
        self.gridLayout_11.addWidget(self.groupBox_2, 0, 1, 1, 1)
        self.tabWidget.addTab(self.tab_10, _fromUtf8(""))
        self.tab_6 = QtGui.QWidget()
        self.tab_6.setObjectName(_fromUtf8("tab_6"))
        self.gridLayout_6 = QtGui.QGridLayout(self.tab_6)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.tabWidget_3 = QtGui.QTabWidget(self.tab_6)
        self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3"))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.gridLayout_7 = QtGui.QGridLayout(self.tab_7)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.txtKnownHosts = QtGui.QTextEdit(self.tab_7)
        self.txtKnownHosts.setObjectName(_fromUtf8("txtKnownHosts"))
        self.gridLayout_7.addWidget(self.txtKnownHosts, 0, 0, 1, 1)
        self.tabWidget_3.addTab(self.tab_7, _fromUtf8(""))
        self.tab_13 = QtGui.QWidget()
        self.tab_13.setObjectName(_fromUtf8("tab_13"))
        self.gridLayout_16 = QtGui.QGridLayout(self.tab_13)
        self.gridLayout_16.setObjectName(_fromUtf8("gridLayout_16"))
        self.txtKnownDCs = QtGui.QTextEdit(self.tab_13)
        self.txtKnownDCs.setObjectName(_fromUtf8("txtKnownDCs"))
        self.gridLayout_16.addWidget(self.txtKnownDCs, 0, 0, 1, 1)
        self.tabWidget_3.addTab(self.tab_13, _fromUtf8(""))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.gridLayout_8 = QtGui.QGridLayout(self.tab_8)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.txtKnownRanges = QtGui.QTextEdit(self.tab_8)
        self.txtKnownRanges.setObjectName(_fromUtf8("txtKnownRanges"))
        self.gridLayout_8.addWidget(self.txtKnownRanges, 0, 0, 1, 1)
        self.tabWidget_3.addTab(self.tab_8, _fromUtf8(""))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.gridLayout_9 = QtGui.QGridLayout(self.tab_9)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.txtExclude = QtGui.QTextEdit(self.tab_9)
        self.txtExclude.setObjectName(_fromUtf8("txtExclude"))
        self.gridLayout_9.addWidget(self.txtExclude, 0, 0, 1, 1)
        self.tabWidget_3.addTab(self.tab_9, _fromUtf8(""))
        self.tab_14 = QtGui.QWidget()
        self.tab_14.setObjectName(_fromUtf8("tab_14"))
        self.gridLayout_17 = QtGui.QGridLayout(self.tab_14)
        self.gridLayout_17.setObjectName(_fromUtf8("gridLayout_17"))
        self.verticalLayout_9 = QtGui.QVBoxLayout()
        self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))
        self.tblDomainCreds = QtGui.QTableWidget(self.tab_14)
        self.tblDomainCreds.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tblDomainCreds.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tblDomainCreds.setObjectName(_fromUtf8("tblDomainCreds"))
        self.tblDomainCreds.setColumnCount(6)
        self.tblDomainCreds.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblDomainCreds.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tblDomainCreds.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tblDomainCreds.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tblDomainCreds.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tblDomainCreds.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.tblDomainCreds.setHorizontalHeaderItem(5, item)
        self.verticalLayout_9.addWidget(self.tblDomainCreds)
        self.horizontalLayout_22 = QtGui.QHBoxLayout()
        self.horizontalLayout_22.setObjectName(
            _fromUtf8("horizontalLayout_22"))
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem1)
        self.btnAddDomainCreds = QtGui.QPushButton(self.tab_14)
        self.btnAddDomainCreds.setObjectName(_fromUtf8("btnAddDomainCreds"))
        self.horizontalLayout_22.addWidget(self.btnAddDomainCreds)
        self.btnDeleteDomainCreds = QtGui.QPushButton(self.tab_14)
        self.btnDeleteDomainCreds.setObjectName(
            _fromUtf8("btnDeleteDomainCreds"))
        self.horizontalLayout_22.addWidget(self.btnDeleteDomainCreds)
        self.verticalLayout_9.addLayout(self.horizontalLayout_22)
        self.gridLayout_17.addLayout(self.verticalLayout_9, 0, 0, 1, 1)
        self.tabWidget_3.addTab(self.tab_14, _fromUtf8(""))
        self.gridLayout_6.addWidget(self.tabWidget_3, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_6, _fromUtf8(""))
        self.tab_12 = QtGui.QWidget()
        self.tab_12.setObjectName(_fromUtf8("tab_12"))
        self.gridLayout_15 = QtGui.QGridLayout(self.tab_12)
        self.gridLayout_15.setObjectName(_fromUtf8("gridLayout_15"))
        self.verticalLayout_8 = QtGui.QVBoxLayout()
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.groupBox_3 = QtGui.QGroupBox(self.tab_12)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_16 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_16.setObjectName(
            _fromUtf8("horizontalLayout_16"))
        self.label_17 = QtGui.QLabel(self.groupBox_3)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.horizontalLayout_16.addWidget(self.label_17)
        self.sedAllTasks = QtGui.QSpinBox(self.groupBox_3)
        self.sedAllTasks.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sedAllTasks.setProperty("value", 3)
        self.sedAllTasks.setObjectName(_fromUtf8("sedAllTasks"))
        self.horizontalLayout_16.addWidget(self.sedAllTasks)
        self.verticalLayout_8.addWidget(self.groupBox_3)
        self.groupBox_4 = QtGui.QGroupBox(self.tab_12)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.horizontalLayout_17 = QtGui.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_17.setObjectName(
            _fromUtf8("horizontalLayout_17"))
        self.label_19 = QtGui.QLabel(self.groupBox_4)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.horizontalLayout_17.addWidget(self.label_19)
        self.sedFootprinting = QtGui.QSpinBox(self.groupBox_4)
        self.sedFootprinting.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sedFootprinting.setObjectName(_fromUtf8("sedFootprinting"))
        self.horizontalLayout_17.addWidget(self.sedFootprinting)
        self.verticalLayout_8.addWidget(self.groupBox_4)
        self.groupBox_5 = QtGui.QGroupBox(self.tab_12)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.horizontalLayout_18 = QtGui.QHBoxLayout(self.groupBox_5)
        self.horizontalLayout_18.setObjectName(
            _fromUtf8("horizontalLayout_18"))
        self.label_18 = QtGui.QLabel(self.groupBox_5)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.horizontalLayout_18.addWidget(self.label_18)
        self.sedExploits = QtGui.QSpinBox(self.groupBox_5)
        self.sedExploits.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sedExploits.setObjectName(_fromUtf8("sedExploits"))
        self.horizontalLayout_18.addWidget(self.sedExploits)
        self.verticalLayout_8.addWidget(self.groupBox_5)
        self.groupBox_6 = QtGui.QGroupBox(self.tab_12)
        self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
        self.horizontalLayout_19 = QtGui.QHBoxLayout(self.groupBox_6)
        self.horizontalLayout_19.setObjectName(
            _fromUtf8("horizontalLayout_19"))
        self.label_16 = QtGui.QLabel(self.groupBox_6)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.horizontalLayout_19.addWidget(self.label_16)
        self.sedPivoting = QtGui.QSpinBox(self.groupBox_6)
        self.sedPivoting.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sedPivoting.setProperty("value", 0)
        self.sedPivoting.setObjectName(_fromUtf8("sedPivoting"))
        self.horizontalLayout_19.addWidget(self.sedPivoting)
        self.verticalLayout_8.addWidget(self.groupBox_6)
        self.groupBox_8 = QtGui.QGroupBox(self.tab_12)
        self.groupBox_8.setObjectName(_fromUtf8("groupBox_8"))
        self.horizontalLayout_21 = QtGui.QHBoxLayout(self.groupBox_8)
        self.horizontalLayout_21.setObjectName(
            _fromUtf8("horizontalLayout_21"))
        self.label_22 = QtGui.QLabel(self.groupBox_8)
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.horizontalLayout_21.addWidget(self.label_22)
        self.sedPivotingMsf = QtGui.QSpinBox(self.groupBox_8)
        self.sedPivotingMsf.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sedPivotingMsf.setObjectName(_fromUtf8("sedPivotingMsf"))
        self.horizontalLayout_21.addWidget(self.sedPivotingMsf)
        self.verticalLayout_8.addWidget(self.groupBox_8)
        self.groupBox_7 = QtGui.QGroupBox(self.tab_12)
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.horizontalLayout_20 = QtGui.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_20.setObjectName(
            _fromUtf8("horizontalLayout_20"))
        self.label_20 = QtGui.QLabel(self.groupBox_7)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.horizontalLayout_20.addWidget(self.label_20)
        self.sedDomainEnumeration = QtGui.QSpinBox(self.groupBox_7)
        self.sedDomainEnumeration.setMaximumSize(QtCore.QSize(55, 16777215))
        self.sedDomainEnumeration.setObjectName(
            _fromUtf8("sedDomainEnumeration"))
        self.horizontalLayout_20.addWidget(self.sedDomainEnumeration)
        self.verticalLayout_8.addWidget(self.groupBox_7)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem2)
        self.gridLayout_15.addLayout(self.verticalLayout_8, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_12, _fromUtf8(""))
        self.tab_11 = QtGui.QWidget()
        self.tab_11.setObjectName(_fromUtf8("tab_11"))
        self.gridLayout_14 = QtGui.QGridLayout(self.tab_11)
        self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14"))
        self.verticalLayout_7 = QtGui.QVBoxLayout()
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_3 = QtGui.QLabel(self.tab_11)
        self.label_3.setMaximumSize(QtCore.QSize(200, 16777215))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_6.addWidget(self.label_3)
        self.cmbNmapTiming = QtGui.QComboBox(self.tab_11)
        self.cmbNmapTiming.setObjectName(_fromUtf8("cmbNmapTiming"))
        self.cmbNmapTiming.addItem(_fromUtf8(""))
        self.cmbNmapTiming.addItem(_fromUtf8(""))
        self.cmbNmapTiming.addItem(_fromUtf8(""))
        self.cmbNmapTiming.addItem(_fromUtf8(""))
        self.cmbNmapTiming.addItem(_fromUtf8(""))
        self.cmbNmapTiming.addItem(_fromUtf8(""))
        self.horizontalLayout_6.addWidget(self.cmbNmapTiming)
        self.verticalLayout_7.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName(
            _fromUtf8("horizontalLayout_13"))
        self.label_15 = QtGui.QLabel(self.tab_11)
        self.label_15.setMaximumSize(QtCore.QSize(200, 16777215))
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.horizontalLayout_13.addWidget(self.label_15)
        self.cmbNetworkInterface = QtGui.QComboBox(self.tab_11)
        self.cmbNetworkInterface.setObjectName(
            _fromUtf8("cmbNetworkInterface"))
        self.horizontalLayout_13.addWidget(self.cmbNetworkInterface)
        self.btnRefreshNetworkInterfaces = QtGui.QPushButton(self.tab_11)
        self.btnRefreshNetworkInterfaces.setMinimumSize(QtCore.QSize(0, 0))
        self.btnRefreshNetworkInterfaces.setMaximumSize(
            QtCore.QSize(29, 16777215))
        self.btnRefreshNetworkInterfaces.setText(_fromUtf8(""))
        self.btnRefreshNetworkInterfaces.setObjectName(
            _fromUtf8("btnRefreshNetworkInterfaces"))
        self.horizontalLayout_13.addWidget(self.btnRefreshNetworkInterfaces)
        self.verticalLayout_7.addLayout(self.horizontalLayout_13)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem3)
        self.gridLayout_14.addLayout(self.verticalLayout_7, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_11, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridLayout_3 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.tabWidget_2 = QtGui.QTabWidget(self.tab_2)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab_16 = QtGui.QWidget()
        self.tab_16.setObjectName(_fromUtf8("tab_16"))
        self.formLayout = QtGui.QFormLayout(self.tab_16)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_23 = QtGui.QLabel(self.tab_16)
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.label_23)
        self.tabWidget_2.addTab(self.tab_16, _fromUtf8(""))
        self.tab_15 = QtGui.QWidget()
        self.tab_15.setObjectName(_fromUtf8("tab_15"))
        self.horizontalLayout_23 = QtGui.QHBoxLayout(self.tab_15)
        self.horizontalLayout_23.setObjectName(
            _fromUtf8("horizontalLayout_23"))
        self.groupBox_9 = QtGui.QGroupBox(self.tab_15)
        self.groupBox_9.setMaximumSize(QtCore.QSize(450, 16777215))
        self.groupBox_9.setObjectName(_fromUtf8("groupBox_9"))
        self.gridLayout_18 = QtGui.QGridLayout(self.groupBox_9)
        self.gridLayout_18.setObjectName(_fromUtf8("gridLayout_18"))
        self.btnAddShortListPort = QtGui.QPushButton(self.groupBox_9)
        self.btnAddShortListPort.setObjectName(
            _fromUtf8("btnAddShortListPort"))
        self.gridLayout_18.addWidget(self.btnAddShortListPort, 1, 0, 1, 1)
        self.btnDeleteShortListPort = QtGui.QPushButton(self.groupBox_9)
        self.btnDeleteShortListPort.setObjectName(
            _fromUtf8("btnDeleteShortListPort"))
        self.gridLayout_18.addWidget(self.btnDeleteShortListPort, 1, 1, 1, 1)
        self.tblPortsShortList = QtGui.QTableWidget(self.groupBox_9)
        self.tblPortsShortList.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tblPortsShortList.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tblPortsShortList.setObjectName(_fromUtf8("tblPortsShortList"))
        self.tblPortsShortList.setColumnCount(1)
        self.tblPortsShortList.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblPortsShortList.setHorizontalHeaderItem(0, item)
        self.gridLayout_18.addWidget(self.tblPortsShortList, 0, 0, 1, 2)
        self.horizontalLayout_23.addWidget(self.groupBox_9)
        self.groupBox_10 = QtGui.QGroupBox(self.tab_15)
        self.groupBox_10.setMaximumSize(QtCore.QSize(450, 16777215))
        self.groupBox_10.setObjectName(_fromUtf8("groupBox_10"))
        self.gridLayout_19 = QtGui.QGridLayout(self.groupBox_10)
        self.gridLayout_19.setObjectName(_fromUtf8("gridLayout_19"))
        self.btnAddFullListPort = QtGui.QPushButton(self.groupBox_10)
        self.btnAddFullListPort.setObjectName(_fromUtf8("btnAddFullListPort"))
        self.gridLayout_19.addWidget(self.btnAddFullListPort, 1, 0, 1, 1)
        self.btnDeleteFullListPort = QtGui.QPushButton(self.groupBox_10)
        self.btnDeleteFullListPort.setObjectName(
            _fromUtf8("btnDeleteFullListPort"))
        self.gridLayout_19.addWidget(self.btnDeleteFullListPort, 1, 1, 1, 1)
        self.tblPortsFullList = QtGui.QTableWidget(self.groupBox_10)
        self.tblPortsFullList.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tblPortsFullList.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tblPortsFullList.setObjectName(_fromUtf8("tblPortsFullList"))
        self.tblPortsFullList.setColumnCount(1)
        self.tblPortsFullList.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblPortsFullList.setHorizontalHeaderItem(0, item)
        self.gridLayout_19.addWidget(self.tblPortsFullList, 0, 0, 1, 2)
        self.horizontalLayout_23.addWidget(self.groupBox_10)
        self.tabWidget_2.addTab(self.tab_15, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab_3)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.verticalLayout_5 = QtGui.QVBoxLayout()
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.cmbCategories = QtGui.QComboBox(self.tab_3)
        self.cmbCategories.setObjectName(_fromUtf8("cmbCategories"))
        self.verticalLayout_5.addWidget(self.cmbCategories)
        self.tblTasks = QtGui.QTableWidget(self.tab_3)
        self.tblTasks.setObjectName(_fromUtf8("tblTasks"))
        self.tblTasks.setColumnCount(2)
        self.tblTasks.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblTasks.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tblTasks.setHorizontalHeaderItem(1, item)
        self.verticalLayout_5.addWidget(self.tblTasks)
        self.gridLayout_2.addLayout(self.verticalLayout_5, 0, 1, 1, 1)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_4 = QtGui.QLabel(self.tab_3)
        self.label_4.setMinimumSize(QtCore.QSize(110, 0))
        self.label_4.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout.addWidget(self.label_4)
        self.txtTaskName = QtGui.QLineEdit(self.tab_3)
        self.txtTaskName.setObjectName(_fromUtf8("txtTaskName"))
        self.horizontalLayout.addWidget(self.txtTaskName)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_5 = QtGui.QLabel(self.tab_3)
        self.label_5.setMinimumSize(QtCore.QSize(110, 0))
        self.label_5.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_2.addWidget(self.label_5)
        self.txtTaskDescription = QtGui.QTextEdit(self.tab_3)
        self.txtTaskDescription.setObjectName(_fromUtf8("txtTaskDescription"))
        self.horizontalLayout_2.addWidget(self.txtTaskDescription)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_6 = QtGui.QLabel(self.tab_3)
        self.label_6.setMinimumSize(QtCore.QSize(110, 0))
        self.label_6.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_3.addWidget(self.label_6)
        self.txtFileName = QtGui.QLineEdit(self.tab_3)
        self.txtFileName.setObjectName(_fromUtf8("txtFileName"))
        self.horizontalLayout_3.addWidget(self.txtFileName)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_7 = QtGui.QLabel(self.tab_3)
        self.label_7.setMinimumSize(QtCore.QSize(110, 0))
        self.label_7.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.horizontalLayout_4.addWidget(self.label_7)
        self.cbxUsesMetasploit = QtGui.QCheckBox(self.tab_3)
        self.cbxUsesMetasploit.setText(_fromUtf8(""))
        self.cbxUsesMetasploit.setObjectName(_fromUtf8("cbxUsesMetasploit"))
        self.horizontalLayout_4.addWidget(self.cbxUsesMetasploit)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_15 = QtGui.QHBoxLayout()
        self.horizontalLayout_15.setObjectName(
            _fromUtf8("horizontalLayout_15"))
        self.label_13 = QtGui.QLabel(self.tab_3)
        self.label_13.setMinimumSize(QtCore.QSize(110, 0))
        self.label_13.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.horizontalLayout_15.addWidget(self.label_13)
        self.cbxIsRecursive = QtGui.QCheckBox(self.tab_3)
        self.cbxIsRecursive.setText(_fromUtf8(""))
        self.cbxIsRecursive.setObjectName(_fromUtf8("cbxIsRecursive"))
        self.horizontalLayout_15.addWidget(self.cbxIsRecursive)
        self.verticalLayout_2.addLayout(self.horizontalLayout_15)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.label_8 = QtGui.QLabel(self.tab_3)
        self.label_8.setMinimumSize(QtCore.QSize(110, 0))
        self.label_8.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.horizontalLayout_5.addWidget(self.label_8)
        self.cbxTaskEnabled = QtGui.QCheckBox(self.tab_3)
        self.cbxTaskEnabled.setText(_fromUtf8(""))
        self.cbxTaskEnabled.setObjectName(_fromUtf8("cbxTaskEnabled"))
        self.horizontalLayout_5.addWidget(self.cbxTaskEnabled)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.gridLayout_2.addLayout(self.verticalLayout_2, 0, 2, 1, 1)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.btnCreateTask = QtGui.QPushButton(self.tab_3)
        self.btnCreateTask.setObjectName(_fromUtf8("btnCreateTask"))
        self.horizontalLayout_7.addWidget(self.btnCreateTask)
        self.btnSaveTasksChanges = QtGui.QPushButton(self.tab_3)
        self.btnSaveTasksChanges.setObjectName(
            _fromUtf8("btnSaveTasksChanges"))
        self.horizontalLayout_7.addWidget(self.btnSaveTasksChanges)
        self.gridLayout_2.addLayout(self.horizontalLayout_7, 1, 0, 1, 3)
        self.tabWidget_2.addTab(self.tab_3, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.tab_4)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.tblTriggers = QtGui.QTableWidget(self.tab_4)
        self.tblTriggers.setObjectName(_fromUtf8("tblTriggers"))
        self.tblTriggers.setColumnCount(3)
        self.tblTriggers.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblTriggers.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tblTriggers.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tblTriggers.setHorizontalHeaderItem(2, item)
        self.horizontalLayout_10.addWidget(self.tblTriggers)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_9 = QtGui.QLabel(self.tab_4)
        self.label_9.setMinimumSize(QtCore.QSize(110, 0))
        self.label_9.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_8.addWidget(self.label_9)
        self.txtTriggerName = QtGui.QLineEdit(self.tab_4)
        self.txtTriggerName.setObjectName(_fromUtf8("txtTriggerName"))
        self.horizontalLayout_8.addWidget(self.txtTriggerName)
        self.verticalLayout_3.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_10 = QtGui.QLabel(self.tab_4)
        self.label_10.setMinimumSize(QtCore.QSize(110, 0))
        self.label_10.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.horizontalLayout_9.addWidget(self.label_10)
        self.txtTriggerDescription = QtGui.QTextEdit(self.tab_4)
        self.txtTriggerDescription.setObjectName(
            _fromUtf8("txtTriggerDescription"))
        self.horizontalLayout_9.addWidget(self.txtTriggerDescription)
        self.verticalLayout_3.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_10.addLayout(self.verticalLayout_3)
        self.gridLayout_4.addLayout(self.horizontalLayout_10, 0, 0, 1, 1)
        self.tabWidget_2.addTab(self.tab_4, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.gridLayout_5 = QtGui.QGridLayout(self.tab_5)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.cmbTriggers = QtGui.QComboBox(self.tab_5)
        self.cmbTriggers.setObjectName(_fromUtf8("cmbTriggers"))
        self.verticalLayout_6.addWidget(self.cmbTriggers)
        self.tblEvents = QtGui.QTableWidget(self.tab_5)
        self.tblEvents.setObjectName(_fromUtf8("tblEvents"))
        self.tblEvents.setColumnCount(5)
        self.tblEvents.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.tblEvents.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tblEvents.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tblEvents.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tblEvents.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tblEvents.setHorizontalHeaderItem(4, item)
        self.verticalLayout_6.addWidget(self.tblEvents)
        self.gridLayout_5.addLayout(self.verticalLayout_6, 0, 0, 1, 1)
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName(
            _fromUtf8("horizontalLayout_11"))
        self.label_11 = QtGui.QLabel(self.tab_5)
        self.label_11.setMinimumSize(QtCore.QSize(110, 0))
        self.label_11.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_11.addWidget(self.label_11)
        self.txtEventValueMask = QtGui.QLineEdit(self.tab_5)
        self.txtEventValueMask.setObjectName(_fromUtf8("txtEventValueMask"))
        self.horizontalLayout_11.addWidget(self.txtEventValueMask)
        self.verticalLayout_4.addLayout(self.horizontalLayout_11)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(
            _fromUtf8("horizontalLayout_12"))
        self.label_12 = QtGui.QLabel(self.tab_5)
        self.label_12.setMinimumSize(QtCore.QSize(110, 0))
        self.label_12.setMaximumSize(QtCore.QSize(110, 16777215))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_12.addWidget(self.label_12)
        self.cbxEventEnabled = QtGui.QCheckBox(self.tab_5)
        self.cbxEventEnabled.setText(_fromUtf8(""))
        self.cbxEventEnabled.setObjectName(_fromUtf8("cbxEventEnabled"))
        self.horizontalLayout_12.addWidget(self.cbxEventEnabled)
        self.verticalLayout_4.addLayout(self.horizontalLayout_12)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem4)
        self.gridLayout_5.addLayout(self.verticalLayout_4, 0, 1, 1, 1)
        self.horizontalLayout_14 = QtGui.QHBoxLayout()
        self.horizontalLayout_14.setObjectName(
            _fromUtf8("horizontalLayout_14"))
        self.btnAddEvent = QtGui.QPushButton(self.tab_5)
        self.btnAddEvent.setObjectName(_fromUtf8("btnAddEvent"))
        self.horizontalLayout_14.addWidget(self.btnAddEvent)
        self.btnSaveEvent = QtGui.QPushButton(self.tab_5)
        self.btnSaveEvent.setObjectName(_fromUtf8("btnSaveEvent"))
        self.horizontalLayout_14.addWidget(self.btnSaveEvent)
        self.gridLayout_5.addLayout(self.horizontalLayout_14, 1, 0, 1, 2)
        self.tabWidget_2.addTab(self.tab_5, _fromUtf8(""))
        self.gridLayout_3.addWidget(self.tabWidget_2, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 2)

        self.retranslateUi(Dialog)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_3.setCurrentIndex(0)
        self.cmbNmapTiming.setCurrentIndex(3)
        self.tabWidget_2.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #19
0
 def setupUi(self, Dialog):
     Dialog.setObjectName(_fromUtf8("Dialog"))
     Dialog.resize(596, 349)
     Dialog.setMinimumSize(QtCore.QSize(596, 0))
     Dialog.setMaximumSize(QtCore.QSize(596, 349))
     Dialog.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
     icon = QtGui.QIcon()
     icon.addPixmap(QtGui.QPixmap(_fromUtf8("brainstorm.png")),
                    QtGui.QIcon.Normal, QtGui.QIcon.Off)
     Dialog.setWindowIcon(icon)
     Dialog.setAutoFillBackground(False)
     self.gridLayout = QtGui.QGridLayout(Dialog)
     self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
     self.scrollArea = QtGui.QScrollArea(Dialog)
     self.scrollArea.setWidgetResizable(True)
     self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
     self.scrollAreaWidgetContents = QtGui.QWidget()
     self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 284, 306))
     self.scrollAreaWidgetContents.setObjectName(
         _fromUtf8("scrollAreaWidgetContents"))
     self.scrollArea.setWidget(self.scrollAreaWidgetContents)
     self.gridLayout.addWidget(self.scrollArea, 1, 1, 1, 1)
     self.label_2 = QtGui.QLabel(Dialog)
     self.label_2.setObjectName(_fromUtf8("label_2"))
     self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
     self.formLayout = QtGui.QFormLayout()
     self.formLayout.setFieldGrowthPolicy(
         QtGui.QFormLayout.AllNonFixedFieldsGrow)
     self.formLayout.setObjectName(_fromUtf8("formLayout"))
     self.label = QtGui.QLabel(Dialog)
     self.label.setTextFormat(QtCore.Qt.AutoText)
     self.label.setObjectName(_fromUtf8("label"))
     self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
     self.lineEdit = QtGui.QLineEdit(Dialog)
     self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
     self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                               self.lineEdit)
     spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                    QtGui.QSizePolicy.Expanding)
     self.formLayout.setItem(5, QtGui.QFormLayout.LabelRole, spacerItem)
     self.pushButton = QtGui.QPushButton(Dialog)
     self.pushButton.setObjectName(_fromUtf8("pushButton"))
     self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole,
                               self.pushButton)
     self.pushButton_2 = QtGui.QPushButton(Dialog)
     self.pushButton_2.setAutoFillBackground(False)
     self.pushButton_2.setAutoDefault(True)
     self.pushButton_2.setDefault(False)
     self.pushButton_2.setFlat(False)
     self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
     self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole,
                               self.pushButton_2)
     spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                     QtGui.QSizePolicy.Expanding)
     self.formLayout.setItem(6, QtGui.QFormLayout.LabelRole, spacerItem1)
     spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                     QtGui.QSizePolicy.Expanding)
     self.formLayout.setItem(7, QtGui.QFormLayout.LabelRole, spacerItem2)
     spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                     QtGui.QSizePolicy.Expanding)
     self.formLayout.setItem(8, QtGui.QFormLayout.LabelRole, spacerItem3)
     spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                     QtGui.QSizePolicy.Expanding)
     self.formLayout.setItem(2, QtGui.QFormLayout.LabelRole, spacerItem4)
     self.gridLayout.addLayout(self.formLayout, 1, 0, 1, 1)
     self.pushButton.clicked.connect(self.start_game)
     self.pushButton_2.clicked.connect(
         QtCore.QCoreApplication.instance().quit)
     self.retranslateUi(Dialog)
     Dialog.setTabOrder(self.lineEdit, self.pushButton)
     Dialog.setTabOrder(self.pushButton, self.scrollArea)
     Dialog.setTabOrder(self.scrollArea, self.pushButton_2)
예제 #20
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(903, 646)
        MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 220, 901, 401))
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.na = QtGui.QWidget()
        self.na.setObjectName(_fromUtf8("na"))
        self.qwtPlot_2 = QwtPlot(self.na)
        self.qwtPlot_2.setGeometry(QtCore.QRect(0, 0, 641, 331))
        self.qwtPlot_2.setObjectName(_fromUtf8("qwtPlot_2"))
        self.formLayoutWidget_2 = QtGui.QWidget(self.na)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(680, 30, 201, 141))
        self.formLayoutWidget_2.setObjectName(_fromUtf8("formLayoutWidget_2"))
        self.formLayout_2 = QtGui.QFormLayout(self.formLayoutWidget_2)
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.pushButton_4 = QtGui.QPushButton(self.formLayoutWidget_2)
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.pushButton_4)
        self.tabWidget.addTab(self.na, _fromUtf8(""))
        self.phase = QtGui.QWidget()
        self.phase.setObjectName(_fromUtf8("phase"))
        self.phasePlot = QwtPlot(self.phase)
        self.phasePlot.setGeometry(QtCore.QRect(0, 0, 641, 331))
        self.phasePlot.setObjectName(_fromUtf8("phasePlot"))
        self.frameNA = QtGui.QFrame(self.phase)
        self.frameNA.setGeometry(QtCore.QRect(640, 0, 261, 301))
        self.frameNA.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frameNA.setFrameShadow(QtGui.QFrame.Raised)
        self.frameNA.setObjectName(_fromUtf8("frameNA"))
        self.nnnn = QtGui.QLabel(self.frameNA)
        self.nnnn.setGeometry(QtCore.QRect(110, 10, 59, 14))
        self.nnnn.setObjectName(_fromUtf8("nnnn"))
        self.verticalLayoutWidget_3 = QtGui.QWidget(self.frameNA)
        self.verticalLayoutWidget_3.setGeometry(QtCore.QRect(10, 50, 123, 62))
        self.verticalLayoutWidget_3.setObjectName(_fromUtf8("verticalLayoutWidget_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.btnPhase = QtGui.QPushButton(self.verticalLayoutWidget_3)
        self.btnPhase.setObjectName(_fromUtf8("btnPhase"))
        self.verticalLayout_3.addWidget(self.btnPhase)
        self.btnMeasurePh = QtGui.QPushButton(self.frameNA)
        self.btnMeasurePh.setGeometry(QtCore.QRect(150, 50, 89, 41))
        self.btnMeasurePh.setAutoDefault(False)
        self.btnMeasurePh.setDefault(False)
        self.btnMeasurePh.setFlat(False)
        self.btnMeasurePh.setObjectName(_fromUtf8("btnMeasurePh"))
        self.btnFFT = QtGui.QPushButton(self.frameNA)
        self.btnFFT.setGeometry(QtCore.QRect(20, 120, 101, 41))
        self.btnFFT.setObjectName(_fromUtf8("btnFFT"))
        self.btnIFFT = QtGui.QPushButton(self.frameNA)
        self.btnIFFT.setGeometry(QtCore.QRect(130, 120, 101, 41))
        self.btnIFFT.setObjectName(_fromUtf8("btnIFFT"))
        self.btnPrueba = QtGui.QPushButton(self.frameNA)
        self.btnPrueba.setGeometry(QtCore.QRect(100, 210, 89, 27))
        self.btnPrueba.setObjectName(_fromUtf8("btnPrueba"))
        self.btnClear = QtGui.QPushButton(self.phase)
        self.btnClear.setGeometry(QtCore.QRect(740, 320, 89, 27))
        self.btnClear.setObjectName(_fromUtf8("btnClear"))
        self.tabWidget.addTab(self.phase, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.qwtPlot = QwtPlot(self.tab)
        self.qwtPlot.setGeometry(QtCore.QRect(10, 10, 641, 331))
        self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.Frecuency = QtGui.QFrame(self.centralwidget)
        self.Frecuency.setGeometry(QtCore.QRect(20, 20, 161, 191))
        self.Frecuency.setFrameShape(QtGui.QFrame.StyledPanel)
        self.Frecuency.setFrameShadow(QtGui.QFrame.Raised)
        self.Frecuency.setObjectName(_fromUtf8("Frecuency"))
        self.formLayoutWidget = QtGui.QWidget(self.Frecuency)
        self.formLayoutWidget.setGeometry(QtCore.QRect(0, 40, 160, 114))
        self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
        self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setLabelAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
        self.formLayout.setFormAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignTop)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.QLinitfreq = QtGui.QLabel(self.formLayoutWidget)
        self.QLinitfreq.setAlignment(QtCore.Qt.AlignCenter)
        self.QLinitfreq.setObjectName(_fromUtf8("QLinitfreq"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.QLinitfreq)
        self.QlendFreq = QtGui.QLabel(self.formLayoutWidget)
        self.QlendFreq.setObjectName(_fromUtf8("QlendFreq"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.QlendFreq)
        self.endFreq = QtGui.QLineEdit(self.formLayoutWidget)
        self.endFreq.setText(_fromUtf8(""))
        self.endFreq.setObjectName(_fromUtf8("endFreq"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.endFreq)
        self.iniFreq = QtGui.QLineEdit(self.formLayoutWidget)
        self.iniFreq.setText(_fromUtf8(""))
        self.iniFreq.setObjectName(_fromUtf8("iniFreq"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.iniFreq)
        self.setFreq = QtGui.QPushButton(self.Frecuency)
        self.setFreq.setGeometry(QtCore.QRect(40, 160, 89, 27))
        self.setFreq.setObjectName(_fromUtf8("setFreq"))
        self.freqRange = QtGui.QLabel(self.Frecuency)
        self.freqRange.setGeometry(QtCore.QRect(50, 10, 71, 16))
        self.freqRange.setObjectName(_fromUtf8("freqRange"))
        self.verticalLayoutWidget = QtGui.QWidget(self.centralwidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(190, 0, 101, 111))
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.power = QtGui.QLabel(self.verticalLayoutWidget)
        self.power.setAlignment(QtCore.Qt.AlignCenter)
        self.power.setObjectName(_fromUtf8("power"))
        self.verticalLayout.addWidget(self.power)
        self.powerStep = QtGui.QSpinBox(self.verticalLayoutWidget)
        self.powerStep.setMinimum(-45)
        self.powerStep.setMaximum(3)
        self.powerStep.setProperty("value", -15)
        self.powerStep.setObjectName(_fromUtf8("powerStep"))
        self.verticalLayout.addWidget(self.powerStep)
        self.btnpwstep = QtGui.QPushButton(self.verticalLayoutWidget)
        self.btnpwstep.setObjectName(_fromUtf8("btnpwstep"))
        self.verticalLayout.addWidget(self.btnpwstep)
        self.frame_2 = QtGui.QFrame(self.centralwidget)
        self.frame_2.setGeometry(QtCore.QRect(440, 10, 451, 221))
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.frame_2)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(30, 40, 300, 51))
        self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.btnOpen = QtGui.QPushButton(self.horizontalLayoutWidget)
        self.btnOpen.setObjectName(_fromUtf8("btnOpen"))
        self.horizontalLayout.addWidget(self.btnOpen)
        self.btnclose = QtGui.QPushButton(self.horizontalLayoutWidget)
        self.btnclose.setObjectName(_fromUtf8("btnclose"))
        self.horizontalLayout.addWidget(self.btnclose)
        self.log = QtGui.QPlainTextEdit(self.frame_2)
        self.log.setGeometry(QtCore.QRect(10, 100, 431, 111))
        self.log.setReadOnly(True)
        self.log.setPlainText(_fromUtf8(""))
        self.log.setObjectName(_fromUtf8("log"))
        self.CN = QtGui.QLabel(self.frame_2)
        self.CN.setGeometry(QtCore.QRect(140, 10, 111, 16))
        self.CN.setObjectName(_fromUtf8("CN"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 903, 22))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #21
0
    def setupUi(self, prefDialog):
        prefDialog.setObjectName(_fromUtf8("prefDialog"))
        prefDialog.setWindowModality(QtCore.Qt.WindowModal)
        prefDialog.resize(596, 525)
        self.verticalLayout_5 = QtGui.QVBoxLayout(prefDialog)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.tabWidget = QtGui.QTabWidget(prefDialog)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.verticalLayout = QtGui.QVBoxLayout(self.tab)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.tab)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.cbTimeFormat = QtGui.QComboBox(self.tab)
        self.cbTimeFormat.setObjectName(_fromUtf8("cbTimeFormat"))
        self.cbTimeFormat.addItem(_fromUtf8(""))
        self.cbTimeFormat.addItem(_fromUtf8(""))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.cbTimeFormat)
        self.label_4 = QtGui.QLabel(self.tab)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4)
        self.sbffSpeed = QtGui.QSpinBox(self.tab)
        self.sbffSpeed.setMinimum(0)
        self.sbffSpeed.setMaximum(10000)
        self.sbffSpeed.setProperty("value", 10)
        self.sbffSpeed.setObjectName(_fromUtf8("sbffSpeed"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.sbffSpeed)
        self.label_2 = QtGui.QLabel(self.tab)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_2)
        self.sbRepositionTimeOffset = QtGui.QSpinBox(self.tab)
        self.sbRepositionTimeOffset.setMinimum(-10000)
        self.sbRepositionTimeOffset.setMaximum(10000)
        self.sbRepositionTimeOffset.setProperty("value", -3)
        self.sbRepositionTimeOffset.setObjectName(_fromUtf8("sbRepositionTimeOffset"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.sbRepositionTimeOffset)
        self.label_5 = QtGui.QLabel(self.tab)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_5)
        self.sbSpeedStep = QtGui.QDoubleSpinBox(self.tab)
        self.sbSpeedStep.setDecimals(1)
        self.sbSpeedStep.setMinimum(0.1)
        self.sbSpeedStep.setMaximum(1.0)
        self.sbSpeedStep.setSingleStep(0.1)
        self.sbSpeedStep.setProperty("value", 0.1)
        self.sbSpeedStep.setObjectName(_fromUtf8("sbSpeedStep"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.sbSpeedStep)
        self.label_6 = QtGui.QLabel(self.tab)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_6)
        self.sbAutomaticBackup = QtGui.QSpinBox(self.tab)
        self.sbAutomaticBackup.setMinimum(-10000)
        self.sbAutomaticBackup.setMaximum(10000)
        self.sbAutomaticBackup.setProperty("value", 10)
        self.sbAutomaticBackup.setObjectName(_fromUtf8("sbAutomaticBackup"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.sbAutomaticBackup)
        self.label_3 = QtGui.QLabel(self.tab)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_3)
        self.leSeparator = QtGui.QLineEdit(self.tab)
        self.leSeparator.setObjectName(_fromUtf8("leSeparator"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.leSeparator)
        self.cbCloseSameEvent = QtGui.QCheckBox(self.tab)
        self.cbCloseSameEvent.setObjectName(_fromUtf8("cbCloseSameEvent"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.cbCloseSameEvent)
        self.cbConfirmSound = QtGui.QCheckBox(self.tab)
        self.cbConfirmSound.setObjectName(_fromUtf8("cbConfirmSound"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.cbConfirmSound)
        self.label_8 = QtGui.QLabel(self.tab)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.label_8)
        self.sbBeepEvery = QtGui.QSpinBox(self.tab)
        self.sbBeepEvery.setObjectName(_fromUtf8("sbBeepEvery"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.sbBeepEvery)
        self.cbAlertNoFocalSubject = QtGui.QCheckBox(self.tab)
        self.cbAlertNoFocalSubject.setObjectName(_fromUtf8("cbAlertNoFocalSubject"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole, self.cbAlertNoFocalSubject)
        self.cbTrackingCursorAboveEvent = QtGui.QCheckBox(self.tab)
        self.cbTrackingCursorAboveEvent.setObjectName(_fromUtf8("cbTrackingCursorAboveEvent"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.cbTrackingCursorAboveEvent)
        self.cbCheckForNewVersion = QtGui.QCheckBox(self.tab)
        self.cbCheckForNewVersion.setObjectName(_fromUtf8("cbCheckForNewVersion"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.LabelRole, self.cbCheckForNewVersion)
        self.cb_pause_before_addevent = QtGui.QCheckBox(self.tab)
        self.cb_pause_before_addevent.setObjectName(_fromUtf8("cb_pause_before_addevent"))
        self.formLayout.setWidget(13, QtGui.QFormLayout.LabelRole, self.cb_pause_before_addevent)
        self.cb_display_subtitles = QtGui.QCheckBox(self.tab)
        self.cb_display_subtitles.setObjectName(_fromUtf8("cb_display_subtitles"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole, self.cb_display_subtitles)
        self.verticalLayout.addLayout(self.formLayout)
        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.setMargin(0)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.lbFFmpegPath = QtGui.QLabel(self.tab_2)
        self.lbFFmpegPath.setScaledContents(False)
        self.lbFFmpegPath.setWordWrap(True)
        self.lbFFmpegPath.setObjectName(_fromUtf8("lbFFmpegPath"))
        self.verticalLayout_3.addWidget(self.lbFFmpegPath)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lbFFmpegCacheDir = QtGui.QLabel(self.tab_2)
        self.lbFFmpegCacheDir.setObjectName(_fromUtf8("lbFFmpegCacheDir"))
        self.horizontalLayout_3.addWidget(self.lbFFmpegCacheDir)
        self.leFFmpegCacheDir = QtGui.QLineEdit(self.tab_2)
        self.leFFmpegCacheDir.setObjectName(_fromUtf8("leFFmpegCacheDir"))
        self.horizontalLayout_3.addWidget(self.leFFmpegCacheDir)
        self.pbBrowseFFmpegCacheDir = QtGui.QPushButton(self.tab_2)
        self.pbBrowseFFmpegCacheDir.setObjectName(_fromUtf8("pbBrowseFFmpegCacheDir"))
        self.horizontalLayout_3.addWidget(self.pbBrowseFFmpegCacheDir)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.lbFFmpegCacheDirMaxSize = QtGui.QLabel(self.tab_2)
        self.lbFFmpegCacheDirMaxSize.setObjectName(_fromUtf8("lbFFmpegCacheDirMaxSize"))
        self.horizontalLayout_4.addWidget(self.lbFFmpegCacheDirMaxSize)
        self.sbFFmpegCacheDirMaxSize = QtGui.QSpinBox(self.tab_2)
        self.sbFFmpegCacheDirMaxSize.setMaximum(10000)
        self.sbFFmpegCacheDirMaxSize.setSingleStep(10)
        self.sbFFmpegCacheDirMaxSize.setObjectName(_fromUtf8("sbFFmpegCacheDirMaxSize"))
        self.horizontalLayout_4.addWidget(self.sbFFmpegCacheDirMaxSize)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.verticalLayout_3)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.tab_3)
        self.verticalLayout_7.setMargin(0)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.lbResize = QtGui.QLabel(self.tab_3)
        self.lbResize.setWordWrap(True)
        self.lbResize.setObjectName(_fromUtf8("lbResize"))
        self.horizontalLayout_5.addWidget(self.lbResize)
        self.sbFrameResize = QtGui.QSpinBox(self.tab_3)
        self.sbFrameResize.setMaximum(1920)
        self.sbFrameResize.setSingleStep(10)
        self.sbFrameResize.setObjectName(_fromUtf8("sbFrameResize"))
        self.horizontalLayout_5.addWidget(self.sbFrameResize)
        self.verticalLayout_7.addLayout(self.horizontalLayout_5)
        self.verticalLayout_6 = QtGui.QVBoxLayout()
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_9 = QtGui.QLabel(self.tab_3)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_8.addWidget(self.label_9)
        self.cbFrameBitmapFormat = QtGui.QComboBox(self.tab_3)
        self.cbFrameBitmapFormat.setObjectName(_fromUtf8("cbFrameBitmapFormat"))
        self.cbFrameBitmapFormat.addItem(_fromUtf8(""))
        self.cbFrameBitmapFormat.addItem(_fromUtf8(""))
        self.horizontalLayout_8.addWidget(self.cbFrameBitmapFormat)
        self.verticalLayout_6.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_11 = QtGui.QLabel(self.tab_3)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_9.addWidget(self.label_11)
        self.sb_fbf_cache_size = QtGui.QSpinBox(self.tab_3)
        self.sb_fbf_cache_size.setMinimum(1)
        self.sb_fbf_cache_size.setMaximum(3600)
        self.sb_fbf_cache_size.setObjectName(_fromUtf8("sb_fbf_cache_size"))
        self.horizontalLayout_9.addWidget(self.sb_fbf_cache_size)
        self.verticalLayout_6.addLayout(self.horizontalLayout_9)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem1)
        self.verticalLayout_7.addLayout(self.verticalLayout_6)
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.tab_4)
        self.verticalLayout_8.setMargin(0)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_7 = QtGui.QLabel(self.tab_4)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.horizontalLayout_7.addWidget(self.label_7)
        self.cbSpectrogramColorMap = QtGui.QComboBox(self.tab_4)
        self.cbSpectrogramColorMap.setObjectName(_fromUtf8("cbSpectrogramColorMap"))
        self.horizontalLayout_7.addWidget(self.cbSpectrogramColorMap)
        self.verticalLayout_8.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.label_12 = QtGui.QLabel(self.tab_4)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_10.addWidget(self.label_12)
        self.sb_time_interval = QtGui.QSpinBox(self.tab_4)
        self.sb_time_interval.setMinimum(2)
        self.sb_time_interval.setMaximum(360)
        self.sb_time_interval.setProperty("value", 10)
        self.sb_time_interval.setObjectName(_fromUtf8("sb_time_interval"))
        self.horizontalLayout_10.addWidget(self.sb_time_interval)
        self.verticalLayout_8.addLayout(self.horizontalLayout_10)
        spacerItem2 = QtGui.QSpacerItem(20, 319, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem2)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.tab_5)
        self.verticalLayout_11.setMargin(0)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.verticalLayout_10 = QtGui.QVBoxLayout()
        self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
        self.label_10 = QtGui.QLabel(self.tab_5)
        self.label_10.setOpenExternalLinks(True)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.verticalLayout_10.addWidget(self.label_10)
        self.te_plot_colors = QtGui.QPlainTextEdit(self.tab_5)
        self.te_plot_colors.setObjectName(_fromUtf8("te_plot_colors"))
        self.verticalLayout_10.addWidget(self.te_plot_colors)
        self.pb_reset_colors = QtGui.QPushButton(self.tab_5)
        self.pb_reset_colors.setObjectName(_fromUtf8("pb_reset_colors"))
        self.verticalLayout_10.addWidget(self.pb_reset_colors)
        self.verticalLayout_11.addLayout(self.verticalLayout_10)
        self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
        self.verticalLayout_2.addWidget(self.tabWidget)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem3 = QtGui.QSpacerItem(241, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem3)
        self.pb_refresh = QtGui.QPushButton(prefDialog)
        self.pb_refresh.setObjectName(_fromUtf8("pb_refresh"))
        self.horizontalLayout_2.addWidget(self.pb_refresh)
        self.pbCancel = QtGui.QPushButton(prefDialog)
        self.pbCancel.setObjectName(_fromUtf8("pbCancel"))
        self.horizontalLayout_2.addWidget(self.pbCancel)
        self.pbOK = QtGui.QPushButton(prefDialog)
        self.pbOK.setObjectName(_fromUtf8("pbOK"))
        self.horizontalLayout_2.addWidget(self.pbOK)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_5.addLayout(self.verticalLayout_2)

        self.retranslateUi(prefDialog)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(prefDialog)
예제 #22
0
    def setupUi(self, SpriteWidget):
        SpriteWidget.setObjectName(_fromUtf8("SpriteWidget"))
        SpriteWidget.resize(566, 457)
        self.verticalLayoutWidget = QtGui.QWidget(SpriteWidget)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 0, 561, 451))
        self.verticalLayoutWidget.setObjectName(
            _fromUtf8("verticalLayoutWidget"))
        self.layout_main = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.layout_main.setSpacing(6)
        self.layout_main.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.layout_main.setMargin(5)
        self.layout_main.setObjectName(_fromUtf8("layout_main"))
        self.layout_sprite_header = QtGui.QHBoxLayout()
        self.layout_sprite_header.setSizeConstraint(
            QtGui.QLayout.SetDefaultConstraint)
        self.layout_sprite_header.setMargin(2)
        self.layout_sprite_header.setObjectName(
            _fromUtf8("layout_sprite_header"))
        self.gb_sprite = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.gb_sprite.setMinimumSize(QtCore.QSize(250, 120))
        self.gb_sprite.setObjectName(_fromUtf8("gb_sprite"))
        self.formLayoutWidget = QtGui.QWidget(self.gb_sprite)
        self.formLayoutWidget.setGeometry(QtCore.QRect(20, 20, 191, 74))
        self.formLayoutWidget.setObjectName(_fromUtf8("formLayoutWidget"))
        self.formLayout = QtGui.QFormLayout(self.formLayoutWidget)
        self.formLayout.setMargin(0)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.lbl_name = QtGui.QLabel(self.formLayoutWidget)
        self.lbl_name.setObjectName(_fromUtf8("lbl_name"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.lbl_name)
        self.le_name = QtGui.QLineEdit(self.formLayoutWidget)
        self.le_name.setObjectName(_fromUtf8("le_name"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.le_name)
        self.lbl_width = QtGui.QLabel(self.formLayoutWidget)
        self.lbl_width.setObjectName(_fromUtf8("lbl_width"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.lbl_width)
        self.le_width = QtGui.QLineEdit(self.formLayoutWidget)
        self.le_width.setObjectName(_fromUtf8("le_width"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.le_width)
        self.lbl_height = QtGui.QLabel(self.formLayoutWidget)
        self.lbl_height.setObjectName(_fromUtf8("lbl_height"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.lbl_height)
        self.le_height = QtGui.QLineEdit(self.formLayoutWidget)
        self.le_height.setObjectName(_fromUtf8("le_height"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.le_height)
        self.layout_sprite_header.addWidget(self.gb_sprite)
        self.gb_preview = QtGui.QGroupBox(self.verticalLayoutWidget)
        self.gb_preview.setMinimumSize(QtCore.QSize(100, 0))
        self.gb_preview.setObjectName(_fromUtf8("gb_preview"))
        self.horizontalLayoutWidget = QtGui.QWidget(self.gb_preview)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(0, 10, 141, 101))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.layout_preview = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.layout_preview.setMargin(0)
        self.layout_preview.setObjectName(_fromUtf8("layout_preview"))
        self.lbl_preview = QtGui.QLabel(self.horizontalLayoutWidget)
        self.lbl_preview.setObjectName(_fromUtf8("lbl_preview"))
        self.layout_preview.addWidget(self.lbl_preview)
        self.sp_fps = QtGui.QSpinBox(self.horizontalLayoutWidget)
        self.sp_fps.setMinimumSize(QtCore.QSize(40, 20))
        self.sp_fps.setMaximumSize(QtCore.QSize(40, 20))
        self.sp_fps.setMinimum(15)
        self.sp_fps.setMaximum(150)
        self.sp_fps.setObjectName(_fromUtf8("sp_fps"))
        self.layout_preview.addWidget(self.sp_fps)
        self.layout_sprite_header.addWidget(self.gb_preview)
        self.btn_add_frame = QtGui.QPushButton(self.verticalLayoutWidget)
        self.btn_add_frame.setObjectName(_fromUtf8("btn_add_frame"))
        self.layout_sprite_header.addWidget(self.btn_add_frame)
        self.layout_main.addLayout(self.layout_sprite_header)
        self.lbl_frames = QtGui.QLabel(self.verticalLayoutWidget)
        self.lbl_frames.setObjectName(_fromUtf8("lbl_frames"))
        self.layout_main.addWidget(self.lbl_frames)
        self.sa_frames = QtGui.QScrollArea(self.verticalLayoutWidget)
        self.sa_frames.setWidgetResizable(True)
        self.sa_frames.setAlignment(QtCore.Qt.AlignJustify
                                    | QtCore.Qt.AlignVCenter)
        self.sa_frames.setObjectName(_fromUtf8("sa_frames"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 549, 290))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.sa_frames.setWidget(self.scrollAreaWidgetContents)
        self.layout_main.addWidget(self.sa_frames)

        self.retranslateUi(SpriteWidget)
        QtCore.QMetaObject.connectSlotsByName(SpriteWidget)
예제 #23
0
    def setupUi(self, wordlist_dockable):
        wordlist_dockable.setObjectName(_fromUtf8("wordlist_dockable"))
        wordlist_dockable.resize(400, 585)
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.file = QtGui.QGroupBox(self.dockWidgetContents)
        self.file.setObjectName(_fromUtf8("file"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.file)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.wordlistload_pushButton = QtGui.QPushButton(self.file)
        self.wordlistload_pushButton.setObjectName(
            _fromUtf8("wordlistload_pushButton"))
        self.horizontalLayout.addWidget(self.wordlistload_pushButton)
        self.wordlistsave_pushButton = QtGui.QPushButton(self.file)
        self.wordlistsave_pushButton.setObjectName(
            _fromUtf8("wordlistsave_pushButton"))
        self.horizontalLayout.addWidget(self.wordlistsave_pushButton)
        self.wordlistfile_lineEdit = QtGui.QLineEdit(self.file)
        self.wordlistfile_lineEdit.setObjectName(
            _fromUtf8("wordlistfile_lineEdit"))
        self.horizontalLayout.addWidget(self.wordlistfile_lineEdit)
        self.verticalLayout.addWidget(self.file)
        self.List = QtGui.QGroupBox(self.dockWidgetContents)
        self.List.setObjectName(_fromUtf8("List"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.List)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.wordlist_tableWidget = QtGui.QTableWidget(self.List)
        self.wordlist_tableWidget.setObjectName(
            _fromUtf8("wordlist_tableWidget"))
        self.wordlist_tableWidget.setColumnCount(4)
        self.wordlist_tableWidget.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.wordlist_tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.wordlist_tableWidget.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.wordlist_tableWidget.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.wordlist_tableWidget.setHorizontalHeaderItem(3, item)
        self.verticalLayout_3.addWidget(self.wordlist_tableWidget)
        self.AddNew = QtGui.QGroupBox(self.List)
        self.AddNew.setObjectName(_fromUtf8("AddNew"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.AddNew)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.newWord_label = QtGui.QLabel(self.AddNew)
        self.newWord_label.setObjectName(_fromUtf8("newWord_label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.newWord_label)
        self.NewTags_label = QtGui.QLabel(self.AddNew)
        self.NewTags_label.setObjectName(_fromUtf8("NewTags_label"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.NewTags_label)
        self.NewWord_lineEdit = QtGui.QLineEdit(self.AddNew)
        self.NewWord_lineEdit.setObjectName(_fromUtf8("NewWord_lineEdit"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.NewWord_lineEdit)
        self.NewTags_lineEdit = QtGui.QLineEdit(self.AddNew)
        self.NewTags_lineEdit.setObjectName(_fromUtf8("NewTags_lineEdit"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.NewTags_lineEdit)
        self.verticalLayout_4.addLayout(self.formLayout)
        self.AddNew_pushButton = QtGui.QPushButton(self.AddNew)
        self.AddNew_pushButton.setObjectName(_fromUtf8("AddNew_pushButton"))
        self.verticalLayout_4.addWidget(self.AddNew_pushButton)
        self.verticalLayout_3.addWidget(self.AddNew)
        self.removewords_pushButton = QtGui.QPushButton(self.List)
        self.removewords_pushButton.setObjectName(
            _fromUtf8("removewords_pushButton"))
        self.verticalLayout_3.addWidget(self.removewords_pushButton)
        self.verticalLayout.addWidget(self.List)
        self.verticalLayout_2.addLayout(self.verticalLayout)
        wordlist_dockable.setWidget(self.dockWidgetContents)

        self.retranslateUi(wordlist_dockable)
        QtCore.QMetaObject.connectSlotsByName(wordlist_dockable)
예제 #24
0
    def setupUi(self, ReportDeathBSKSetupDialog):
        ReportDeathBSKSetupDialog.setObjectName(
            _fromUtf8("ReportDeathBSKSetupDialog"))
        ReportDeathBSKSetupDialog.resize(400, 168)
        self.formLayout = QtGui.QFormLayout(ReportDeathBSKSetupDialog)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(ReportDeathBSKSetupDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.label_2 = QtGui.QLabel(ReportDeathBSKSetupDialog)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_2)
        self.label_3 = QtGui.QLabel(ReportDeathBSKSetupDialog)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_3)
        self.chkHell = QtGui.QCheckBox(ReportDeathBSKSetupDialog)
        self.chkHell.setText(_fromUtf8(""))
        self.chkHell.setObjectName(_fromUtf8("chkHell"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.chkHell)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(8, QtGui.QFormLayout.FieldRole, spacerItem)
        self.buttonBox = QtGui.QDialogButtonBox(ReportDeathBSKSetupDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.SpanningRole,
                                  self.buttonBox)
        self.edtBegDate = CDateEdit(ReportDeathBSKSetupDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.edtBegDate.sizePolicy().hasHeightForWidth())
        self.edtBegDate.setSizePolicy(sizePolicy)
        self.edtBegDate.setObjectName(_fromUtf8("edtBegDate"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.edtBegDate)
        self.edtEndDate = CDateEdit(ReportDeathBSKSetupDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.edtEndDate.sizePolicy().hasHeightForWidth())
        self.edtEndDate.setSizePolicy(sizePolicy)
        self.edtEndDate.setObjectName(_fromUtf8("edtEndDate"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.edtEndDate)
        self.cmbOrgStruct = COrgStructureComboBox(ReportDeathBSKSetupDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cmbOrgStruct.sizePolicy().hasHeightForWidth())
        self.cmbOrgStruct.setSizePolicy(sizePolicy)
        self.cmbOrgStruct.setObjectName(_fromUtf8("cmbOrgStruct"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole,
                                  self.cmbOrgStruct)
        self.label_4 = QtGui.QLabel(ReportDeathBSKSetupDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.label_4)

        self.retranslateUi(ReportDeathBSKSetupDialog)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               ReportDeathBSKSetupDialog.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               ReportDeathBSKSetupDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(ReportDeathBSKSetupDialog)
예제 #25
0
    def setupUi(self, RCommanderWindow):
        RCommanderWindow.setObjectName("RCommanderWindow")
        RCommanderWindow.resize(1046, 875)
        self.centralwidget = QtGui.QWidget(RCommanderWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setContentsMargins(9, 9, 9, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tools_box = QtGui.QTabWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tools_box.sizePolicy().hasHeightForWidth())
        self.tools_box.setSizePolicy(sizePolicy)
        self.tools_box.setObjectName("tools_box")
        self.verticalLayout.addWidget(self.tools_box)
        self.frame = QtGui.QFrame(self.centralwidget)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_7.setMargin(0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.splitter = QtGui.QSplitter(self.frame)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.graphics_widget = QtGui.QWidget(self.splitter)
        self.graphics_widget.setObjectName("graphics_widget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.graphics_widget)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.widget_3 = QtGui.QWidget(self.graphics_widget)
        self.widget_3.setObjectName("widget_3")
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget_3)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.start_state_button = QtGui.QToolButton(self.widget_3)
        self.start_state_button.setAutoRaise(True)
        self.start_state_button.setObjectName("start_state_button")
        self.horizontalLayout.addWidget(self.start_state_button)
        self.add_outcome_button = QtGui.QToolButton(self.widget_3)
        self.add_outcome_button.setCheckable(True)
        self.add_outcome_button.setAutoRaise(True)
        self.add_outcome_button.setObjectName("add_outcome_button")
        self.horizontalLayout.addWidget(self.add_outcome_button)
        self.delete_button = QtGui.QToolButton(self.widget_3)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                "../../../../../../../../u/hnguyen/svn/wg/rcommander/qt/images/delete.png"
            ), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.delete_button.setIcon(icon)
        self.delete_button.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.delete_button.setAutoRaise(True)
        self.delete_button.setObjectName("delete_button")
        self.horizontalLayout.addWidget(self.delete_button)
        self.add_to_library_button = QtGui.QToolButton(self.widget_3)
        self.add_to_library_button.setAutoRaise(True)
        self.add_to_library_button.setObjectName("add_to_library_button")
        self.horizontalLayout.addWidget(self.add_to_library_button)
        self.library_button = QtGui.QToolButton(self.widget_3)
        self.library_button.setCheckable(True)
        self.library_button.setAutoRaise(True)
        self.library_button.setObjectName("library_button")
        self.horizontalLayout.addWidget(self.library_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_2.addWidget(self.widget_3)
        self.graphicsSuperView = QtGui.QGraphicsView(self.graphics_widget)
        self.graphicsSuperView.setStyleSheet(
            "QTextEdit { background: palette(base); } \n"
            "#main QAbstractScrollArea[style=\"mac\"] { border-color: #8e8e8e #bebebe #bebebe #bebebe; }\n"
            "#main QAbstractScrollArea[style=\"cde\"] { border-color: #7c7c8d #9a9ab0 #9a9ab0 #8f8fa4; }\n"
            "#main QAbstractScrollArea[style=\"motif\"] { border-color: #a6a6a6 #efefef #efefef #a6a6a6; }\n"
            "#main QAbstractScrollArea[style=\"windows\"] { border-color: #8b8b8b transparent transparent #a7a49f; }\n"
            "#main QAbstractScrollArea[style=\"plastique\"] { border-color: #8e8e8e #d5d5d5 #d5d5d5 #bebebe; }\n"
            "#main QAbstractScrollArea[style=\"cleanlooks\"] { border-color: #a8a099 #dedad6 #dedad6 #c4bcb4; }\n"
            "#main QAbstractScrollArea[style=\"windowsvista\"] { border-color: #abadb3 #dbdfe6 #e3e9ef #e2e3ea; }\n"
            "#main QAbstractScrollArea:focus[style=\"windowsvista\"] { border-color: #3d7bad #a4c9e3 #b7d9ed #b5cfe7; }\n"
            "\n"
            "#main #graphicsSuperView { background-color: #f2f2f2; }\n"
            "#main #graphicsSuperView[style=\"cde\"] { background-color: #aaaac2; }\n"
            "#main #graphicsSuperView[style=\"motif\"] { background-color: #e5e5e5; }\n"
            "#main #graphicsSuperView[style=\"windows\"] { background-color: #fafafa; }\n"
            "")
        self.graphicsSuperView.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.graphicsSuperView.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.graphicsSuperView.setAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignTop)
        self.graphicsSuperView.setRenderHints(
            QtGui.QPainter.Antialiasing
            | QtGui.QPainter.HighQualityAntialiasing
            | QtGui.QPainter.SmoothPixmapTransform
            | QtGui.QPainter.TextAntialiasing)
        self.graphicsSuperView.setOptimizationFlags(
            QtGui.QGraphicsView.DontAdjustForAntialiasing
            | QtGui.QGraphicsView.DontClipPainter
            | QtGui.QGraphicsView.DontSavePainterState)
        self.graphicsSuperView.setObjectName("graphicsSuperView")
        self.verticalLayout_2.addWidget(self.graphicsSuperView)
        self.edit_panel = QtGui.QWidget(self.splitter)
        self.edit_panel.setObjectName("edit_panel")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.edit_panel)
        self.verticalLayout_3.setContentsMargins(9, -1, -1, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.node_settings_tabs = QtGui.QTabWidget(self.edit_panel)
        self.node_settings_tabs.setObjectName("node_settings_tabs")
        self.properties_container = QtGui.QWidget()
        self.properties_container.setObjectName("properties_container")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.properties_container)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.properties_tab = QtGui.QWidget(self.properties_container)
        self.properties_tab.setObjectName("properties_tab")
        self.formLayout = QtGui.QFormLayout(self.properties_tab)
        self.formLayout.setMargin(0)
        self.formLayout.setObjectName("formLayout")
        self.label = QtGui.QLabel(self.properties_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.lineEdit = QtGui.QLineEdit(self.properties_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit.sizePolicy().hasHeightForWidth())
        self.lineEdit.setSizePolicy(sizePolicy)
        self.lineEdit.setObjectName("lineEdit")
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.lineEdit)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(2, QtGui.QFormLayout.LabelRole, spacerItem2)
        self.label_3 = QtGui.QLabel(self.properties_tab)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
        self.widget = QtGui.QWidget(self.properties_tab)
        self.widget.setObjectName("widget")
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_4 = QtGui.QLabel(self.widget)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_2.addWidget(self.label_4)
        self.radioButton_2 = QtGui.QRadioButton(self.widget)
        self.radioButton_2.setObjectName("radioButton_2")
        self.horizontalLayout_2.addWidget(self.radioButton_2)
        self.radioButton = QtGui.QRadioButton(self.widget)
        self.radioButton.setObjectName("radioButton")
        self.horizontalLayout_2.addWidget(self.radioButton)
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.widget)
        self.verticalLayout_4.addWidget(self.properties_tab)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem3)
        self.node_settings_tabs.addTab(self.properties_container, "")
        self.connections_tab = QtGui.QWidget()
        self.connections_tab.setObjectName("connections_tab")
        self.formLayout_4 = QtGui.QFormLayout(self.connections_tab)
        self.formLayout_4.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setObjectName("formLayout_4")
        self.label_2 = QtGui.QLabel(self.connections_tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName("label_2")
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_2)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.formLayout_4.setItem(1, QtGui.QFormLayout.LabelRole, spacerItem4)
        self.comboBox = QtGui.QComboBox(self.connections_tab)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.comboBox)
        self.node_settings_tabs.addTab(self.connections_tab, "")
        self.verticalLayout_3.addWidget(self.node_settings_tabs)
        self.behavior_properties_buttons_box = QtGui.QWidget(self.edit_panel)
        self.behavior_properties_buttons_box.setObjectName(
            "behavior_properties_buttons_box")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(
            self.behavior_properties_buttons_box)
        self.horizontalLayout_6.setMargin(0)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.run_button = QtGui.QPushButton(
            self.behavior_properties_buttons_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.run_button.sizePolicy().hasHeightForWidth())
        self.run_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setWeight(50)
        font.setBold(False)
        self.run_button.setFont(font)
        self.run_button.setObjectName("run_button")
        self.horizontalLayout_6.addWidget(self.run_button)
        self.save_button = QtGui.QPushButton(
            self.behavior_properties_buttons_box)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.save_button.sizePolicy().hasHeightForWidth())
        self.save_button.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setPointSize(18)
        font.setWeight(50)
        font.setBold(False)
        self.save_button.setFont(font)
        self.save_button.setObjectName("save_button")
        self.horizontalLayout_6.addWidget(self.save_button)
        self.add_button = QtGui.QPushButton(
            self.behavior_properties_buttons_box)
        font = QtGui.QFont()
        font.setPointSize(18)
        self.add_button.setFont(font)
        self.add_button.setObjectName("add_button")
        self.horizontalLayout_6.addWidget(self.add_button)
        self.reset_button = QtGui.QPushButton(
            self.behavior_properties_buttons_box)
        font = QtGui.QFont()
        font.setPointSize(18)
        self.reset_button.setFont(font)
        self.reset_button.setObjectName("reset_button")
        self.horizontalLayout_6.addWidget(self.reset_button)
        self.verticalLayout_3.addWidget(self.behavior_properties_buttons_box)
        self.horizontalLayout_7.addWidget(self.splitter)
        self.verticalLayout.addWidget(self.frame)
        RCommanderWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(RCommanderWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1046, 23))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuEdit = QtGui.QMenu(self.menubar)
        self.menuEdit.setObjectName("menuEdit")
        self.menuActions = QtGui.QMenu(self.menubar)
        self.menuActions.setObjectName("menuActions")
        RCommanderWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(RCommanderWindow)
        self.statusbar.setObjectName("statusbar")
        RCommanderWindow.setStatusBar(self.statusbar)
        self.actionOpen = QtGui.QAction(RCommanderWindow)
        self.actionOpen.setObjectName("actionOpen")
        self.actionSave = QtGui.QAction(RCommanderWindow)
        self.actionSave.setObjectName("actionSave")
        self.actionNew = QtGui.QAction(RCommanderWindow)
        self.actionNew.setObjectName("actionNew")
        self.action_open = QtGui.QAction(RCommanderWindow)
        self.action_open.setObjectName("action_open")
        self.action_save = QtGui.QAction(RCommanderWindow)
        self.action_save.setObjectName("action_save")
        self.action_save_as = QtGui.QAction(RCommanderWindow)
        self.action_save_as.setObjectName("action_save_as")
        self.actionClose = QtGui.QAction(RCommanderWindow)
        self.actionClose.setObjectName("actionClose")
        self.action_quit = QtGui.QAction(RCommanderWindow)
        self.action_quit.setObjectName("action_quit")
        self.actionCut = QtGui.QAction(RCommanderWindow)
        self.actionCut.setObjectName("actionCut")
        self.actionPaste = QtGui.QAction(RCommanderWindow)
        self.actionPaste.setObjectName("actionPaste")
        self.actionCopy = QtGui.QAction(RCommanderWindow)
        self.actionCopy.setObjectName("actionCopy")
        self.actionPaste0 = QtGui.QAction(RCommanderWindow)
        self.actionPaste0.setObjectName("actionPaste0")
        self.action_Run = QtGui.QAction(RCommanderWindow)
        self.action_Run.setObjectName("action_Run")
        self.action_stop = QtGui.QAction(RCommanderWindow)
        self.action_stop.setObjectName("action_stop")
        self.menuFile.addAction(self.actionNew)
        self.menuFile.addAction(self.action_open)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.action_save)
        self.menuFile.addAction(self.action_save_as)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.action_quit)
        self.menuActions.addAction(self.action_Run)
        self.menuActions.addAction(self.action_stop)
        self.menubar.addAction(self.menuFile.menuAction())
        #self.menubar.addAction(self.menuEdit.menuAction())
        self.menubar.addAction(self.menuActions.menuAction())

        self.retranslateUi(RCommanderWindow)
        self.tools_box.setCurrentIndex(-1)
        self.node_settings_tabs.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(RCommanderWindow)
    def controlWidget(self,
                      camphor,
                      baseData,
                      VOIdata,
                      message=None,
                      dockArea=None):
        """
        VOIextractionMethod.controlWidget()

        method to spawn a control widget if the filter allows for modifying parameters
        (e.g., a threshold) post-hoc

        The current way this is implemented is that the method used the class instance's parameter property
        to recompute VOIs based on its baseData argument and stored the result in its VOIdata argument
        VOIData should be a reference to the array that is displayed in the vtkView instance, so that modifications
        to this object are reflected in the visual output.
        The method then calls vtkView.renderAll() to reflect the changes made

        Filter that implement this capability simply need to implement a _controls attribute in their parameters class

        :return: the QWidget object of the control panel
        """

        if not hasattr(self._parameters, '_controls'):
            return None

        def updateVOIs():
            self.updateVOIs(camphor, baseData, VOIdata)
            pass

        def setParamNumeric(key, value):
            setattr(self.parameters, key, value)

        def setParamList(key, valueList, value):
            setattr(self.parameters, key, valueList[value])

        controlPanelContainer = QtGui.QDockWidget(parent=None)
        controlPanel = QtGui.QWidget()
        controlPanel.setWindowFlags(QtCore.Qt.Tool)
        if message is None:
            panelTitle = "VOI Control Panel"
        else:
            panelTitle = "{:s}".format(message)
        controlPanel.setWindowTitle(panelTitle)
        controlPanelContainer.setWindowTitle(panelTitle)
        layout = QtGui.QFormLayout()

        for i, param in enumerate(self._parameters._controls):
            # For each control parameter, constructs an associated control
            controlType = self._parameters._controls[param][4]
            dataType = self._parameters._controls[param][0]
            minValue = self._parameters._controls[param][1]
            maxValue = self._parameters._controls[param][2]
            step = self._parameters._controls[param][3]

            paramValue = self._parameters.__getattribute__(param)
            if str.lower(controlType) == 'spinbox':
                if str.lower(dataType) == 'double':
                    w = QtGui.QDoubleSpinBox()
                    w.setRange(minValue, maxValue)
                    w.setSingleStep(step)
                    w.setValue(paramValue)
                    w.valueChanged.connect(partial(setParamNumeric, param))
                    layout.addRow(QtGui.QLabel(param), w)
                elif str.lower(dataType) == 'doubleg':
                    w = QDoubleSpinBoxG()
                    w.setRange(minValue, maxValue)
                    w.setSingleStep(step)
                    w.setValue(paramValue)
                    w.valueChanged.connect(partial(setParamNumeric, param))
                    layout.addRow(QtGui.QLabel(param), w)
                elif str.lower(dataType) == 'int':
                    w = QtGui.QSpinBox()
                    w.setRange(minValue, maxValue)
                    w.setSingleStep(step)
                    w.setValue(paramValue)
                    w.valueChanged.connect(partial(setParamNumeric, param))
                    layout.addRow(QtGui.QLabel(param), w)
            elif str.lower(controlType) == 'slider':
                w = sliderLabel(paramName=param,
                                paramValue=paramValue,
                                minValue=minValue,
                                maxValue=maxValue,
                                step=step,
                                dataType=dataType,
                                target=self.parameters)
                layout.addRow(w)

        recomputeButton = QtGui.QPushButton('Recompute VOIs')
        recomputeButton.clicked.connect(updateVOIs)
        layout.addRow(recomputeButton)
        controlPanel.setLayout(layout)
        controlPanelContainer.setWidget(controlPanel)
        if dockArea is None:
            controlPanelContainer.show()
        else:
            dockArea.parent().raise_()
            dockArea.addDockWidget(QtCore.Qt.DockWidgetArea(2),
                                   controlPanelContainer)
            w = dockArea.width() / 2
            h = controlPanelContainer.sizeHint().height()
            print("{:s}: w={:f}, h={:f}".format(panelTitle, w, h))
            controlPanelContainer.setFixedSize(QtCore.QSize(w, h))
            q = dockArea.findChildren(QtGui.QDockWidget)
            if len(q) % 2 == 0:
                dockArea.splitDockWidget(q[-2], q[-1], QtCore.Qt.Horizontal)

        return controlPanelContainer
예제 #27
0
 def create_widgets(self, parent, layout):
     form_layout = QtGui.QFormLayout()
     for leaf in self.leafs.values():
         leaf.create_widgets(parent,form_layout)
     layout.addLayout(form_layout)
예제 #28
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(651, 600)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.formLayout = QtGui.QFormLayout(self.centralwidget)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.logTB = QtGui.QPlainTextEdit(self.centralwidget)
        self.logTB.setReadOnly(True)
        self.logTB.setObjectName(_fromUtf8("logTB"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.logTB)
        self.languageCombo = QtGui.QComboBox(self.centralwidget)
        self.languageCombo.setObjectName(_fromUtf8("languageCombo"))
        self.languageCombo.addItem(_fromUtf8(""))
        self.languageCombo.addItem(_fromUtf8(""))
        self.languageCombo.addItem(_fromUtf8(""))
        self.languageCombo.addItem(_fromUtf8(""))
        self.languageCombo.setItemText(3, _fromUtf8(""))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.languageCombo)
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole, self.label_4)
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.label_3)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.label_5)
        self.versionCombo = QtGui.QComboBox(self.centralwidget)
        self.versionCombo.setObjectName(_fromUtf8("versionCombo"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole, self.versionCombo)
        self.compileB = QtGui.QPushButton(self.centralwidget)
        self.compileB.setObjectName(_fromUtf8("compileB"))
        self.formLayout.setWidget(16, QtGui.QFormLayout.FieldRole, self.compileB)
        self.statB = QtGui.QPushButton(self.centralwidget)
        self.statB.setObjectName(_fromUtf8("statB"))
        self.formLayout.setWidget(19, QtGui.QFormLayout.FieldRole, self.statB)
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setTextFormat(QtCore.Qt.AutoText)
        self.label.setScaledContents(False)
        self.label.setWordWrap(False)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.label)
        self.openB = QtGui.QPushButton(self.centralwidget)
        self.openB.setObjectName(_fromUtf8("openB"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.openB)
        self.listWidget = QtGui.QListWidget(self.centralwidget)
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.listWidget)
        self.codeTB = QtGui.QPlainTextEdit(self.centralwidget)
        self.codeTB.setObjectName(_fromUtf8("codeTB"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.codeTB)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 651, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #29
0
    def setupUi(self, SubVentanaEquiposTipos):
        SubVentanaEquiposTipos.setObjectName(
            _fromUtf8("SubVentanaEquiposTipos"))
        SubVentanaEquiposTipos.resize(338, 505)
        SubVentanaEquiposTipos.setMinimumSize(QtCore.QSize(338, 505))
        SubVentanaEquiposTipos.setMaximumSize(QtCore.QSize(338, 505))
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/iconos/ico/Departamentos3.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        SubVentanaEquiposTipos.setWindowIcon(icon)
        SubVentanaEquiposTipos.setStyleSheet(
            _fromUtf8(
                "QTableView {\n"
                "    color: #4d4e51;\n"
                "    border: 1px solid #6d6e71;\n"
                "    gridline-color: #9a9b9e; /* Color Grilla Celdas Internas: */\n"
                "    background-color: #ffffff; /* Color Fondo Celdas Internas: */\n"
                "    selection-color: #4d4e51;\n"
                "    selection-background-color: #adc5ed;\n"
                "    border-radius: 3px;\n"
                "    padding: 0px;\n"
                "    margin: 0px;\n"
                "}\n"
                "\n"
                "QTableView::item:hover  {\n"
                "    background: #1ba1e2;   /* Color Poner Raton Celdas Internas: */\n"
                "}\n"
                "\n"
                "QTableView::item:disabled  {\n"
                "    color: #85878a; /* Color  Celdas Internas Desabilitadas: */\n"
                "}\n"
                "\n"
                "QTableView::item:selected  {\n"
                "    color: #1b3774; /* Color  Letra Item Interno Seleccionado: */\n"
                "    background-color: #7cabf9;  /* Color  Fondo Item o tabla Interno Seleccionado: */\n"
                "}\n"
                "\n"
                "/* when editing a cell: */\n"
                "QTableView QLineEdit {\n"
                "    color: #4d4e51;  /* Color  Fondo Letra al dar doble click para editar: */\n"
                "    background-color: #b3b8bf; /* Color  Fondo Item al dar doble click para editar: */\n"
                "    border-radius: 0px;\n"
                "    margin: 0px;\n"
                "    padding: 0px;\n"
                "}\n"
                "\n"
                "QTreeView, QListView\n"
                "{\n"
                "    color: #4d4e51;\n"
                "    border: 1px solid #6d6e71;\n"
                "    gridline-color: #9a9b9e; /* Color Grilla Celdas Internas: */\n"
                "    background-color: #ffffff; /* Color Fondo Celdas Internas: */\n"
                "    selection-color: #4d4e51;\n"
                "    selection-background-color: #adc5ed;\n"
                "    border-radius: 3px;\n"
                "    padding: 0px;\n"
                "    margin: 0px;\n"
                "}\n"
                "\n"
                "QTreeView::item:hover  {\n"
                "    background: #1ba1e2;   /* Color Poner Raton Celdas Internas: */\n"
                "}\n"
                "\n"
                "QTreeView::item:disabled  {\n"
                "    color: #85878a; /* Color  Celdas Internas Desabilitadas: */\n"
                "}\n"
                "\n"
                "QTreeView::item:selected  {\n"
                "    color: #1b3774; /* Color  Letra Item Interno Seleccionado: */\n"
                "    background-color: #7cabf9;  /* Color  Fondo Item o tabla Interno Seleccionado: */\n"
                "}\n"
                "\n"
                "/* when editing a cell: */\n"
                "QTreeView QLineEdit {\n"
                "    color: #4d4e51;  /* Color  Fondo Letra al dar doble click para editar: */\n"
                "    background-color: #b3b8bf; /* Color  Fondo Item al dar doble click para editar: */\n"
                "    border-radius: 0px;\n"
                "    margin: 0px;\n"
                "    padding: 0px;\n"
                "    }    \n"
                "\n"
                "QHeaderView {\n"
                "    border: none;\n"
                "    background-color: #4276a4;    /* Color Celda Horizontal Item: */\n"
                "    border-top-left-radius: 3px;\n"
                "    border-top-right-radius: 3px;\n"
                "    border-bottom-left-radius: 0px;\n"
                "    border-bottom-right-radius: 0px;\n"
                "    margin: 0px;\n"
                "    padding: 0px;\n"
                "}\n"
                "\n"
                "QHeaderView::section  {\n"
                "    background-color: transparent;\n"
                "    color: #fdfdfd;     /* Color Letra Celda Horizontal Item: */\n"
                "    border: 4px solid transparent;   /* Ancho Celda Horizontal Item: */\n"
                "    border-radius: 0px;\n"
                "    text-align: center;\n"
                "}\n"
                "\n"
                "QHeaderView::section::vertical  {\n"
                "    padding: 0px 6px 0px 6px;\n"
                "    border-bottom: 1px solid #6d6e71;\n"
                "}\n"
                "\n"
                "QHeaderView::section::vertical:first {\n"
                "    border-top: 1px solid  #6d6e71;\n"
                "}\n"
                "\n"
                "QHeaderView::section::vertical:last {\n"
                "    border-bottom: none;\n"
                "}\n"
                "\n"
                "QHeaderView::section::vertical:only-one {\n"
                "    border: none;\n"
                "}\n"
                "\n"
                "QHeaderView::section::horizontal  {\n"
                "    padding: 0px 0px 0px 6px;\n"
                "    border-right: 1px solid #6d6e71;\n"
                "}\n"
                "\n"
                "QHeaderView::section::horizontal:first {\n"
                "    border-left: 1px solid #6d6e71;\n"
                "}\n"
                "\n"
                "QHeaderView::section::horizontal:last {\n"
                "    border-left: none;\n"
                "}\n"
                "\n"
                "QHeaderView::section::horizontal:only-one {\n"
                "    border: none;\n"
                "}\n"
                "\n"
                "QTabBar::tab:top {\n"
                "    color: #403f3f;\n"
                "    border: 1px solid #4A4949;\n"
                "    border-bottom: 1px transparent black;\n"
                "    background-color: #dfdfdf;\n"
                "    padding: 4px;\n"
                "    border-top-left-radius: 1px;\n"
                "    border-top-right-radius: 1px;\n"
                "}\n"
                "\n"
                "QTabBar::tab:top:!selected\n"
                "{\n"
                "    color: #fdfdfd;\n"
                "    background-color: #2d5f8b;\n"
                "    border: 1px transparent #4A4949;\n"
                "    border-bottom: 1px transparent #4A4949;\n"
                "    border-top-left-radius: 1px;\n"
                "    border-top-right-radius: 1px;\n"
                "    \n"
                "}\n"
                "\n"
                "QTabWidget{\n"
                "    border: 1px transparent black;\n"
                "}\n"
                "\n"
                "QTabWidget::pane {\n"
                "    border: 1px solid #2d5f8b;\n"
                "    border-radius: 1px;\n"
                "    padding: 1px;\n"
                "}\n"
                "\n"
                "QGroupBox {\n"
                "    border:1px solid #2d5f8b;\n"
                "    border-radius: 1px;\n"
                "    margin-top: 20px; /* leave space at the top for the title */\n"
                "}\n"
                "\n"
                "QGroupBox::title {\n"
                "    subcontrol-origin: margin;    \n"
                "    padding: 2px 3px;\n"
                "    color: white;\n"
                "   \n"
                "    margin-top: 2px;\n"
                "    background-color: #2d5f8b;\n"
                "    border-radius: 1px;\n"
                "    spacing: 5px;\n"
                "}\n"
                "\n"
                "\n"
                "\n"
                "QMenuBar {\n"
                "\n"
                "background-color: #38648b;\n"
                "\n"
                "}\n"
                "\n"
                "\n"
                "QMenuBar::item {\n"
                "\n"
                "color : white;\n"
                "\n"
                "margin-top:0px;\n"
                "\n"
                "spacing: 3px;\n"
                "\n"
                "padding: 6px 12px;\n"
                "\n"
                "background: #transparent;\n"
                "\n"
                "border-radius: 111px;\n"
                "\n"
                "}\n"
                "\n"
                "\n"
                "QMenuBar::item:selected { /* when selected using mouse or keyboard */\n"
                "\n"
                "background: #2d81cb;\n"
                "\n"
                "}\n"
                "\n"
                "\n"
                "QMenuBar::item:pressed {\n"
                "\n"
                "background: #2d81cb;\n"
                "\n"
                "}\n"
                "\n"
                "\n"
                "QDockWidget {\n"
                "\n"
                "background-color: #4276a4\n"
                "\n"
                "}\n"
                "\n"
                "\n"
                "QDockWidget {\n"
                "\n"
                "color: white;\n"
                "\n"
                "}\n"
                "\n"
                "\n"
                "QDockWidget::title {\n"
                "\n"
                "text-align: left; /* align the text to the left */\n"
                "\n"
                "background: #4276a4;\n"
                "\n"
                "padding-left: 5px;\n"
                "\n"
                "}"))
        self.gridLayout_2 = QtGui.QGridLayout(SubVentanaEquiposTipos)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.groupBox_4 = QtGui.QGroupBox(SubVentanaEquiposTipos)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.tableWidget_Lista = QtGui.QTableWidget(self.groupBox_4)
        self.tableWidget_Lista.setMinimumSize(QtCore.QSize(300, 0))
        self.tableWidget_Lista.setStyleSheet(_fromUtf8(""))
        self.tableWidget_Lista.setObjectName(_fromUtf8("tableWidget_Lista"))
        self.tableWidget_Lista.setColumnCount(1)
        self.tableWidget_Lista.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter)
        self.tableWidget_Lista.setHorizontalHeaderItem(0, item)
        self.gridLayout_3.addWidget(self.tableWidget_Lista, 1, 0, 1, 3)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.pushButton_Agregar = QtGui.QPushButton(self.groupBox_4)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(_fromUtf8(":/iconos/ico/4-Icone-plus.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_Agregar.setIcon(icon1)
        self.pushButton_Agregar.setIconSize(QtCore.QSize(30, 30))
        self.pushButton_Agregar.setFlat(True)
        self.pushButton_Agregar.setObjectName(_fromUtf8("pushButton_Agregar"))
        self.horizontalLayout_2.addWidget(self.pushButton_Agregar)
        self.gridLayout_3.addLayout(self.horizontalLayout_2, 2, 0, 1, 3)
        self.lineEdit_Buscar = QtGui.QLineEdit(self.groupBox_4)
        self.lineEdit_Buscar.setObjectName(_fromUtf8("lineEdit_Buscar"))
        self.gridLayout_3.addWidget(self.lineEdit_Buscar, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox_4)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.groupBox_Datos = QtGui.QGroupBox(SubVentanaEquiposTipos)
        self.groupBox_Datos.setObjectName(_fromUtf8("groupBox_Datos"))
        self.formLayout = QtGui.QFormLayout(self.groupBox_Datos)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label_2 = QtGui.QLabel(self.groupBox_Datos)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
        self.lineEdit_Nombre = QtGui.QLineEdit(self.groupBox_Datos)
        self.lineEdit_Nombre.setObjectName(_fromUtf8("lineEdit_Nombre"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.lineEdit_Nombre)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_Guardar = QtGui.QPushButton(self.groupBox_Datos)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/iconos/ico/guardar.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_Guardar.setIcon(icon2)
        self.pushButton_Guardar.setIconSize(QtCore.QSize(30, 30))
        self.pushButton_Guardar.setFlat(True)
        self.pushButton_Guardar.setObjectName(_fromUtf8("pushButton_Guardar"))
        self.horizontalLayout.addWidget(self.pushButton_Guardar)
        self.pushButton_Borrar = QtGui.QPushButton(self.groupBox_Datos)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/iconos/ico/eraser-32.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_Borrar.setIcon(icon3)
        self.pushButton_Borrar.setIconSize(QtCore.QSize(30, 30))
        self.pushButton_Borrar.setFlat(True)
        self.pushButton_Borrar.setObjectName(_fromUtf8("pushButton_Borrar"))
        self.horizontalLayout.addWidget(self.pushButton_Borrar)
        self.pushButton_Cancelar = QtGui.QPushButton(self.groupBox_Datos)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/iconos/ico/uncheck.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_Cancelar.setIcon(icon4)
        self.pushButton_Cancelar.setIconSize(QtCore.QSize(30, 30))
        self.pushButton_Cancelar.setFlat(True)
        self.pushButton_Cancelar.setObjectName(
            _fromUtf8("pushButton_Cancelar"))
        self.horizontalLayout.addWidget(self.pushButton_Cancelar)
        self.formLayout.setLayout(1, QtGui.QFormLayout.SpanningRole,
                                  self.horizontalLayout)
        self.gridLayout_2.addWidget(self.groupBox_Datos, 1, 0, 1, 1)

        self.retranslateUi(SubVentanaEquiposTipos)
        QtCore.QMetaObject.connectSlotsByName(SubVentanaEquiposTipos)
        SubVentanaEquiposTipos.setTabOrder(self.lineEdit_Buscar,
                                           self.tableWidget_Lista)
        SubVentanaEquiposTipos.setTabOrder(self.tableWidget_Lista,
                                           self.pushButton_Agregar)
        SubVentanaEquiposTipos.setTabOrder(self.pushButton_Agregar,
                                           self.lineEdit_Nombre)
        SubVentanaEquiposTipos.setTabOrder(self.lineEdit_Nombre,
                                           self.pushButton_Guardar)
        SubVentanaEquiposTipos.setTabOrder(self.pushButton_Guardar,
                                           self.pushButton_Borrar)
        SubVentanaEquiposTipos.setTabOrder(self.pushButton_Borrar,
                                           self.pushButton_Cancelar)
예제 #30
-1
파일: gui.py 프로젝트: gnuh/stresser
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.setWindowModality(QtCore.Qt.ApplicationModal)
        MainWindow.resize(608, 475)
        MainWindow.setMaximumSize(QtCore.QSize(608, 475))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("logo.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setWindowOpacity(1.0)
        MainWindow.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        MainWindow.setDocumentMode(True)
        MainWindow.setUnifiedTitleAndToolBarOnMac(True)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.gridLayout = QtGui.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.gridLayout_11 = QtGui.QGridLayout(self.tab_4)
        self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
        self.frame_2 = QtGui.QFrame(self.tab_4)
        self.frame_2.setMaximumSize(QtCore.QSize(16777215, 48))
        self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.gridLayout_12 = QtGui.QGridLayout(self.frame_2)
        self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12"))
        self.txt_domain_info = QtGui.QLineEdit(self.frame_2)
        self.txt_domain_info.setAcceptDrops(False)
        self.txt_domain_info.setObjectName(_fromUtf8("txt_domain_info"))
        self.gridLayout_12.addWidget(self.txt_domain_info, 0, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.frame_2)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_12.addWidget(self.label_8, 0, 0, 1, 1)
        self.gridLayout_11.addWidget(self.frame_2, 0, 0, 1, 1)
        self.frame_9 = QtGui.QFrame(self.tab_4)
        self.frame_9.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_9.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_9.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_9.setObjectName(_fromUtf8("frame_9"))
        self.gridLayout_15 = QtGui.QGridLayout(self.frame_9)
        self.gridLayout_15.setObjectName(_fromUtf8("gridLayout_15"))
        self.btn_info_go = QtGui.QPushButton(self.frame_9)
        self.btn_info_go.setObjectName(_fromUtf8("btn_info_go"))
        self.gridLayout_15.addWidget(self.btn_info_go, 0, 0, 1, 1)
        self.gridLayout_11.addWidget(self.frame_9, 1, 0, 1, 1)
        self.frame_10 = QtGui.QFrame(self.tab_4)
        self.frame_10.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_10.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_10.setObjectName(_fromUtf8("frame_10"))
        self.gridLayout_16 = QtGui.QGridLayout(self.frame_10)
        self.gridLayout_16.setObjectName(_fromUtf8("gridLayout_16"))
        self.txt_info_result = QtGui.QPlainTextEdit(self.frame_10)
        self.txt_info_result.setReadOnly(True)
        self.txt_info_result.setObjectName(_fromUtf8("txt_info_result"))
        self.gridLayout_16.addWidget(self.txt_info_result, 0, 0, 1, 1)
        self.gridLayout_11.addWidget(self.frame_10, 2, 0, 1, 1)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.gridLayout_2 = QtGui.QGridLayout(self.tab)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.txt_attack_result = QtGui.QPlainTextEdit(self.tab)
        self.txt_attack_result.setReadOnly(True)
        self.txt_attack_result.setObjectName(_fromUtf8("txt_attack_result"))
        self.gridLayout_2.addWidget(self.txt_attack_result, 1, 0, 1, 1)
        self.lbl_portscan = QtGui.QLabel(self.tab)
        font = QtGui.QFont()
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.lbl_portscan.setFont(font)
        self.lbl_portscan.setMouseTracking(False)
        self.lbl_portscan.setAcceptDrops(False)
        self.lbl_portscan.setTextFormat(QtCore.Qt.PlainText)
        self.lbl_portscan.setObjectName(_fromUtf8("lbl_portscan"))
        self.gridLayout_2.addWidget(self.lbl_portscan, 2, 0, 1, 1)
        self.widget = QtGui.QWidget(self.tab)
        self.widget.setEnabled(True)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.gridLayout_9 = QtGui.QGridLayout(self.widget)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.frm_ddos = QtGui.QFrame(self.widget)
        self.frm_ddos.setEnabled(False)
        self.frm_ddos.setMaximumSize(QtCore.QSize(16777215, 90))
        self.frm_ddos.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frm_ddos.setFrameShadow(QtGui.QFrame.Raised)
        self.frm_ddos.setObjectName(_fromUtf8("frm_ddos"))
        self.gridLayout_8 = QtGui.QGridLayout(self.frm_ddos)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_3 = QtGui.QLabel(self.frm_ddos)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_3.addWidget(self.label_3)
        self.spinBox = QtGui.QSpinBox(self.frm_ddos)
        self.spinBox.setMinimum(1)
        self.spinBox.setMaximum(99999)
        self.spinBox.setProperty("value", 1200)
        self.spinBox.setObjectName(_fromUtf8("spinBox"))
        self.horizontalLayout_3.addWidget(self.spinBox)
        self.label_7 = QtGui.QLabel(self.frm_ddos)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.horizontalLayout_3.addWidget(self.label_7)
        self.cb_method_d = QtGui.QComboBox(self.frm_ddos)
        self.cb_method_d.setObjectName(_fromUtf8("cb_method_d"))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.cb_method_d.addItem(_fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.cb_method_d)
        self.gridLayout_8.addLayout(self.horizontalLayout_3, 2, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label = QtGui.QLabel(self.frm_ddos)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_2.addWidget(self.label)
        self.txt_host_d = QtGui.QLineEdit(self.frm_ddos)
        self.txt_host_d.setMinimumSize(QtCore.QSize(221, 0))
        self.txt_host_d.setObjectName(_fromUtf8("txt_host_d"))
        self.horizontalLayout_2.addWidget(self.txt_host_d)
        self.label_2 = QtGui.QLabel(self.frm_ddos)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_2.addWidget(self.label_2)
        self.cb_port_available = QtGui.QComboBox(self.frm_ddos)
        self.cb_port_available.setEnabled(False)
        self.cb_port_available.setObjectName(_fromUtf8("cb_port_available"))
        self.horizontalLayout_2.addWidget(self.cb_port_available)
        self.gridLayout_8.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.cb_server = QtGui.QComboBox(self.frm_ddos)
        self.cb_server.setObjectName(_fromUtf8("cb_server"))
        self.cb_server.addItem(_fromUtf8(""))
        self.cb_server.addItem(_fromUtf8(""))
        self.cb_server.addItem(_fromUtf8(""))
        self.gridLayout_8.addWidget(self.cb_server, 0, 0, 1, 1)
        self.gridLayout_9.addWidget(self.frm_ddos, 0, 0, 1, 1)
        self.frame_11 = QtGui.QFrame(self.widget)
        self.frame_11.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_11.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_11.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_11.setObjectName(_fromUtf8("frame_11"))
        self.gridLayout_10 = QtGui.QGridLayout(self.frame_11)
        self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
        self.btn_go_d = QtGui.QPushButton(self.frame_11)
        self.btn_go_d.setEnabled(False)
        self.btn_go_d.setObjectName(_fromUtf8("btn_go_d"))
        self.gridLayout_10.addWidget(self.btn_go_d, 0, 0, 1, 1)
        self.gridLayout_9.addWidget(self.frame_11, 1, 0, 1, 1)
        self.gridLayout_2.addWidget(self.widget, 0, 0, 1, 1,
                                    QtCore.Qt.AlignTop)
        self.pb_attack = QtGui.QProgressBar(self.tab)
        self.pb_attack.setMaximum(100)
        self.pb_attack.setProperty("value", 0)
        self.pb_attack.setObjectName(_fromUtf8("pb_attack"))
        self.gridLayout_2.addWidget(self.pb_attack, 3, 0, 1, 1)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.gridLayout_5 = QtGui.QGridLayout(self.tab_2)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.frame_4 = QtGui.QFrame(self.tab_2)
        self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_4.setObjectName(_fromUtf8("frame_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.frame_4)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.txt_domain_w = QtGui.QLineEdit(self.frame_4)
        self.txt_domain_w.setObjectName(_fromUtf8("txt_domain_w"))
        self.gridLayout_4.addWidget(self.txt_domain_w, 0, 1, 1, 1)
        self.btn_go_w = QtGui.QPushButton(self.frame_4)
        self.btn_go_w.setObjectName(_fromUtf8("btn_go_w"))
        self.gridLayout_4.addWidget(self.btn_go_w, 0, 2, 1, 1)
        self.label_4 = QtGui.QLabel(self.frame_4)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_4.addWidget(self.label_4, 0, 0, 1, 1)
        self.gridLayout_5.addWidget(self.frame_4, 0, 0, 1, 1)
        self.frame_3 = QtGui.QFrame(self.tab_2)
        self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_3.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_3.setObjectName(_fromUtf8("frame_3"))
        self.gridLayout_3 = QtGui.QGridLayout(self.frame_3)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.txt_result_w = QtGui.QPlainTextEdit(self.frame_3)
        self.txt_result_w.setReadOnly(True)
        self.txt_result_w.setObjectName(_fromUtf8("txt_result_w"))
        self.gridLayout_3.addWidget(self.txt_result_w, 0, 0, 1, 1)
        self.gridLayout_5.addWidget(self.frame_3, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.gridLayout_7 = QtGui.QGridLayout(self.tab_3)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.frame_6 = QtGui.QFrame(self.tab_3)
        self.frame_6.setMaximumSize(QtCore.QSize(16777215, 50))
        self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_6.setObjectName(_fromUtf8("frame_6"))
        self.gridLayout_6 = QtGui.QGridLayout(self.frame_6)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.txt_domain_i = QtGui.QLineEdit(self.frame_6)
        self.txt_domain_i.setObjectName(_fromUtf8("txt_domain_i"))
        self.gridLayout_6.addWidget(self.txt_domain_i, 0, 1, 1, 1)
        self.btn_go_i = QtGui.QPushButton(self.frame_6)
        self.btn_go_i.setObjectName(_fromUtf8("btn_go_i"))
        self.gridLayout_6.addWidget(self.btn_go_i, 0, 2, 1, 1)
        self.label_6 = QtGui.QLabel(self.frame_6)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_6.addWidget(self.label_6, 0, 0, 1, 1)
        self.gridLayout_7.addWidget(self.frame_6, 0, 0, 1, 1)
        self.frame_5 = QtGui.QFrame(self.tab_3)
        self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_5.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_5.setObjectName(_fromUtf8("frame_5"))
        self.formLayout_3 = QtGui.QFormLayout(self.frame_5)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_5 = QtGui.QLabel(self.frame_5)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.txt_result_i = QtGui.QLineEdit(self.frame_5)
        self.txt_result_i.setObjectName(_fromUtf8("txt_result_i"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.txt_result_i)
        self.gridLayout_7.addWidget(self.frame_5, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.gridLayout_13 = QtGui.QGridLayout(self.tab_5)
        self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13"))
        self.frame_7 = QtGui.QFrame(self.tab_5)
        self.frame_7.setMaximumSize(QtCore.QSize(16777215, 50))
        palette = QtGui.QPalette()
        brush = QtGui.QBrush(QtGui.QColor(27, 41, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(27, 41, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText,
                         brush)
        brush = QtGui.QBrush(QtGui.QColor(49, 54, 59))
        brush.setStyle(QtCore.Qt.SolidPattern)
        palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText,
                         brush)
        self.frame_7.setPalette(palette)
        self.frame_7.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtGui.QFrame.Sunken)
        self.frame_7.setMidLineWidth(1)
        self.frame_7.setObjectName(_fromUtf8("frame_7"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_7)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_9 = QtGui.QLabel(self.frame_7)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout.addWidget(self.label_9)
        self.txt_scan_ip = QtGui.QLineEdit(self.frame_7)
        self.txt_scan_ip.setObjectName(_fromUtf8("txt_scan_ip"))
        self.horizontalLayout.addWidget(self.txt_scan_ip)
        self.btn_scan = QtGui.QPushButton(self.frame_7)
        self.btn_scan.setObjectName(_fromUtf8("btn_scan"))
        self.horizontalLayout.addWidget(self.btn_scan)
        self.gridLayout_13.addWidget(self.frame_7, 0, 0, 1, 1)
        self.frame_8 = QtGui.QFrame(self.tab_5)
        self.frame_8.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame_8.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_8.setObjectName(_fromUtf8("frame_8"))
        self.gridLayout_14 = QtGui.QGridLayout(self.frame_8)
        self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14"))
        self.txt_scan_result = QtGui.QPlainTextEdit(self.frame_8)
        self.txt_scan_result.setReadOnly(True)
        self.txt_scan_result.setObjectName(_fromUtf8("txt_scan_result"))
        self.gridLayout_14.addWidget(self.txt_scan_result, 0, 0, 1, 1)
        self.gridLayout_13.addWidget(self.frame_8, 1, 0, 1, 1)
        self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
        self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 608, 30))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionChiabai = QtGui.QAction(MainWindow)
        self.actionChiabai.setObjectName(_fromUtf8("actionChiabai"))

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