62 if QSCINTILLA_VERSION() >= 0x020500: |
62 if QSCINTILLA_VERSION() >= 0x020500: |
63 self.cppStylePreprocessorCheckBox.setChecked( |
63 self.cppStylePreprocessorCheckBox.setChecked( |
64 Preferences.getEditor("CppStylePreprocessor")) |
64 Preferences.getEditor("CppStylePreprocessor")) |
65 else: |
65 else: |
66 self.cppStylePreprocessorCheckBox.setEnabled(False) |
66 self.cppStylePreprocessorCheckBox.setEnabled(False) |
|
67 if QSCINTILLA_VERSION() >= 0x020600: |
|
68 self.cppHighlightTripleQuotedCheckBox.setChecked( |
|
69 Preferences.getEditor("CppHighlightTripleQuotedStrings")) |
|
70 else: |
|
71 self.cppHighlightTripleQuotedCheckBox.setEnabled(False) |
|
72 |
67 |
73 |
68 # CSS |
74 # CSS |
69 self.foldCssCommentCheckBox.setChecked( |
75 self.foldCssCommentCheckBox.setChecked( |
70 Preferences.getEditor("CssFoldComment")) |
76 Preferences.getEditor("CssFoldComment")) |
71 |
77 |
117 Preferences.getEditor("PerlFoldComment")) |
123 Preferences.getEditor("PerlFoldComment")) |
118 self.foldPerlPackagesCheckBox.setChecked( |
124 self.foldPerlPackagesCheckBox.setChecked( |
119 Preferences.getEditor("PerlFoldPackages")) |
125 Preferences.getEditor("PerlFoldPackages")) |
120 self.foldPerlPODBlocksCheckBox.setChecked( |
126 self.foldPerlPODBlocksCheckBox.setChecked( |
121 Preferences.getEditor("PerlFoldPODBlocks")) |
127 Preferences.getEditor("PerlFoldPODBlocks")) |
|
128 if QSCINTILLA_VERSION() >= 0x020600: |
|
129 self.foldPerlAtElseCheckBox.setChecked( |
|
130 Preferences.getEditor("PerlFoldAtElse")) |
|
131 else: |
|
132 self.foldPerlAtElseCheckBox.setEnabled(False) |
122 |
133 |
123 # PostScript |
134 # PostScript |
124 if "PostScript" in self.languages: |
135 if "PostScript" in self.languages: |
125 self.postscriptGroup.setEnabled(True) |
136 self.postscriptGroup.setEnabled(True) |
126 self.psFoldAtElseCheckBox.setChecked( |
137 self.psFoldAtElseCheckBox.setChecked( |
166 self.pythonStringsOverNewlineCheckBox.setChecked( |
177 self.pythonStringsOverNewlineCheckBox.setChecked( |
167 Preferences.getEditor("PythonStringsOverNewLineAllowed")) |
178 Preferences.getEditor("PythonStringsOverNewLineAllowed")) |
168 else: |
179 else: |
169 self.foldPythonQuotesCheckBox.setEnabled(False) |
180 self.foldPythonQuotesCheckBox.setEnabled(False) |
170 self.pythonStringsOverNewlineCheckBox.setEnabled(False) |
181 self.pythonStringsOverNewlineCheckBox.setEnabled(False) |
|
182 if QSCINTILLA_VERSION() >= 0x020600: |
|
183 self.pythonHighlightSubidentifierCheckBox.setChecked( |
|
184 Preferences.getEditor("PythonHighlightSubidentifier")) |
|
185 else: |
|
186 self.pythonHighlightSubidentifierCheckBox.setEnabled(False) |
171 |
187 |
172 # Ruby |
188 # Ruby |
173 if QSCINTILLA_VERSION() >= 0x020500: |
189 if QSCINTILLA_VERSION() >= 0x020500: |
174 self.foldRubyCommentCheckBox.setChecked( |
190 self.foldRubyCommentCheckBox.setChecked( |
175 Preferences.getEditor("RubyFoldComment")) |
191 Preferences.getEditor("RubyFoldComment")) |
273 Preferences.setEditor("CppDollarsAllowed", |
289 Preferences.setEditor("CppDollarsAllowed", |
274 self.cppDollarAllowedCheckBox.isChecked()) |
290 self.cppDollarAllowedCheckBox.isChecked()) |
275 if QSCINTILLA_VERSION() >= 0x020500: |
291 if QSCINTILLA_VERSION() >= 0x020500: |
276 Preferences.setEditor("CppStylePreprocessor", |
292 Preferences.setEditor("CppStylePreprocessor", |
277 self.cppStylePreprocessorCheckBox.isChecked()) |
293 self.cppStylePreprocessorCheckBox.isChecked()) |
|
294 if QSCINTILLA_VERSION() >= 0x020600: |
|
295 Preferences.setEditor("CppHighlightTripleQuotedStrings", |
|
296 self.cppHighlightTripleQuotedCheckBox.isChecked()) |
278 |
297 |
279 # CSS |
298 # CSS |
280 Preferences.setEditor("CssFoldComment", |
299 Preferences.setEditor("CssFoldComment", |
281 self.foldCssCommentCheckBox.isChecked()) |
300 self.foldCssCommentCheckBox.isChecked()) |
282 |
301 |
319 self.foldPerlCommentCheckBox.isChecked()) |
338 self.foldPerlCommentCheckBox.isChecked()) |
320 Preferences.setEditor("PerlFoldPackages", |
339 Preferences.setEditor("PerlFoldPackages", |
321 self.foldPerlPackagesCheckBox.isChecked()) |
340 self.foldPerlPackagesCheckBox.isChecked()) |
322 Preferences.setEditor("PerlFoldPODBlocks", |
341 Preferences.setEditor("PerlFoldPODBlocks", |
323 self.foldPerlPODBlocksCheckBox.isChecked()) |
342 self.foldPerlPODBlocksCheckBox.isChecked()) |
|
343 if QSCINTILLA_VERSION() >= 0x020600: |
|
344 Preferences.setEditor("PerlFoldAtElse", |
|
345 self.foldPerlAtElseCheckBox.isChecked()) |
324 |
346 |
325 # PostScript |
347 # PostScript |
326 if "PostScript" in self.languages: |
348 if "PostScript" in self.languages: |
327 Preferences.setEditor("PostScriptFoldAtElse", |
349 Preferences.setEditor("PostScriptFoldAtElse", |
328 self.psFoldAtElseCheckBox.isChecked()) |
350 self.psFoldAtElseCheckBox.isChecked()) |
360 if QSCINTILLA_VERSION() >= 0x020500: |
382 if QSCINTILLA_VERSION() >= 0x020500: |
361 Preferences.setEditor("PythonFoldQuotes", |
383 Preferences.setEditor("PythonFoldQuotes", |
362 self.foldPythonQuotesCheckBox.isChecked()) |
384 self.foldPythonQuotesCheckBox.isChecked()) |
363 Preferences.setEditor("PythonStringsOverNewLineAllowed", |
385 Preferences.setEditor("PythonStringsOverNewLineAllowed", |
364 self.pythonStringsOverNewlineCheckBox.isChecked()) |
386 self.pythonStringsOverNewlineCheckBox.isChecked()) |
|
387 if QSCINTILLA_VERSION() >= 0x020600: |
|
388 Preferences.setEditor("PythonHighlightSubidentifier", |
|
389 self.pythonHighlightSubidentifierCheckBox.isChecked()) |
365 |
390 |
366 # Ruby |
391 # Ruby |
367 if QSCINTILLA_VERSION() >= 0x020500: |
392 if QSCINTILLA_VERSION() >= 0x020500: |
368 Preferences.setEditor("RubyFoldComment", |
393 Preferences.setEditor("RubyFoldComment", |
369 self.foldRubyCommentCheckBox.isChecked()) |
394 self.foldRubyCommentCheckBox.isChecked()) |