Editra  0.7.08
Editra API Documentation
 All Classes Namespaces Functions Variables Properties
Classes | Functions | Variables
Editra::src::style_editor Namespace Reference

Classes

class  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. More...
class  StyleEditorBox
 StyleEditor main Panel. More...
class  StyleEditorPanel
 Main panel for the editor portion of the StyleEditor. More...
class  SettingsPanel
 Panel holding all settings controls for changing the font, colors, styles, ect. More...
class  PreviewPanel
 Panel to hold the preview window and selector. More...

Functions

def DuplicateStyleDict
 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.
def UpdateBufferStyles
 Update the style used in all buffers.

Variables

string __author__ = "Cody Precord <cprecord@editra.org>"
 Provides an editor dialog for graphically editing how the text is presented in the editor when syntax highlighting is turned on.
string __svnid__ = "$Id: style_editor.py 70228 2011-12-31 20:39:16Z CJP $"
string __revision__ = "$Revision: 70228 $"
 _ = wx.GetTranslation
tuple ID_FORE_COLOR = wx.NewId()
tuple ID_BACK_COLOR = wx.NewId()
tuple ID_BOLD = wx.NewId()
tuple ID_ITALIC = wx.NewId()
tuple ID_EOL = wx.NewId()
tuple ID_ULINE = wx.NewId()
tuple ID_FONT = wx.NewId()
tuple ID_FONT_SIZE = wx.NewId()
list SETTINGS_IDS
int MOD_NONE = 0
int MOD_DOESNT_EXIST = 1
int MOD_CHANGE_PRESENT = 2

Function Documentation

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_dictdictionary of tags->StyleItems
Returns:
a copy of the given styleitem dictionary

Update the style used in all buffers.

Parameters:
sheetStyle sheet to use

Variable Documentation

_ = wx.GetTranslation
string __author__ = "Cody Precord <cprecord@editra.org>"

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.

Gui for creating custom Editra Style Sheets

string __revision__ = "$Revision: 70228 $"
string __svnid__ = "$Id: style_editor.py 70228 2011-12-31 20:39:16Z CJP $"
tuple ID_BACK_COLOR = wx.NewId()
tuple ID_BOLD = wx.NewId()
tuple ID_EOL = wx.NewId()
tuple ID_FONT = wx.NewId()
tuple ID_FONT_SIZE = wx.NewId()
tuple ID_FORE_COLOR = wx.NewId()
tuple ID_ITALIC = wx.NewId()
tuple ID_ULINE = wx.NewId()
int MOD_NONE = 0
Initial value:
00001 [ ID_FORE_COLOR, ID_BACK_COLOR, ID_BOLD, ID_ITALIC,
00002                  ID_EOL, ID_ULINE, ID_FONT, ID_FONT_SIZE ]
 All Classes Namespaces Functions Variables Properties