aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/modeleditor/standard.def
blob: af6c08a0351e3370f97c4534b9bfb062deb336ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
// ModelEditor - definitions of custom shapes
//
// Language syntax and commands:
//
//
// An Icon defines an icon of an element selected by stereotype:
//
// Icon {
//     id: <id>
//     title: <the UI title. Defaults to the id of the icon.>
//     elements: <comma-separated list of element types the
//                definiton applies to: class, component, package, diagram, item.
//                Default applies definition to all element types.>
//     stereotype: <stereotype as a string.>
//     display: <default display of element.
//               One of: none, label, decoration, icon, smart.
//               Default is smart.>
//     name: <Name of new element. Defaults to  "New <Toolbar entry title>".>
//     width: <width of icon in pixels. The width defines the width of the icon as decoration.>
//     height: <height of icon in pixels. The height defines the height of the icon as decoration.>
//     minwidth: <minimum width of custom icon in pixels.>
//     minheight: <minimum height of custom icon in pixels.>
//     lockSize: <lock resizing.
//                One of: none, width, height, size, ratio.
//                Default is none.>
//     textAlignment: <alignment of text (stereotype label, name and context).
//                     One of: top, center, below, none.
//                     Defaults to below. None means no text will be displayed.>
//     baseColor: <color #rrggbb>
//     Shape {
//         Line { x1: <x1>; y1: <y1>; x2:<x2>; y2: <y2> }
//         Rect { x: <x>; y: <y>; width: <width>; height: <height> }
//         RoundedRect { x: <x>; y: <y>; width: <width>; height: <height>; radius: <radius> }
//         Circle { x: <center_x>; y: <center_y>; radius: <radius> }
//         Ellipse { x: <center_x>; y: <center_y>; radiusX: <radius_x>; radiusY: <radius_y> }
//         Diamond { x: <center_x>; y: <center_y>; width: <width>; height: <height; filled: <yes or no or true or false> }
//         Triangle { x: <center_x>; y: <center_y>; width: <width>; height: <height; filled: <yes or no or true or false> }
//         Arc { x: <center_x>; y: <center_y>; radiusX: <radius_x>; radiusY: <radius_y>; start: <start_angle>; span: <span_angle> }
//         MoveTo { x: <x>; y: <y> }
//         LineTo { x: <x>; y: <y> }
//         ArcMoveTo { x: <center_x>; y: <center_y>; radiusX: <radius_x>; radiusY: <radius_y>; angle: <angle> }
//         ArcTo { x: <center_x>; y: <center_y>; radiusX: <radius_x>; radiusY: <radius_y>; start: <start_angle>; span: <span_angle> }
//         Close
//     }
// }
//
//
// A Relation defines a new relation between two items:
//
// Relation {
//     id: <id>
//     title: <UI title. Defaults to the id of the icon.>
//     elements: <A list of elements that may be the start or end element of the relation. Can be one of
//                class, component, package, diagram, item or any id of an Icon definition. Must be given.>
//     stereotype: <Stereotype as a string. Defaults to nothing.>
//     name: <Name of the relation. Defaults to nothing.>
//     direction: <One of AtoB, BtoA or Bi. Defaults to nothing.>
//     pattern: <The pattern used for the relation shaft.
//               One of solid, dash, dot, dashdot, dashdotdot. Defaults to solid.>
//     color: <The color of the relation. One of A or B (uses the color of the respective end element) or
//             any valid color (#rrggbb or a color name). Defaults to A.>
//     End {
//         end: <One of A or B. Defines the settings of the relations end.>
//         elements: <Overrides the elements property of parent.>
//         role: <The role of the end. A string that defaults to nothing.>
//         cardinality: <An integer or a string defining the cardinality of the end. Defaults to nothing.>
//         navigable: <If the end is navigable. One of Yes, No, True, False. Defaults to nothing.>
//         head: <Predefined shapes. One of none, arrow, triangle, filledtriangle, diamond, filleddiamond.
//                Defaults to none.>
//     }
// }
//
//
// A Dependency defines settings of a dependency specialization:
//
// Dependency {
//     id: <id>
//     title: <UI title. Defaults to the id of the icon.>
//     elements: <A list of elements that provides this specialization in its menu. Can be one of
//                class, component, package, diagram, item or any id of an Icon definition. Must be given.>
//     stereotype: <Stereotype as a string. Defaults to nothing.>
//     name: <Name of the relation. Defaults to nothing.>
//     direction: <One of AtoB, BtoA or Bi. Defaults to nothing.>
// }
//
//
// An Inheritance defines settings of an inheritance specialization:
//
// Inheritance {
//     id: <id>
//     title: <UI title. Defaults to the id of the icon.>
//     elements: <A list of elements that provides this specialization in its menu. Can be one of
//                class or any id of an Icon definition for classes. Defaults to class.>
//     stereotype: <Stereotype as a string. Defaults to nothing.>
//     name: <Name of the relation. Defaults to nothing.>
// }
//
//
// An Association defines settings of an association specialization:
//
// Association {
//     id: <id>
//     title: <UI title. Defaults to the id of the icon.>
//     elements: <A list of elements that provides this specialization in its menu. Can be one of
//                class or any id of an Icon definition for classes. Defaults to class.>
//     stereotype: <Stereotype as a string. Defaults to nothing.>
//     name: <Name of the relation. Defaults to nothing.>
//     End {
//         end: <One of A or B. Defines the settings of the relations end. Both ends may be defined.>
//         role: <The role of the end. A string that defaults to nothing.>
//         cardinality: <An integer or a string defining the cardinality of the end. Defaults to nothing.>
//         navigable: <If the end is navigable. One of yes, no, true or false. Defaults to nothing.>
//         relationship: <One of Association, Aggregation, Composition. Defaults to Association.>
//     }
// }
//
//
// A toolbar of icons. If no toolbar is defined the standard toolbar is shown.
//
// Toolbar {
//     id: <id>
//     title: <Ui title. Defaults to the id of the toolbar.>
//     element: <List of elements the toolbar is assigned to. Each element can be one of package, component,
//               class, item or any Icon definition. Default to nothing which defines an object toolbar for
//               diagrams.>
//     priority: <priority number which decides about the position of toolbar in toolbox. Defaults to 0.>
//     Tools {
//         Tool {
//             title: <Ui title>
//             element: <element type; one of package, class, component, item, annotation, boundary or swimlane
//                       for object toolbars. One of dependency, inheritance or association for element toolbars.
//                       Must be given>
//             stereotype: <stereotype, defaults to nothing.>
//         }
//         Separator
//     }
// }
//

