50 |
50 |
51 self.ctScintillaCheckBox.setChecked( |
51 self.ctScintillaCheckBox.setChecked( |
52 Preferences.getEditor("CallTipsScintillaOnFail")) |
52 Preferences.getEditor("CallTipsScintillaOnFail")) |
53 |
53 |
54 if QSCINTILLA_VERSION() >= 0x020700: |
54 if QSCINTILLA_VERSION() >= 0x020700: |
55 self.positionComboBox.setCurrentIndex(self.positionComboBox.findData( |
55 self.positionComboBox.setCurrentIndex( |
56 Preferences.getEditor("CallTipsPosition"))) |
56 self.positionComboBox.findData( |
|
57 Preferences.getEditor("CallTipsPosition"))) |
57 |
58 |
58 def save(self): |
59 def save(self): |
59 """ |
60 """ |
60 Public slot to save the EditorCalltips configuration. |
61 Public slot to save the EditorCalltips configuration. |
61 """ |
62 """ |
69 Preferences.setEditor("CallTipsScintillaOnFail", |
70 Preferences.setEditor("CallTipsScintillaOnFail", |
70 self.ctScintillaCheckBox.isChecked()) |
71 self.ctScintillaCheckBox.isChecked()) |
71 |
72 |
72 if QSCINTILLA_VERSION() >= 0x020700: |
73 if QSCINTILLA_VERSION() >= 0x020700: |
73 Preferences.setEditor("CallTipsPosition", |
74 Preferences.setEditor("CallTipsPosition", |
74 self.positionComboBox.itemData(self.positionComboBox.currentIndex())) |
75 self.positionComboBox.itemData( |
|
76 self.positionComboBox.currentIndex())) |
75 |
77 |
76 |
78 |
77 def create(dlg): |
79 def create(dlg): |
78 """ |
80 """ |
79 Module function to create the configuration page. |
81 Module function to create the configuration page. |
80 |
82 |
81 @param dlg reference to the configuration dialog |
83 @param dlg reference to the configuration dialog |
|
84 @return reference to the instantiated page (ConfigurationPageBase) |
82 """ |
85 """ |
83 page = EditorCalltipsPage() |
86 page = EditorCalltipsPage() |
84 return page |
87 return page |