9 |
9 |
10 from .ConfigurationPageBase import ConfigurationPageBase |
10 from .ConfigurationPageBase import ConfigurationPageBase |
11 from .Ui_EditorAutocompletionPage import Ui_EditorAutocompletionPage |
11 from .Ui_EditorAutocompletionPage import Ui_EditorAutocompletionPage |
12 |
12 |
13 import Preferences |
13 import Preferences |
|
14 |
14 |
15 |
15 class EditorAutocompletionPage(ConfigurationPageBase, Ui_EditorAutocompletionPage): |
16 class EditorAutocompletionPage(ConfigurationPageBase, Ui_EditorAutocompletionPage): |
16 """ |
17 """ |
17 Class implementing the Editor Autocompletion configuration page. |
18 Class implementing the Editor Autocompletion configuration page. |
18 """ |
19 """ |
45 Preferences.setEditor("AutoCompletionReplaceWord", |
46 Preferences.setEditor("AutoCompletionReplaceWord", |
46 self.acReplaceWordCheckBox.isChecked()) |
47 self.acReplaceWordCheckBox.isChecked()) |
47 Preferences.setEditor("AutoCompletionThreshold", |
48 Preferences.setEditor("AutoCompletionThreshold", |
48 self.acThresholdSlider.value()) |
49 self.acThresholdSlider.value()) |
49 |
50 |
|
51 |
50 def create(dlg): |
52 def create(dlg): |
51 """ |
53 """ |
52 Module function to create the configuration page. |
54 Module function to create the configuration page. |
53 |
55 |
54 @param dlg reference to the configuration dialog |
56 @param dlg reference to the configuration dialog |