// *************
// ** Classes **
// *************

Icon {
    id: Interface
    elements: class
    stereotype: 'interface'
    display: icon
    width: 20.0
    height: 20.0
    lockSize: ratio
    Shape {
        Circle { x: 10.0; y: 10.0; radius: 10.0 }
    }
}

Icon {
    id: Boundary
    stereotype: 'boundary'
    width: 24.0
    height: 20.0
    lockSize: ratio
    Shape {
        Circle { x: 14.0; y: 10.0; radius: 10.0 }
        Line { x0: 0.0; y0: 0.0; x1: 0.0; y1: 20.0 }
        Line { x0: 0.0; y0: 10.0; x1: 4.0; y1: 10.0 }
    }
}

Icon {
    id: Control
    stereotype: 'control'
    width: 20.0
    height: 20.0
    lockSize: ratio
    Shape {
        Circle { x: 10.0; y: 10.0; radius: 10.0 }
        Line { x0: 10.0; y0: 0.0; x1: 14.0; y1: -2.0 }
        Line { x0: 10.0; y0: 0.0; x1: 14.0; y1: 4.0 }
    }
}

Icon {
    id: Entity
    stereotype: 'entity'
    width: 20.0
    height: 20.0
    lockSize: ratio
    Shape {
        Circle { x: 10.0; y: 10.0; radius: 10.0 }
        Line { x0: 0.0; y0: 20.0; x1: 20.0; y1: 20.0 }
    }
}

Association {
    id: Aggregation
    title: "Aggregation"
    End {
        end: A
        cardinality: "*"
        navigable: yes
        relationship: aggregation
    }
}

Association {
    id: Composition
    title: "Composition"
    End {
        end: A
        cardinality: "1"
        navigable: yes
        relationship: composition
    }
}

// ********************
// ** Class Toolbars **
// ********************

