63 |
63 |
64 self.pwlEdit.setText(Preferences.getEditor("SpellCheckingPersonalWordList")) |
64 self.pwlEdit.setText(Preferences.getEditor("SpellCheckingPersonalWordList")) |
65 self.pelEdit.setText(Preferences.getEditor("SpellCheckingPersonalExcludeList")) |
65 self.pelEdit.setText(Preferences.getEditor("SpellCheckingPersonalExcludeList")) |
66 |
66 |
67 if self.spellingFrame.isEnabled(): |
67 if self.spellingFrame.isEnabled(): |
68 self.enabledCheckBox.setChecked(\ |
68 self.enabledCheckBox.setChecked( |
69 Preferences.getEditor("AutoSpellCheckingEnabled")) |
69 Preferences.getEditor("AutoSpellCheckingEnabled")) |
70 else: |
70 else: |
71 self.enabledCheckBox.setChecked(False) # not available |
71 self.enabledCheckBox.setChecked(False) # not available |
72 self.chunkSizeSpinBox.setValue(Preferences.getEditor("AutoSpellCheckChunkSize")) |
72 self.chunkSizeSpinBox.setValue(Preferences.getEditor("AutoSpellCheckChunkSize")) |
73 |
73 |
108 @pyqtSlot() |
108 @pyqtSlot() |
109 def on_pwlButton_clicked(self): |
109 def on_pwlButton_clicked(self): |
110 """ |
110 """ |
111 Private method to select the personal word list file. |
111 Private method to select the personal word list file. |
112 """ |
112 """ |
113 file = QFileDialog.getOpenFileName(\ |
113 file = QFileDialog.getOpenFileName( |
114 self, |
114 self, |
115 self.trUtf8("Select personal word list"), |
115 self.trUtf8("Select personal word list"), |
116 self.pwlEdit.text(), |
116 self.pwlEdit.text(), |
117 self.trUtf8("Dictionary File (*.dic);;All Files (*)")) |
117 self.trUtf8("Dictionary File (*.dic);;All Files (*)")) |
118 |
118 |
122 @pyqtSlot() |
122 @pyqtSlot() |
123 def on_pelButton_clicked(self): |
123 def on_pelButton_clicked(self): |
124 """ |
124 """ |
125 Private method to select the personal exclude list file. |
125 Private method to select the personal exclude list file. |
126 """ |
126 """ |
127 file = QFileDialog.getOpenFileName(\ |
127 file = QFileDialog.getOpenFileName( |
128 self, |
128 self, |
129 self.trUtf8("Select personal exclude list"), |
129 self.trUtf8("Select personal exclude list"), |
130 self.pelEdit.text(), |
130 self.pelEdit.text(), |
131 self.trUtf8("Dictionary File (*.dic);;All Files (*)")) |
131 self.trUtf8("Dictionary File (*.dic);;All Files (*)")) |
132 |
132 |