src/eric7/Project/Ui_TranslationPropertiesDialog.py

branch
eric7
changeset 10743
5d3a5a05114e
child 10745
2921faddeaec
equal deleted inserted replaced
10742:7aa41173b44b 10743:5d3a5a05114e
1 # Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric7_default/src/eric7/Project/TranslationPropertiesDialog.ui'
2 #
3 # Created by: PyQt6 UI code generator 6.7.0
4 #
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
6 # run again. Do not edit this file unless you know what you are doing.
7
8
9 from PyQt6 import QtCore, QtGui, QtWidgets
10
11
12 class Ui_TranslationPropertiesDialog(object):
13 def setupUi(self, TranslationPropertiesDialog):
14 TranslationPropertiesDialog.setObjectName("TranslationPropertiesDialog")
15 TranslationPropertiesDialog.resize(700, 543)
16 TranslationPropertiesDialog.setSizeGripEnabled(True)
17 self.verticalLayout = QtWidgets.QVBoxLayout(TranslationPropertiesDialog)
18 self.verticalLayout.setObjectName("verticalLayout")
19 self.gridLayout = QtWidgets.QGridLayout()
20 self.gridLayout.setObjectName("gridLayout")
21 self.label_2 = QtWidgets.QLabel(parent=TranslationPropertiesDialog)
22 self.label_2.setObjectName("label_2")
23 self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
24 self.transPatternPicker = EricPathPicker(parent=TranslationPropertiesDialog)
25 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
26 sizePolicy.setHorizontalStretch(0)
27 sizePolicy.setVerticalStretch(0)
28 sizePolicy.setHeightForWidth(self.transPatternPicker.sizePolicy().hasHeightForWidth())
29 self.transPatternPicker.setSizePolicy(sizePolicy)
30 self.transPatternPicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
31 self.transPatternPicker.setObjectName("transPatternPicker")
32 self.gridLayout.addWidget(self.transPatternPicker, 0, 1, 1, 1)
33 self.textLabel1_3 = QtWidgets.QLabel(parent=TranslationPropertiesDialog)
34 self.textLabel1_3.setWordWrap(True)
35 self.textLabel1_3.setObjectName("textLabel1_3")
36 self.gridLayout.addWidget(self.textLabel1_3, 1, 0, 1, 2)
37 self.label = QtWidgets.QLabel(parent=TranslationPropertiesDialog)
38 self.label.setObjectName("label")
39 self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
40 self.transBinPathPicker = EricPathPicker(parent=TranslationPropertiesDialog)
41 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred)
42 sizePolicy.setHorizontalStretch(0)
43 sizePolicy.setVerticalStretch(0)
44 sizePolicy.setHeightForWidth(self.transBinPathPicker.sizePolicy().hasHeightForWidth())
45 self.transBinPathPicker.setSizePolicy(sizePolicy)
46 self.transBinPathPicker.setFocusPolicy(QtCore.Qt.FocusPolicy.StrongFocus)
47 self.transBinPathPicker.setObjectName("transBinPathPicker")
48 self.gridLayout.addWidget(self.transBinPathPicker, 2, 1, 1, 1)
49 self.label_3 = QtWidgets.QLabel(parent=TranslationPropertiesDialog)
50 self.label_3.setObjectName("label_3")
51 self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
52 self.sourceStartPathEdit = QtWidgets.QLineEdit(parent=TranslationPropertiesDialog)
53 self.sourceStartPathEdit.setObjectName("sourceStartPathEdit")
54 self.gridLayout.addWidget(self.sourceStartPathEdit, 3, 1, 1, 1)
55 self.verticalLayout.addLayout(self.gridLayout)
56 self.exceptionsGroup = QtWidgets.QGroupBox(parent=TranslationPropertiesDialog)
57 self.exceptionsGroup.setObjectName("exceptionsGroup")
58 self._4 = QtWidgets.QGridLayout(self.exceptionsGroup)
59 self._4.setObjectName("_4")
60 self.exceptDirButton = QtWidgets.QPushButton(parent=self.exceptionsGroup)
61 self.exceptDirButton.setObjectName("exceptDirButton")
62 self._4.addWidget(self.exceptDirButton, 2, 3, 1, 1)
63 self.exceptFileButton = QtWidgets.QPushButton(parent=self.exceptionsGroup)
64 self.exceptFileButton.setObjectName("exceptFileButton")
65 self._4.addWidget(self.exceptFileButton, 2, 2, 1, 1)
66 self.addExceptionButton = QtWidgets.QPushButton(parent=self.exceptionsGroup)
67 self.addExceptionButton.setEnabled(False)
68 self.addExceptionButton.setObjectName("addExceptionButton")
69 self._4.addWidget(self.addExceptionButton, 2, 1, 1, 1)
70 self.deleteExceptionButton = QtWidgets.QPushButton(parent=self.exceptionsGroup)
71 self.deleteExceptionButton.setEnabled(False)
72 self.deleteExceptionButton.setObjectName("deleteExceptionButton")
73 self._4.addWidget(self.deleteExceptionButton, 2, 0, 1, 1)
74 self.exceptionEdit = QtWidgets.QLineEdit(parent=self.exceptionsGroup)
75 self.exceptionEdit.setObjectName("exceptionEdit")
76 self._4.addWidget(self.exceptionEdit, 1, 0, 1, 4)
77 self.exceptionsList = QtWidgets.QListWidget(parent=self.exceptionsGroup)
78 self.exceptionsList.setAlternatingRowColors(True)
79 self.exceptionsList.setObjectName("exceptionsList")
80 self._4.addWidget(self.exceptionsList, 0, 0, 1, 4)
81 self.verticalLayout.addWidget(self.exceptionsGroup)
82 self.buttonBox = QtWidgets.QDialogButtonBox(parent=TranslationPropertiesDialog)
83 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
84 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
85 self.buttonBox.setObjectName("buttonBox")
86 self.verticalLayout.addWidget(self.buttonBox)
87 self.label_2.setBuddy(self.transPatternPicker)
88 self.label.setBuddy(self.transBinPathPicker)
89 self.label_3.setBuddy(self.sourceStartPathEdit)
90
91 self.retranslateUi(TranslationPropertiesDialog)
92 self.buttonBox.accepted.connect(TranslationPropertiesDialog.accept) # type: ignore
93 self.buttonBox.rejected.connect(TranslationPropertiesDialog.reject) # type: ignore
94 QtCore.QMetaObject.connectSlotsByName(TranslationPropertiesDialog)
95 TranslationPropertiesDialog.setTabOrder(self.transPatternPicker, self.transBinPathPicker)
96 TranslationPropertiesDialog.setTabOrder(self.transBinPathPicker, self.sourceStartPathEdit)
97 TranslationPropertiesDialog.setTabOrder(self.sourceStartPathEdit, self.exceptionsList)
98 TranslationPropertiesDialog.setTabOrder(self.exceptionsList, self.exceptionEdit)
99 TranslationPropertiesDialog.setTabOrder(self.exceptionEdit, self.deleteExceptionButton)
100 TranslationPropertiesDialog.setTabOrder(self.deleteExceptionButton, self.addExceptionButton)
101 TranslationPropertiesDialog.setTabOrder(self.addExceptionButton, self.exceptFileButton)
102 TranslationPropertiesDialog.setTabOrder(self.exceptFileButton, self.exceptDirButton)
103
104 def retranslateUi(self, TranslationPropertiesDialog):
105 _translate = QtCore.QCoreApplication.translate
106 TranslationPropertiesDialog.setWindowTitle(_translate("TranslationPropertiesDialog", "Translation Properties"))
107 self.label_2.setText(_translate("TranslationPropertiesDialog", "&Translation Path Pattern:"))
108 self.transPatternPicker.setToolTip(_translate("TranslationPropertiesDialog", "Enter the path pattern for the translation files"))
109 self.transPatternPicker.setWhatsThis(_translate("TranslationPropertiesDialog", "<b>Translation Pattern</b>\n"
110 "<p>Enter the path pattern for the translation files using %language% at the place of the language code (e.g. /path_to_eric/i18n/eric7_%language%.ts). This will result in translation files like /path_to_eric/i18n/eric7_de.ts.</p>"))
111 self.textLabel1_3.setText(_translate("TranslationPropertiesDialog", "(Use \'%language%\' where the language code should be inserted, e.g. i18n/eric7_%language%.ts)"))
112 self.label.setText(_translate("TranslationPropertiesDialog", "&Binary Translations Path:"))
113 self.transBinPathPicker.setToolTip(_translate("TranslationPropertiesDialog", "Enter the path for the binary translation files (*.qm)"))
114 self.transBinPathPicker.setWhatsThis(_translate("TranslationPropertiesDialog", "<b>Binary Translations Path</b>\n"
115 "<p>Enter the directory for the binary translation files (*.qm). Leave it empty to store them together with the *.ts files.</p>"))
116 self.label_3.setText(_translate("TranslationPropertiesDialog", "&Source Start Path:"))
117 self.sourceStartPathEdit.setToolTip(_translate("TranslationPropertiesDialog", "Enter the start of the sources directory relative to the project directory"))
118 self.exceptionsGroup.setTitle(_translate("TranslationPropertiesDialog", "Exclude from translation"))
119 self.exceptDirButton.setToolTip(_translate("TranslationPropertiesDialog", "Press to select a directory via a selection dialog"))
120 self.exceptDirButton.setText(_translate("TranslationPropertiesDialog", "Select d&irectory..."))
121 self.exceptFileButton.setToolTip(_translate("TranslationPropertiesDialog", "Press to select a file via a selection dialog"))
122 self.exceptFileButton.setText(_translate("TranslationPropertiesDialog", "Select &file..."))
123 self.addExceptionButton.setToolTip(_translate("TranslationPropertiesDialog", "Press to add the entered path or file to the list"))
124 self.addExceptionButton.setText(_translate("TranslationPropertiesDialog", "&Add"))
125 self.deleteExceptionButton.setToolTip(_translate("TranslationPropertiesDialog", "Press to delete the selected entry from the list"))
126 self.deleteExceptionButton.setText(_translate("TranslationPropertiesDialog", "&Delete"))
127 self.exceptionEdit.setToolTip(_translate("TranslationPropertiesDialog", "Enter a path or file to be added"))
128 self.exceptionsList.setToolTip(_translate("TranslationPropertiesDialog", "List of paths or files to excude from translation"))
129 self.exceptionsList.setSortingEnabled(True)
130 from eric7.EricWidgets.EricPathPicker import EricPathPicker

eric ide

mercurial