Toolbar {
    id: ClassToolbar
    element: class
    Tools {
        Tool { element: dependency }
        Tool { element: inheritance }
        Tool { element: association }
        Tool { element: Aggregation }
        Tool { element: Composition }
    }
}

Toolbar {
    id: InterfaceToolbar
    element: Interface
    Tools {
        Tool { element: dependency }
        Tool { element: inheritance }
    }
}


// ****************
// ** Components **
// ****************

Icon {
    id: Database
    stereotype: 'database'
    display: icon
    width: 20.0
    height: 20.0
    Shape {
        MoveTo { x: 0.0; y: 3.0 }
        LineTo { x: 0.0; y: 17.0 }
        ArcTo { x: 10.0; y: 17.0; radiusX: 10.0; radiusY: 3.0; start: 180.0; span: 180.0 }
        LineTo { x: 20.0; y: 3.0 }
        ArcTo { x: 10.0; y: 3.0; radiusX: 10.0; radiusY: 3.0; start: 0.0; span: -180.0 }
        Close
        Arc { x: 10.0; y: 3.0; radiusX: 10.0; radiusY: 3.0; start: 0.0; span: 180.0 }
    }
}

// experimental replacement of default shape with custom shape
Icon {
    id: Component
    elements: component, package, diagram
    stereotype: 'component'
    display: decoration
    width: 20.0
    height: 16.0
    textAlignment: center
    Shape {
        Rect { x: 0; y: 0; width: 20.0; height: 16.0 }
        Rect { x: -4.0; y: 2.5; width: 8; height: 4 }
        Rect { x: -4.0; y: 9.5; width: 8; height: 4 }
    }
}


// ***************
// ** Use Cases **
// ***************

Icon {
    id: UseCase
    Title: "Use-Case"
    elements: item
    stereotype: 'usecase'
    display: icon
    textAlignment: center
    width: 40
    height: 20
    baseColor: #5fb4f0
    Shape {
        Ellipse { x: 20; y: 10; radiusX: 20; radiusY: 10 }
    }
}

Icon {
    id: Actor
    elements: item
    stereotype: 'actor'
    display: icon
    width: 20
    height: 40
    lockSize: ratio
    baseColor: #5fb4f0
    Shape {
        Circle { x: 10; y: 5; radius: 5 }
        Line { x0: 0; y0: 15; x1: 20; y1: 15 }
        Line { x0: 10; y0: 10; x1: 10; y1: 25 }
        Line { x0: 10; y0: 25; x1: 3; y1: 40 }
        Line { x0: 10; y0: 25; x1: 17; y1: 40 }
    }
}

Relation {
    id: Communication
    elements: UseCase, Actor
    pattern: solid
    color: A
    End {
        end: A
    }
    End {
        end: B
    }
}

Toolbar {
    id: UseCaseToolbar
    element: UseCase, Actor
    Tools {
        Tool { element: Communication }
        Tool { element: dependency }
    }
}


// ****************
// ** Activities **
// ****************

Icon {
    id: Start
    elements: item
    stereotype: 'start'
    display: icon
    name: ""
    textAlignment: none
    width: 20
    height: 20
    lockSize: ratio
    baseColor: #81d657
    Shape {
        Circle { x: 10; y: 10; radius: 7 }
    }
}

Icon {
    id: Activity
    elements: item
    stereotype: 'activity'
    display: icon
    textAlignment: center
    width: 40
    height: 20
    baseColor: #81d657
    Shape {
        RoundedRect { x: 0; y: 0; width: 40; height: 20; radius: 10 }
    }
}

Icon {
    id: Condition
    elements: item
    stereotype: 'condition'
    display: icon
    width: 20
    height: 20
    lockSize: ratio
    baseColor: #81d657
    Shape {
        MoveTo { x: 10; y: 0 }
        LineTo { x: 20; y: 10 }
        LineTo { x: 10; y: 20 }
        LineTo { x: 0; y: 10 }
        Close
    }
}

Icon {
    id: HorizontalBar
    Title: "Horizontal Bar"
    elements: item
    stereotype: 'horizontalbar'
    display: icon
    name: ""
    textAlignment: none
    width: 20
    height: 5
    minWidth: 20
    minHeight: 5
    lockSize: height
    baseColor: #000000
    Shape {
        RoundedRect { x: 0; y: 0; width: 20; height: 5; radius: 1 }
    }
}

