Project/SpellingPropertiesDialog.py

changeset 5100
2c193da9b94f
parent 5098
bc74f74a95f5
child 5389
9b1c800daff3
equal deleted inserted replaced
5099:175b36822cc9 5100:2c193da9b94f
60 def initDialog(self): 60 def initDialog(self):
61 """ 61 """
62 Public method to initialize the dialogs data. 62 Public method to initialize the dialogs data.
63 """ 63 """
64 index = self.spellingComboBox.findText( 64 index = self.spellingComboBox.findText(
65 self.project.pdata["SPELLLANGUAGE"][0]) 65 self.project.pdata["SPELLLANGUAGE"])
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"]: 69 if self.project.pdata["SPELLWORDS"]:
70 self.pwlPicker.setText(self.project.pdata["SPELLWORDS"]) 70 self.pwlPicker.setText(self.project.pdata["SPELLWORDS"])
75 """ 75 """
76 Public method to store the entered/modified data. 76 Public method to store the entered/modified data.
77 """ 77 """
78 if self.spellingComboBox.currentIndex() == 0: 78 if self.spellingComboBox.currentIndex() == 0:
79 self.project.pdata["SPELLLANGUAGE"] = \ 79 self.project.pdata["SPELLLANGUAGE"] = \
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