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