--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/eric7/Templates/Ui_TemplatePropertiesDialog.py Fri Jun 07 10:05:06 2024 +0200 @@ -0,0 +1,91 @@ +# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/Templates/TemplatePropertiesDialog.ui' +# +# Created by: PyQt6 UI code generator 6.7.0 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_TemplatePropertiesDialog(object): + def setupUi(self, TemplatePropertiesDialog): + TemplatePropertiesDialog.setObjectName("TemplatePropertiesDialog") + TemplatePropertiesDialog.resize(448, 323) + TemplatePropertiesDialog.setSizeGripEnabled(True) + self.verticalLayout = QtWidgets.QVBoxLayout(TemplatePropertiesDialog) + self.verticalLayout.setObjectName("verticalLayout") + self.gridLayout = QtWidgets.QGridLayout() + self.gridLayout.setObjectName("gridLayout") + self.textLabel1 = QtWidgets.QLabel(parent=TemplatePropertiesDialog) + self.textLabel1.setObjectName("textLabel1") + self.gridLayout.addWidget(self.textLabel1, 0, 0, 1, 1) + self.nameEdit = QtWidgets.QLineEdit(parent=TemplatePropertiesDialog) + self.nameEdit.setObjectName("nameEdit") + self.gridLayout.addWidget(self.nameEdit, 0, 1, 1, 1) + self.descriptionLabel = QtWidgets.QLabel(parent=TemplatePropertiesDialog) + self.descriptionLabel.setObjectName("descriptionLabel") + self.gridLayout.addWidget(self.descriptionLabel, 1, 0, 1, 1) + self.descriptionEdit = QtWidgets.QLineEdit(parent=TemplatePropertiesDialog) + self.descriptionEdit.setObjectName("descriptionEdit") + self.gridLayout.addWidget(self.descriptionEdit, 1, 1, 1, 1) + self.groupLabel = QtWidgets.QLabel(parent=TemplatePropertiesDialog) + self.groupLabel.setObjectName("groupLabel") + self.gridLayout.addWidget(self.groupLabel, 2, 0, 1, 1) + self.groupCombo = QtWidgets.QComboBox(parent=TemplatePropertiesDialog) + self.groupCombo.setToolTip("") + self.groupCombo.setObjectName("groupCombo") + self.gridLayout.addWidget(self.groupCombo, 2, 1, 1, 1) + self.templateLabel = QtWidgets.QLabel(parent=TemplatePropertiesDialog) + self.templateLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignTop) + self.templateLabel.setObjectName("templateLabel") + self.gridLayout.addWidget(self.templateLabel, 3, 0, 1, 1) + self.templateEdit = QtWidgets.QTextEdit(parent=TemplatePropertiesDialog) + font = QtGui.QFont() + font.setFamily("Monospace") + font.setPointSize(9) + self.templateEdit.setFont(font) + self.templateEdit.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap) + self.templateEdit.setAcceptRichText(False) + self.templateEdit.setObjectName("templateEdit") + self.gridLayout.addWidget(self.templateEdit, 3, 1, 3, 1) + self.helpButton = QtWidgets.QPushButton(parent=TemplatePropertiesDialog) + self.helpButton.setObjectName("helpButton") + self.gridLayout.addWidget(self.helpButton, 4, 0, 1, 1) + spacerItem = QtWidgets.QSpacerItem(84, 98, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding) + self.gridLayout.addItem(spacerItem, 5, 0, 1, 1) + self.verticalLayout.addLayout(self.gridLayout) + self.buttonBox = QtWidgets.QDialogButtonBox(parent=TemplatePropertiesDialog) + self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) + self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) + self.buttonBox.setObjectName("buttonBox") + self.verticalLayout.addWidget(self.buttonBox) + + self.retranslateUi(TemplatePropertiesDialog) + self.buttonBox.rejected.connect(TemplatePropertiesDialog.reject) # type: ignore + self.buttonBox.accepted.connect(TemplatePropertiesDialog.accept) # type: ignore + QtCore.QMetaObject.connectSlotsByName(TemplatePropertiesDialog) + TemplatePropertiesDialog.setTabOrder(self.nameEdit, self.descriptionEdit) + TemplatePropertiesDialog.setTabOrder(self.descriptionEdit, self.groupCombo) + TemplatePropertiesDialog.setTabOrder(self.groupCombo, self.templateEdit) + TemplatePropertiesDialog.setTabOrder(self.templateEdit, self.helpButton) + TemplatePropertiesDialog.setTabOrder(self.helpButton, self.buttonBox) + + def retranslateUi(self, TemplatePropertiesDialog): + _translate = QtCore.QCoreApplication.translate + TemplatePropertiesDialog.setWindowTitle(_translate("TemplatePropertiesDialog", "Template Properties")) + self.textLabel1.setText(_translate("TemplatePropertiesDialog", "Name:")) + self.nameEdit.setToolTip(_translate("TemplatePropertiesDialog", "Enter the name of the template/group. Templates are autocompleted upon this name.")) + self.descriptionLabel.setText(_translate("TemplatePropertiesDialog", "Description:")) + self.descriptionEdit.setToolTip(_translate("TemplatePropertiesDialog", "Enter a description for the template")) + self.groupLabel.setText(_translate("TemplatePropertiesDialog", "Group:")) + self.templateLabel.setText(_translate("TemplatePropertiesDialog", "Template:")) + self.templateEdit.setToolTip(_translate("TemplatePropertiesDialog", "Enter the text of the template")) + self.templateEdit.setWhatsThis(_translate("TemplatePropertiesDialog", "<b>Template Text</b>\n" +"<p>Enter the template text in this area. Every occurrence of $VAR$ will be replaced\n" +"by the associated text when the template is applied. Predefined variables may be used in the template. The separator character might\n" +"be changed via the preferences dialog.</p>\n" +"<p>Press the help button for more information.</p>")) + self.helpButton.setText(_translate("TemplatePropertiesDialog", "&Help")) + self.helpButton.setShortcut(_translate("TemplatePropertiesDialog", "Alt+H"))