コード例 #1
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(327, 131)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.edit_label = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edit_label.sizePolicy().hasHeightForWidth())
        self.edit_label.setSizePolicy(sizePolicy)
        self.edit_label.setObjectName("edit_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.edit_label)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_url = PathLineEdit(Dialog)
        self.edit_url.setObjectName("edit_url")
        self.horizontalLayout.addWidget(self.edit_url)
        self.toolButton = QtWidgets.QToolButton(Dialog)
        self.toolButton.setObjectName("toolButton")
        self.horizontalLayout.addWidget(self.toolButton)
        self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout)
        self.verticalLayout.addLayout(self.formLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Add source"))
        self.label.setText(_translate("Dialog", "Label:"))
        self.edit_label.setToolTip(_translate("Dialog", "Give a meaningfull name to this source so that you can recognize it."))
        self.label_2.setText(_translate("Dialog", "Path:"))
        self.edit_url.setToolTip(_translate("Dialog", "<html><head/><body><p>URL of the template repository. </p><p><br/></p><p>Boss supports both local and remote (git) template repositories.</p></body></html>"))
        self.toolButton.setText(_translate("Dialog", "..."))
コード例 #2
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(327, 131)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.edit_label = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.edit_label.sizePolicy().hasHeightForWidth())
        self.edit_label.setSizePolicy(sizePolicy)
        self.edit_label.setObjectName("edit_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.edit_label)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_url = PathLineEdit(Dialog)
        self.edit_url.setObjectName("edit_url")
        self.horizontalLayout.addWidget(self.edit_url)
        self.toolButton = QtWidgets.QToolButton(Dialog)
        self.toolButton.setObjectName("toolButton")
        self.horizontalLayout.addWidget(self.toolButton)
        self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.verticalLayout.addLayout(self.formLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
コード例 #3
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(327, 131)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.edit_label = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.edit_label.sizePolicy().hasHeightForWidth())
        self.edit_label.setSizePolicy(sizePolicy)
        self.edit_label.setObjectName("edit_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.edit_label)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_url = PathLineEdit(Dialog)
        self.edit_url.setObjectName("edit_url")
        self.horizontalLayout.addWidget(self.edit_url)
        self.toolButton = QtWidgets.QToolButton(Dialog)
        self.toolButton.setObjectName("toolButton")
        self.horizontalLayout.addWidget(self.toolButton)
        self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout)
        self.verticalLayout.addLayout(self.formLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
コード例 #4
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(783, 494)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setContentsMargins(-1, 0, -1, -1)
        self.formLayout.setObjectName("formLayout")
        self.label_prj_interpreter = QtWidgets.QLabel(Dialog)
        self.label_prj_interpreter.setObjectName("label_prj_interpreter")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_prj_interpreter)
        self.combo_prj_interpreter = QtWidgets.QComboBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_prj_interpreter.sizePolicy().hasHeightForWidth())
        self.combo_prj_interpreter.setSizePolicy(sizePolicy)
        self.combo_prj_interpreter.setObjectName("combo_prj_interpreter")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.combo_prj_interpreter)
        self.label_project = QtWidgets.QLabel(Dialog)
        self.label_project.setObjectName("label_project")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_project)
        self.cb_project = QtWidgets.QComboBox(Dialog)
        self.cb_project.setObjectName("cb_project")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.cb_project)
        self.verticalLayout.addLayout(self.formLayout)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.group_configs = QtWidgets.QGroupBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.group_configs.sizePolicy().hasHeightForWidth())
        self.group_configs.setSizePolicy(sizePolicy)
        self.group_configs.setFlat(False)
        self.group_configs.setCheckable(False)
        self.group_configs.setObjectName("group_configs")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.group_configs)
        self.horizontalLayout_7.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.list_configs = QtWidgets.QListWidget(self.group_configs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.list_configs.sizePolicy().hasHeightForWidth())
        self.list_configs.setSizePolicy(sizePolicy)
        self.list_configs.setObjectName("list_configs")
        self.horizontalLayout_7.addWidget(self.list_configs)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.bt_add_cfg = QtWidgets.QToolButton(self.group_configs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.bt_add_cfg.sizePolicy().hasHeightForWidth())
        self.bt_add_cfg.setSizePolicy(sizePolicy)
        self.bt_add_cfg.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_cfg.setIcon(icon)
        self.bt_add_cfg.setObjectName("bt_add_cfg")
        self.verticalLayout_3.addWidget(self.bt_add_cfg)
        self.bt_rm_cfg = QtWidgets.QToolButton(self.group_configs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.bt_rm_cfg.sizePolicy().hasHeightForWidth())
        self.bt_rm_cfg.setSizePolicy(sizePolicy)
        self.bt_rm_cfg.setText("")
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_rm_cfg.setIcon(icon)
        self.bt_rm_cfg.setObjectName("bt_rm_cfg")
        self.verticalLayout_3.addWidget(self.bt_rm_cfg)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.horizontalLayout_7.addLayout(self.verticalLayout_3)
        self.horizontalLayout_2.addWidget(self.group_configs)
        self.group_settings = QtWidgets.QGroupBox(Dialog)
        self.group_settings.setObjectName("group_settings")
        self.formLayout_2 = QtWidgets.QFormLayout(self.group_settings)
        self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_7 = QtWidgets.QLabel(self.group_settings)
        self.label_7.setObjectName("label_7")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.edit_name = QtWidgets.QLineEdit(self.group_settings)
        self.edit_name.setObjectName("edit_name")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.edit_name)
        self.label = QtWidgets.QLabel(self.group_settings)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.edit_script = PathLineEdit(self.group_settings)
        self.edit_script.setObjectName("edit_script")
        self.horizontalLayout_5.addWidget(self.edit_script)
        self.bt_pick_script = QtWidgets.QToolButton(self.group_settings)
        self.bt_pick_script.setObjectName("bt_pick_script")
        self.horizontalLayout_5.addWidget(self.bt_pick_script)
        self.formLayout_2.setLayout(1, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_5)
        self.label_2 = QtWidgets.QLabel(self.group_settings)
        self.label_2.setObjectName("label_2")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.edit_script_args = QtWidgets.QLineEdit(self.group_settings)
        self.edit_script_args.setObjectName("edit_script_args")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.edit_script_args)
        self.label_5 = QtWidgets.QLabel(self.group_settings)
        self.label_5.setObjectName("label_5")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.edit_working_dir = PathLineEdit(self.group_settings)
        self.edit_working_dir.setObjectName("edit_working_dir")
        self.horizontalLayout_6.addWidget(self.edit_working_dir)
        self.bt_pick_working_dir = QtWidgets.QToolButton(self.group_settings)
        self.bt_pick_working_dir.setObjectName("bt_pick_working_dir")
        self.horizontalLayout_6.addWidget(self.bt_pick_working_dir)
        self.formLayout_2.setLayout(3, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6)
        self.label_4 = QtWidgets.QLabel(self.group_settings)
        self.label_4.setObjectName("label_4")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_4)
        self.edit_intepreter_options = QtWidgets.QLineEdit(self.group_settings)
        self.edit_intepreter_options.setObjectName("edit_intepreter_options")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.edit_intepreter_options)
        self.label_6 = QtWidgets.QLabel(self.group_settings)
        self.label_6.setObjectName("label_6")
        self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_6)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.table_env_vars = QtWidgets.QTableWidget(self.group_settings)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.table_env_vars.sizePolicy().hasHeightForWidth())
        self.table_env_vars.setSizePolicy(sizePolicy)
        self.table_env_vars.setAlternatingRowColors(False)
        self.table_env_vars.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.table_env_vars.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.table_env_vars.setGridStyle(QtCore.Qt.SolidLine)
        self.table_env_vars.setRowCount(0)
        self.table_env_vars.setObjectName("table_env_vars")
        self.table_env_vars.setColumnCount(2)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(1, item)
        self.table_env_vars.horizontalHeader().setCascadingSectionResizes(False)
        self.table_env_vars.horizontalHeader().setStretchLastSection(True)
        self.table_env_vars.verticalHeader().setVisible(False)
        self.horizontalLayout_4.addWidget(self.table_env_vars)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setContentsMargins(0, -1, -1, -1)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.bt_add_env_var = QtWidgets.QToolButton(self.group_settings)
        self.bt_add_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_env_var.setIcon(icon)
        self.bt_add_env_var.setObjectName("bt_add_env_var")
        self.verticalLayout_4.addWidget(self.bt_add_env_var)
        self.bt_rm_env_var = QtWidgets.QToolButton(self.group_settings)
        self.bt_rm_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_rm_env_var.setIcon(icon)
        self.bt_rm_env_var.setObjectName("bt_rm_env_var")
        self.verticalLayout_4.addWidget(self.bt_rm_env_var)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.formLayout_2.setLayout(5, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4)
        self.cb_run_in_external_terminal = QtWidgets.QCheckBox(self.group_settings)
        self.cb_run_in_external_terminal.setObjectName("cb_run_in_external_terminal")
        self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.cb_run_in_external_terminal)
        self.horizontalLayout_2.addWidget(self.group_settings)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.cb_project, self.combo_prj_interpreter)
        Dialog.setTabOrder(self.combo_prj_interpreter, self.bt_add_cfg)
        Dialog.setTabOrder(self.bt_add_cfg, self.bt_rm_cfg)
        Dialog.setTabOrder(self.bt_rm_cfg, self.edit_name)
        Dialog.setTabOrder(self.edit_name, self.edit_script)
        Dialog.setTabOrder(self.edit_script, self.bt_pick_script)
        Dialog.setTabOrder(self.bt_pick_script, self.edit_script_args)
        Dialog.setTabOrder(self.edit_script_args, self.edit_working_dir)
        Dialog.setTabOrder(self.edit_working_dir, self.bt_pick_working_dir)
        Dialog.setTabOrder(self.bt_pick_working_dir, self.edit_intepreter_options)
        Dialog.setTabOrder(self.edit_intepreter_options, self.table_env_vars)
        Dialog.setTabOrder(self.table_env_vars, self.bt_add_env_var)
        Dialog.setTabOrder(self.bt_add_env_var, self.bt_rm_env_var)
        Dialog.setTabOrder(self.bt_rm_env_var, self.list_configs)
