Project/SpellingPropertiesDialog.py

changeset 882
34b86be88bf0
parent 880
52ed20236a1c
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
881:ff23d907f87b 882:34b86be88bf0
11 11
12 from PyQt4.QtCore import * 12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import * 13 from PyQt4.QtGui import *
14 14
15 from E5Gui.E5Completers import E5FileCompleter 15 from E5Gui.E5Completers import E5FileCompleter
16 from E5Gui import E5FileDialog
16 17
17 from QScintilla.SpellChecker import SpellChecker 18 from QScintilla.SpellChecker import SpellChecker
18 19
19 from .Ui_SpellingPropertiesDialog import Ui_SpellingPropertiesDialog 20 from .Ui_SpellingPropertiesDialog import Ui_SpellingPropertiesDialog
20 21
69 Private slot to select the project word list file. 70 Private slot to select the project word list file.
70 """ 71 """
71 pwl = self.pwlEdit.text() 72 pwl = self.pwlEdit.text()
72 if not pwl: 73 if not pwl:
73 pwl = self.project.ppath 74 pwl = self.project.ppath
74 file = QFileDialog.getOpenFileName( 75 file = E5FileDialog.getOpenFileName(
75 self, 76 self,
76 self.trUtf8("Select project word list"), 77 self.trUtf8("Select project word list"),
77 pwl, 78 pwl,
78 self.trUtf8("Dictionary File (*.dic);;All Files (*)"), 79 self.trUtf8("Dictionary File (*.dic);;All Files (*)"))
79 QFileDialog.DontUseNativeDialog)
80 80
81 if file: 81 if file:
82 self.pwlEdit.setText(Utilities.toNativeSeparators(file)) 82 self.pwlEdit.setText(Utilities.toNativeSeparators(file))
83 83
84 @pyqtSlot() 84 @pyqtSlot()
87 Private slot to select the project exclude list file. 87 Private slot to select the project exclude list file.
88 """ 88 """
89 pel = self.pelEdit.text() 89 pel = self.pelEdit.text()
90 if not pel: 90 if not pel:
91 pel = self.project.ppath 91 pel = self.project.ppath
92 file = QFileDialog.getOpenFileName( 92 file = E5FileDialog.getOpenFileName(
93 self, 93 self,
94 self.trUtf8("Select project exclude list"), 94 self.trUtf8("Select project exclude list"),
95 pel, 95 pel,
96 self.trUtf8("Dictionary File (*.dic);;All Files (*)"), 96 self.trUtf8("Dictionary File (*.dic);;All Files (*)"))
97 QFileDialog.DontUseNativeDialog)
98 97
99 if file: 98 if file:
100 self.pelEdit.setText(Utilities.toNativeSeparators(file)) 99 self.pelEdit.setText(Utilities.toNativeSeparators(file))
101 100
102 def storeData(self): 101 def storeData(self):

eric ide

mercurial