eric6/Preferences/ConfigurationPages/EditorPropertiesPage.py

branch
without_py2_and_pyqt4
changeset 7202
d2f2a1fe0129
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7201:6b42677d7043 7202:d2f2a1fe0129
6 """ 6 """
7 Module implementing the Editor Properties configuration page. 7 Module implementing the Editor Properties configuration page.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11
12 from QScintilla.QsciScintillaCompat import QSCINTILLA_VERSION
13 11
14 from .ConfigurationPageBase import ConfigurationPageBase 12 from .ConfigurationPageBase import ConfigurationPageBase
15 from .Ui_EditorPropertiesPage import Ui_EditorPropertiesPage 13 from .Ui_EditorPropertiesPage import Ui_EditorPropertiesPage
16 14
17 import Preferences 15 import Preferences
302 "CppHighlightTripleQuotedStrings", 300 "CppHighlightTripleQuotedStrings",
303 self.cppHighlightTripleQuotedCheckBox.isChecked()) 301 self.cppHighlightTripleQuotedCheckBox.isChecked())
304 Preferences.setEditor( 302 Preferences.setEditor(
305 "CppHighlightHashQuotedStrings", 303 "CppHighlightHashQuotedStrings",
306 self.cppHighlightHashQuotedCheckBox.isChecked()) 304 self.cppHighlightHashQuotedCheckBox.isChecked())
307 if QSCINTILLA_VERSION() >= 0x020900: 305 Preferences.setEditor(
308 Preferences.setEditor( 306 "CppHighlightBackQuotedStrings",
309 "CppHighlightBackQuotedStrings", 307 self.cppHighlightBackQuotedCheckBox.isChecked())
310 self.cppHighlightBackQuotedCheckBox.isChecked()) 308 Preferences.setEditor(
311 Preferences.setEditor( 309 "CppHighlightEscapeSequences",
312 "CppHighlightEscapeSequences", 310 self.cppHighlightEsacepSequencesCheckBox.isChecked())
313 self.cppHighlightEsacepSequencesCheckBox.isChecked()) 311 Preferences.setEditor(
314 Preferences.setEditor( 312 "CppVerbatimStringEscapeSequencesAllowed",
315 "CppVerbatimStringEscapeSequencesAllowed", 313 self.cppVerbatimStringEscapeAllowedCheckBox.isChecked())
316 self.cppVerbatimStringEscapeAllowedCheckBox.isChecked())
317 314
318 # CMake 315 # CMake
319 Preferences.setEditor( 316 Preferences.setEditor(
320 "CMakeFoldAtElse", 317 "CMakeFoldAtElse",
321 self.cmakeFoldAtElseCheckBox.isChecked()) 318 self.cmakeFoldAtElseCheckBox.isChecked())

eric ide

mercurial