Icon {
    id: VerticalBar
    Title: "Vertical Bar"
    elements: item
    stereotype: 'verticalbar'
    display: icon
    name: ""
    textAlignment: none
    width: 5
    height: 20
    minWidth: 5
    minHeight: 20
    lockSize: width
    baseColor: #000000
    Shape {
        RoundedRect { x: 0; y: 0; width: 5; height: 20; radius: 1 }
    }
}

Icon {
    id: Termination
    elements: item
    stereotype: 'termination'
    display: icon
    name: ""
    textAlignment: none
    width: 20
    height: 20
    lockSize: ratio
    baseColor: #81d657
    Shape {
        Circle { x: 10; y: 10; radius: 10 }
        Circle { x: 10; y: 10; radius: 7 }
    }
}

Relation {
    id: Controlflow
    pattern: solid
    color: A
    End {
        end: A
        elements: Start, Activity, Condition, HorizontalBar, VerticalBar
    }
    End {
        end: B
        elements: Activity, Condition, HorizontalBar, VerticalBar, Termination
        head: arrow
    }
}

Toolbar {
    id: ActivityToolbar
    element: Start, Activity, Condition, HorizontalBar, VerticalBar
    Tools {
        Tool { element: Controlflow }
        Tool { element: dependency }
    }
}

// ***************
// ** Sequences **
// ***************

Icon {
    id: Instance
    elements: item
    stereotype: 'instance'
    display: icon
    textAlignment: center
    width: 40
    height: 20
    baseColor: #81d657
    Shape {
        Rect { x: 0; y: 0; width: 40; height: 20 }
    }
}

Icon {
    id: Activation
    elements: item
    stereotype: 'activation'
    display: icon
    name: ""
    textAlignment: none
    width: 10
    height: 40
    minWidth: 10
    minHeight: 20
    lockSize: width
    baseColor: #81d657
    Shape {
        Rect { x: 0; y: 0; width: 10; height: 40 }
    }
}

Icon {
    id: Destruction
    elements: item
    stereotype: 'destruction'
    display: icon
    name: ""
    textAlignment: none
    width: 10
    height: 10
    minWidth: 10
    minHeight: 10
    lockSize: size
    baseColor: #000000
    Shape {
        Line { x0: 0; y0: 0; x1: 10; y1: 10 }
        Line { x0: 0; y0: 10; x1: 10; y1: 0 }
    }
}

Icon {
    id: EndLifeline
    elements: item
    stereotype: 'endlifeline'
    display: icon
    name: ""
    textAlignment: none
    width: 10
    height: 10
    minWidth: 10
    minHeight: 10
    lockSize: size
    baseColor: #000000
    Shape {
        Circle { x: 5; y: 5; radius: 5 }
    }
}

Relation {
    id: Lifeline
    pattern: dash
    color: A
    End { end: A; elements: Instance, Activation }
    End { end: B; elements: Activation, EndLifeline, Destruction }
}

Relation {
    id: Message
    pattern: solid
    color: A
    End { end: A; elements: Activation }
    End { end: B; elements: Activation, Destruction; navigable: true; head: filledtriangle }
}

Toolbar {
    id: InstanceToolbar
    element: Instance
    Tools {
        Tool { element: Lifeline }
    }
}

Toolbar {
    id: ActivationToolbar
    element: Activation
    Tools {
        Tool { element: Lifeline }
        Tool { element: Message }
    }
}

Toolbar {
    id: EndToolbar
    element: Destruction, EndLifeline
    Tools {
    }
}

// ****************
// ** Deployment **
// ****************

Icon {
    id: Node
    elements: item, package
    stereotype: 'node'
    display: icon
    textAlignment: top
    width: 20
    height: 20
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 0; y: 0 }
        LineTo { x: 3; y: -3 }
        LineTo { x: 23; y: -3 }
        LineTo { x: 23; y: 17 }
        LineTo { x: 20; y: 20 }
        LineTo { x: 0; y: 20 }
        Close
        Line { x0: 0; y0: 0; x1: 20; y1: 0 }
        Line { x0: 20; y0: 0; x1: 23; y1: -3 }
        Line { x0: 20; y0: 0; x1: 20; y1: 20 }
    }
}

