Skip to content

Commit

Permalink
small fix in generalization.py and implementation.py: use close_path(…
Browse files Browse the repository at this point in the history
…) in draw().

updated TODO list

git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/branches/new-canvas@1098 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
amolenaar committed Dec 7, 2006
1 parent 5a21d28 commit d6c56b4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions TODO
@@ -1,4 +1,9 @@

- text position of folded InterfaceItem (should be below circle)
- extra margin around operations in ClassItem
- join/fork node text editing
- text placement for action nodes.

- Undo functionality
- Load / save regression testing
!!! Create some example diagrams,
Expand Down
4 changes: 4 additions & 0 deletions gaphor/adapters/editors.py
Expand Up @@ -79,6 +79,10 @@ def is_editable(self, x, y):
"""Find out what's located at point (x, y), is it in the
name part or is it text in some compartment
"""
if self._item.drawing_style not in (items.ClassifierItem.DRAW_COMPARTMENT, items.ClassifierItem.DRAW_COMPARTMENT_ICON):
self._edit = self._item
return True

self._edit = None
name_comp_height = self._item.get_name_size()[1]
if y < name_comp_height:
Expand Down
3 changes: 2 additions & 1 deletion gaphor/diagram/generalization.py
Expand Up @@ -21,7 +21,8 @@ def draw_head(self, context):
cr.move_to(0, 0)
cr.line_to(15, -10)
cr.line_to(15, 10)
cr.line_to(0, 0)
cr.close_path()
cr.stroke()
cr.move_to(15, 0)

# vim:sw=4:et:ai
2 changes: 1 addition & 1 deletion gaphor/diagram/implementation.py
Expand Up @@ -32,7 +32,7 @@ def draw_head(self, context):
cr.set_dash((), 0)
cr.line_to(15, -10)
cr.line_to(15, 10)
cr.line_to(0, 0)
cr.close_path()
cr.stroke()
cr.move_to(15, 0)

Expand Down

0 comments on commit d6c56b4

Please sign in to comment.