コード例 #5
0
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(783, 494)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setContentsMargins(-1, 0, -1, -1)
        self.formLayout.setObjectName("formLayout")
        self.label_prj_interpreter = QtWidgets.QLabel(Dialog)
        self.label_prj_interpreter.setObjectName("label_prj_interpreter")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_prj_interpreter)
        self.combo_prj_interpreter = QtWidgets.QComboBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.combo_prj_interpreter.sizePolicy().hasHeightForWidth())
        self.combo_prj_interpreter.setSizePolicy(sizePolicy)
        self.combo_prj_interpreter.setObjectName("combo_prj_interpreter")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.combo_prj_interpreter)
        self.label_project = QtWidgets.QLabel(Dialog)
        self.label_project.setObjectName("label_project")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_project)
        self.cb_project = QtWidgets.QComboBox(Dialog)
        self.cb_project.setObjectName("cb_project")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.cb_project)
        self.verticalLayout.addLayout(self.formLayout)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.group_configs = QtWidgets.QGroupBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.group_configs.sizePolicy().hasHeightForWidth())
        self.group_configs.setSizePolicy(sizePolicy)
        self.group_configs.setFlat(False)
        self.group_configs.setCheckable(False)
        self.group_configs.setObjectName("group_configs")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.group_configs)
        self.horizontalLayout_7.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.list_configs = QtWidgets.QListWidget(self.group_configs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.list_configs.sizePolicy().hasHeightForWidth())
        self.list_configs.setSizePolicy(sizePolicy)
        self.list_configs.setObjectName("list_configs")
        self.horizontalLayout_7.addWidget(self.list_configs)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.bt_add_cfg = QtWidgets.QToolButton(self.group_configs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_cfg.sizePolicy().hasHeightForWidth())
        self.bt_add_cfg.setSizePolicy(sizePolicy)
        self.bt_add_cfg.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_cfg.setIcon(icon)
        self.bt_add_cfg.setObjectName("bt_add_cfg")
        self.verticalLayout_3.addWidget(self.bt_add_cfg)
        self.bt_rm_cfg = QtWidgets.QToolButton(self.group_configs)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_rm_cfg.sizePolicy().hasHeightForWidth())
        self.bt_rm_cfg.setSizePolicy(sizePolicy)
        self.bt_rm_cfg.setText("")
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_rm_cfg.setIcon(icon)
        self.bt_rm_cfg.setObjectName("bt_rm_cfg")
        self.verticalLayout_3.addWidget(self.bt_rm_cfg)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.horizontalLayout_7.addLayout(self.verticalLayout_3)
        self.horizontalLayout_2.addWidget(self.group_configs)
        self.group_settings = QtWidgets.QGroupBox(Dialog)
        self.group_settings.setObjectName("group_settings")
        self.formLayout_2 = QtWidgets.QFormLayout(self.group_settings)
        self.formLayout_2.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_7 = QtWidgets.QLabel(self.group_settings)
        self.label_7.setObjectName("label_7")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_7)
        self.edit_name = QtWidgets.QLineEdit(self.group_settings)
        self.edit_name.setObjectName("edit_name")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_name)
        self.label = QtWidgets.QLabel(self.group_settings)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.edit_script = PathLineEdit(self.group_settings)
        self.edit_script.setObjectName("edit_script")
        self.horizontalLayout_5.addWidget(self.edit_script)
        self.bt_pick_script = QtWidgets.QToolButton(self.group_settings)
        self.bt_pick_script.setObjectName("bt_pick_script")
        self.horizontalLayout_5.addWidget(self.bt_pick_script)
        self.formLayout_2.setLayout(1, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_5)
        self.label_2 = QtWidgets.QLabel(self.group_settings)
        self.label_2.setObjectName("label_2")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                    self.label_2)
        self.edit_script_args = QtWidgets.QLineEdit(self.group_settings)
        self.edit_script_args.setObjectName("edit_script_args")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_script_args)
        self.label_5 = QtWidgets.QLabel(self.group_settings)
        self.label_5.setObjectName("label_5")
        self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                    self.label_5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.edit_working_dir = PathLineEdit(self.group_settings)
        self.edit_working_dir.setObjectName("edit_working_dir")
        self.horizontalLayout_6.addWidget(self.edit_working_dir)
        self.bt_pick_working_dir = QtWidgets.QToolButton(self.group_settings)
        self.bt_pick_working_dir.setObjectName("bt_pick_working_dir")
        self.horizontalLayout_6.addWidget(self.bt_pick_working_dir)
        self.formLayout_2.setLayout(3, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_6)
        self.label_4 = QtWidgets.QLabel(self.group_settings)
        self.label_4.setObjectName("label_4")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.LabelRole,
                                    self.label_4)
        self.edit_intepreter_options = QtWidgets.QLineEdit(self.group_settings)
        self.edit_intepreter_options.setObjectName("edit_intepreter_options")
        self.formLayout_2.setWidget(4, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_intepreter_options)
        self.label_6 = QtWidgets.QLabel(self.group_settings)
        self.label_6.setObjectName("label_6")
        self.formLayout_2.setWidget(5, QtWidgets.QFormLayout.LabelRole,
                                    self.label_6)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.table_env_vars = QtWidgets.QTableWidget(self.group_settings)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(
            self.table_env_vars.sizePolicy().hasHeightForWidth())
        self.table_env_vars.setSizePolicy(sizePolicy)
        self.table_env_vars.setAlternatingRowColors(False)
        self.table_env_vars.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.table_env_vars.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.table_env_vars.setGridStyle(QtCore.Qt.SolidLine)
        self.table_env_vars.setRowCount(0)
        self.table_env_vars.setObjectName("table_env_vars")
        self.table_env_vars.setColumnCount(2)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(1, item)
        self.table_env_vars.horizontalHeader().setCascadingSectionResizes(
            False)
        self.table_env_vars.horizontalHeader().setStretchLastSection(True)
        self.table_env_vars.verticalHeader().setVisible(False)
        self.horizontalLayout_4.addWidget(self.table_env_vars)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setContentsMargins(0, -1, -1, -1)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.bt_add_env_var = QtWidgets.QToolButton(self.group_settings)
        self.bt_add_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_env_var.setIcon(icon)
        self.bt_add_env_var.setObjectName("bt_add_env_var")
        self.verticalLayout_4.addWidget(self.bt_add_env_var)
        self.bt_rm_env_var = QtWidgets.QToolButton(self.group_settings)
        self.bt_rm_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_rm_env_var.setIcon(icon)
        self.bt_rm_env_var.setObjectName("bt_rm_env_var")
        self.verticalLayout_4.addWidget(self.bt_rm_env_var)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.formLayout_2.setLayout(5, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_4)
        self.cb_run_in_external_terminal = QtWidgets.QCheckBox(
            self.group_settings)
        self.cb_run_in_external_terminal.setObjectName(
            "cb_run_in_external_terminal")
        self.formLayout_2.setWidget(6, QtWidgets.QFormLayout.FieldRole,
                                    self.cb_run_in_external_terminal)
        self.horizontalLayout_2.addWidget(self.group_settings)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.cb_project, self.combo_prj_interpreter)
        Dialog.setTabOrder(self.combo_prj_interpreter, self.bt_add_cfg)
        Dialog.setTabOrder(self.bt_add_cfg, self.bt_rm_cfg)
        Dialog.setTabOrder(self.bt_rm_cfg, self.edit_name)
        Dialog.setTabOrder(self.edit_name, self.edit_script)
        Dialog.setTabOrder(self.edit_script, self.bt_pick_script)
        Dialog.setTabOrder(self.bt_pick_script, self.edit_script_args)
        Dialog.setTabOrder(self.edit_script_args, self.edit_working_dir)
        Dialog.setTabOrder(self.edit_working_dir, self.bt_pick_working_dir)
        Dialog.setTabOrder(self.bt_pick_working_dir,
                           self.edit_intepreter_options)
        Dialog.setTabOrder(self.edit_intepreter_options, self.table_env_vars)
        Dialog.setTabOrder(self.table_env_vars, self.bt_add_env_var)
        Dialog.setTabOrder(self.bt_add_env_var, self.bt_rm_env_var)
        Dialog.setTabOrder(self.bt_rm_env_var, self.list_configs)
コード例 #6
0
ファイル: wizard_new_ui.py プロジェクト: SirmoGames/hackedit
    def setupUi(self, Wizard):
        Wizard.setObjectName("Wizard")
        Wizard.resize(717, 414)
        Wizard.setWizardStyle(QtWidgets.QWizard.ClassicStyle)
        Wizard.setOptions(QtWidgets.QWizard.NoBackButtonOnStartPage)
        self.wizardPageHome = QtWidgets.QWizardPage()
        self.wizardPageHome.setObjectName("wizardPageHome")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.wizardPageHome)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.list_sources = QtWidgets.QListWidget(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.list_sources.sizePolicy().hasHeightForWidth())
        self.list_sources.setSizePolicy(sizePolicy)
        self.list_sources.setObjectName("list_sources")
        self.gridLayout.addWidget(self.list_sources, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.line = QtWidgets.QFrame(self.wizardPageHome)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_3.addWidget(self.line)
        self.groupBox_2 = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tree_templates = QtWidgets.QTreeWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tree_templates.sizePolicy().hasHeightForWidth())
        self.tree_templates.setSizePolicy(sizePolicy)
        self.tree_templates.setObjectName("tree_templates")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("folder")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("document")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("trash")
        item_0.setIcon(0, icon)
        self.tree_templates.header().setVisible(False)
        self.gridLayout_2.addWidget(self.tree_templates, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.lbl_boss_version = QtWidgets.QLabel(self.wizardPageHome)
        self.lbl_boss_version.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_boss_version.setOpenExternalLinks(True)
        self.lbl_boss_version.setObjectName("lbl_boss_version")
        self.verticalLayout.addWidget(self.lbl_boss_version)
        Wizard.addPage(self.wizardPageHome)
        self.wizardPageLocation = QtWidgets.QWizardPage()
        self.wizardPageLocation.setObjectName("wizardPageLocation")
        self.formLayout = QtWidgets.QFormLayout(self.wizardPageLocation)
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.wizardPageLocation)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.edit_prj_path = PathLineEdit(self.wizardPageLocation)
        self.edit_prj_path.setObjectName("edit_prj_path")
        self.horizontalLayout_2.addWidget(self.edit_prj_path)
        self.bt_select_prj_path = QtWidgets.QToolButton(self.wizardPageLocation)
        self.bt_select_prj_path.setObjectName("bt_select_prj_path")
        self.horizontalLayout_2.addWidget(self.bt_select_prj_path)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
        self.lbl_prj_location_error = QtWidgets.QLabel(self.wizardPageLocation)
        self.lbl_prj_location_error.setStyleSheet("background-color: red;\n"
"color: white;")
        self.lbl_prj_location_error.setObjectName("lbl_prj_location_error")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lbl_prj_location_error)
        Wizard.addPage(self.wizardPageLocation)

        self.retranslateUi(Wizard)
        QtCore.QMetaObject.connectSlotsByName(Wizard)
        Wizard.setTabOrder(self.list_sources, self.tree_templates)
        Wizard.setTabOrder(self.tree_templates, self.edit_prj_path)
        Wizard.setTabOrder(self.edit_prj_path, self.bt_select_prj_path)
