Preferences/ConfigurationPages/EditorPropertiesPage.py

changeset 5420
53ca6ddb4acf
parent 5389
9b1c800daff3
child 5436
af16135f6172
equal deleted inserted replaced
5419:6f7a196d25da 5420:53ca6ddb4acf
55 Preferences.getEditor("CppIndentClosingBrace")) 55 Preferences.getEditor("CppIndentClosingBrace"))
56 self.cppCaseInsensitiveCheckBox.setChecked( 56 self.cppCaseInsensitiveCheckBox.setChecked(
57 Preferences.getEditor("CppCaseInsensitiveKeywords")) 57 Preferences.getEditor("CppCaseInsensitiveKeywords"))
58 self.cppDollarAllowedCheckBox.setChecked( 58 self.cppDollarAllowedCheckBox.setChecked(
59 Preferences.getEditor("CppDollarsAllowed")) 59 Preferences.getEditor("CppDollarsAllowed"))
60 if QSCINTILLA_VERSION() >= 0x020500: 60 self.cppStylePreprocessorCheckBox.setChecked(
61 self.cppStylePreprocessorCheckBox.setChecked( 61 Preferences.getEditor("CppStylePreprocessor"))
62 Preferences.getEditor("CppStylePreprocessor")) 62 self.cppHighlightTripleQuotedCheckBox.setChecked(
63 else: 63 Preferences.getEditor("CppHighlightTripleQuotedStrings"))
64 self.cppStylePreprocessorCheckBox.setEnabled(False) 64 self.cppHighlightHashQuotedCheckBox.setChecked(
65 if QSCINTILLA_VERSION() >= 0x020600: 65 Preferences.getEditor("CppHighlightHashQuotedStrings"))
66 self.cppHighlightTripleQuotedCheckBox.setChecked( 66 self.cppHighlightBackQuotedCheckBox.setChecked(
67 Preferences.getEditor("CppHighlightTripleQuotedStrings")) 67 Preferences.getEditor("CppHighlightBackQuotedStrings"))
68 else: 68 self.cppHighlightEsacepSequencesCheckBox.setChecked(
69 self.cppHighlightTripleQuotedCheckBox.setEnabled(False) 69 Preferences.getEditor("CppHighlightEscapeSequences"))
70 if QSCINTILLA_VERSION() >= 0x020700: 70 self.cppVerbatimStringEscapeAllowedCheckBox.setChecked(
71 self.cppHighlightHashQuotedCheckBox.setChecked( 71 Preferences.getEditor(
72 Preferences.getEditor("CppHighlightHashQuotedStrings")) 72 "CppVerbatimStringEscapeSequencesAllowed"))
73 else:
74 self.cppHighlightHashQuotedCheckBox.setEnabled(False)
75 if QSCINTILLA_VERSION() >= 0x020900:
76 self.cppHighlightBackQuotedCheckBox.setChecked(
77 Preferences.getEditor("CppHighlightBackQuotedStrings"))
78 self.cppHighlightEsacepSequencesCheckBox.setChecked(
79 Preferences.getEditor("CppHighlightEscapeSequences"))
80 self.cppVerbatimStringEscapeAllowedCheckBox.setChecked(
81 Preferences.getEditor(
82 "CppVerbatimStringEscapeSequencesAllowed"))
83 else:
84 self.cppHighlightBackQuotedCheckBox.setEnabled(False)
85 self.cppHighlightEsacepSequencesCheckBox.setEnabled(False)
86 self.cppVerbatimStringEscapeAllowedCheckBox.setEnabled(False)
87 73
88 # CMake 74 # CMake
89 self.cmakeFoldAtElseCheckBox.setChecked( 75 self.cmakeFoldAtElseCheckBox.setChecked(
90 Preferences.getEditor("CMakeFoldAtElse")) 76 Preferences.getEditor("CMakeFoldAtElse"))
91 77
101 self.coffeeScriptGroup.setEnabled(False) 87 self.coffeeScriptGroup.setEnabled(False)
102 88
103 # CSS 89 # CSS
104 self.foldCssCommentCheckBox.setChecked( 90 self.foldCssCommentCheckBox.setChecked(
105 Preferences.getEditor("CssFoldComment")) 91 Preferences.getEditor("CssFoldComment"))
106 if QSCINTILLA_VERSION() >= 0x020700: 92 self.cssHssCheckBox.setChecked(
107 self.cssHssCheckBox.setChecked( 93 Preferences.getEditor("CssHssSupport"))
108 Preferences.getEditor("CssHssSupport")) 94 self.cssLessCheckBox.setChecked(
109 self.cssLessCheckBox.setChecked( 95 Preferences.getEditor("CssLessSupport"))
110 Preferences.getEditor("CssLessSupport")) 96 self.cssSassyCheckBox.setChecked(
111 self.cssSassyCheckBox.setChecked( 97 Preferences.getEditor("CssSassySupport"))
112 Preferences.getEditor("CssSassySupport"))
113 else:
114 self.cssHssCheckBox.setEnabled(False)
115 self.cssLessCheckBox.setEnabled(False)
116 self.cssSassyCheckBox.setEnabled(False)
117 98
118 # D 99 # D
119 self.foldDCommentCheckBox.setChecked( 100 self.foldDCommentCheckBox.setChecked(
120 Preferences.getEditor("DFoldComment")) 101 Preferences.getEditor("DFoldComment"))
121 self.foldDAtElseCheckBox.setChecked( 102 self.foldDAtElseCheckBox.setChecked(
139 Preferences.getEditor("HtmlCaseSensitiveTags")) 120 Preferences.getEditor("HtmlCaseSensitiveTags"))
140 self.foldHtmlScriptCommentsCheckBox.setChecked( 121 self.foldHtmlScriptCommentsCheckBox.setChecked(
141 Preferences.getEditor("HtmlFoldScriptComments")) 122 Preferences.getEditor("HtmlFoldScriptComments"))
142 self.foldHtmlScriptHereDocsCheckBox.setChecked( 123 self.foldHtmlScriptHereDocsCheckBox.setChecked(
143 Preferences.getEditor("HtmlFoldScriptHeredocs")) 124 Preferences.getEditor("HtmlFoldScriptHeredocs"))
144 if QSCINTILLA_VERSION() >= 0x020500: 125 self.htmlDjangoCheckBox.setChecked(
145 self.htmlDjangoCheckBox.setChecked( 126 Preferences.getEditor("HtmlDjangoTemplates"))
146 Preferences.getEditor("HtmlDjangoTemplates")) 127 self.htmlMakoCheckBox.setChecked(
147 self.htmlMakoCheckBox.setChecked( 128 Preferences.getEditor("HtmlMakoTemplates"))
148 Preferences.getEditor("HtmlMakoTemplates")) 129
130 # JSON
131 if "JSON" in self.languages:
132 self.jsonHighlightCommentsCheckBox.setChecked(
133 Preferences.getEditor("JSONHightlightComments"))
134 self.jsonHighlightEscapeCheckBox.setChecked(
135 Preferences.getEditor("JSONHighlightEscapeSequences"))
149 else: 136 else:
150 self.htmlDjangoCheckBox.setEnabled(False) 137 self.jsonGroup.setEnabled(False)
151 self.htmlMakoCheckBox.setEnabled(False)
152 138
153 # Pascal 139 # Pascal
154 if "Pascal" in self.languages: 140 self.pascalGroup.setEnabled(True)
155 self.pascalGroup.setEnabled(True) 141 self.foldPascalCommentCheckBox.setChecked(
156 self.foldPascalCommentCheckBox.setChecked( 142 Preferences.getEditor("PascalFoldComment"))
157 Preferences.getEditor("PascalFoldComment")) 143 self.foldPascalPreprocessorCheckBox.setChecked(
158 self.foldPascalPreprocessorCheckBox.setChecked( 144 Preferences.getEditor("PascalFoldPreprocessor"))
159 Preferences.getEditor("PascalFoldPreprocessor")) 145 self.pascalSmartHighlightingCheckBox.setChecked(
160 if QSCINTILLA_VERSION() >= 0x020400: 146 Preferences.getEditor("PascalSmartHighlighting"))
161 self.pascalSmartHighlightingCheckBox.setChecked(
162 Preferences.getEditor("PascalSmartHighlighting"))
163 else:
164 self.pascalSmartHighlightingCheckBox.setEnabled(False)
165 else:
166 self.pascalGroup.setEnabled(False)
167 147
168 # Perl 148 # Perl
169 self.foldPerlCommentCheckBox.setChecked( 149 self.foldPerlCommentCheckBox.setChecked(
170 Preferences.getEditor("PerlFoldComment")) 150 Preferences.getEditor("PerlFoldComment"))
171 self.foldPerlPackagesCheckBox.setChecked( 151 self.foldPerlPackagesCheckBox.setChecked(
172 Preferences.getEditor("PerlFoldPackages")) 152 Preferences.getEditor("PerlFoldPackages"))
173 self.foldPerlPODBlocksCheckBox.setChecked( 153 self.foldPerlPODBlocksCheckBox.setChecked(
174 Preferences.getEditor("PerlFoldPODBlocks")) 154 Preferences.getEditor("PerlFoldPODBlocks"))
175 if QSCINTILLA_VERSION() >= 0x020600: 155 self.foldPerlAtElseCheckBox.setChecked(
176 self.foldPerlAtElseCheckBox.setChecked( 156 Preferences.getEditor("PerlFoldAtElse"))
177 Preferences.getEditor("PerlFoldAtElse"))
178 else:
179 self.foldPerlAtElseCheckBox.setEnabled(False)
180 157
181 # PostScript 158 # PostScript
182 if "PostScript" in self.languages: 159 self.postscriptGroup.setEnabled(True)
183 self.postscriptGroup.setEnabled(True) 160 self.psFoldAtElseCheckBox.setChecked(
184 self.psFoldAtElseCheckBox.setChecked( 161 Preferences.getEditor("PostScriptFoldAtElse"))
185 Preferences.getEditor("PostScriptFoldAtElse")) 162 self.psMarkTokensCheckBox.setChecked(
186 self.psMarkTokensCheckBox.setChecked( 163 Preferences.getEditor("PostScriptTokenize"))
187 Preferences.getEditor("PostScriptTokenize")) 164 self.psLevelSpinBox.setValue(
188 self.psLevelSpinBox.setValue( 165 Preferences.getEditor("PostScriptLevel"))
189 Preferences.getEditor("PostScriptLevel"))
190 else:
191 self.postscriptGroup.setEnabled(False)
192 166
193 # Povray 167 # Povray
194 self.foldPovrayCommentCheckBox.setChecked( 168 self.foldPovrayCommentCheckBox.setChecked(
195 Preferences.getEditor("PovFoldComment")) 169 Preferences.getEditor("PovFoldComment"))
196 self.foldPovrayDirectivesCheckBox.setChecked( 170 self.foldPovrayDirectivesCheckBox.setChecked(
197 Preferences.getEditor("PovFoldDirectives")) 171 Preferences.getEditor("PovFoldDirectives"))
198 172
199 # Properties 173 # Properties
200 if QSCINTILLA_VERSION() >= 0x020500: 174 self.propertiesInitialSpacesCheckBox.setChecked(
201 self.propertiesInitialSpacesCheckBox.setChecked( 175 Preferences.getEditor("PropertiesInitialSpaces"))
202 Preferences.getEditor("PropertiesInitialSpaces"))
203 else:
204 self.propertiesInitialSpacesCheckBox.setEnabled(False)
205 176
206 # Python 177 # Python
207 self.pythonBadIndentationComboBox.addItems([ 178 self.pythonBadIndentationComboBox.addItems([
208 self.tr("No Warning"), 179 self.tr("No Warning"),
209 self.tr("Inconsistent"), 180 self.tr("Inconsistent"),
223 Preferences.getEditor("PythonAllowV2Unicode")) 194 Preferences.getEditor("PythonAllowV2Unicode"))
224 self.pythonV3BinaryAllowedCheckBox.setChecked( 195 self.pythonV3BinaryAllowedCheckBox.setChecked(
225 Preferences.getEditor("PythonAllowV3Binary")) 196 Preferences.getEditor("PythonAllowV3Binary"))
226 self.pythonV3BytesAllowedCheckBox.setChecked( 197 self.pythonV3BytesAllowedCheckBox.setChecked(
227 Preferences.getEditor("PythonAllowV3Bytes")) 198 Preferences.getEditor("PythonAllowV3Bytes"))
228 if QSCINTILLA_VERSION() >= 0x020500: 199 self.foldPythonQuotesCheckBox.setChecked(
229 self.foldPythonQuotesCheckBox.setChecked( 200 Preferences.getEditor("PythonFoldQuotes"))
230 Preferences.getEditor("PythonFoldQuotes")) 201 self.pythonStringsOverNewlineCheckBox.setChecked(
231 self.pythonStringsOverNewlineCheckBox.setChecked( 202 Preferences.getEditor("PythonStringsOverNewLineAllowed"))
232 Preferences.getEditor("PythonStringsOverNewLineAllowed")) 203 self.pythonHighlightSubidentifierCheckBox.setChecked(
233 else: 204 Preferences.getEditor("PythonHighlightSubidentifier"))
234 self.foldPythonQuotesCheckBox.setEnabled(False)
235 self.pythonStringsOverNewlineCheckBox.setEnabled(False)
236 if QSCINTILLA_VERSION() >= 0x020600:
237 self.pythonHighlightSubidentifierCheckBox.setChecked(
238 Preferences.getEditor("PythonHighlightSubidentifier"))
239 else:
240 self.pythonHighlightSubidentifierCheckBox.setEnabled(False)
241 205
242 # Ruby 206 # Ruby
243 if QSCINTILLA_VERSION() >= 0x020500: 207 self.foldRubyCommentCheckBox.setChecked(
244 self.foldRubyCommentCheckBox.setChecked( 208 Preferences.getEditor("RubyFoldComment"))
245 Preferences.getEditor("RubyFoldComment"))
246 else:
247 self.foldRubyCommentCheckBox.setEnabled(False)
248 209
249 # SQL 210 # SQL
250 self.foldSqlCommentCheckBox.setChecked( 211 self.foldSqlCommentCheckBox.setChecked(
251 Preferences.getEditor("SqlFoldComment")) 212 Preferences.getEditor("SqlFoldComment"))
252 self.sqlBackslashEscapesCheckBox.setChecked( 213 self.sqlBackslashEscapesCheckBox.setChecked(
253 Preferences.getEditor("SqlBackslashEscapes")) 214 Preferences.getEditor("SqlBackslashEscapes"))
254 if QSCINTILLA_VERSION() >= 0x020500: 215 self.sqlFoldAtElseCheckBox.setChecked(
255 self.sqlFoldAtElseCheckBox.setChecked( 216 Preferences.getEditor("SqlFoldAtElse"))
256 Preferences.getEditor("SqlFoldAtElse")) 217 self.sqlFoldOnlyBeginCheckBox.setChecked(
257 self.sqlFoldOnlyBeginCheckBox.setChecked( 218 Preferences.getEditor("SqlFoldOnlyBegin"))
258 Preferences.getEditor("SqlFoldOnlyBegin")) 219 self.sqlDottedWordsCheckBox.setChecked(
259 self.sqlDottedWordsCheckBox.setChecked( 220 Preferences.getEditor("SqlDottedWords"))
260 Preferences.getEditor("SqlDottedWords")) 221 self.sqlHashCommentsCheckBox.setChecked(
261 self.sqlHashCommentsCheckBox.setChecked( 222 Preferences.getEditor("SqlHashComments"))
262 Preferences.getEditor("SqlHashComments")) 223 self.sqlQuotedIdentifiersCheckBox.setChecked(
263 self.sqlQuotedIdentifiersCheckBox.setChecked( 224 Preferences.getEditor("SqlQuotedIdentifiers"))
264 Preferences.getEditor("SqlQuotedIdentifiers"))
265 else:
266 self.sqlFoldAtElseCheckBox.setEnabled(False)
267 self.sqlFoldOnlyBeginCheckBox.setEnabled(False)
268 self.sqlDottedWordsCheckBox.setEnabled(False)
269 self.sqlHashCommentsCheckBox.setEnabled(False)
270 self.sqlQuotedIdentifiersCheckBox.setEnabled(False)
271 225
272 # TCL 226 # TCL
273 if QSCINTILLA_VERSION() >= 0x020500: 227 self.foldTclCommentCheckBox.setChecked(
274 self.foldTclCommentCheckBox.setChecked( 228 Preferences.getEditor("TclFoldComment"))
275 Preferences.getEditor("TclFoldComment"))
276 else:
277 self.foldTclCommentCheckBox.setEnabled(False)
278 229
279 # TeX 230 # TeX
280 if QSCINTILLA_VERSION() >= 0x020500: 231 self.foldTexCommentCheckBox.setChecked(
281 self.foldTexCommentCheckBox.setChecked( 232 Preferences.getEditor("TexFoldComment"))
282 Preferences.getEditor("TexFoldComment")) 233 self.texProcessCommentsCheckBox.setChecked(
283 self.texProcessCommentsCheckBox.setChecked( 234 Preferences.getEditor("TexProcessComments"))
284 Preferences.getEditor("TexProcessComments")) 235 self.texProcessIfCheckBox.setChecked(
285 self.texProcessIfCheckBox.setChecked( 236 Preferences.getEditor("TexProcessIf"))
286 Preferences.getEditor("TexProcessIf"))
287 else:
288 self.foldTexCommentCheckBox.setEnabled(False)
289 self.texProcessCommentsCheckBox.setEnabled(False)
290 self.texProcessIfCheckBox.setEnabled(False)
291 237
292 # VHDL 238 # VHDL
293 self.vhdlFoldCommentCheckBox.setChecked( 239 self.vhdlFoldCommentCheckBox.setChecked(
294 Preferences.getEditor("VHDLFoldComment")) 240 Preferences.getEditor("VHDLFoldComment"))
295 self.vhdlFoldAtElseCheckBox.setChecked( 241 self.vhdlFoldAtElseCheckBox.setChecked(
302 # XML 248 # XML
303 self.xmlSyleScriptsCheckBox.setChecked( 249 self.xmlSyleScriptsCheckBox.setChecked(
304 Preferences.getEditor("XMLStyleScripts")) 250 Preferences.getEditor("XMLStyleScripts"))
305 251
306 # YAML 252 # YAML
307 if "YAML" in self.languages: 253 self.yamlGroup.setEnabled(True)
308 self.yamlGroup.setEnabled(True) 254 self.foldYamlCommentCheckBox.setChecked(
309 self.foldYamlCommentCheckBox.setChecked( 255 Preferences.getEditor("YAMLFoldComment"))
310 Preferences.getEditor("YAMLFoldComment"))
311 else:
312 self.yamlGroup.setEnabled(False)
313 256
314 def save(self): 257 def save(self):
315 """ 258 """
316 Public slot to save the Editor Properties (1) configuration. 259 Public slot to save the Editor Properties (1) configuration.
317 """ 260 """
350 "CppCaseInsensitiveKeywords", 293 "CppCaseInsensitiveKeywords",
351 self.cppCaseInsensitiveCheckBox.isChecked()) 294 self.cppCaseInsensitiveCheckBox.isChecked())
352 Preferences.setEditor( 295 Preferences.setEditor(
353 "CppDollarsAllowed", 296 "CppDollarsAllowed",
354 self.cppDollarAllowedCheckBox.isChecked()) 297 self.cppDollarAllowedCheckBox.isChecked())
355 if QSCINTILLA_VERSION() >= 0x020500: 298 Preferences.setEditor(
356 Preferences.setEditor( 299 "CppStylePreprocessor",
357 "CppStylePreprocessor", 300 self.cppStylePreprocessorCheckBox.isChecked())
358 self.cppStylePreprocessorCheckBox.isChecked()) 301 Preferences.setEditor(
359 if QSCINTILLA_VERSION() >= 0x020600: 302 "CppHighlightTripleQuotedStrings",
360 Preferences.setEditor( 303 self.cppHighlightTripleQuotedCheckBox.isChecked())
361 "CppHighlightTripleQuotedStrings", 304 Preferences.setEditor(
362 self.cppHighlightTripleQuotedCheckBox.isChecked()) 305 "CppHighlightHashQuotedStrings",
363 if QSCINTILLA_VERSION() >= 0x020700: 306 self.cppHighlightHashQuotedCheckBox.isChecked())
364 Preferences.setEditor(
365 "CppHighlightHashQuotedStrings",
366 self.cppHighlightHashQuotedCheckBox.isChecked())
367 if QSCINTILLA_VERSION() >= 0x020900: 307 if QSCINTILLA_VERSION() >= 0x020900:
368 Preferences.setEditor( 308 Preferences.setEditor(
369 "CppHighlightBackQuotedStrings", 309 "CppHighlightBackQuotedStrings",
370 self.cppHighlightBackQuotedCheckBox.isChecked()) 310 self.cppHighlightBackQuotedCheckBox.isChecked())
371 Preferences.setEditor( 311 Preferences.setEditor(
394 334
395 # CSS 335 # CSS
396 Preferences.setEditor( 336 Preferences.setEditor(
397 "CssFoldComment", 337 "CssFoldComment",
398 self.foldCssCommentCheckBox.isChecked()) 338 self.foldCssCommentCheckBox.isChecked())
399 if QSCINTILLA_VERSION() >= 0x020700: 339 Preferences.setEditor(
400 Preferences.setEditor( 340 "CssHssSupport",
401 "CssHssSupport", 341 self.cssHssCheckBox.isChecked())
402 self.cssHssCheckBox.isChecked()) 342 Preferences.setEditor(
403 Preferences.setEditor( 343 "CssLessSupport",
404 "CssLessSupport", 344 self.cssLessCheckBox.isChecked())
405 self.cssLessCheckBox.isChecked()) 345 Preferences.setEditor(
406 Preferences.setEditor( 346 "CssSassySupport",
407 "CssSassySupport", 347 self.cssSassyCheckBox.isChecked())
408 self.cssSassyCheckBox.isChecked())
409 348
410 # D 349 # D
411 Preferences.setEditor( 350 Preferences.setEditor(
412 "DFoldComment", 351 "DFoldComment",
413 self.foldDCommentCheckBox.isChecked()) 352 self.foldDCommentCheckBox.isChecked())
438 "HtmlFoldScriptComments", 377 "HtmlFoldScriptComments",
439 self.foldHtmlScriptCommentsCheckBox.isChecked()) 378 self.foldHtmlScriptCommentsCheckBox.isChecked())
440 Preferences.setEditor( 379 Preferences.setEditor(
441 "HtmlFoldScriptHeredocs", 380 "HtmlFoldScriptHeredocs",
442 self.foldHtmlScriptHereDocsCheckBox.isChecked()) 381 self.foldHtmlScriptHereDocsCheckBox.isChecked())
443 if QSCINTILLA_VERSION() >= 0x020500: 382 Preferences.setEditor(
444 Preferences.setEditor( 383 "HtmlDjangoTemplates",
445 "HtmlDjangoTemplates", 384 self.htmlDjangoCheckBox.isChecked())
446 self.htmlDjangoCheckBox.isChecked()) 385 Preferences.setEditor(
447 Preferences.setEditor( 386 "HtmlMakoTemplates",
448 "HtmlMakoTemplates", 387 self.htmlMakoCheckBox.isChecked())
449 self.htmlMakoCheckBox.isChecked()) 388
389 # JSON
390 if "JSON" in self.languages:
391 Preferences.setEditor("JSONHightlightComments",
392 self.jsonHighlightCommentsCheckBox.isChecked())
393 Preferences.setEditor("JSONHighlightEscapeSequences",
394 self.jsonHighlightEscapeCheckBox.isChecked())
450 395
451 # Pascal 396 # Pascal
452 if "Pascal" in self.languages: 397 Preferences.setEditor(
453 Preferences.setEditor( 398 "PascalFoldComment",
454 "PascalFoldComment", 399 self.foldPascalCommentCheckBox.isChecked())
455 self.foldPascalCommentCheckBox.isChecked()) 400 Preferences.setEditor(
456 Preferences.setEditor( 401 "PascalFoldPreprocessor",
457 "PascalFoldPreprocessor", 402 self.foldPascalPreprocessorCheckBox.isChecked())
458 self.foldPascalPreprocessorCheckBox.isChecked()) 403 Preferences.setEditor(
459 Preferences.setEditor( 404 "PascalSmartHighlighting",
460 "PascalSmartHighlighting", 405 self.pascalSmartHighlightingCheckBox.isChecked())
461 self.pascalSmartHighlightingCheckBox.isChecked())
462 406
463 # Perl 407 # Perl
464 Preferences.setEditor( 408 Preferences.setEditor(
465 "PerlFoldComment", 409 "PerlFoldComment",
466 self.foldPerlCommentCheckBox.isChecked()) 410 self.foldPerlCommentCheckBox.isChecked())
468 "PerlFoldPackages", 412 "PerlFoldPackages",
469 self.foldPerlPackagesCheckBox.isChecked()) 413 self.foldPerlPackagesCheckBox.isChecked())
470 Preferences.setEditor( 414 Preferences.setEditor(
471 "PerlFoldPODBlocks", 415 "PerlFoldPODBlocks",
472 self.foldPerlPODBlocksCheckBox.isChecked()) 416 self.foldPerlPODBlocksCheckBox.isChecked())
473 if QSCINTILLA_VERSION() >= 0x020600: 417 Preferences.setEditor(
474 Preferences.setEditor( 418 "PerlFoldAtElse",
475 "PerlFoldAtElse", 419 self.foldPerlAtElseCheckBox.isChecked())
476 self.foldPerlAtElseCheckBox.isChecked())
477 420
478 # PostScript 421 # PostScript
479 if "PostScript" in self.languages: 422 Preferences.setEditor(
480 Preferences.setEditor( 423 "PostScriptFoldAtElse",
481 "PostScriptFoldAtElse", 424 self.psFoldAtElseCheckBox.isChecked())
482 self.psFoldAtElseCheckBox.isChecked()) 425 Preferences.setEditor(
483 Preferences.setEditor( 426 "PostScriptTokenize",
484 "PostScriptTokenize", 427 self.psMarkTokensCheckBox.isChecked())
485 self.psMarkTokensCheckBox.isChecked()) 428 Preferences.setEditor(
486 Preferences.setEditor( 429 "PostScriptLevel",
487 "PostScriptLevel", 430 self.psLevelSpinBox.value())
488 self.psLevelSpinBox.value())
489 431
490 # Povray 432 # Povray
491 Preferences.setEditor( 433 Preferences.setEditor(
492 "PovFoldComment", 434 "PovFoldComment",
493 self.foldPovrayCommentCheckBox.isChecked()) 435 self.foldPovrayCommentCheckBox.isChecked())
494 Preferences.setEditor( 436 Preferences.setEditor(
495 "PovFoldDirectives", 437 "PovFoldDirectives",
496 self.foldPovrayDirectivesCheckBox.isChecked()) 438 self.foldPovrayDirectivesCheckBox.isChecked())
497 439
498 # Properties 440 # Properties
499 if QSCINTILLA_VERSION() >= 0x020500: 441 Preferences.setEditor(
500 Preferences.setEditor( 442 "PropertiesInitialSpaces",
501 "PropertiesInitialSpaces", 443 self.propertiesInitialSpacesCheckBox.isChecked())
502 self.propertiesInitialSpacesCheckBox.isChecked())
503 444
504 # Python 445 # Python
505 Preferences.setEditor( 446 Preferences.setEditor(
506 "PythonFoldComment", 447 "PythonFoldComment",
507 self.foldPythonCommentCheckBox.isChecked()) 448 self.foldPythonCommentCheckBox.isChecked())
521 "PythonAllowV3Binary", 462 "PythonAllowV3Binary",
522 self.pythonV3BinaryAllowedCheckBox.isChecked()) 463 self.pythonV3BinaryAllowedCheckBox.isChecked())
523 Preferences.setEditor( 464 Preferences.setEditor(
524 "PythonAllowV3Bytes", 465 "PythonAllowV3Bytes",
525 self.pythonV3BytesAllowedCheckBox.isChecked()) 466 self.pythonV3BytesAllowedCheckBox.isChecked())
526 if QSCINTILLA_VERSION() >= 0x020500: 467 Preferences.setEditor(
527 Preferences.setEditor( 468 "PythonFoldQuotes",
528 "PythonFoldQuotes", 469 self.foldPythonQuotesCheckBox.isChecked())
529 self.foldPythonQuotesCheckBox.isChecked()) 470 Preferences.setEditor(
530 Preferences.setEditor( 471 "PythonStringsOverNewLineAllowed",
531 "PythonStringsOverNewLineAllowed", 472 self.pythonStringsOverNewlineCheckBox.isChecked())
532 self.pythonStringsOverNewlineCheckBox.isChecked()) 473 Preferences.setEditor(
533 if QSCINTILLA_VERSION() >= 0x020600: 474 "PythonHighlightSubidentifier",
534 Preferences.setEditor( 475 self.pythonHighlightSubidentifierCheckBox.isChecked())
535 "PythonHighlightSubidentifier",
536 self.pythonHighlightSubidentifierCheckBox.isChecked())
537 476
538 # Ruby 477 # Ruby
539 if QSCINTILLA_VERSION() >= 0x020500: 478 Preferences.setEditor(
540 Preferences.setEditor( 479 "RubyFoldComment",
541 "RubyFoldComment", 480 self.foldRubyCommentCheckBox.isChecked())
542 self.foldRubyCommentCheckBox.isChecked())
543 481
544 # SQL 482 # SQL
545 Preferences.setEditor( 483 Preferences.setEditor(
546 "SqlFoldComment", 484 "SqlFoldComment",
547 self.foldSqlCommentCheckBox.isChecked()) 485 self.foldSqlCommentCheckBox.isChecked())
548 Preferences.setEditor( 486 Preferences.setEditor(
549 "SqlBackslashEscapes", 487 "SqlBackslashEscapes",
550 self.sqlBackslashEscapesCheckBox.isChecked()) 488 self.sqlBackslashEscapesCheckBox.isChecked())
551 if QSCINTILLA_VERSION() >= 0x020500: 489 Preferences.setEditor(
552 Preferences.setEditor( 490 "SqlFoldAtElse",
553 "SqlFoldAtElse", 491 self.sqlFoldAtElseCheckBox.isChecked())
554 self.sqlFoldAtElseCheckBox.isChecked()) 492 Preferences.setEditor(
555 Preferences.setEditor( 493 "SqlFoldOnlyBegin",
556 "SqlFoldOnlyBegin", 494 self.sqlFoldOnlyBeginCheckBox.isChecked())
557 self.sqlFoldOnlyBeginCheckBox.isChecked()) 495 Preferences.setEditor(
558 Preferences.setEditor( 496 "SqlDottedWords",
559 "SqlDottedWords", 497 self.sqlDottedWordsCheckBox.isChecked())
560 self.sqlDottedWordsCheckBox.isChecked()) 498 Preferences.setEditor(
561 Preferences.setEditor( 499 "SqlHashComments",
562 "SqlHashComments", 500 self.sqlHashCommentsCheckBox.isChecked())
563 self.sqlHashCommentsCheckBox.isChecked()) 501 Preferences.setEditor(
564 Preferences.setEditor( 502 "SqlQuotedIdentifiers",
565 "SqlQuotedIdentifiers", 503 self.sqlQuotedIdentifiersCheckBox.isChecked())
566 self.sqlQuotedIdentifiersCheckBox.isChecked())
567 504
568 # TCL 505 # TCL
569 if QSCINTILLA_VERSION() >= 0x020500: 506 Preferences.setEditor(
570 Preferences.setEditor( 507 "TclFoldComment",
571 "TclFoldComment", 508 self.foldTclCommentCheckBox.isChecked())
572 self.foldTclCommentCheckBox.isChecked())
573 509
574 # TeX 510 # TeX
575 if QSCINTILLA_VERSION() >= 0x020500: 511 Preferences.setEditor(
576 Preferences.setEditor( 512 "TexFoldComment",
577 "TexFoldComment", 513 self.foldTexCommentCheckBox.isChecked())
578 self.foldTexCommentCheckBox.isChecked()) 514 Preferences.setEditor(
579 Preferences.setEditor( 515 "TexProcessComments",
580 "TexProcessComments", 516 self.texProcessCommentsCheckBox.isChecked())
581 self.texProcessCommentsCheckBox.isChecked()) 517 Preferences.setEditor(
582 Preferences.setEditor( 518 "TexProcessIf",
583 "TexProcessIf", 519 self.texProcessIfCheckBox.isChecked())
584 self.texProcessIfCheckBox.isChecked())
585 520
586 # VHDL 521 # VHDL
587 Preferences.setEditor( 522 Preferences.setEditor(
588 "VHDLFoldComment", 523 "VHDLFoldComment",
589 self.vhdlFoldCommentCheckBox.isChecked()) 524 self.vhdlFoldCommentCheckBox.isChecked())
601 Preferences.setEditor( 536 Preferences.setEditor(
602 "XMLStyleScripts", 537 "XMLStyleScripts",
603 self.xmlSyleScriptsCheckBox.isChecked()) 538 self.xmlSyleScriptsCheckBox.isChecked())
604 539
605 # YAML 540 # YAML
606 if "YAML" in self.languages: 541 Preferences.setEditor(
607 Preferences.setEditor( 542 "YAMLFoldComment",
608 "YAMLFoldComment", 543 self.foldYamlCommentCheckBox.isChecked())
609 self.foldYamlCommentCheckBox.isChecked())
610 544
611 545
612 def create(dlg): 546 def create(dlg):
613 """ 547 """
614 Module function to create the configuration page. 548 Module function to create the configuration page.

eric ide

mercurial