Package wx :: Package lib :: Module pydocview :: Class FilePropertiesService
[frames | no frames]

Type FilePropertiesService

object --+            
         |            
    Object --+        
             |        
    EvtHandler --+    
                 |    
        DocService --+
                     |
                    FilePropertiesService


Service that installs under the File menu to show the properties of the file associated with the current document.


Method Summary
  __init__(self)
Initializes the PropertyService.
  AddCustomEventHandler(self, handler)
Adds a custom event handlers for the PropertyService.
  chopPath(self, text, length)
Simple version of textwrap.
  GetCustomEventHandlers(self)
Returns the custom event handlers for the PropertyService.
  InstallControls(self, frame, menuBar, toolBar, statusBar, document)
Installs a File/Properties menu item.
  ProcessEvent(self, event)
Detects when the File/Properties menu item is selected.
  ProcessUpdateUIEvent(self, event)
Updates the File/Properties menu item.
  RemoveCustomEventHandler(self, handler)
Removes a custom event handler from the PropertyService.
  ShowPropertiesDialog(self, filename)
Shows the PropertiesDialog for the specified file.
    Inherited from DocService
  GetDocumentManager(self)
Returns the DocManager for the docview application.
  GetMenuItemPos(self, menu, id)
Utility method used to find the position of a menu item so that services can easily find where to insert a menu item in InstallControls.
  GetView(self)
Called by WindowMenuService to get views for services that don't have dedicated documents such as the Outline Service.
  OnCloseFrame(self, event)
Called when the a docview frame is being closed.
  OnExit(self)
Called when the the docview application is being closed.
  ProcessEventBeforeWindows(self, event)
Processes an event before the main window has a chance to process the window.
  ProcessUpdateUIEventBeforeWindows(self, event)
Processes a UI event before the main window has a chance to process the window.
  SetDocumentManager(self, docManager)
Sets the DocManager for the docview application.
    Inherited from EvtHandler
  __repr__(self)
  AddPendingEvent(self, event)
  Bind(self, event, handler, source, id, id2)
Bind an event to an event handler.
  Connect(self, id, lastId, eventType, func)
bool Disconnect(self, id, lastId, eventType)
bool GetEvtHandlerEnabled(self)
EvtHandler GetNextHandler(self)
EvtHandler GetPreviousHandler(self)
  ProcessPendingEvents(self)
  SetEvtHandlerEnabled(self, enabled)
  SetNextHandler(self, handler)
  SetPreviousHandler(self, handler)
  Unbind(self, event, source, id, id2)
Disconencts the event handler binding for event from self.
    Inherited from Object
  Destroy(self)
Deletes the C++ object this Python object is a proxy for.
String GetClassName(self)
Returns the class name of the C++ class using wxRTTI.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Class Variable Summary
int PROPERTIES_ID = 146                                                                   

Method Details

__init__(self)
(Constructor)

Initializes the PropertyService.

Overrides:
wx.lib.pydocview.DocService.__init__

AddCustomEventHandler(self, handler)

Adds a custom event handlers for the PropertyService. A custom event handler enables a different dialog to be provided for a particular file.

chopPath(self, text, length=36)

Simple version of textwrap. textwrap.fill() unfortunately chops lines at spaces and creates odd word boundaries. Instead, we will chop the path without regard to spaces, but pay attention to path delimiters.

GetCustomEventHandlers(self)

Returns the custom event handlers for the PropertyService.

InstallControls(self, frame, menuBar=None, toolBar=None, statusBar=None, document=None)

Installs a File/Properties menu item.

Overrides:
wx.lib.pydocview.DocService.InstallControls

ProcessEvent(self, event)

Detects when the File/Properties menu item is selected.

Overrides:
wx.lib.pydocview.DocService.ProcessEvent

ProcessUpdateUIEvent(self, event)

Updates the File/Properties menu item.

Overrides:
wx.lib.pydocview.DocService.ProcessUpdateUIEvent

RemoveCustomEventHandler(self, handler)

Removes a custom event handler from the PropertyService.

ShowPropertiesDialog(self, filename=None)

Shows the PropertiesDialog for the specified file.


Class Variable Details

PROPERTIES_ID

Type:
int
Value:
146                                                                   

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:55:12 2007 http://epydoc.sf.net