dotter

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

uml.example (1327B)


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