28 self.setupUi(self) |
28 self.setupUi(self) |
29 self.setObjectName("EditorCalltipsQScintillaPage") |
29 self.setObjectName("EditorCalltipsQScintillaPage") |
30 |
30 |
31 # set initial values |
31 # set initial values |
32 ctContext = Preferences.getEditor("CallTipsStyle") |
32 ctContext = Preferences.getEditor("CallTipsStyle") |
33 if ctContext == QsciScintilla.CallTipsNoContext: |
33 if ctContext == QsciScintilla.CallTipsStyle.CallTipsNoContext: |
34 self.ctNoContextButton.setChecked(True) |
34 self.ctNoContextButton.setChecked(True) |
35 elif ctContext == QsciScintilla.CallTipsNoAutoCompletionContext: |
35 elif ( |
|
36 ctContext == |
|
37 QsciScintilla.CallTipsStyle.CallTipsNoAutoCompletionContext |
|
38 ): |
36 self.ctNoAutoCompletionButton.setChecked(True) |
39 self.ctNoAutoCompletionButton.setChecked(True) |
37 elif ctContext == QsciScintilla.CallTipsContext: |
40 elif ctContext == QsciScintilla.CallTipsStyle.CallTipsContext: |
38 self.ctContextButton.setChecked(True) |
41 self.ctContextButton.setChecked(True) |
39 |
42 |
40 def save(self): |
43 def save(self): |
41 """ |
44 """ |
42 Public slot to save the EditorCalltips configuration. |
45 Public slot to save the EditorCalltips configuration. |
43 """ |
46 """ |
44 if self.ctNoContextButton.isChecked(): |
47 if self.ctNoContextButton.isChecked(): |
45 Preferences.setEditor( |
48 Preferences.setEditor( |
46 "CallTipsStyle", QsciScintilla.CallTipsNoContext) |
49 "CallTipsStyle", |
|
50 QsciScintilla.CallTipsStyle.CallTipsNoContext) |
47 elif self.ctNoAutoCompletionButton.isChecked(): |
51 elif self.ctNoAutoCompletionButton.isChecked(): |
48 Preferences.setEditor( |
52 Preferences.setEditor( |
49 "CallTipsStyle", QsciScintilla.CallTipsNoAutoCompletionContext) |
53 "CallTipsStyle", |
|
54 QsciScintilla.CallTipsStyle.CallTipsNoAutoCompletionContext) |
50 elif self.ctContextButton.isChecked(): |
55 elif self.ctContextButton.isChecked(): |
51 Preferences.setEditor( |
56 Preferences.setEditor( |
52 "CallTipsStyle", QsciScintilla.CallTipsContext) |
57 "CallTipsStyle", |
|
58 QsciScintilla.CallTipsStyle.CallTipsContext) |
53 |
59 |
54 |
60 |
55 def create(dlg): |
61 def create(dlg): |
56 """ |
62 """ |
57 Module function to create the configuration page. |
63 Module function to create the configuration page. |