|
Revision 35, 0.6 kB
(checked in by arjanmol, 7 years ago)
|
Added new directory: tree
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
Gaphor use cases |
|---|
| 2 |
|
|---|
| 3 |
An new element is added to a diagram: |
|---|
| 4 |
- A new element is created |
|---|
| 5 |
- (opt.) The namespace is set to the diagrams namespace |
|---|
| 6 |
- A new item is created on the canvas with the element as subject |
|---|
| 7 |
* A refernce is created from the item to the element |
|---|
| 8 |
* a weak reference is created from the element to the item |
|---|
| 9 |
* a notifier is connected to signal changes on the element. |
|---|
| 10 |
|
|---|
| 11 |
Remove an object: |
|---|
| 12 |
- Removing can only be done through the diagram interface. |
|---|
| 13 |
- The item is removed from the Element.presentation list |
|---|
| 14 |
- If len(element.presentation) == 0: |
|---|
| 15 |
element.unlink() |
|---|
| 16 |
del element |
|---|
| 17 |
|
|---|