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()) |