Mercurial > projects > doodle
annotate doodle/import/new.d @ 29:960b408d3ac5
Builds and runs ok with builder now.
Still heaps of cleaning up to do, especially code roughly
imported from dog.
author | Graham St Jack <graham.stjack@internode.on.net> |
---|---|
date | Mon, 03 Aug 2009 23:19:55 +0930 |
parents | 1754cb773d41 |
children |
rev | line source |
---|---|
29
960b408d3ac5
Builds and runs ok with builder now.
Graham St Jack <graham.stjack@internode.on.net>
parents:
28
diff
changeset
|
1 version(none) { |
960b408d3ac5
Builds and runs ok with builder now.
Graham St Jack <graham.stjack@internode.on.net>
parents:
28
diff
changeset
|
2 |
960b408d3ac5
Builds and runs ok with builder now.
Graham St Jack <graham.stjack@internode.on.net>
parents:
28
diff
changeset
|
3 //import doodle.import.types; |
0 | 4 import tango.util.collection.ArraySeq; |
5 | |
6 interface IProperty { | |
7 } | |
8 | |
9 interface ISemanticModelBridge { | |
10 char[] presentation(); | |
11 } | |
12 | |
13 interface ISimpleSemanticModelElement : ISemanticModelBridge { | |
14 char[] type_info(); | |
15 } | |
16 | |
17 interface IDiagramElement { | |
18 bool is_visible(); | |
19 IProperty[] get_properties(); | |
20 | |
21 void accept(in IVisitor visitor); | |
22 } | |
23 | |
24 interface IVisitor { | |
25 void visit(in IGraphNode node); | |
26 void visit(in IGraphEdge edge); | |
27 } | |
28 | |
29 interface IGraphElement : IDiagramElement { | |
30 } | |
31 | |
32 interface IGraphNode : IGraphElement { | |
33 } | |
34 | |
35 interface IGraphEdge : IGraphElement { | |
36 } | |
37 | |
38 interface IGraphConnector { | |
39 Point point(); | |
40 IGraphElement element(); | |
41 IGraphEdge[] edges(); | |
42 } | |
29
960b408d3ac5
Builds and runs ok with builder now.
Graham St Jack <graham.stjack@internode.on.net>
parents:
28
diff
changeset
|
43 |
960b408d3ac5
Builds and runs ok with builder now.
Graham St Jack <graham.stjack@internode.on.net>
parents:
28
diff
changeset
|
44 } |