コード例 #7
0
ファイル: wizard_new_ui.py プロジェクト: SirmoGames/hackedit
class Ui_Wizard(object):
    def setupUi(self, Wizard):
        Wizard.setObjectName("Wizard")
        Wizard.resize(717, 414)
        Wizard.setWizardStyle(QtWidgets.QWizard.ClassicStyle)
        Wizard.setOptions(QtWidgets.QWizard.NoBackButtonOnStartPage)
        self.wizardPageHome = QtWidgets.QWizardPage()
        self.wizardPageHome.setObjectName("wizardPageHome")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.wizardPageHome)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.list_sources = QtWidgets.QListWidget(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.list_sources.sizePolicy().hasHeightForWidth())
        self.list_sources.setSizePolicy(sizePolicy)
        self.list_sources.setObjectName("list_sources")
        self.gridLayout.addWidget(self.list_sources, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.line = QtWidgets.QFrame(self.wizardPageHome)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_3.addWidget(self.line)
        self.groupBox_2 = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tree_templates = QtWidgets.QTreeWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tree_templates.sizePolicy().hasHeightForWidth())
        self.tree_templates.setSizePolicy(sizePolicy)
        self.tree_templates.setObjectName("tree_templates")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("folder")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("document")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("trash")
        item_0.setIcon(0, icon)
        self.tree_templates.header().setVisible(False)
        self.gridLayout_2.addWidget(self.tree_templates, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.lbl_boss_version = QtWidgets.QLabel(self.wizardPageHome)
        self.lbl_boss_version.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_boss_version.setOpenExternalLinks(True)
        self.lbl_boss_version.setObjectName("lbl_boss_version")
        self.verticalLayout.addWidget(self.lbl_boss_version)
        Wizard.addPage(self.wizardPageHome)
        self.wizardPageLocation = QtWidgets.QWizardPage()
        self.wizardPageLocation.setObjectName("wizardPageLocation")
        self.formLayout = QtWidgets.QFormLayout(self.wizardPageLocation)
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.wizardPageLocation)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.edit_prj_path = PathLineEdit(self.wizardPageLocation)
        self.edit_prj_path.setObjectName("edit_prj_path")
        self.horizontalLayout_2.addWidget(self.edit_prj_path)
        self.bt_select_prj_path = QtWidgets.QToolButton(self.wizardPageLocation)
        self.bt_select_prj_path.setObjectName("bt_select_prj_path")
        self.horizontalLayout_2.addWidget(self.bt_select_prj_path)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
        self.lbl_prj_location_error = QtWidgets.QLabel(self.wizardPageLocation)
        self.lbl_prj_location_error.setStyleSheet("background-color: red;\n"
"color: white;")
        self.lbl_prj_location_error.setObjectName("lbl_prj_location_error")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lbl_prj_location_error)
        Wizard.addPage(self.wizardPageLocation)

        self.retranslateUi(Wizard)
        QtCore.QMetaObject.connectSlotsByName(Wizard)
        Wizard.setTabOrder(self.list_sources, self.tree_templates)
        Wizard.setTabOrder(self.tree_templates, self.edit_prj_path)
        Wizard.setTabOrder(self.edit_prj_path, self.bt_select_prj_path)

    def retranslateUi(self, Wizard):
        _translate = QtCore.QCoreApplication.translate
        Wizard.setWindowTitle(_translate("Wizard", "New"))
        self.wizardPageHome.setTitle(_translate("Wizard", "Select template"))
        self.wizardPageHome.setSubTitle(_translate("Wizard", "Select a project or a single file template"))
        self.groupBox.setTitle(_translate("Wizard", "Sources"))
        self.list_sources.setToolTip(_translate("Wizard", "The list of template sources"))
        self.groupBox_2.setTitle(_translate("Wizard", "Templates"))
        self.tree_templates.setToolTip(_translate("Wizard", "The list of templates for the selected source"))
        self.tree_templates.headerItem().setText(0, _translate("Wizard", "Template"))
        __sortingEnabled = self.tree_templates.isSortingEnabled()
        self.tree_templates.setSortingEnabled(False)
        self.tree_templates.topLevelItem(0).setText(0, _translate("Wizard", "Project templates"))
        self.tree_templates.topLevelItem(1).setText(0, _translate("Wizard", "File templates"))
        self.tree_templates.topLevelItem(2).setText(0, _translate("Wizard", "Un-categorized templates"))
        self.tree_templates.setSortingEnabled(__sortingEnabled)
        self.lbl_boss_version.setText(_translate("Wizard", "Powered by BOSS v0.9.20"))
        self.wizardPageLocation.setTitle(_translate("Wizard", "Set location"))
        self.wizardPageLocation.setSubTitle(_translate("Wizard", "Set the location of the project/file"))
        self.label.setText(_translate("Wizard", "Create in:"))
        self.edit_prj_path.setToolTip(_translate("Wizard", "Select the project/file destination."))
        self.bt_select_prj_path.setText(_translate("Wizard", "Browse"))
        self.lbl_prj_location_error.setText(_translate("Wizard", "TextLabel"))
コード例 #8
0
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(327, 131)
        self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.edit_label = QtWidgets.QLineEdit(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.edit_label.sizePolicy().hasHeightForWidth())
        self.edit_label.setSizePolicy(sizePolicy)
        self.edit_label.setObjectName("edit_label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.edit_label)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_url = PathLineEdit(Dialog)
        self.edit_url.setObjectName("edit_url")
        self.horizontalLayout.addWidget(self.edit_url)
        self.toolButton = QtWidgets.QToolButton(Dialog)
        self.toolButton.setObjectName("toolButton")
        self.horizontalLayout.addWidget(self.toolButton)
        self.formLayout.setLayout(1, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.verticalLayout.addLayout(self.formLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Add source"))
        self.label.setText(_translate("Dialog", "Label:"))
        self.edit_label.setToolTip(
            _translate(
                "Dialog",
                "Give a meaningfull name to this source so that you can recognize it."
            ))
        self.label_2.setText(_translate("Dialog", "Path:"))
        self.edit_url.setToolTip(
            _translate(
                "Dialog",
                "<html><head/><body><p>URL of the template repository. </p><p><br/></p><p>Boss supports both local and remote (git) template repositories.</p></body></html>"
            ))
        self.toolButton.setText(_translate("Dialog", "..."))
コード例 #9
0
    def setupUi(self, Wizard):
        Wizard.setObjectName("Wizard")
        Wizard.resize(717, 414)
        Wizard.setWizardStyle(QtWidgets.QWizard.ClassicStyle)
        Wizard.setOptions(QtWidgets.QWizard.NoBackButtonOnStartPage)
        self.wizardPageHome = QtWidgets.QWizardPage()
        self.wizardPageHome.setObjectName("wizardPageHome")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.wizardPageHome)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.list_sources = QtWidgets.QListWidget(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.list_sources.sizePolicy().hasHeightForWidth())
        self.list_sources.setSizePolicy(sizePolicy)
        self.list_sources.setObjectName("list_sources")
        self.gridLayout.addWidget(self.list_sources, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.line = QtWidgets.QFrame(self.wizardPageHome)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_3.addWidget(self.line)
        self.groupBox_2 = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tree_templates = QtWidgets.QTreeWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tree_templates.sizePolicy().hasHeightForWidth())
        self.tree_templates.setSizePolicy(sizePolicy)
        self.tree_templates.setObjectName("tree_templates")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("folder")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("document")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("trash")
        item_0.setIcon(0, icon)
        self.tree_templates.header().setVisible(False)
        self.gridLayout_2.addWidget(self.tree_templates, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.lbl_boss_version = QtWidgets.QLabel(self.wizardPageHome)
        self.lbl_boss_version.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_boss_version.setOpenExternalLinks(True)
        self.lbl_boss_version.setObjectName("lbl_boss_version")
        self.verticalLayout.addWidget(self.lbl_boss_version)
        Wizard.addPage(self.wizardPageHome)
        self.wizardPageLocation = QtWidgets.QWizardPage()
        self.wizardPageLocation.setObjectName("wizardPageLocation")
        self.formLayout = QtWidgets.QFormLayout(self.wizardPageLocation)
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.wizardPageLocation)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.edit_prj_path = PathLineEdit(self.wizardPageLocation)
        self.edit_prj_path.setObjectName("edit_prj_path")
        self.horizontalLayout_2.addWidget(self.edit_prj_path)
        self.bt_select_prj_path = QtWidgets.QToolButton(
            self.wizardPageLocation)
        self.bt_select_prj_path.setObjectName("bt_select_prj_path")
        self.horizontalLayout_2.addWidget(self.bt_select_prj_path)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout_2)
        self.lbl_prj_location_error = QtWidgets.QLabel(self.wizardPageLocation)
        self.lbl_prj_location_error.setStyleSheet("background-color: red;\n"
                                                  "color: white;")
        self.lbl_prj_location_error.setObjectName("lbl_prj_location_error")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.lbl_prj_location_error)
        Wizard.addPage(self.wizardPageLocation)

        self.retranslateUi(Wizard)
        QtCore.QMetaObject.connectSlotsByName(Wizard)
        Wizard.setTabOrder(self.list_sources, self.tree_templates)
        Wizard.setTabOrder(self.tree_templates, self.edit_prj_path)
        Wizard.setTabOrder(self.edit_prj_path, self.bt_select_prj_path)