Icon {
    id: NodeInstance
    elements: item, package
    stereotype: 'nodeinstance'
    display: icon
    textAlignment: top
    width: 20
    height: 20
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 0; y: 0 }
        LineTo { x: 3; y: -3 }
        LineTo { x: 23; y: -3 }
        LineTo { x: 23; y: 17 }
        LineTo { x: 20; y: 20 }
        LineTo { x: 0; y: 20 }
        Close
        Line { x0: 0; y0: 0; x1: 20; y1: 0 }
        Line { x0: 20; y0: 0; x1: 23; y1: -3 }
        Line { x0: 20; y0: 0; x1: 20; y1: 20 }
    }
}

Icon {
    id: Artifact
    elements: item
    stereotype: 'artifact'
    display: icon
    width: 40
    height: 20
    baseColor: #7ccad1
    Shape {
        Rect { x: 0; y: 0; width: 40; height: 20 }
    }
}

Icon {
    id: DocumentArtifact
    elements: item
    stereotype: 'document'
    display: icon
    width: 40
    height: 60
    minWidth: 40
    minHeight: 60
    lockSize: ratio
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 0; y: 0 }
        LineTo { x: 24; y: 0 }
        LineTo { x: 40; y: 16 }
        LineTo { x: 40; y: 60 }
        LineTo { x: 0; y: 60 }
        Close
        Line { x0: 24; y0: 0; x1: 24; y1: 16 }
        Line { x0: 24; y0: 16; x1: 40; y1: 16 }
    }
}

Icon {
    id: CDArtifact
    elements: item
    stereotype: 'cd'
    display: icon
    width: 40
    height: 40
    lockSize: ratio
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 40; y: 20 }
        ArcTo { x: 20; y: 20; radiusX: 20; radiusY: 20; start: 0; span: 360 }
        MoveTo { x: 28; y: 20 }
        ArcTo { x: 20; y: 20; radiusX: 8; radiusY: 8; start: 0; span: 360 }
        ArcTo { x: 20; y: 20; radiusX: 8; radiusY: 8; start: 0; span: 360 }
        MoveTo { x: 24; y: 20 }
        ArcTo { x: 20; y: 20; radiusX: 4; radiusY: 4; start: 0; span: 360 }
        Close

        Line { x0: 22.736; y0: 27.518; x1: 26.840; y1: 38.794 }
        Line { x0: 27.518; y0: 22.736; x1: 38.794; y1: 26.840 }
        Line { x0: 17.264; y0: 12.482; x1: 13.160; y1: 1.206 }
        Line { x0: 12.482; y0: 17.264; x1: 1.206; y1: 13.160 }
     }
 }

Icon {
    id: PCNode
    elements: item
    stereotype: 'pc'
    display: icon
    width: 20
    height: 40
    minWidth: 40
    locksize: ratio
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 6; y: -6 }
        LineTo { x: 20; y: -6 }
        ArcTo { x: 21; y: -1; radiusX: 5; radiusY: 5; start: 90; span: -90 }
        LineTo { x: 26; y: 34 }
        LineTo { x: 20; y: 40 }
        LineTo { x: 0; y: 40 }
        LineTo { x: 0; y: 0 }
        LineTo { x: 6; y: -6 }
        Close

        Line { x0: 0; y0: 0; x1: 14; y1: 0 }
        Arc { x: 14; y: 6; radiusX: 6; radiusY: 6; start: 90; span: -90 }
        Line { x0: 20; y0: 6; x1: 20; y1: 40 }

        Line { x0: 22; y0: 28; x1: 24; y1: 26 }
        Line { x0: 22; y0: 30; x1: 24; y1: 28 }
        Line { x0: 22; y0: 32; x1: 24; y1: 30 }
        Line { x0: 22; y0: 34; x1: 24; y1: 32 }

        Circle { x: 10; y: 32; radius: 2 }
        Line { x0: 4; y0: 10; x1: 16; y1: 10 }
        Line { x0: 4; y0: 13; x1: 16; y1: 13 }
    }
}

