Package Editra :: Package src :: Module style_editor
[hide private]

Module style_editor

source code

Provides an editor dialog for graphically editing how the text is presented in the editor when syntax highlighting is turned on. It does this by taking the data from the controls and formating it into an Editra Style Sheet that the editor can load to configure the styles of the text.


Author: Cody Precord <cprecord@editra.org>

Classes [hide private]
  StyleEditor
This class creates the window that contains the controls for editing/configuring the syntax highlighting styles it acts as a graphical way to interact with the ed_style.StyleMgr.
  SettingsPanel
Panel holding all settings controls for changing the font, colors, styles, ect..
Functions [hide private]
 
DuplicateStyleDict(style_dict)
Duplicates the style dictionary to make a true copy of it, as simply assigning the dictionary to two different variables only copies a reference leaving both variables pointing to the same object.
source code
 
UpdateBufferStyles(sheet)
Update the style used in all buffers
source code
Variables [hide private]
  __svnid__ = '$Id: style_editor.py 59714 2009-03-22 01:31:07Z C...
  __revision__ = '$Revision: 59714 $'
  ID_STYLES = 280
  ID_FORE_COLOR = 281
  ID_BACK_COLOR = 282
  ID_BOLD = 283
  ID_ITALIC = 284
  ID_EOL = 285
  ID_ULINE = 286
  ID_FONT = 287
  ID_FONT_SIZE = 288
  SETTINGS_IDS = [281, 282, 283, 284, 285, 286, 287, 288]
Function Details [hide private]

DuplicateStyleDict(style_dict)

source code 

Duplicates the style dictionary to make a true copy of it, as simply assigning the dictionary to two different variables only copies a reference leaving both variables pointing to the same object.

Parameters:
  • style_dict - dictionary of tags->StyleItems
Returns:
a copy of the given styleitem dictionary

UpdateBufferStyles(sheet)

source code 

Update the style used in all buffers

Parameters:
  • sheet - Style sheet to use

Variables Details [hide private]

__svnid__

Value:
'$Id: style_editor.py 59714 2009-03-22 01:31:07Z CJP $'