Project/SpellingPropertiesDialog.py

changeset 5098
bc74f74a95f5
parent 4631
5c1a96925da4
child 5100
2c193da9b94f
equal deleted inserted replaced
5096:47935c6e4744 5098:bc74f74a95f5
64 index = self.spellingComboBox.findText( 64 index = self.spellingComboBox.findText(
65 self.project.pdata["SPELLLANGUAGE"][0]) 65 self.project.pdata["SPELLLANGUAGE"][0])
66 if index == -1: 66 if index == -1:
67 index = 0 67 index = 0
68 self.spellingComboBox.setCurrentIndex(index) 68 self.spellingComboBox.setCurrentIndex(index)
69 if self.project.pdata["SPELLWORDS"][0]: 69 if self.project.pdata["SPELLWORDS"]:
70 self.pwlPicker.setText(self.project.pdata["SPELLWORDS"][0]) 70 self.pwlPicker.setText(self.project.pdata["SPELLWORDS"])
71 if self.project.pdata["SPELLEXCLUDES"][0]: 71 if self.project.pdata["SPELLEXCLUDES"]:
72 self.pelPicker.setText(self.project.pdata["SPELLEXCLUDES"][0]) 72 self.pelPicker.setText(self.project.pdata["SPELLEXCLUDES"])
73 73
74 def storeData(self): 74 def storeData(self):
75 """ 75 """
76 Public method to store the entered/modified data. 76 Public method to store the entered/modified data.
77 """ 77 """
80 [Preferences.getEditor("SpellCheckingDefaultLanguage")] 80 [Preferences.getEditor("SpellCheckingDefaultLanguage")]
81 else: 81 else:
82 self.project.pdata["SPELLLANGUAGE"] = \ 82 self.project.pdata["SPELLLANGUAGE"] = \
83 [self.spellingComboBox.currentText()] 83 [self.spellingComboBox.currentText()]
84 self.project.pdata["SPELLWORDS"] = \ 84 self.project.pdata["SPELLWORDS"] = \
85 [self.project.getRelativePath(self.pwlPicker.text())] 85 self.project.getRelativePath(self.pwlPicker.text())
86 self.project.pdata["SPELLEXCLUDES"] = \ 86 self.project.pdata["SPELLEXCLUDES"] = \
87 [self.project.getRelativePath(self.pelPicker.text())] 87 self.project.getRelativePath(self.pelPicker.text())

eric ide

mercurial