source: trunk/loci/ome/notes/templates/viewer.template @ 2780

Revision 2780, 2.0 KB checked in by melissa, 13 years ago (diff)

First stab at a more usable template editor. Note that there are still a few features missing.

Line 
1# Template designed specifically for viewing (not editing) metadata.
2
3default-width "600"
4default-height "500"
5
6editable "false"
7prefer-companion "true"
8edit-template-fields "false"
9edit-mapping "false"
10
11tab {
12  name "Image Information"
13
14  # demonstrates how to set up an arbitrarily repeated group
15  # this will show information for every Image in the open file
16
17  group {
18    name "Image"
19
20    field {
21      name "Name"
22      type "var"
23      valueMap "Image:Name"
24    }
25
26    field {
27      name "Creation Date"
28      type "var"
29      valueMap "Image:CreationDate"
30    }
31
32    field {
33      name "Description"
34      type "var"
35      valueMap "Image:Description"
36    }
37
38    field {
39      name "Width"
40      type "int"
41      valueMap "Image:Pixels:SizeX"
42    }
43 
44    field {
45      name "Height"
46      type "int"
47      valueMap "Image:Pixels:SizeY"
48    }
49 
50    field {
51      name "Number of slices"
52      type "int"
53      valueMap "Image:Pixels:SizeZ"
54    }
55
56    field {
57      name "Number of channels"
58      type "int"
59      valueMap "Image:Pixels:SizeC"
60    }
61
62    field {
63      name "Number of timepoints"
64      type "int"
65      valueMap "Image:Pixels:SizeT"
66    }
67 
68    field {
69      name "Big Endian"
70      type "bool"
71      default "false"
72      valueMap "Image:Pixels:BigEndian"
73    }
74
75    field {
76      name "Pixel Type"
77      type "var"
78      valueMap "Image:Pixels:PixelType"
79    }
80 
81    field {
82      name "Thumbnail"
83      type "thumbnail"
84    }
85 
86  }
87}
88
89tab {
90
91  name "Experimenter Information"
92
93  field {
94    name "First Name"
95    type "var"
96    valueMap "CustomAttributes:Experimenter:FirstName"
97  }
98
99  field {
100    name "Last Name"
101    type "var"
102    valueMap "CustomAttributes:Experimenter:LastName"
103  }
104
105  field {
106    name "Email"
107    type "var"
108    span "1,3"
109    valueMap "CustomAttributes:Experimenter:Email"
110  }
111}
112
113tab {
114  name "Other metadata"
115
116  grid "1,2"
117
118  field {
119    nameMap "Image:CustomAttributes:OriginalMetadata:name"
120    valueMap "Image:CustomAttributes:OriginalMetadata:value"
121    repeated "true"
122    type "var"
123    grid "1,1"
124  }
125
126}
Note: See TracBrowser for help on using the repository browser.