12 from .ConfigurationPageBase import ConfigurationPageBase |
12 from .ConfigurationPageBase import ConfigurationPageBase |
13 from .Ui_EditorCalltipsQScintillaPage import Ui_EditorCalltipsQScintillaPage |
13 from .Ui_EditorCalltipsQScintillaPage import Ui_EditorCalltipsQScintillaPage |
14 |
14 |
15 import Preferences |
15 import Preferences |
16 |
16 |
17 class EditorCalltipsQScintillaPage(ConfigurationPageBase, |
17 |
|
18 class EditorCalltipsQScintillaPage(ConfigurationPageBase, |
18 Ui_EditorCalltipsQScintillaPage): |
19 Ui_EditorCalltipsQScintillaPage): |
19 """ |
20 """ |
20 Class implementing the QScintilla Calltips configuration page. |
21 Class implementing the QScintilla Calltips configuration page. |
21 """ |
22 """ |
22 def __init__(self): |
23 def __init__(self): |
39 def save(self): |
40 def save(self): |
40 """ |
41 """ |
41 Public slot to save the EditorCalltips configuration. |
42 Public slot to save the EditorCalltips configuration. |
42 """ |
43 """ |
43 if self.ctNoContextButton.isChecked(): |
44 if self.ctNoContextButton.isChecked(): |
44 Preferences.setEditor("CallTipsStyle", |
45 Preferences.setEditor("CallTipsStyle", |
45 QsciScintilla.CallTipsNoContext) |
46 QsciScintilla.CallTipsNoContext) |
46 elif self.ctNoAutoCompletionButton.isChecked(): |
47 elif self.ctNoAutoCompletionButton.isChecked(): |
47 Preferences.setEditor("CallTipsStyle", |
48 Preferences.setEditor("CallTipsStyle", |
48 QsciScintilla.CallTipsNoAutoCompletionContext) |
49 QsciScintilla.CallTipsNoAutoCompletionContext) |
49 elif self.ctContextButton.isChecked(): |
50 elif self.ctContextButton.isChecked(): |
50 Preferences.setEditor("CallTipsStyle", |
51 Preferences.setEditor("CallTipsStyle", |
51 QsciScintilla.CallTipsContext) |
52 QsciScintilla.CallTipsContext) |
|
53 |
52 |
54 |
53 def create(dlg): |
55 def create(dlg): |
54 """ |
56 """ |
55 Module function to create the configuration page. |
57 Module function to create the configuration page. |
56 |
58 |