72 Preferences.getEditor("SourceOutlineShowCoding")) |
72 Preferences.getEditor("SourceOutlineShowCoding")) |
73 |
73 |
74 index = self.docstringStyleComboBox.findData( |
74 index = self.docstringStyleComboBox.findData( |
75 Preferences.getEditor("DocstringType")) |
75 Preferences.getEditor("DocstringType")) |
76 self.docstringStyleComboBox.setCurrentIndex(index) |
76 self.docstringStyleComboBox.setCurrentIndex(index) |
|
77 self.docstringCompletionCheckBox.setChecked( |
|
78 Preferences.getEditor("DocstringAutoGenerate")) |
77 |
79 |
78 virtualSpaceOptions = Preferences.getEditor("VirtualSpaceOptions") |
80 virtualSpaceOptions = Preferences.getEditor("VirtualSpaceOptions") |
79 self.vsSelectionCheckBox.setChecked( |
81 self.vsSelectionCheckBox.setChecked( |
80 virtualSpaceOptions & QsciScintillaBase.SCVS_RECTANGULARSELECTION) |
82 virtualSpaceOptions & QsciScintillaBase.SCVS_RECTANGULARSELECTION) |
81 self.vsUserCheckBox.setChecked( |
83 self.vsUserCheckBox.setChecked( |
123 self.sourceOutlineShowCodingCheckBox.isChecked()) |
125 self.sourceOutlineShowCodingCheckBox.isChecked()) |
124 |
126 |
125 Preferences.setEditor( |
127 Preferences.setEditor( |
126 "DocstringType", |
128 "DocstringType", |
127 self.docstringStyleComboBox.currentData()) |
129 self.docstringStyleComboBox.currentData()) |
|
130 Preferences.setEditor( |
|
131 "DocstringAutoGenerate", |
|
132 self.docstringCompletionCheckBox.isChecked()) |
128 |
133 |
129 virtualSpaceOptions = QsciScintillaBase.SCVS_NONE |
134 virtualSpaceOptions = QsciScintillaBase.SCVS_NONE |
130 if self.vsSelectionCheckBox.isChecked(): |
135 if self.vsSelectionCheckBox.isChecked(): |
131 virtualSpaceOptions |= QsciScintillaBase.SCVS_RECTANGULARSELECTION |
136 virtualSpaceOptions |= QsciScintillaBase.SCVS_RECTANGULARSELECTION |
132 if self.vsUserCheckBox.isChecked(): |
137 if self.vsUserCheckBox.isChecked(): |