src/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py

branch
eric7
changeset 10135
36839e2c6945
parent 9653
e67609152c5e
child 10373
093dcebe5ecb
equal deleted inserted replaced
10134:08ca9b336a43 10135:36839e2c6945
287 self.yamlGroup.setEnabled(True) 287 self.yamlGroup.setEnabled(True)
288 self.foldYamlCommentCheckBox.setChecked( 288 self.foldYamlCommentCheckBox.setChecked(
289 Preferences.getEditor("YAMLFoldComment") 289 Preferences.getEditor("YAMLFoldComment")
290 ) 290 )
291 291
292 def setMode(self, displayMode):
293 """
294 Public method to perform mode dependent setups.
295
296 @param displayMode mode of the configuration dialog
297 @type ConfigurationMode
298 """
299 from ..ConfigurationDialog import ConfigurationMode
300
301 if displayMode in (ConfigurationMode.SHELLMODE,):
302 self.bashGroup.hide()
303 self.cppGroup.hide()
304 self.cmakeGroup.hide()
305 self.coffeeScriptGroup.hide()
306 self.cssGroup.hide()
307 self.dGroup.hide()
308 self.gettextGroup.hide()
309 self.htmlGroup.hide()
310 self.jsonGroup.hide()
311 self.pascalGroup.hide()
312 self.perlGroup.hide()
313 self.postscriptGroup.hide()
314 self.povrayGroup.hide()
315 self.propertiesGroup.hide()
316 self.rubyGroup.hide()
317 self.sqlGroup.hide()
318 self.tclGroup.hide()
319 self.texGroup.hide()
320 self.vhdlGroup.hide()
321 self.yamlGroup.hide()
322
292 def save(self): 323 def save(self):
293 """ 324 """
294 Public slot to save the Editor Properties (1) configuration. 325 Public slot to save the Editor Properties (1) configuration.
295 """ 326 """
296 # All 327 # All

eric ide

mercurial