Changeset 2173

Show
Ignore:
Timestamp:
12/18/07 01:10:06 (1 year ago)
Author:
arj..@yirdis.nl
Message:

Added comments for "guides" (#25) or event post-processing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/gaphas/tool.py

    r2172 r2173  
    366366                canvas.request_matrix_update(i) 
    367367 
     368            # TODO: if isinstance(item, Element): 
     369            #   schedule item to be handled by some "guides" tool 
     370            #   that tries to align the handle with some other Element's 
     371            #   handle. 
     372 
    368373            self.last_x, self.last_y = event.x, event.y 
    369374            return True 
     
    534539                if self._grabbed_handle.connectable: 
    535540                    self.glue(view, item, handle, event.x, event.y) 
     541                # TODO: elif isinstance(item, Element): 
     542                #   schedule (item, handle) to be handled by some "guides" tool 
     543                #   that tries to align the handle with some other Element's 
     544                #   handle. 
    536545            finally: 
    537546                pass 
  • gaphas/trunk/gaphas/view.py

    r2093 r2173  
    409409 
    410410        self._tool = DefaultTool() 
     411         
     412        # TODO: add some "tool" to do some low priority event post-processing 
     413        #    This way we can add features like element alignment in a fairly 
     414        #    non-intrusive way. Add a few methods that allow tools to mark 
     415        #    item/handle pairs for post-processing. 
     416        #    maybe adding it to the tool context would be enough (?). 
    411417 
    412418        # Set background to white.