コード例 #10
0
class Ui_Wizard(object):
    def setupUi(self, Wizard):
        Wizard.setObjectName("Wizard")
        Wizard.resize(717, 414)
        Wizard.setWizardStyle(QtWidgets.QWizard.ClassicStyle)
        Wizard.setOptions(QtWidgets.QWizard.NoBackButtonOnStartPage)
        self.wizardPageHome = QtWidgets.QWizardPage()
        self.wizardPageHome.setObjectName("wizardPageHome")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.wizardPageHome)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.list_sources = QtWidgets.QListWidget(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.list_sources.sizePolicy().hasHeightForWidth())
        self.list_sources.setSizePolicy(sizePolicy)
        self.list_sources.setObjectName("list_sources")
        self.gridLayout.addWidget(self.list_sources, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox)
        self.line = QtWidgets.QFrame(self.wizardPageHome)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_3.addWidget(self.line)
        self.groupBox_2 = QtWidgets.QGroupBox(self.wizardPageHome)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.tree_templates = QtWidgets.QTreeWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tree_templates.sizePolicy().hasHeightForWidth())
        self.tree_templates.setSizePolicy(sizePolicy)
        self.tree_templates.setObjectName("tree_templates")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("folder")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("document")
        item_0.setIcon(0, icon)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_templates)
        icon = QtGui.QIcon.fromTheme("trash")
        item_0.setIcon(0, icon)
        self.tree_templates.header().setVisible(False)
        self.gridLayout_2.addWidget(self.tree_templates, 0, 0, 1, 1)
        self.horizontalLayout_3.addWidget(self.groupBox_2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.lbl_boss_version = QtWidgets.QLabel(self.wizardPageHome)
        self.lbl_boss_version.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl_boss_version.setOpenExternalLinks(True)
        self.lbl_boss_version.setObjectName("lbl_boss_version")
        self.verticalLayout.addWidget(self.lbl_boss_version)
        Wizard.addPage(self.wizardPageHome)
        self.wizardPageLocation = QtWidgets.QWizardPage()
        self.wizardPageLocation.setObjectName("wizardPageLocation")
        self.formLayout = QtWidgets.QFormLayout(self.wizardPageLocation)
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.wizardPageLocation)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.edit_prj_path = PathLineEdit(self.wizardPageLocation)
        self.edit_prj_path.setObjectName("edit_prj_path")
        self.horizontalLayout_2.addWidget(self.edit_prj_path)
        self.bt_select_prj_path = QtWidgets.QToolButton(
            self.wizardPageLocation)
        self.bt_select_prj_path.setObjectName("bt_select_prj_path")
        self.horizontalLayout_2.addWidget(self.bt_select_prj_path)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout_2)
        self.lbl_prj_location_error = QtWidgets.QLabel(self.wizardPageLocation)
        self.lbl_prj_location_error.setStyleSheet("background-color: red;\n"
                                                  "color: white;")
        self.lbl_prj_location_error.setObjectName("lbl_prj_location_error")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.lbl_prj_location_error)
        Wizard.addPage(self.wizardPageLocation)

        self.retranslateUi(Wizard)
        QtCore.QMetaObject.connectSlotsByName(Wizard)
        Wizard.setTabOrder(self.list_sources, self.tree_templates)
        Wizard.setTabOrder(self.tree_templates, self.edit_prj_path)
        Wizard.setTabOrder(self.edit_prj_path, self.bt_select_prj_path)

    def retranslateUi(self, Wizard):
        _translate = QtCore.QCoreApplication.translate
        Wizard.setWindowTitle(_translate("Wizard", "New"))
        self.wizardPageHome.setTitle(_translate("Wizard", "Select template"))
        self.wizardPageHome.setSubTitle(
            _translate("Wizard", "Select a project or a single file template"))
        self.groupBox.setTitle(_translate("Wizard", "Sources"))
        self.list_sources.setToolTip(
            _translate("Wizard", "The list of template sources"))
        self.groupBox_2.setTitle(_translate("Wizard", "Templates"))
        self.tree_templates.setToolTip(
            _translate("Wizard",
                       "The list of templates for the selected source"))
        self.tree_templates.headerItem().setText(
            0, _translate("Wizard", "Template"))
        __sortingEnabled = self.tree_templates.isSortingEnabled()
        self.tree_templates.setSortingEnabled(False)
        self.tree_templates.topLevelItem(0).setText(
            0, _translate("Wizard", "Project templates"))
        self.tree_templates.topLevelItem(1).setText(
            0, _translate("Wizard", "File templates"))
        self.tree_templates.topLevelItem(2).setText(
            0, _translate("Wizard", "Un-categorized templates"))
        self.tree_templates.setSortingEnabled(__sortingEnabled)
        self.lbl_boss_version.setText(
            _translate("Wizard", "Powered by BOSS v0.9.20"))
        self.wizardPageLocation.setTitle(_translate("Wizard", "Set location"))
        self.wizardPageLocation.setSubTitle(
            _translate("Wizard", "Set the location of the project/file"))
        self.label.setText(_translate("Wizard", "Create in:"))
        self.edit_prj_path.setToolTip(
            _translate("Wizard", "Select the project/file destination."))
        self.bt_select_prj_path.setText(_translate("Wizard", "Browse"))
        self.lbl_prj_location_error.setText(_translate("Wizard", "TextLabel"))
