Preferences/ConfigurationPages/EditorPropertiesPage.py

changeset 3557
3ea8ba471d96
parent 3178
f25fc1364c88
child 3647
fef91a1eb27b
equal deleted inserted replaced
3556:40e205ef1470 3557:3ea8ba471d96
100 self.dIndentOpeningBraceCheckBox.setChecked( 100 self.dIndentOpeningBraceCheckBox.setChecked(
101 Preferences.getEditor("DIndentOpeningBrace")) 101 Preferences.getEditor("DIndentOpeningBrace"))
102 self.dIndentClosingBraceCheckBox.setChecked( 102 self.dIndentClosingBraceCheckBox.setChecked(
103 Preferences.getEditor("DIndentClosingBrace")) 103 Preferences.getEditor("DIndentClosingBrace"))
104 104
105 # Gettext
106 if "Gettext" in self.languages:
107 self.foldPoCommentCheckBox.setChecked(
108 Preferences.getEditor("PoFoldComment"))
109 else:
110 self.gettextGroup.setEnabled(False)
111
105 # HTML 112 # HTML
106 self.foldHtmlPreprocessorCheckBox.setChecked( 113 self.foldHtmlPreprocessorCheckBox.setChecked(
107 Preferences.getEditor("HtmlFoldPreprocessor")) 114 Preferences.getEditor("HtmlFoldPreprocessor"))
108 self.htmlCaseSensitiveTagsCheckBox.setChecked( 115 self.htmlCaseSensitiveTagsCheckBox.setChecked(
109 Preferences.getEditor("HtmlCaseSensitiveTags")) 116 Preferences.getEditor("HtmlCaseSensitiveTags"))
355 self.dIndentOpeningBraceCheckBox.isChecked()) 362 self.dIndentOpeningBraceCheckBox.isChecked())
356 Preferences.setEditor( 363 Preferences.setEditor(
357 "DIndentClosingBrace", 364 "DIndentClosingBrace",
358 self.dIndentClosingBraceCheckBox.isChecked()) 365 self.dIndentClosingBraceCheckBox.isChecked())
359 366
367 # Gettext
368 if "Gettext" in self.languages:
369 Preferences.setEditor(
370 "PoFoldComment",
371 self.foldPoCommentCheckBox.isChecked())
372
360 # HTML 373 # HTML
361 Preferences.setEditor( 374 Preferences.setEditor(
362 "HtmlFoldPreprocessor", 375 "HtmlFoldPreprocessor",
363 self.foldHtmlPreprocessorCheckBox.isChecked()) 376 self.foldHtmlPreprocessorCheckBox.isChecked())
364 Preferences.setEditor( 377 Preferences.setEditor(

eric ide

mercurial