dotter

graphiz helpers
git clone git://deadbeef.fr/dotter.git
Log | Files | Refs | README | LICENSE

uml.example (1484B)


      1 splines polyline
      2 class_font Source Code Pro
      3 package_font Source Code Pro
      4 link_font Source Code Pro
      5 
      6 package comp_tree
      7 
      8 	class component
      9 		var string id
     10 		# context help: mouse hover, description, etc
     11 		compose component content helper 0:1
     12 		# widget's human-readable name
     13 		compose component content label 0:1
     14 		# this allows to "lock" widgets to avoid conflicting
     15 		# changes
     16 		associate component focus controller 1
     17 
     18 	class group
     19 		inherit group component
     20 		compose group component children
     21 		associate group group parent
     22 
     23 	class set_widget
     24 		inherit set_widget component
     25 		compose set_widget content allowed 1:n
     26 		# value[0] is the real current, value[1] is the current
     27 		# candidate. This allows for cancelation.
     28 		associate set_widget content value 2
     29 
     30 	class range_widget
     31 		fun content transform bool:forward content&:src_val
     32 		inherit range_widget component
     33 		compose range_widget content range 2
     34 		# value[0] is the real current, value[1] is the current
     35 		# candidate. This allows for cancelation.
     36 		compose range_widget content value 2
     37 
     38 	class edit_widget
     39 		var size_t byte_size
     40 		inherit edit_widget component
     41 		# value[0] is the real current, value[1] is the current
     42 		# candidate. This allows for cancelation.
     43 		compose edit_widget content value 2
     44 
     45 	class content
     46 		var string mime_type
     47 		var blob data
     48 
     49 	class focus
     50 
     51 endpackage
     52 
     53 package coco
     54 	class Parser
     55 	class Scanner
     56 	associate Parser Scanner
     57 endpackage coco
     58 
     59 associate Parser focus
     60 associate focus component target 1