Preferences/ConfigurationPages/EditorSpellCheckingPage.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
6:52e8c820d0dd 7:c679fb30c8f3
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 """

eric ide

mercurial