Icon {
    id: MobileNode
    elements: item
    stereotype: 'mobile'
    display: icon
    width: 20
    height: 40
    minWidth: 40
    lockSize: ratio
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 4; y: -2 }
        LineTo { x: 19; y: -2 }
        ArcTo { x: 19; y: 1; radiusX: 3; radiusY: 3; start: 90; span: -90 }
        LineTo { x: 22; y: 33 }
        ArcTo { x: 17; y: 33; radiusX: 5; radiusY: 7; start: 0; span: -90 }
        LineTo { x: 3; y: 40 }
        ArcTo { x: 3; y: 37; radiusX: 3; radiusY: 3; start: 270; span: -90 }
        LineTo { x: 0; y: 3 }
        ArcTo { x: 4; y: 3; radiusX: 4; radiusY: 5; start: 180; span: -90 }
        Close

        Line { x0: 3; y0: 0; x1: 17; y1: 0 }
        Arc { x: 17; y: 3; radiusX: 3; radiusY: 3; start: 90; span: -90 }
        Line { x0: 20; y0: 3; x1: 20; y1: 37 }
        Arc { x: 17; y: 37; radiusX: 3; radiusY: 3; start:0; span: -90 }
        Arc{ x: 3; y: 3; radiusX: 3; radiusY: 3; start: 180; span: -90 }

        Rect { x: 3; y: 8; width: 14; height: 24 }
        Line { x0: 6; y0: 4; x1: 14; y1: 4 }
        Circle { x: 10; y: 36; radius: 2 }
    }
}

Icon {
    id: TabletNode
    elements: item
    stereotype: 'tablet'
    display: icon
    width: 40
    height: 30
    minWidth: 80
    lockSize: ratio
    baseColor: #7ccad1
    Shape {
        MoveTo { x: 4; y: -2 }
        LineTo { x: 39; y: -2 }
        ArcTo { x: 39; y: 1; radiusX: 3; radiusY: 3; start: 90; span: -90 }
        LineTo { x: 42; y: 23 }
        ArcTo { x: 37; y: 23; radiusX: 5; radiusY: 7; start: 0; span: -90 }
        LineTo { x: 3; y: 30 }
        ArcTo { x: 3; y: 27; radiusX: 3; radiusY: 3; start: 270; span: -90 }
        LineTo { x: 0; y: 3 }
        ArcTo { x: 4; y: 3; radiusX: 4; radiusY: 5; start: 180; span: -90 }
        Close

        Line { x0: 3; y0: 0; x1: 37; y1: 0 }
        Arc { x: 37; y: 3; radiusX: 3; radiusY: 3; start: 90; span: -90 }
        Line { x0: 40; y0: 3; x1: 40; y1: 27 }
        Arc { x: 37; y: 27; radiusX: 3; radiusY: 3; start:0; span: -90 }
        Arc{ x: 3; y: 3; radiusX: 3; radiusY: 3; start: 180; span: -90 }

        Rect { x: 4; y: 4; width: 32; height: 19 }
        Circle { x: 20; y: 26.5; radius: 2 }
    }
}

Icon {
    id: ServerNode
    elements: item
    stereotype: 'server'
    display: icon
    width: 40
    height: 15
    minWIdth: 80
    lockSize: ratio
    baseColor: #7ccad1
    Shape {
        LineTo { x: 6; y: -6 }
        LineTo { x: 46; y: -6 }
        LineTo { x: 46; y: 9 }
        LineTo { x: 40; y: 15 }
        LineTo { x: 0; y: 15 }
        Close
        Line { x0: 0; y0: 0; x1: 40; y1: 0 }
        Line { x0: 40; y0: 0; x1: 46; y1: -6 }
        Line { x0: 40; y0: 0; x1: 40; y1: 15 }

        Line { x0: 4; y0: 5; x1: 4; y1: 10 }
        Line { x0: 6; y0: 5; x1: 6; y1: 10 }
        Line { x0: 8; y0: 5; x1: 8; y1: 10 }
        Line { x0: 10; y0: 5; x1: 10; y1: 10 }
        Line { x0: 12; y0: 5; x1: 12; y1: 10 }
        Line { x0: 14; y0: 5; x1: 14; y1: 10 }
        Line { x0: 16; y0: 5; x1: 16; y1: 10 }
        Rect { x: 31; y: 5; width: 5; height: 5 }
        Rect { x: 24; y: 5; width: 5; height: 5 }
    }
}

