39 Preferences.getEditor("AllFoldCompact")) |
39 Preferences.getEditor("AllFoldCompact")) |
40 |
40 |
41 # Bash |
41 # Bash |
42 self.foldBashCommentCheckBox.setChecked( |
42 self.foldBashCommentCheckBox.setChecked( |
43 Preferences.getEditor("BashFoldComment")) |
43 Preferences.getEditor("BashFoldComment")) |
44 |
|
45 # CMake |
|
46 self.cmakeFoldAtElseCheckBox.setChecked( |
|
47 Preferences.getEditor("CMakeFoldAtElse")) |
|
48 |
44 |
49 # C++ |
45 # C++ |
50 self.foldCppCommentCheckBox.setChecked( |
46 self.foldCppCommentCheckBox.setChecked( |
51 Preferences.getEditor("CppFoldComment")) |
47 Preferences.getEditor("CppFoldComment")) |
52 self.foldCppPreprocessorCheckBox.setChecked( |
48 self.foldCppPreprocessorCheckBox.setChecked( |
75 self.cppHighlightHashQuotedCheckBox.setChecked( |
71 self.cppHighlightHashQuotedCheckBox.setChecked( |
76 Preferences.getEditor("CppHighlightHashQuotedStrings")) |
72 Preferences.getEditor("CppHighlightHashQuotedStrings")) |
77 else: |
73 else: |
78 self.cppHighlightHashQuotedCheckBox.setEnabled(False) |
74 self.cppHighlightHashQuotedCheckBox.setEnabled(False) |
79 |
75 |
|
76 # CMake |
|
77 self.cmakeFoldAtElseCheckBox.setChecked( |
|
78 Preferences.getEditor("CMakeFoldAtElse")) |
|
79 |
|
80 # CoffeeScript |
|
81 if "CoffeeScript" in self.languages: |
|
82 self.foldCoffeeScriptCommentCheckBox.setChecked( |
|
83 Preferences.getEditor("CoffeScriptFoldComment")) |
|
84 self.coffeeScriptDollarAllowedCheckBox.setChecked( |
|
85 Preferences.getEditor("CoffeeScriptDollarsAllowed")) |
|
86 self.coffeeScriptStylePreprocessorCheckBox.setChecked( |
|
87 Preferences.getEditor("CoffeeScriptStylePreprocessor")) |
|
88 else: |
|
89 self.coffeeScriptGroup.setEnabled(False) |
|
90 |
80 # CSS |
91 # CSS |
81 self.foldCssCommentCheckBox.setChecked( |
92 self.foldCssCommentCheckBox.setChecked( |
82 Preferences.getEditor("CssFoldComment")) |
93 Preferences.getEditor("CssFoldComment")) |
83 if QSCINTILLA_VERSION() >= 0x020700: |
94 if QSCINTILLA_VERSION() >= 0x020700: |
84 self.cssHssCheckBox.setChecked( |
95 self.cssHssCheckBox.setChecked( |
333 if QSCINTILLA_VERSION() >= 0x020700: |
344 if QSCINTILLA_VERSION() >= 0x020700: |
334 Preferences.setEditor( |
345 Preferences.setEditor( |
335 "CppHighlightHashQuotedStrings", |
346 "CppHighlightHashQuotedStrings", |
336 self.cppHighlightHashQuotedCheckBox.isChecked()) |
347 self.cppHighlightHashQuotedCheckBox.isChecked()) |
337 |
348 |
|
349 # CMake |
|
350 Preferences.setEditor( |
|
351 "CMakeFoldAtElse", |
|
352 self.cmakeFoldAtElseCheckBox.isChecked()) |
|
353 |
|
354 # CoffeeScript |
|
355 if "CoffeeScript" in self.languages: |
|
356 Preferences.setEditor( |
|
357 "CoffeScriptFoldComment", |
|
358 self.foldCoffeeScriptCommentCheckBox.isChecked()) |
|
359 Preferences.setEditor( |
|
360 "CoffeeScriptDollarsAllowed", |
|
361 self.coffeeScriptDollarAllowedCheckBox.isChecked()) |
|
362 Preferences.setEditor( |
|
363 "CoffeeScriptStylePreprocessor", |
|
364 self.coffeeScriptStylePreprocessorCheckBox.isChecked()) |
|
365 |
338 # CSS |
366 # CSS |
339 Preferences.setEditor( |
367 Preferences.setEditor( |
340 "CssFoldComment", |
368 "CssFoldComment", |
341 self.foldCssCommentCheckBox.isChecked()) |
369 self.foldCssCommentCheckBox.isChecked()) |
342 if QSCINTILLA_VERSION() >= 0x020700: |
370 if QSCINTILLA_VERSION() >= 0x020700: |