Package peppy :: Module frame :: Class BufferFrame
[frames] | no frames]

Class BufferFrame

         buffers.wx.Frame --+
                            |
               object --+   |
                        |   |
lib.userparams.ClassPrefs --+
                            |
               object --+   |
                        |   |
         debug.debugmixin --+
                            |
                           BufferFrame

Nested Classes

Inherited from lib.userparams.ClassPrefs: __metaclass__

Instance Methods
 
__init__(self, urls=[], id=-1, buffer=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
bindEvents(self)
 
unbindEvents(self)
 
loadList(self, urls)
 
addPane(self, win, paneinfo)
 
loadSidebars(self)
 
createSidebar(self, sidebarcls)
Create the sidebar and register it with the frame's AUI Manager.
 
createSidebarList(self)
 
OnIdle(self, evt)
 
OnRaise(self, evt)
 
OnSize(self, evt)
 
OnSizeTimer(self, evt=None)
 
OnClose(self, evt=None)
 
OnKeyPressed(self, evt)
 
Raise(self)
 
SetStatusText(self, text, index=0)
 
setKeys(self, majormodes=[], minormodes=[])
 
clearMenumap(self)
 
setMenumap(self, mode)
 
enableTools(self)
Enable toolbar buttons.
 
getActiveMajorMode(self)
 
getAllMajorModes(self)
 
isOpen(self)
 
isTopWindow(self)
 
closeWindow(self)
 
closeBuffer(self)
 
setTitle(self)
 
showModified(self, major)
 
titleBuffer(self)
 
isTitleBufferOnly(self)
 
setBuffer(self, buffer, wrapper=None)
 
newBuffer(self, buffer)
 
changeMajorMode(self, requested)
 
open(self, url, modecls=None, mode_to_replace=None, force_new_tab=False)
 
openNonThreaded(self, user_url, loading_buffer, mode_to_replace=None, force_new_tab=False)
 
openThreaded(self, user_url, loading_buffer, mode_to_replace=None)
 
openSuccess(self, user_url, buffer, mode_to_replace=None, progress=None)
 
openFailure(self, url, error, mode_to_replace=None, progress=None)
 
save(self)
 
cwd(self, use_vfs=False)
Get working filesystem directory for current mode.
 
switchMode(self)
 
getAllModes(self)
 
pluginsChanged(self, msg)
Update the display after plugins changed, because it might affect the menu or toolbar if new plugins were activated or existing ones were deactivated.
 
getTitle(self)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods
 
closeAllWindows(cls)

Inherited from debug.debugmixin: dprint

Class Variables
  frameid = 0
  load_error_count = 0
  size_timer = None
  perspectives = {}
  default_classprefs = IntParam('width', 800, 'Width of the main...
  default_menubar = {_("File"): 0, _("Edit"): 0.001, _("View"): ...
  enablecount = 0

Inherited from lib.userparams.ClassPrefs: classprefs, preferences_sort_weight

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from object: __class__

Method Details

__init__(self, urls=[], id=-1, buffer=None)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

enableTools(self)

 

Enable toolbar buttons.

Fixed bug? Originally, the enabling of individual toolbar buttons was accomplished using the EVT_UPDATE_UI event on the toolbar button itself. When deleting toolbars, that caused a crash because one toolbar button was getting its enable method called after the toolbar was destroyed. By moving the toolbar enabling out of there and into here, the crash was eliminated. This is called using the STC_UPDATEUI event now. I think this is more efficient, anyway.

cwd(self, use_vfs=False)

 

Get working filesystem directory for current mode.

Convenience function to get working directory of the current mode.


Class Variable Details

default_classprefs

Value:
IntParam('width', 800, 'Width of the main frame in pixels'), IntParam(\
'height', 600, 'Height of the main frame in pixels'), StrParam('sideba\
rs', '', 'List of sidebars to activate with the frame'), BoolParam('sh\
ow_toolbar', True, 'Show the toolbar on all frames?\nNote: this is a g\
lobal setting for all frames.'), BoolParam('fast_resize', False, 'Spee\
d up resize events by deferring window\nrepaints until the mouse stops\
 moving'),

default_menubar

Value:
{_("File"): 0, _("Edit"): 0.001, _("View"): 0.003, _("Tools"): 0.004, \
_("Transform"): 0.005, _("Documents"): 1000.1, _("Window"): 1000.2, _(\
"&Help"): 1000.3,}