Relation {
    id: NodeAssoziation
    title: 'Assoziation'
    elements: Node, NodeInstance, Artifact, DocumentArtifact, CDArtifact, PCNode, MobileNode, TabletNode, ServerNode
    pattern: solid
}

Toolbar {
    id: DeploymentToolbar
    element: Node, NodeInstance, Artifact, DocumentArtifact, CDArtifact, PCNode, MobileNode, TabletNode, ServerNode
    Tools {
        Tool { element: NodeAssoziation }
    }
}

// **************
// ** Toolbars **
// **************

Toolbar {
    id: Classes
    Tools {
        Tool { title: "Package"; element: package }
        Tool { title: "Class"; element: class }
        Tool { title: "Interface"; element: class; stereotype: "interface" }
        Tool { title: "Control"; element: class; stereotype: "control" }
        Tool { title: "Entity"; element: class; stereotype: "entity" }
        Tool { title: "Boundary"; element: class; stereotype: "boundary" }
        Separator
        Tool { title: "Annotation"; element: annotation }
        Tool { title: "Boundary"; element: boundary }
        Tool { title: "Swimlane"; element: swimlane }
    }
}

Toolbar {
    id: Components
    Tools {
        Tool { title: "Package"; element: package }
        Tool { title: "Component"; element: component }
        Tool { title: "Database"; element: component; stereotype: "database" }
        Separator
        Tool { title: "Annotation"; element: annotation }
        Tool { title: "Boundary"; element: boundary }
        Tool { title: "Swimlane"; element: swimlane }
    }
}

Toolbar {
    id: UseCases
    Tools {
        Tool { title: "Package"; element: package }
        Tool { title: "UseCase"; element: item; stereotype: "usecase" }
        Tool { title: "Actor"; element: item; stereotype: "actor" }
        Separator
        Tool { title: "Annotation"; element: annotation }
        Tool { title: "Boundary"; element: boundary }
        Tool { title: "Swimlane"; element: swimlane }
    }
}

Toolbar {
    id: Activities
    Tools {
        Tool { title: "Start"; element: item; stereotype: "start" }
        Tool { title: "Activity"; element: item; stereotype: "activity" }
        Tool { title: "Condition"; element: item; stereotype: "condition" }
        Tool { title: "Horiz. Bar"; element: item; stereotype: "horizontalbar" }
        Tool { title: "Vert. Bar"; element: item; stereotype: "verticalbar" }
        Tool { title: "Termination"; element: item; stereotype: "termination" }
        Separator
        Tool { title: "Annotation"; element: annotation }
        Tool { title: "Boundary"; element: boundary }
        Tool { title: "Swimlane"; element: swimlane }
    }
}

Toolbar {
    id: Sequences
    Tools {
        Tool { title: "Instance"; element: item; stereotype: "instance" }
        Tool { title: "Activation"; element: item; stereotype: "activation" }
        Tool { title: "Destruction"; element: item; stereotype: "destruction" }
        Tool { title: "EndLifeline"; element: item; stereotype: "endlifeline" }
        Separator
        Tool { title: "Annotation"; element: annotation }
        Tool { title: "Boundary"; element: boundary }
        Tool { title: "Swimlane"; element: swimlane }
    }
}

Toolbar {
    id: Deployment
    Tools {
        Tool { title: "Node"; element: item; stereotype: "node" }
        Tool { title: "Instance"; element: item; stereotype: "nodeinstance" }
        Tool { title: "Artifact"; element: item; stereotype: "artifact" }
        Tool { title: "Document"; element: item; stereotype: "document" }
        Tool { title: "CD"; element: item; stereotype: "cd" }
        Tool { title: "PC"; element: item; stereotype: "pc" }
        Tool { title: "Mobile"; element: item; stereotype: "mobile" }
        Tool { title: "Tablet"; element: item; stereotype: "tablet" }
        Tool { title: "Server"; element: item; stereotype: "server" }
        Separator
        Tool { title: "Annotation"; element: annotation }
        Tool { title: "Boundary"; element: boundary }
        Tool { title: "Swimlane"; element: swimlane }
    }
}