Changeset 2173
- Timestamp:
- 12/18/07 01:10:06 (1 year ago)
- Files:
-
- gaphas/trunk/gaphas/tool.py (modified) (2 diffs)
- gaphas/trunk/gaphas/view.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/gaphas/tool.py
r2172 r2173 366 366 canvas.request_matrix_update(i) 367 367 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 368 373 self.last_x, self.last_y = event.x, event.y 369 374 return True … … 534 539 if self._grabbed_handle.connectable: 535 540 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. 536 545 finally: 537 546 pass gaphas/trunk/gaphas/view.py
r2093 r2173 409 409 410 410 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 (?). 411 417 412 418 # Set background to white.