コード例 #11
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(1205, 847)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setContentsMargins(-1, -1, -1, 6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tab_categories = QtWidgets.QTabWidget(Form)
        self.tab_categories.setObjectName("tab_categories")
        self.tab_interpreters = QtWidgets.QWidget()
        self.tab_interpreters.setObjectName("tab_interpreters")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.tab_interpreters)
        self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_10.setSpacing(0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_8.setSpacing(9)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.tree_interpreters = QtWidgets.QTreeWidget(self.tab_interpreters)
        self.tree_interpreters.setObjectName("tree_interpreters")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_interpreters)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_interpreters)
        self.tree_interpreters.header().setCascadingSectionResizes(False)
        self.tree_interpreters.header().setDefaultSectionSize(250)
        self.verticalLayout_8.addWidget(self.tree_interpreters)
        self.tab_widget_interpreter_settings = QtWidgets.QTabWidget(
            self.tab_interpreters)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tab_widget_interpreter_settings.
                                     sizePolicy().hasHeightForWidth())
        self.tab_widget_interpreter_settings.setSizePolicy(sizePolicy)
        self.tab_widget_interpreter_settings.setObjectName(
            "tab_widget_interpreter_settings")
        self.tab_interpreter_setup = QtWidgets.QWidget()
        self.tab_interpreter_setup.setObjectName("tab_interpreter_setup")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(
            self.tab_interpreter_setup)
        self.verticalLayout_13.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.formLayout_4 = QtWidgets.QFormLayout()
        self.formLayout_4.setContentsMargins(6, 6, 6, 6)
        self.formLayout_4.setObjectName("formLayout_4")
        self.label_4 = QtWidgets.QLabel(self.tab_interpreter_setup)
        self.label_4.setObjectName("label_4")
        self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_4)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.edit_interpreter = PathLineEdit(self.tab_interpreter_setup)
        self.edit_interpreter.setObjectName("edit_interpreter")
        self.horizontalLayout_8.addWidget(self.edit_interpreter)
        self.bt_select_interpreter = QtWidgets.QToolButton(
            self.tab_interpreter_setup)
        self.bt_select_interpreter.setObjectName("bt_select_interpreter")
        self.horizontalLayout_8.addWidget(self.bt_select_interpreter)
        self.formLayout_4.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_8)
        self.verticalLayout_13.addLayout(self.formLayout_4)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_interpreter_setup)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.table_interpreter_env_vars = QtWidgets.QTableWidget(
            self.groupBox_2)
        self.table_interpreter_env_vars.setMinimumSize(QtCore.QSize(0, 0))
        self.table_interpreter_env_vars.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.table_interpreter_env_vars.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.table_interpreter_env_vars.setObjectName(
            "table_interpreter_env_vars")
        self.table_interpreter_env_vars.setColumnCount(2)
        self.table_interpreter_env_vars.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.table_interpreter_env_vars.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_interpreter_env_vars.setHorizontalHeaderItem(1, item)
        self.table_interpreter_env_vars.horizontalHeader(
        ).setDefaultSectionSize(150)
        self.table_interpreter_env_vars.horizontalHeader(
        ).setStretchLastSection(True)
        self.table_interpreter_env_vars.verticalHeader().setVisible(False)
        self.table_interpreter_env_vars.verticalHeader(
        ).setCascadingSectionResizes(False)
        self.horizontalLayout_9.addWidget(self.table_interpreter_env_vars)
        self.verticalLayout_12 = QtWidgets.QVBoxLayout()
        self.verticalLayout_12.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.bt_add_interpreter_env_var = QtWidgets.QPushButton(
            self.groupBox_2)
        self.bt_add_interpreter_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_interpreter_env_var.setIcon(icon)
        self.bt_add_interpreter_env_var.setObjectName(
            "bt_add_interpreter_env_var")
        self.verticalLayout_12.addWidget(self.bt_add_interpreter_env_var)
        self.bt_rm_interpreter_env_var = QtWidgets.QPushButton(self.groupBox_2)
        self.bt_rm_interpreter_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-remove")
        self.bt_rm_interpreter_env_var.setIcon(icon)
        self.bt_rm_interpreter_env_var.setObjectName(
            "bt_rm_interpreter_env_var")
        self.verticalLayout_12.addWidget(self.bt_rm_interpreter_env_var)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_12.addItem(spacerItem)
        self.horizontalLayout_9.addLayout(self.verticalLayout_12)
        self.verticalLayout_13.addWidget(self.groupBox_2)
        self.tab_widget_interpreter_settings.addTab(self.tab_interpreter_setup,
                                                    "")
        self.tab_packages = QtWidgets.QWidget()
        self.tab_packages.setObjectName("tab_packages")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.tab_packages)
        self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.package_manager_widget = PackageManagerWidget(self.tab_packages)
        self.package_manager_widget.setObjectName("package_manager_widget")
        self.horizontalLayout_7.addWidget(self.package_manager_widget)
        self.tab_widget_interpreter_settings.addTab(self.tab_packages, "")
        self.verticalLayout_8.addWidget(self.tab_widget_interpreter_settings)
        self.horizontalLayout_10.addLayout(self.verticalLayout_8)
        self.verticalLayout_11 = QtWidgets.QVBoxLayout()
        self.verticalLayout_11.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.bt_add_interpreter = QtWidgets.QToolButton(self.tab_interpreters)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_interpreter.sizePolicy().hasHeightForWidth())
        self.bt_add_interpreter.setSizePolicy(sizePolicy)
        self.bt_add_interpreter.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_interpreter.setIcon(icon)
        self.bt_add_interpreter.setPopupMode(
            QtWidgets.QToolButton.InstantPopup)
        self.bt_add_interpreter.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.bt_add_interpreter.setObjectName("bt_add_interpreter")
        self.verticalLayout_11.addWidget(self.bt_add_interpreter)
        self.bt_clone_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        self.bt_clone_interpreter.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("edit-copy")
        self.bt_clone_interpreter.setIcon(icon)
        self.bt_clone_interpreter.setObjectName("bt_clone_interpreter")
        self.verticalLayout_11.addWidget(self.bt_clone_interpreter)
        self.bt_delete_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_delete_interpreter.setIcon(icon)
        self.bt_delete_interpreter.setObjectName("bt_delete_interpreter")
        self.verticalLayout_11.addWidget(self.bt_delete_interpreter)
        self.bt_make_default_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        icon = QtGui.QIcon.fromTheme("emblem-favorite")
        self.bt_make_default_interpreter.setIcon(icon)
        self.bt_make_default_interpreter.setObjectName(
            "bt_make_default_interpreter")
        self.verticalLayout_11.addWidget(self.bt_make_default_interpreter)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_11.addItem(spacerItem1)
        self.bt_check_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        icon = QtGui.QIcon.fromTheme("checkbox")
        self.bt_check_interpreter.setIcon(icon)
        self.bt_check_interpreter.setObjectName("bt_check_interpreter")
        self.verticalLayout_11.addWidget(self.bt_check_interpreter)
        self.horizontalLayout_10.addLayout(self.verticalLayout_11)
        icon = QtGui.QIcon.fromTheme("system-run")
        self.tab_categories.addTab(self.tab_interpreters, icon, "")
        self.tab_compilers = QtWidgets.QWidget()
        self.tab_compilers.setObjectName("tab_compilers")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_compilers)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_4.setSpacing(9)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.tree_compilers = QtWidgets.QTreeWidget(self.tab_compilers)
        self.tree_compilers.setObjectName("tree_compilers")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_compilers)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_compilers)
        self.tree_compilers.header().setCascadingSectionResizes(False)
        self.tree_compilers.header().setDefaultSectionSize(250)
        self.verticalLayout_4.addWidget(self.tree_compilers)
        self.tab_compiler_settings = QtWidgets.QTabWidget(self.tab_compilers)
        self.tab_compiler_settings.setObjectName("tab_compiler_settings")
        self.tab_compiler_setup = QtWidgets.QWidget()
        self.tab_compiler_setup.setObjectName("tab_compiler_setup")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_compiler_setup)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setContentsMargins(6, 6, 6, 6)
        self.formLayout.setObjectName("formLayout")
        self.label_2 = QtWidgets.QLabel(self.tab_compiler_setup)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_compiler = PathLineEdit(self.tab_compiler_setup)
        self.edit_compiler.setObjectName("edit_compiler")
        self.horizontalLayout.addWidget(self.edit_compiler)
        self.bt_select_compiler = QtWidgets.QToolButton(
            self.tab_compiler_setup)
        self.bt_select_compiler.setObjectName("bt_select_compiler")
        self.horizontalLayout.addWidget(self.bt_select_compiler)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.verticalLayout_5.addLayout(self.formLayout)
        self.group_msvc = QtWidgets.QGroupBox(self.tab_compiler_setup)
        self.group_msvc.setCheckable(True)
        self.group_msvc.setChecked(False)
        self.group_msvc.setObjectName("group_msvc")
        self.formLayout_2 = QtWidgets.QFormLayout(self.group_msvc)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_vcvarsall = QtWidgets.QLabel(self.group_msvc)
        self.label_vcvarsall.setObjectName("label_vcvarsall")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_vcvarsall)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.edit_vcvarsall = QtWidgets.QLineEdit(self.group_msvc)
        self.edit_vcvarsall.setObjectName("edit_vcvarsall")
        self.horizontalLayout_2.addWidget(self.edit_vcvarsall)
        self.bt_select_vcvarsall = QtWidgets.QToolButton(self.group_msvc)
        self.bt_select_vcvarsall.setObjectName("bt_select_vcvarsall")
        self.horizontalLayout_2.addWidget(self.bt_select_vcvarsall)
        self.formLayout_2.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_2)
        self.label = QtWidgets.QLabel(self.group_msvc)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label)
        self.combo_vcvarsall_arch = QtWidgets.QComboBox(self.group_msvc)
        self.combo_vcvarsall_arch.setObjectName("combo_vcvarsall_arch")
        self.combo_vcvarsall_arch.addItem("")
        self.combo_vcvarsall_arch.addItem("")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.combo_vcvarsall_arch)
        self.verticalLayout_5.addWidget(self.group_msvc)
        self.groupBox = QtWidgets.QGroupBox(self.tab_compiler_setup)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.table_env_vars = QtWidgets.QTableWidget(self.groupBox)
        self.table_env_vars.setMinimumSize(QtCore.QSize(0, 0))
        self.table_env_vars.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.table_env_vars.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.table_env_vars.setObjectName("table_env_vars")
        self.table_env_vars.setColumnCount(2)
        self.table_env_vars.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(1, item)
        self.table_env_vars.horizontalHeader().setDefaultSectionSize(150)
        self.table_env_vars.horizontalHeader().setStretchLastSection(True)
        self.table_env_vars.verticalHeader().setVisible(False)
        self.table_env_vars.verticalHeader().setCascadingSectionResizes(False)
        self.horizontalLayout_4.addWidget(self.table_env_vars)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.bt_add_env_var = QtWidgets.QPushButton(self.groupBox)
        self.bt_add_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_env_var.setIcon(icon)
        self.bt_add_env_var.setObjectName("bt_add_env_var")
        self.verticalLayout_3.addWidget(self.bt_add_env_var)
        self.bt_rm_env_var = QtWidgets.QPushButton(self.groupBox)
        self.bt_rm_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-remove")
        self.bt_rm_env_var.setIcon(icon)
        self.bt_rm_env_var.setObjectName("bt_rm_env_var")
        self.verticalLayout_3.addWidget(self.bt_rm_env_var)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem2)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.verticalLayout_5.addWidget(self.groupBox)
        self.tab_compiler_settings.addTab(self.tab_compiler_setup, "")
        self.tab_default_options = QtWidgets.QWidget()
        self.tab_default_options.setObjectName("tab_default_options")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_default_options)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setHorizontalSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.stacked_compiler_options = QtWidgets.QStackedWidget(
            self.tab_default_options)
        self.stacked_compiler_options.setObjectName("stacked_compiler_options")
        self.gridLayout.addWidget(self.stacked_compiler_options, 0, 0, 1, 1)
        self.tab_compiler_settings.addTab(self.tab_default_options, "")
        self.verticalLayout_4.addWidget(self.tab_compiler_settings)
        self.verticalLayout_4.setStretch(0, 1)
        self.horizontalLayout_3.addLayout(self.verticalLayout_4)
        self.line_2 = QtWidgets.QFrame(self.tab_compilers)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_3.addWidget(self.line_2)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.bt_add_compiler = QtWidgets.QToolButton(self.tab_compilers)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_compiler.sizePolicy().hasHeightForWidth())
        self.bt_add_compiler.setSizePolicy(sizePolicy)
        self.bt_add_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_compiler.setIcon(icon)
        self.bt_add_compiler.setPopupMode(QtWidgets.QToolButton.InstantPopup)
        self.bt_add_compiler.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.bt_add_compiler.setObjectName("bt_add_compiler")
        self.verticalLayout_2.addWidget(self.bt_add_compiler)
        self.bt_clone_compiler = QtWidgets.QPushButton(self.tab_compilers)
        self.bt_clone_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("edit-copy")
        self.bt_clone_compiler.setIcon(icon)
        self.bt_clone_compiler.setObjectName("bt_clone_compiler")
        self.verticalLayout_2.addWidget(self.bt_clone_compiler)
        self.bt_delete_compiler = QtWidgets.QPushButton(self.tab_compilers)
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_delete_compiler.setIcon(icon)
        self.bt_delete_compiler.setObjectName("bt_delete_compiler")
        self.verticalLayout_2.addWidget(self.bt_delete_compiler)
        self.bt_make_default_compiler = QtWidgets.QPushButton(
            self.tab_compilers)
        icon = QtGui.QIcon.fromTheme("emblem-favorite")
        self.bt_make_default_compiler.setIcon(icon)
        self.bt_make_default_compiler.setObjectName("bt_make_default_compiler")
        self.verticalLayout_2.addWidget(self.bt_make_default_compiler)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.bt_check_compiler = QtWidgets.QPushButton(self.tab_compilers)
        icon = QtGui.QIcon.fromTheme("checkbox")
        self.bt_check_compiler.setIcon(icon)
        self.bt_check_compiler.setObjectName("bt_check_compiler")
        self.verticalLayout_2.addWidget(self.bt_check_compiler)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        icon = QtGui.QIcon.fromTheme("run-build")
        self.tab_categories.addTab(self.tab_compilers, icon, "")
        self.tab_pre_compilers = QtWidgets.QWidget()
        self.tab_pre_compilers.setObjectName("tab_pre_compilers")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_pre_compilers)
        self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_5.setSpacing(0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_6.setSpacing(9)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.tree_pre_compilers = QtWidgets.QTreeWidget(self.tab_pre_compilers)
        self.tree_pre_compilers.setObjectName("tree_pre_compilers")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_pre_compilers)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_pre_compilers)
        self.tree_pre_compilers.header().setCascadingSectionResizes(False)
        self.tree_pre_compilers.header().setDefaultSectionSize(250)
        self.verticalLayout_6.addWidget(self.tree_pre_compilers)
        self.group_pre_compiler_settings = QtWidgets.QGroupBox(
            self.tab_pre_compilers)
        self.group_pre_compiler_settings.setObjectName(
            "group_pre_compiler_settings")
        self.formLayout_3 = QtWidgets.QFormLayout(
            self.group_pre_compiler_settings)
        self.formLayout_3.setObjectName("formLayout_3")
        self.label_3 = QtWidgets.QLabel(self.group_pre_compiler_settings)
        self.label_3.setObjectName("label_3")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_3)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.edit_pre_compiler_path = QtWidgets.QLineEdit(
            self.group_pre_compiler_settings)
        self.edit_pre_compiler_path.setObjectName("edit_pre_compiler_path")
        self.horizontalLayout_6.addWidget(self.edit_pre_compiler_path)
        self.bt_select_pre_compiler_path = QtWidgets.QToolButton(
            self.group_pre_compiler_settings)
        self.bt_select_pre_compiler_path.setObjectName(
            "bt_select_pre_compiler_path")
        self.horizontalLayout_6.addWidget(self.bt_select_pre_compiler_path)
        self.formLayout_3.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_6)
        self.label_5 = QtWidgets.QLabel(self.group_pre_compiler_settings)
        self.label_5.setObjectName("label_5")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_5)
        self.edit_pre_compiler_flags = QtWidgets.QLineEdit(
            self.group_pre_compiler_settings)
        self.edit_pre_compiler_flags.setObjectName("edit_pre_compiler_flags")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_pre_compiler_flags)
        self.label_7 = QtWidgets.QLabel(self.group_pre_compiler_settings)
        self.label_7.setObjectName("label_7")
        self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                    self.label_7)
        self.edit_pre_compiler_output_pattern = QtWidgets.QLineEdit(
            self.group_pre_compiler_settings)
        self.edit_pre_compiler_output_pattern.setObjectName(
            "edit_pre_compiler_output_pattern")
        self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_pre_compiler_output_pattern)
        self.verticalLayout_6.addWidget(self.group_pre_compiler_settings)
        self.verticalLayout_6.setStretch(0, 1)
        self.horizontalLayout_5.addLayout(self.verticalLayout_6)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.bt_add_pre_compiler = QtWidgets.QToolButton(
            self.tab_pre_compilers)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_pre_compiler.sizePolicy().hasHeightForWidth())
        self.bt_add_pre_compiler.setSizePolicy(sizePolicy)
        self.bt_add_pre_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_pre_compiler.setIcon(icon)
        self.bt_add_pre_compiler.setPopupMode(
            QtWidgets.QToolButton.InstantPopup)
        self.bt_add_pre_compiler.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.bt_add_pre_compiler.setObjectName("bt_add_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_add_pre_compiler)
        self.bt_clone_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        self.bt_clone_pre_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("edit-copy")
        self.bt_clone_pre_compiler.setIcon(icon)
        self.bt_clone_pre_compiler.setObjectName("bt_clone_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_clone_pre_compiler)
        self.bt_delete_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_delete_pre_compiler.setIcon(icon)
        self.bt_delete_pre_compiler.setObjectName("bt_delete_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_delete_pre_compiler)
        self.bt_make_default_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        icon = QtGui.QIcon.fromTheme("emblem-favorite")
        self.bt_make_default_pre_compiler.setIcon(icon)
        self.bt_make_default_pre_compiler.setObjectName(
            "bt_make_default_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_make_default_pre_compiler)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem4)
        self.bt_check_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        icon = QtGui.QIcon.fromTheme("checkbox")
        self.bt_check_pre_compiler.setIcon(icon)
        self.bt_check_pre_compiler.setObjectName("bt_check_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_check_pre_compiler)
        self.horizontalLayout_5.addLayout(self.verticalLayout_7)
        icon = QtGui.QIcon.fromTheme("database-index")
        self.tab_categories.addTab(self.tab_pre_compilers, icon, "")
        self.verticalLayout.addWidget(self.tab_categories)

        self.retranslateUi(Form)
        self.tab_categories.setCurrentIndex(0)
        self.tab_widget_interpreter_settings.setCurrentIndex(0)
        self.tab_compiler_settings.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)
コード例 #12
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(1205, 847)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setContentsMargins(-1, -1, -1, 6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tab_categories = QtWidgets.QTabWidget(Form)
        self.tab_categories.setObjectName("tab_categories")
        self.tab_interpreters = QtWidgets.QWidget()
        self.tab_interpreters.setObjectName("tab_interpreters")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.tab_interpreters)
        self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_10.setSpacing(0)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_8.setSpacing(9)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.tree_interpreters = QtWidgets.QTreeWidget(self.tab_interpreters)
        self.tree_interpreters.setObjectName("tree_interpreters")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_interpreters)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_interpreters)
        self.tree_interpreters.header().setCascadingSectionResizes(False)
        self.tree_interpreters.header().setDefaultSectionSize(250)
        self.verticalLayout_8.addWidget(self.tree_interpreters)
        self.tab_widget_interpreter_settings = QtWidgets.QTabWidget(
            self.tab_interpreters)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tab_widget_interpreter_settings.
                                     sizePolicy().hasHeightForWidth())
        self.tab_widget_interpreter_settings.setSizePolicy(sizePolicy)
        self.tab_widget_interpreter_settings.setObjectName(
            "tab_widget_interpreter_settings")
        self.tab_interpreter_setup = QtWidgets.QWidget()
        self.tab_interpreter_setup.setObjectName("tab_interpreter_setup")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(
            self.tab_interpreter_setup)
        self.verticalLayout_13.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.formLayout_4 = QtWidgets.QFormLayout()
        self.formLayout_4.setContentsMargins(6, 6, 6, 6)
        self.formLayout_4.setObjectName("formLayout_4")
        self.label_4 = QtWidgets.QLabel(self.tab_interpreter_setup)
        self.label_4.setObjectName("label_4")
        self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_4)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.edit_interpreter = PathLineEdit(self.tab_interpreter_setup)
        self.edit_interpreter.setObjectName("edit_interpreter")
        self.horizontalLayout_8.addWidget(self.edit_interpreter)
        self.bt_select_interpreter = QtWidgets.QToolButton(
            self.tab_interpreter_setup)
        self.bt_select_interpreter.setObjectName("bt_select_interpreter")
        self.horizontalLayout_8.addWidget(self.bt_select_interpreter)
        self.formLayout_4.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_8)
        self.verticalLayout_13.addLayout(self.formLayout_4)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab_interpreter_setup)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.table_interpreter_env_vars = QtWidgets.QTableWidget(
            self.groupBox_2)
        self.table_interpreter_env_vars.setMinimumSize(QtCore.QSize(0, 0))
        self.table_interpreter_env_vars.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.table_interpreter_env_vars.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.table_interpreter_env_vars.setObjectName(
            "table_interpreter_env_vars")
        self.table_interpreter_env_vars.setColumnCount(2)
        self.table_interpreter_env_vars.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.table_interpreter_env_vars.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_interpreter_env_vars.setHorizontalHeaderItem(1, item)
        self.table_interpreter_env_vars.horizontalHeader(
        ).setDefaultSectionSize(150)
        self.table_interpreter_env_vars.horizontalHeader(
        ).setStretchLastSection(True)
        self.table_interpreter_env_vars.verticalHeader().setVisible(False)
        self.table_interpreter_env_vars.verticalHeader(
        ).setCascadingSectionResizes(False)
        self.horizontalLayout_9.addWidget(self.table_interpreter_env_vars)
        self.verticalLayout_12 = QtWidgets.QVBoxLayout()
        self.verticalLayout_12.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.bt_add_interpreter_env_var = QtWidgets.QPushButton(
            self.groupBox_2)
        self.bt_add_interpreter_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_interpreter_env_var.setIcon(icon)
        self.bt_add_interpreter_env_var.setObjectName(
            "bt_add_interpreter_env_var")
        self.verticalLayout_12.addWidget(self.bt_add_interpreter_env_var)
        self.bt_rm_interpreter_env_var = QtWidgets.QPushButton(self.groupBox_2)
        self.bt_rm_interpreter_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-remove")
        self.bt_rm_interpreter_env_var.setIcon(icon)
        self.bt_rm_interpreter_env_var.setObjectName(
            "bt_rm_interpreter_env_var")
        self.verticalLayout_12.addWidget(self.bt_rm_interpreter_env_var)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_12.addItem(spacerItem)
        self.horizontalLayout_9.addLayout(self.verticalLayout_12)
        self.verticalLayout_13.addWidget(self.groupBox_2)
        self.tab_widget_interpreter_settings.addTab(self.tab_interpreter_setup,
                                                    "")
        self.tab_packages = QtWidgets.QWidget()
        self.tab_packages.setObjectName("tab_packages")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.tab_packages)
        self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.package_manager_widget = PackageManagerWidget(self.tab_packages)
        self.package_manager_widget.setObjectName("package_manager_widget")
        self.horizontalLayout_7.addWidget(self.package_manager_widget)
        self.tab_widget_interpreter_settings.addTab(self.tab_packages, "")
        self.verticalLayout_8.addWidget(self.tab_widget_interpreter_settings)
        self.horizontalLayout_10.addLayout(self.verticalLayout_8)
        self.verticalLayout_11 = QtWidgets.QVBoxLayout()
        self.verticalLayout_11.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.bt_add_interpreter = QtWidgets.QToolButton(self.tab_interpreters)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_interpreter.sizePolicy().hasHeightForWidth())
        self.bt_add_interpreter.setSizePolicy(sizePolicy)
        self.bt_add_interpreter.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_interpreter.setIcon(icon)
        self.bt_add_interpreter.setPopupMode(
            QtWidgets.QToolButton.InstantPopup)
        self.bt_add_interpreter.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.bt_add_interpreter.setObjectName("bt_add_interpreter")
        self.verticalLayout_11.addWidget(self.bt_add_interpreter)
        self.bt_clone_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        self.bt_clone_interpreter.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("edit-copy")
        self.bt_clone_interpreter.setIcon(icon)
        self.bt_clone_interpreter.setObjectName("bt_clone_interpreter")
        self.verticalLayout_11.addWidget(self.bt_clone_interpreter)
        self.bt_delete_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_delete_interpreter.setIcon(icon)
        self.bt_delete_interpreter.setObjectName("bt_delete_interpreter")
        self.verticalLayout_11.addWidget(self.bt_delete_interpreter)
        self.bt_make_default_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        icon = QtGui.QIcon.fromTheme("emblem-favorite")
        self.bt_make_default_interpreter.setIcon(icon)
        self.bt_make_default_interpreter.setObjectName(
            "bt_make_default_interpreter")
        self.verticalLayout_11.addWidget(self.bt_make_default_interpreter)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_11.addItem(spacerItem1)
        self.bt_check_interpreter = QtWidgets.QPushButton(
            self.tab_interpreters)
        icon = QtGui.QIcon.fromTheme("checkbox")
        self.bt_check_interpreter.setIcon(icon)
        self.bt_check_interpreter.setObjectName("bt_check_interpreter")
        self.verticalLayout_11.addWidget(self.bt_check_interpreter)
        self.horizontalLayout_10.addLayout(self.verticalLayout_11)
        icon = QtGui.QIcon.fromTheme("system-run")
        self.tab_categories.addTab(self.tab_interpreters, icon, "")
        self.tab_compilers = QtWidgets.QWidget()
        self.tab_compilers.setObjectName("tab_compilers")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_compilers)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_4.setSpacing(9)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.tree_compilers = QtWidgets.QTreeWidget(self.tab_compilers)
        self.tree_compilers.setObjectName("tree_compilers")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_compilers)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_compilers)
        self.tree_compilers.header().setCascadingSectionResizes(False)
        self.tree_compilers.header().setDefaultSectionSize(250)
        self.verticalLayout_4.addWidget(self.tree_compilers)
        self.tab_compiler_settings = QtWidgets.QTabWidget(self.tab_compilers)
        self.tab_compiler_settings.setObjectName("tab_compiler_settings")
        self.tab_compiler_setup = QtWidgets.QWidget()
        self.tab_compiler_setup.setObjectName("tab_compiler_setup")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_compiler_setup)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setContentsMargins(6, 6, 6, 6)
        self.formLayout.setObjectName("formLayout")
        self.label_2 = QtWidgets.QLabel(self.tab_compiler_setup)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_compiler = PathLineEdit(self.tab_compiler_setup)
        self.edit_compiler.setObjectName("edit_compiler")
        self.horizontalLayout.addWidget(self.edit_compiler)
        self.bt_select_compiler = QtWidgets.QToolButton(
            self.tab_compiler_setup)
        self.bt_select_compiler.setObjectName("bt_select_compiler")
        self.horizontalLayout.addWidget(self.bt_select_compiler)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.verticalLayout_5.addLayout(self.formLayout)
        self.group_msvc = QtWidgets.QGroupBox(self.tab_compiler_setup)
        self.group_msvc.setCheckable(True)
        self.group_msvc.setChecked(False)
        self.group_msvc.setObjectName("group_msvc")
        self.formLayout_2 = QtWidgets.QFormLayout(self.group_msvc)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_vcvarsall = QtWidgets.QLabel(self.group_msvc)
        self.label_vcvarsall.setObjectName("label_vcvarsall")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_vcvarsall)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.edit_vcvarsall = QtWidgets.QLineEdit(self.group_msvc)
        self.edit_vcvarsall.setObjectName("edit_vcvarsall")
        self.horizontalLayout_2.addWidget(self.edit_vcvarsall)
        self.bt_select_vcvarsall = QtWidgets.QToolButton(self.group_msvc)
        self.bt_select_vcvarsall.setObjectName("bt_select_vcvarsall")
        self.horizontalLayout_2.addWidget(self.bt_select_vcvarsall)
        self.formLayout_2.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_2)
        self.label = QtWidgets.QLabel(self.group_msvc)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label)
        self.combo_vcvarsall_arch = QtWidgets.QComboBox(self.group_msvc)
        self.combo_vcvarsall_arch.setObjectName("combo_vcvarsall_arch")
        self.combo_vcvarsall_arch.addItem("")
        self.combo_vcvarsall_arch.addItem("")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.combo_vcvarsall_arch)
        self.verticalLayout_5.addWidget(self.group_msvc)
        self.groupBox = QtWidgets.QGroupBox(self.tab_compiler_setup)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.table_env_vars = QtWidgets.QTableWidget(self.groupBox)
        self.table_env_vars.setMinimumSize(QtCore.QSize(0, 0))
        self.table_env_vars.setSelectionMode(
            QtWidgets.QAbstractItemView.SingleSelection)
        self.table_env_vars.setSelectionBehavior(
            QtWidgets.QAbstractItemView.SelectRows)
        self.table_env_vars.setObjectName("table_env_vars")
        self.table_env_vars.setColumnCount(2)
        self.table_env_vars.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.table_env_vars.setHorizontalHeaderItem(1, item)
        self.table_env_vars.horizontalHeader().setDefaultSectionSize(150)
        self.table_env_vars.horizontalHeader().setStretchLastSection(True)
        self.table_env_vars.verticalHeader().setVisible(False)
        self.table_env_vars.verticalHeader().setCascadingSectionResizes(False)
        self.horizontalLayout_4.addWidget(self.table_env_vars)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.bt_add_env_var = QtWidgets.QPushButton(self.groupBox)
        self.bt_add_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_env_var.setIcon(icon)
        self.bt_add_env_var.setObjectName("bt_add_env_var")
        self.verticalLayout_3.addWidget(self.bt_add_env_var)
        self.bt_rm_env_var = QtWidgets.QPushButton(self.groupBox)
        self.bt_rm_env_var.setText("")
        icon = QtGui.QIcon.fromTheme("list-remove")
        self.bt_rm_env_var.setIcon(icon)
        self.bt_rm_env_var.setObjectName("bt_rm_env_var")
        self.verticalLayout_3.addWidget(self.bt_rm_env_var)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem2)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.verticalLayout_5.addWidget(self.groupBox)
        self.tab_compiler_settings.addTab(self.tab_compiler_setup, "")
        self.tab_default_options = QtWidgets.QWidget()
        self.tab_default_options.setObjectName("tab_default_options")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_default_options)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setHorizontalSpacing(0)
        self.gridLayout.setObjectName("gridLayout")
        self.stacked_compiler_options = QtWidgets.QStackedWidget(
            self.tab_default_options)
        self.stacked_compiler_options.setObjectName("stacked_compiler_options")
        self.gridLayout.addWidget(self.stacked_compiler_options, 0, 0, 1, 1)
        self.tab_compiler_settings.addTab(self.tab_default_options, "")
        self.verticalLayout_4.addWidget(self.tab_compiler_settings)
        self.verticalLayout_4.setStretch(0, 1)
        self.horizontalLayout_3.addLayout(self.verticalLayout_4)
        self.line_2 = QtWidgets.QFrame(self.tab_compilers)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_3.addWidget(self.line_2)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.bt_add_compiler = QtWidgets.QToolButton(self.tab_compilers)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_compiler.sizePolicy().hasHeightForWidth())
        self.bt_add_compiler.setSizePolicy(sizePolicy)
        self.bt_add_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_compiler.setIcon(icon)
        self.bt_add_compiler.setPopupMode(QtWidgets.QToolButton.InstantPopup)
        self.bt_add_compiler.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.bt_add_compiler.setObjectName("bt_add_compiler")
        self.verticalLayout_2.addWidget(self.bt_add_compiler)
        self.bt_clone_compiler = QtWidgets.QPushButton(self.tab_compilers)
        self.bt_clone_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("edit-copy")
        self.bt_clone_compiler.setIcon(icon)
        self.bt_clone_compiler.setObjectName("bt_clone_compiler")
        self.verticalLayout_2.addWidget(self.bt_clone_compiler)
        self.bt_delete_compiler = QtWidgets.QPushButton(self.tab_compilers)
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_delete_compiler.setIcon(icon)
        self.bt_delete_compiler.setObjectName("bt_delete_compiler")
        self.verticalLayout_2.addWidget(self.bt_delete_compiler)
        self.bt_make_default_compiler = QtWidgets.QPushButton(
            self.tab_compilers)
        icon = QtGui.QIcon.fromTheme("emblem-favorite")
        self.bt_make_default_compiler.setIcon(icon)
        self.bt_make_default_compiler.setObjectName("bt_make_default_compiler")
        self.verticalLayout_2.addWidget(self.bt_make_default_compiler)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.bt_check_compiler = QtWidgets.QPushButton(self.tab_compilers)
        icon = QtGui.QIcon.fromTheme("checkbox")
        self.bt_check_compiler.setIcon(icon)
        self.bt_check_compiler.setObjectName("bt_check_compiler")
        self.verticalLayout_2.addWidget(self.bt_check_compiler)
        self.horizontalLayout_3.addLayout(self.verticalLayout_2)
        icon = QtGui.QIcon.fromTheme("run-build")
        self.tab_categories.addTab(self.tab_compilers, icon, "")
        self.tab_pre_compilers = QtWidgets.QWidget()
        self.tab_pre_compilers.setObjectName("tab_pre_compilers")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_pre_compilers)
        self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_5.setSpacing(0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_6.setSpacing(9)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.tree_pre_compilers = QtWidgets.QTreeWidget(self.tab_pre_compilers)
        self.tree_pre_compilers.setObjectName("tree_pre_compilers")
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_pre_compilers)
        item_0 = QtWidgets.QTreeWidgetItem(self.tree_pre_compilers)
        self.tree_pre_compilers.header().setCascadingSectionResizes(False)
        self.tree_pre_compilers.header().setDefaultSectionSize(250)
        self.verticalLayout_6.addWidget(self.tree_pre_compilers)
        self.group_pre_compiler_settings = QtWidgets.QGroupBox(
            self.tab_pre_compilers)
        self.group_pre_compiler_settings.setObjectName(
            "group_pre_compiler_settings")
        self.formLayout_3 = QtWidgets.QFormLayout(
            self.group_pre_compiler_settings)
        self.formLayout_3.setObjectName("formLayout_3")
        self.label_3 = QtWidgets.QLabel(self.group_pre_compiler_settings)
        self.label_3.setObjectName("label_3")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label_3)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setContentsMargins(0, -1, -1, -1)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.edit_pre_compiler_path = QtWidgets.QLineEdit(
            self.group_pre_compiler_settings)
        self.edit_pre_compiler_path.setObjectName("edit_pre_compiler_path")
        self.horizontalLayout_6.addWidget(self.edit_pre_compiler_path)
        self.bt_select_pre_compiler_path = QtWidgets.QToolButton(
            self.group_pre_compiler_settings)
        self.bt_select_pre_compiler_path.setObjectName(
            "bt_select_pre_compiler_path")
        self.horizontalLayout_6.addWidget(self.bt_select_pre_compiler_path)
        self.formLayout_3.setLayout(0, QtWidgets.QFormLayout.FieldRole,
                                    self.horizontalLayout_6)
        self.label_5 = QtWidgets.QLabel(self.group_pre_compiler_settings)
        self.label_5.setObjectName("label_5")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole,
                                    self.label_5)
        self.edit_pre_compiler_flags = QtWidgets.QLineEdit(
            self.group_pre_compiler_settings)
        self.edit_pre_compiler_flags.setObjectName("edit_pre_compiler_flags")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_pre_compiler_flags)
        self.label_7 = QtWidgets.QLabel(self.group_pre_compiler_settings)
        self.label_7.setObjectName("label_7")
        self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                    self.label_7)
        self.edit_pre_compiler_output_pattern = QtWidgets.QLineEdit(
            self.group_pre_compiler_settings)
        self.edit_pre_compiler_output_pattern.setObjectName(
            "edit_pre_compiler_output_pattern")
        self.formLayout_3.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                    self.edit_pre_compiler_output_pattern)
        self.verticalLayout_6.addWidget(self.group_pre_compiler_settings)
        self.verticalLayout_6.setStretch(0, 1)
        self.horizontalLayout_5.addLayout(self.verticalLayout_6)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setContentsMargins(6, 6, 6, 6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.bt_add_pre_compiler = QtWidgets.QToolButton(
            self.tab_pre_compilers)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.bt_add_pre_compiler.sizePolicy().hasHeightForWidth())
        self.bt_add_pre_compiler.setSizePolicy(sizePolicy)
        self.bt_add_pre_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("list-add")
        self.bt_add_pre_compiler.setIcon(icon)
        self.bt_add_pre_compiler.setPopupMode(
            QtWidgets.QToolButton.InstantPopup)
        self.bt_add_pre_compiler.setToolButtonStyle(
            QtCore.Qt.ToolButtonTextBesideIcon)
        self.bt_add_pre_compiler.setObjectName("bt_add_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_add_pre_compiler)
        self.bt_clone_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        self.bt_clone_pre_compiler.setMinimumSize(QtCore.QSize(100, 0))
        icon = QtGui.QIcon.fromTheme("edit-copy")
        self.bt_clone_pre_compiler.setIcon(icon)
        self.bt_clone_pre_compiler.setObjectName("bt_clone_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_clone_pre_compiler)
        self.bt_delete_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        icon = QtGui.QIcon.fromTheme("edit-delete")
        self.bt_delete_pre_compiler.setIcon(icon)
        self.bt_delete_pre_compiler.setObjectName("bt_delete_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_delete_pre_compiler)
        self.bt_make_default_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        icon = QtGui.QIcon.fromTheme("emblem-favorite")
        self.bt_make_default_pre_compiler.setIcon(icon)
        self.bt_make_default_pre_compiler.setObjectName(
            "bt_make_default_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_make_default_pre_compiler)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem4)
        self.bt_check_pre_compiler = QtWidgets.QPushButton(
            self.tab_pre_compilers)
        icon = QtGui.QIcon.fromTheme("checkbox")
        self.bt_check_pre_compiler.setIcon(icon)
        self.bt_check_pre_compiler.setObjectName("bt_check_pre_compiler")
        self.verticalLayout_7.addWidget(self.bt_check_pre_compiler)
        self.horizontalLayout_5.addLayout(self.verticalLayout_7)
        icon = QtGui.QIcon.fromTheme("database-index")
        self.tab_categories.addTab(self.tab_pre_compilers, icon, "")
        self.verticalLayout.addWidget(self.tab_categories)

        self.retranslateUi(Form)
        self.tab_categories.setCurrentIndex(0)
        self.tab_widget_interpreter_settings.setCurrentIndex(0)
        self.tab_compiler_settings.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        from hackedit.api.gettext import get_translation
        _ = get_translation(package="hackedit")
        Form.setWindowTitle(_("Form"))
        self.tree_interpreters.headerItem().setText(0, _("Name"))
        self.tree_interpreters.headerItem().setText(1, _("Type"))
        self.tree_interpreters.headerItem().setText(2, _("Version"))
        self.tree_interpreters.headerItem().setText(3, _("Default"))
        __sortingEnabled = self.tree_interpreters.isSortingEnabled()
        self.tree_interpreters.setSortingEnabled(False)
        self.tree_interpreters.topLevelItem(0).setText(0, _("Auto-detected"))
        self.tree_interpreters.topLevelItem(1).setText(0, _("Manual"))
        self.tree_interpreters.setSortingEnabled(__sortingEnabled)
        self.label_4.setText(_("Interpreter:"))
        self.edit_interpreter.setToolTip(_("Interpreter path or command"))
        self.bt_select_interpreter.setToolTip(_("Select interpreter"))
        self.bt_select_interpreter.setText(_("..."))
        self.groupBox_2.setTitle(_("Environment"))
        self.table_interpreter_env_vars.setToolTip(
            _("<html><head/><body><p>The list of environment variables to set for running a script.</p><p>Note that the values defined in this list erase any previous value you might have defined in your system (except for empty values  and for the PATH environment variable which get prepended to the existing path).</p><p><br/></p></body></html>"
              ))
        item = self.table_interpreter_env_vars.horizontalHeaderItem(0)
        item.setText(_("Key"))
        item = self.table_interpreter_env_vars.horizontalHeaderItem(1)
        item.setText(_("Value"))
        self.bt_add_interpreter_env_var.setToolTip(
            _("Add an environment variable"))
        self.bt_rm_interpreter_env_var.setToolTip(
            _("Remove the selected environment variable."))
        self.tab_widget_interpreter_settings.setTabText(
            self.tab_widget_interpreter_settings.indexOf(
                self.tab_interpreter_setup), _("Setup"))
        self.tab_widget_interpreter_settings.setTabText(
            self.tab_widget_interpreter_settings.indexOf(self.tab_packages),
            _("Packages"))
        self.bt_add_interpreter.setToolTip(_("Add a new interpreter"))
        self.bt_add_interpreter.setText(_("Add"))
        self.bt_clone_interpreter.setToolTip(
            _("Clone the selected interpreter"))
        self.bt_clone_interpreter.setText(_("Clone"))
        self.bt_delete_interpreter.setToolTip(
            _("Delete the selected interpreter"))
        self.bt_delete_interpreter.setText(_("Delete"))
        self.bt_make_default_interpreter.setToolTip(
            _("Make the selected interpreter the default for its type."))
        self.bt_make_default_interpreter.setText(_("Make default"))
        self.bt_check_interpreter.setToolTip(
            _("Check if the selected interpreter works"))
        self.bt_check_interpreter.setText(_("Check"))
        self.tab_categories.setTabText(
            self.tab_categories.indexOf(self.tab_interpreters),
            _("Interpreters"))
        self.tree_compilers.headerItem().setText(0, _("Name"))
        self.tree_compilers.headerItem().setText(1, _("Type"))
        self.tree_compilers.headerItem().setText(2, _("Version"))
        self.tree_compilers.headerItem().setText(3, _("Default"))
        __sortingEnabled = self.tree_compilers.isSortingEnabled()
        self.tree_compilers.setSortingEnabled(False)
        self.tree_compilers.topLevelItem(0).setText(0, _("Auto-detected"))
        self.tree_compilers.topLevelItem(1).setText(0, _("Manual"))
        self.tree_compilers.setSortingEnabled(__sortingEnabled)
        self.label_2.setText(_("Compiler:"))
        self.edit_compiler.setToolTip(_("Compiler path or command"))
        self.bt_select_compiler.setToolTip(_("Select compiler"))
        self.bt_select_compiler.setText(_("..."))
        self.group_msvc.setToolTip(
            _("Check this if you\'re using a MSVC based compiler."))
        self.group_msvc.setTitle(_("MSVC S&upport"))
        self.label_vcvarsall.setText(_("VCVARSALL:"))
        self.edit_vcvarsall.setToolTip(
            _("Path to vcvarsall needed to setup a MSVC based compiler."))
        self.bt_select_vcvarsall.setToolTip(
            _("Select vcvarsall.bat if the compiler is a MSVC based compiler.")
        )
        self.bt_select_vcvarsall.setText(_("..."))
        self.label.setText(_("Architecture:"))
        self.combo_vcvarsall_arch.setToolTip(
            _("The MSVC architecture: 32 bits or 64 bits"))
        self.combo_vcvarsall_arch.setItemText(0, _("x86"))
        self.combo_vcvarsall_arch.setItemText(1, _("x64"))
        self.groupBox.setTitle(_("Environment"))
        self.table_env_vars.setToolTip(
            _("<html><head/><body><p>The list of environment variables to set fore compiling a file.</p><p>Note that the values defined in this list erase any previous value you might have defined in your system (except for empty values and for the PATH environment variable which get prepended to the existing PATH).</p><p><br/></p></body></html>"
              ))
        item = self.table_env_vars.horizontalHeaderItem(0)
        item.setText(_("Key"))
        item = self.table_env_vars.horizontalHeaderItem(1)
        item.setText(_("Value"))
        self.bt_add_env_var.setToolTip(
            _("Add an environment variable to set on the compiler process."))
        self.bt_rm_env_var.setToolTip(
            _("Remove the selected environment variable."))
        self.tab_compiler_settings.setTabText(
            self.tab_compiler_settings.indexOf(self.tab_compiler_setup),
            _("Setup"))
        self.tab_compiler_settings.setTabText(
            self.tab_compiler_settings.indexOf(self.tab_default_options),
            _("Default options"))
        self.bt_add_compiler.setToolTip(
            _("<html><head/><body><p>Add a new compiler</p></body></html>"))
        self.bt_add_compiler.setText(_("Add"))
        self.bt_clone_compiler.setToolTip(_("Clone the selected compiler"))
        self.bt_clone_compiler.setText(_("Clone"))
        self.bt_delete_compiler.setToolTip(_("Delete the selected compiler"))
        self.bt_delete_compiler.setText(_("Delete"))
        self.bt_make_default_compiler.setToolTip(
            _("Make the selected compiler the default for its type"))
        self.bt_make_default_compiler.setText(_("Make default"))
        self.bt_check_compiler.setToolTip(
            _("Check if the selected compiler works"))
        self.bt_check_compiler.setText(_("Check"))
        self.tab_categories.setTabText(
            self.tab_categories.indexOf(self.tab_compilers), _("Compilers"))
        self.tab_categories.setTabToolTip(
            self.tab_categories.indexOf(self.tab_compilers),
            _("This tab lets you configure compilers used by the hackedit build system."
              ))
        self.tree_pre_compilers.headerItem().setText(0, _("Name"))
        self.tree_pre_compilers.headerItem().setText(1, _("Type"))
        self.tree_pre_compilers.headerItem().setText(2, _("Version"))
        self.tree_pre_compilers.headerItem().setText(3, _("Default"))
        __sortingEnabled = self.tree_pre_compilers.isSortingEnabled()
        self.tree_pre_compilers.setSortingEnabled(False)
        self.tree_pre_compilers.topLevelItem(0).setText(0, _("Auto-detected"))
        self.tree_pre_compilers.topLevelItem(1).setText(0, _("Manual"))
        self.tree_pre_compilers.setSortingEnabled(__sortingEnabled)
        self.group_pre_compiler_settings.setTitle(_("Settings"))
        self.label_3.setText(_("Pre-compiler:"))
        self.edit_pre_compiler_path.setToolTip(_("Path of the pre-compiler"))
        self.bt_select_pre_compiler_path.setToolTip(_("Select pre-compiler"))
        self.bt_select_pre_compiler_path.setText(_("..."))
        self.label_5.setText(_("Flags:"))
        self.edit_pre_compiler_flags.setToolTip(_("Pre-compiler flags"))
        self.label_7.setText(_("Output pattern:"))
        self.edit_pre_compiler_output_pattern.setToolTip(
            _("Output pattern (e.g. $input_file_name.cob)"))
        self.bt_add_pre_compiler.setToolTip(_("Add a new pre-compiler"))
        self.bt_add_pre_compiler.setText(_("Add"))
        self.bt_clone_pre_compiler.setToolTip(
            _("Clone the selected pre-compiler"))
        self.bt_clone_pre_compiler.setText(_("Clone"))
        self.bt_delete_pre_compiler.setToolTip(
            _("Delete the selected pre-compiler"))
        self.bt_delete_pre_compiler.setText(_("Delete"))
        self.bt_make_default_pre_compiler.setToolTip(
            _("Make the selected pre-compiler the default for its type."))
        self.bt_make_default_pre_compiler.setText(_("Make default"))
        self.bt_check_pre_compiler.setToolTip(
            _("Check if the selected pre-compiler works"))
        self.bt_check_pre_compiler.setText(_("Check"))
        self.tab_categories.setTabText(
            self.tab_categories.indexOf(self.tab_pre_compilers),
            _("Pre-compilers"))
        self.tab_categories.setTabToolTip(
            self.tab_categories.indexOf(self.tab_pre_compilers),
            _("<html><head/><body><p>This tab let your configure pre-compilers or transpilers used by the hackedit\'s build system</p><p><br/></p><p>Pre-compilers are tools that process a source file into another source file (e.g. sass, flex, bison or any tools that let you extend a language with custom syntax).</p><p><br/></p><p>The pre-compiler pass will alaways occur before the compiler pass.</p></body></html>"
              ))