Preferences/ConfigurationPages/HelpDocumentationPage.py

changeset 3190
a9a94491c4fd
parent 3186
a05eff845522
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
106 """ 106 """
107 Private slot to select the Python 2 documentation directory. 107 Private slot to select the Python 2 documentation directory.
108 """ 108 """
109 entry = E5FileDialog.getOpenFileName( 109 entry = E5FileDialog.getOpenFileName(
110 self, 110 self,
111 self.trUtf8("Select Python 2 documentation entry"), 111 self.tr("Select Python 2 documentation entry"),
112 QUrl(self.python2DocDirEdit.text()).path(), 112 QUrl(self.python2DocDirEdit.text()).path(),
113 self.trUtf8( 113 self.tr(
114 "HTML Files (*.html *.htm);;" 114 "HTML Files (*.html *.htm);;"
115 "Compressed Help Files (*.chm);;" 115 "Compressed Help Files (*.chm);;"
116 "All Files (*)")) 116 "All Files (*)"))
117 117
118 if entry: 118 if entry:
123 """ 123 """
124 Private slot to select the Python 3 documentation directory. 124 Private slot to select the Python 3 documentation directory.
125 """ 125 """
126 entry = E5FileDialog.getOpenFileName( 126 entry = E5FileDialog.getOpenFileName(
127 self, 127 self,
128 self.trUtf8("Select Python 3 documentation entry"), 128 self.tr("Select Python 3 documentation entry"),
129 QUrl(self.pythonDocDirEdit.text()).path(), 129 QUrl(self.pythonDocDirEdit.text()).path(),
130 self.trUtf8( 130 self.tr(
131 "HTML Files (*.html *.htm);;" 131 "HTML Files (*.html *.htm);;"
132 "Compressed Help Files (*.chm);;" 132 "Compressed Help Files (*.chm);;"
133 "All Files (*)")) 133 "All Files (*)"))
134 134
135 if entry: 135 if entry:
140 """ 140 """
141 Private slot to select the Qt4 documentation directory. 141 Private slot to select the Qt4 documentation directory.
142 """ 142 """
143 entry = E5FileDialog.getOpenFileName( 143 entry = E5FileDialog.getOpenFileName(
144 self, 144 self,
145 self.trUtf8("Select Qt4 documentation entry"), 145 self.tr("Select Qt4 documentation entry"),
146 QUrl(self.qt4DocDirEdit.text()).path(), 146 QUrl(self.qt4DocDirEdit.text()).path(),
147 self.trUtf8("HTML Files (*.html *.htm);;All Files (*)")) 147 self.tr("HTML Files (*.html *.htm);;All Files (*)"))
148 148
149 if entry: 149 if entry:
150 self.qt4DocDirEdit.setText(Utilities.toNativeSeparators(entry)) 150 self.qt4DocDirEdit.setText(Utilities.toNativeSeparators(entry))
151 151
152 @pyqtSlot() 152 @pyqtSlot()
154 """ 154 """
155 Private slot to select the Qt5 documentation directory. 155 Private slot to select the Qt5 documentation directory.
156 """ 156 """
157 entry = E5FileDialog.getOpenFileName( 157 entry = E5FileDialog.getOpenFileName(
158 self, 158 self,
159 self.trUtf8("Select Qt5 documentation entry"), 159 self.tr("Select Qt5 documentation entry"),
160 QUrl(self.qt5DocDirEdit.text()).path(), 160 QUrl(self.qt5DocDirEdit.text()).path(),
161 self.trUtf8("HTML Files (*.html *.htm);;All Files (*)")) 161 self.tr("HTML Files (*.html *.htm);;All Files (*)"))
162 162
163 if entry: 163 if entry:
164 self.qt5DocDirEdit.setText(Utilities.toNativeSeparators(entry)) 164 self.qt5DocDirEdit.setText(Utilities.toNativeSeparators(entry))
165 165
166 @pyqtSlot() 166 @pyqtSlot()
168 """ 168 """
169 Private slot to select the PyQt4 documentation directory. 169 Private slot to select the PyQt4 documentation directory.
170 """ 170 """
171 entry = E5FileDialog.getOpenFileName( 171 entry = E5FileDialog.getOpenFileName(
172 self, 172 self,
173 self.trUtf8("Select PyQt4 documentation entry"), 173 self.tr("Select PyQt4 documentation entry"),
174 QUrl(self.pyqt4DocDirEdit.text()).path(), 174 QUrl(self.pyqt4DocDirEdit.text()).path(),
175 self.trUtf8("HTML Files (*.html *.htm);;All Files (*)")) 175 self.tr("HTML Files (*.html *.htm);;All Files (*)"))
176 176
177 if entry: 177 if entry:
178 self.pyqt4DocDirEdit.setText(Utilities.toNativeSeparators(entry)) 178 self.pyqt4DocDirEdit.setText(Utilities.toNativeSeparators(entry))
179 179
180 @pyqtSlot() 180 @pyqtSlot()
182 """ 182 """
183 Private slot to select the PyQt5 documentation directory. 183 Private slot to select the PyQt5 documentation directory.
184 """ 184 """
185 entry = E5FileDialog.getOpenFileName( 185 entry = E5FileDialog.getOpenFileName(
186 self, 186 self,
187 self.trUtf8("Select PyQt5 documentation entry"), 187 self.tr("Select PyQt5 documentation entry"),
188 QUrl(self.pyqt4DocDirEdit.text()).path(), 188 QUrl(self.pyqt4DocDirEdit.text()).path(),
189 self.trUtf8("HTML Files (*.html *.htm);;All Files (*)")) 189 self.tr("HTML Files (*.html *.htm);;All Files (*)"))
190 190
191 if entry: 191 if entry:
192 self.pyqt5DocDirEdit.setText(Utilities.toNativeSeparators(entry)) 192 self.pyqt5DocDirEdit.setText(Utilities.toNativeSeparators(entry))
193 193
194 @pyqtSlot() 194 @pyqtSlot()
196 """ 196 """
197 Private slot to select the PySide documentation directory. 197 Private slot to select the PySide documentation directory.
198 """ 198 """
199 entry = E5FileDialog.getOpenFileName( 199 entry = E5FileDialog.getOpenFileName(
200 self, 200 self,
201 self.trUtf8("Select PySide documentation entry"), 201 self.tr("Select PySide documentation entry"),
202 QUrl(self.pysideDocDirEdit.text()).path(), 202 QUrl(self.pysideDocDirEdit.text()).path(),
203 self.trUtf8("HTML Files (*.html *.htm);;All Files (*)")) 203 self.tr("HTML Files (*.html *.htm);;All Files (*)"))
204 204
205 if entry: 205 if entry:
206 self.pysideDocDirEdit.setText(Utilities.toNativeSeparators(entry)) 206 self.pysideDocDirEdit.setText(Utilities.toNativeSeparators(entry))
207 207
208 208

eric ide

mercurial