87 def save(self): |
87 def save(self): |
88 """ |
88 """ |
89 Public slot to save the Editor Typing configuration. |
89 Public slot to save the Editor Typing configuration. |
90 """ |
90 """ |
91 # Python |
91 # Python |
92 Preferences.setEditorTyping("Python/EnabledTypingAids", |
92 Preferences.setEditorTyping( |
|
93 "Python/EnabledTypingAids", |
93 self.pythonGroup.isChecked()) |
94 self.pythonGroup.isChecked()) |
94 Preferences.setEditorTyping("Python/InsertClosingBrace", |
95 Preferences.setEditorTyping( |
|
96 "Python/InsertClosingBrace", |
95 self.pythonInsertClosingBraceCheckBox.isChecked()) |
97 self.pythonInsertClosingBraceCheckBox.isChecked()) |
96 Preferences.setEditorTyping("Python/SkipBrace", |
98 Preferences.setEditorTyping( |
|
99 "Python/SkipBrace", |
97 self.pythonSkipBraceCheckBox.isChecked()) |
100 self.pythonSkipBraceCheckBox.isChecked()) |
98 Preferences.setEditorTyping("Python/IndentBrace", |
101 Preferences.setEditorTyping( |
|
102 "Python/IndentBrace", |
99 self.pythonIndentBraceCheckBox.isChecked()) |
103 self.pythonIndentBraceCheckBox.isChecked()) |
100 Preferences.setEditorTyping("Python/InsertQuote", |
104 Preferences.setEditorTyping( |
|
105 "Python/InsertQuote", |
101 self.pythonInsertQuoteCheckBox.isChecked()) |
106 self.pythonInsertQuoteCheckBox.isChecked()) |
102 Preferences.setEditorTyping("Python/DedentElse", |
107 Preferences.setEditorTyping( |
|
108 "Python/DedentElse", |
103 self.pythonDedentElseCheckBox.isChecked()) |
109 self.pythonDedentElseCheckBox.isChecked()) |
104 Preferences.setEditorTyping("Python/DedentExcept", |
110 Preferences.setEditorTyping( |
|
111 "Python/DedentExcept", |
105 self.pythonDedentExceptCheckBox.isChecked()) |
112 self.pythonDedentExceptCheckBox.isChecked()) |
106 Preferences.setEditorTyping("Python/Py24StyleTry", |
113 Preferences.setEditorTyping( |
|
114 "Python/Py24StyleTry", |
107 self.pythonDedentExceptPy24CheckBox.isChecked()) |
115 self.pythonDedentExceptPy24CheckBox.isChecked()) |
108 Preferences.setEditorTyping("Python/InsertImport", |
116 Preferences.setEditorTyping( |
|
117 "Python/InsertImport", |
109 self.pythonInsertImportCheckBox.isChecked()) |
118 self.pythonInsertImportCheckBox.isChecked()) |
110 Preferences.setEditorTyping("Python/InsertSelf", |
119 Preferences.setEditorTyping( |
|
120 "Python/InsertSelf", |
111 self.pythonInsertSelfCheckBox.isChecked()) |
121 self.pythonInsertSelfCheckBox.isChecked()) |
112 Preferences.setEditorTyping("Python/InsertBlank", |
122 Preferences.setEditorTyping( |
|
123 "Python/InsertBlank", |
113 self.pythonInsertBlankCheckBox.isChecked()) |
124 self.pythonInsertBlankCheckBox.isChecked()) |
114 Preferences.setEditorTyping("Python/ColonDetection", |
125 Preferences.setEditorTyping( |
|
126 "Python/ColonDetection", |
115 self.pythonColonDetectionCheckBox.isChecked()) |
127 self.pythonColonDetectionCheckBox.isChecked()) |
116 Preferences.setEditorTyping("Python/DedentDef", |
128 Preferences.setEditorTyping( |
|
129 "Python/DedentDef", |
117 self.pythonDedentDefCheckBox.isChecked()) |
130 self.pythonDedentDefCheckBox.isChecked()) |
118 |
131 |
119 # Ruby |
132 # Ruby |
120 Preferences.setEditorTyping("Ruby/EnabledTypingAids", |
133 Preferences.setEditorTyping( |
|
134 "Ruby/EnabledTypingAids", |
121 self.rubyGroup.isChecked()) |
135 self.rubyGroup.isChecked()) |
122 Preferences.setEditorTyping("Ruby/InsertClosingBrace", |
136 Preferences.setEditorTyping( |
|
137 "Ruby/InsertClosingBrace", |
123 self.rubyInsertClosingBraceCheckBox.isChecked()) |
138 self.rubyInsertClosingBraceCheckBox.isChecked()) |
124 Preferences.setEditorTyping("Ruby/SkipBrace", |
139 Preferences.setEditorTyping( |
|
140 "Ruby/SkipBrace", |
125 self.rubySkipBraceCheckBox.isChecked()) |
141 self.rubySkipBraceCheckBox.isChecked()) |
126 Preferences.setEditorTyping("Ruby/IndentBrace", |
142 Preferences.setEditorTyping( |
|
143 "Ruby/IndentBrace", |
127 self.rubyIndentBraceCheckBox.isChecked()) |
144 self.rubyIndentBraceCheckBox.isChecked()) |
128 Preferences.setEditorTyping("Ruby/InsertQuote", |
145 Preferences.setEditorTyping( |
|
146 "Ruby/InsertQuote", |
129 self.rubyInsertQuoteCheckBox.isChecked()) |
147 self.rubyInsertQuoteCheckBox.isChecked()) |
130 Preferences.setEditorTyping("Ruby/InsertBlank", |
148 Preferences.setEditorTyping( |
|
149 "Ruby/InsertBlank", |
131 self.rubyInsertBlankCheckBox.isChecked()) |
150 self.rubyInsertBlankCheckBox.isChecked()) |
132 Preferences.setEditorTyping("Ruby/InsertHereDoc", |
151 Preferences.setEditorTyping( |
|
152 "Ruby/InsertHereDoc", |
133 self.rubyInsertHereDocCheckBox.isChecked()) |
153 self.rubyInsertHereDocCheckBox.isChecked()) |
134 Preferences.setEditorTyping("Ruby/InsertInlineDoc", |
154 Preferences.setEditorTyping( |
|
155 "Ruby/InsertInlineDoc", |
135 self.rubyInsertInlineDocCheckBox.isChecked()) |
156 self.rubyInsertInlineDocCheckBox.isChecked()) |
136 |
157 |
137 @pyqtSlot(str) |
158 @pyqtSlot(str) |
138 def on_languageCombo_activated(self, language): |
159 def on_languageCombo_activated(self, language): |
139 """ |
160 """ |