Changeset 1650

Show
Ignore:
Timestamp:
12/08/2005 11:18:43 AM (3 years ago)
Author:
ed
Message:

Guess that the recent split of dEditor won't work well without posting the changes to dEvents, too! (blush)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/dEvents.py

    r1640 r1650  
    138138    appliesToClass = classmethod(appliesToClass) 
    139139             
     140class EditorEvent(Event): 
     141    def appliesToClass(eventClass, objectClass): 
     142        return issubclass(objectClass, dabo.ui.dEditor) 
     143    appliesToClass = classmethod(appliesToClass) 
     144             
    140145class GridEvent(Event): 
    141146    def appliesToClass(eventClass, objectClass): 
     
    146151    def appliesToClass(eventClass, objectClass): 
    147152        return issubclass(objectClass, dabo.ui.dPemMixin) 
     153    appliesToClass = classmethod(appliesToClass) 
     154     
     155class ListEvent(Event): 
     156    def appliesToClass(eventClass, objectClass): 
     157        return issubclass(objectClass, (dabo.ui.dListControl, dabo.ui.dListBox)) 
    148158    appliesToClass = classmethod(appliesToClass) 
    149159     
     
    169179    appliesToClass = classmethod(appliesToClass) 
    170180 
    171 class ListEvent(Event): 
    172     def appliesToClass(eventClass, objectClass): 
    173         return issubclass(objectClass, (dabo.ui.dListControl, dabo.ui.dListBox)) 
    174     appliesToClass = classmethod(appliesToClass) 
    175      
    176181class Activate(Event): 
    177182    """Occurs when the form or application becomes active.""" 
     
    519524    pass 
    520525 
    521  
    522      
     526class DocumentationHint(EditorEvent): 
     527    """Occurs when the editor wants documentation information to change. 
     528     
     529    The IDE can bind to this to direct detailed documentation into a separate 
     530    window, likely replacing previous documentation. The user can choose how 
     531    to display that window, if at all. 
     532     
     533    Raise this event with three additional keyword arguments: 
     534        + shortDoc: a one-liner call tip 
     535        + longDoc: a multi-line call tip plus expanded documentation 
     536        + object: a reference to the object to be documented, in case 
     537            the listener wants to format additional information about  
     538            the object. 
     539    """ 
     540    pass 
     541 
     542 
     543class TitleChanged(EditorEvent): 
     544    """Occurs when the editor's title changes.""" 
     545    pass 
     546 
     547 
    523548class ValueChanged(Event): 
    524549    """Occurs when the control's value has changed, whether programmatically or interactively."""