Preferences/ConfigurationPages/EditorPropertiesPage.py

changeset 4206
8f0d697e6384
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4202:64027512bbf3 4206:8f0d697e6384
70 if QSCINTILLA_VERSION() >= 0x020700: 70 if QSCINTILLA_VERSION() >= 0x020700:
71 self.cppHighlightHashQuotedCheckBox.setChecked( 71 self.cppHighlightHashQuotedCheckBox.setChecked(
72 Preferences.getEditor("CppHighlightHashQuotedStrings")) 72 Preferences.getEditor("CppHighlightHashQuotedStrings"))
73 else: 73 else:
74 self.cppHighlightHashQuotedCheckBox.setEnabled(False) 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)
75 87
76 # CMake 88 # CMake
77 self.cmakeFoldAtElseCheckBox.setChecked( 89 self.cmakeFoldAtElseCheckBox.setChecked(
78 Preferences.getEditor("CMakeFoldAtElse")) 90 Preferences.getEditor("CMakeFoldAtElse"))
79 91
350 self.cppHighlightTripleQuotedCheckBox.isChecked()) 362 self.cppHighlightTripleQuotedCheckBox.isChecked())
351 if QSCINTILLA_VERSION() >= 0x020700: 363 if QSCINTILLA_VERSION() >= 0x020700:
352 Preferences.setEditor( 364 Preferences.setEditor(
353 "CppHighlightHashQuotedStrings", 365 "CppHighlightHashQuotedStrings",
354 self.cppHighlightHashQuotedCheckBox.isChecked()) 366 self.cppHighlightHashQuotedCheckBox.isChecked())
367 if QSCINTILLA_VERSION() >= 0x020900:
368 Preferences.setEditor(
369 "CppHighlightBackQuotedStrings",
370 self.cppHighlightBackQuotedCheckBox.isChecked())
371 Preferences.setEditor(
372 "CppHighlightEscapeSequences",
373 self.cppHighlightEsacepSequencesCheckBox.isChecked())
374 Preferences.setEditor(
375 "CppVerbatimStringEscapeSequencesAllowed",
376 self.cppVerbatimStringEscapeAllowedCheckBox.isChecked())
355 377
356 # CMake 378 # CMake
357 Preferences.setEditor( 379 Preferences.setEditor(
358 "CMakeFoldAtElse", 380 "CMakeFoldAtElse",
359 self.cmakeFoldAtElseCheckBox.isChecked()) 381 self.cmakeFoldAtElseCheckBox.isChecked())

eric ide

mercurial