47 Preferences.getEditor("AutoCompletionCacheSize")) |
47 Preferences.getEditor("AutoCompletionCacheSize")) |
48 self.acCacheTimeSpinBox.setValue( |
48 self.acCacheTimeSpinBox.setValue( |
49 Preferences.getEditor("AutoCompletionCacheTime")) |
49 Preferences.getEditor("AutoCompletionCacheTime")) |
50 self.acWatchdogDoubleSpinBox.setValue( |
50 self.acWatchdogDoubleSpinBox.setValue( |
51 Preferences.getEditor("AutoCompletionWatchdogTime") / 1000.0) |
51 Preferences.getEditor("AutoCompletionWatchdogTime") / 1000.0) |
|
52 self.acLinesSlider.setValue( |
|
53 Preferences.getEditor("AutoCompletionMaxLines")) |
|
54 self.acCharSlider.setValue( |
|
55 Preferences.getEditor("AutoCompletionMaxChars")) |
52 |
56 |
53 def save(self): |
57 def save(self): |
54 """ |
58 """ |
55 Public slot to save the Editor Autocompletion configuration. |
59 Public slot to save the Editor Autocompletion configuration. |
56 """ |
60 """ |
83 "AutoCompletionCacheTime", |
87 "AutoCompletionCacheTime", |
84 self.acCacheTimeSpinBox.value()) |
88 self.acCacheTimeSpinBox.value()) |
85 Preferences.setEditor( |
89 Preferences.setEditor( |
86 "AutoCompletionWatchdogTime", |
90 "AutoCompletionWatchdogTime", |
87 self.acWatchdogDoubleSpinBox.value() * 1000) |
91 self.acWatchdogDoubleSpinBox.value() * 1000) |
|
92 Preferences.setEditor( |
|
93 "AutoCompletionMaxLines", |
|
94 self.acLinesSlider.value()) |
|
95 Preferences.setEditor( |
|
96 "AutoCompletionMaxChars", |
|
97 self.acCharSlider.value()) |
88 |
98 |
89 |
99 |
90 def create(dlg): |
100 def create(dlg): |
91 """ |
101 """ |
92 Module function to create the configuration page. |
102 Module function to create the configuration page. |