74 def save(self): |
74 def save(self): |
75 """ |
75 """ |
76 Public slot to save the Editor Search configuration. |
76 Public slot to save the Editor Search configuration. |
77 """ |
77 """ |
78 Preferences.setEditor("SpellCheckingEnabled", |
78 Preferences.setEditor("SpellCheckingEnabled", |
79 int(self.checkingEnabledCheckBox.isChecked())) |
79 self.checkingEnabledCheckBox.isChecked()) |
80 |
80 |
81 Preferences.setEditor("SpellCheckingDefaultLanguage", |
81 Preferences.setEditor("SpellCheckingDefaultLanguage", |
82 self.defaultLanguageCombo.currentText()) |
82 self.defaultLanguageCombo.currentText()) |
83 |
83 |
84 Preferences.setEditor("SpellCheckStringsOnly", |
84 Preferences.setEditor("SpellCheckStringsOnly", |
85 int(self.stringsOnlyCheckBox.isChecked())) |
85 self.stringsOnlyCheckBox.isChecked()) |
86 Preferences.setEditor("SpellCheckingMinWordSize", |
86 Preferences.setEditor("SpellCheckingMinWordSize", |
87 self.minimumWordSizeSlider.value()) |
87 self.minimumWordSizeSlider.value()) |
88 |
88 |
89 for key in self.editorColours.keys(): |
89 for key in self.editorColours.keys(): |
90 Preferences.setEditorColour(key, self.editorColours[key]) |
90 Preferences.setEditorColour(key, self.editorColours[key]) |
91 |
91 |
92 Preferences.setEditor("SpellCheckingPersonalWordList", self.pwlEdit.text()) |
92 Preferences.setEditor("SpellCheckingPersonalWordList", self.pwlEdit.text()) |
93 Preferences.setEditor("SpellCheckingPersonalExcludeList", self.pelEdit.text()) |
93 Preferences.setEditor("SpellCheckingPersonalExcludeList", self.pelEdit.text()) |
94 |
94 |
95 Preferences.setEditor("AutoSpellCheckingEnabled", |
95 Preferences.setEditor("AutoSpellCheckingEnabled", |
96 int(self.enabledCheckBox.isChecked())) |
96 self.enabledCheckBox.isChecked()) |
97 Preferences.setEditor("AutoSpellCheckChunkSize", self.chunkSizeSpinBox.value()) |
97 Preferences.setEditor("AutoSpellCheckChunkSize", self.chunkSizeSpinBox.value()) |
98 |
98 |
99 @pyqtSlot() |
99 @pyqtSlot() |
100 def on_spellingMarkerButton_clicked(self): |
100 def on_spellingMarkerButton_clicked(self): |
101 """ |
101 """ |