source: branches/lib/HELP_SOURCE/source/input_mask_format.hlp

Last change on this file was 19575, checked in by westram, 3 weeks ago
  • reintegrates 'help' into 'trunk'
    • preformatted text gets checked for width now (to enforce it fits into the arb help window).
    • fixed help following these checks, using the following steps:
      • ignore problems in foreign documentation.
      • increase default help window width.
      • introduce control comments to
        • accept oversized preformatted sections.
        • enforce preformatted style for whole sections.
        • simply define single-line preformatted sections
          Used intensive for definition of internal script languages.
    • fixed several non-related problems found in documentation.
    • minor layout changes for HTML version of arb help (more compacted; highlight anchored/all sections).
    • refactor system interface (GUI version) and use it from help module.
  • adds: log:branches/help@19532:19574
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.3 KB
Line 
1#       main topics:
2UP      arb.hlp
3UP      input_mask.hlp
4
5#       sub topics:
6SUB     aci.hlp
7SUB     srt.hlp
8SUB     reg.hlp
9
10
11# format described in ../help.readme
12
13
14TITLE           User mask syntax description
15
16OCCURRENCE      In all user mask files.
17
18DESCRIPTION
19
20        This document describes the syntax of user masks (*.mask files)
21
22            <mask-file>         ::= <id-line>
23                                    [<parameter-line>]+
24                                    '@MASK_BEGIN'
25                                    [<mask-layout-line>]+
26                                    '@MASK_END'
27
28            <id-line>           ::= 'ARB-Input-Mask'<cr>
29
30            <parameter-line>    ::= '@'<parameter-name>'='<value><cr>
31            <parameter-name>    ::= name of the parameter (i.e. 'ITEMTYPE')
32            <value>             ::= the value of the parameter (depends on parameter)
33
34            <mask-layout-line>  ::= <widget>[','<widget>]*
35            <widget>            ::= <widget-name>'('<widget-parameters>')'
36            <widget-name>       ::= name of the widget (i.e. 'EDIT')
37            <widget-parameters> ::= <widget-parameter>[','<widget-parameter>]*
38
39            <widget-parameter>  ::= <numeric-parameter> | <text-parameter>
40            <numeric-parameter> ::= [0-9]+
41            <text-parameter>    ::= "text"
42
43            <cr>                ::= a newline character
44
45
46        Parameter lines:
47
48            <parameter-name>        mandatory?  allowed <value>s
49            ----------------------------------------------------------------------------------
50            ITEMTYPE                yes         'Species', 'Organism', 'Gene' or 'Experiment'
51
52            TITLE                   no          the title of the window
53
54            X_SPACING               no          x-spacing between mask elements (default: 5)
55            Y_SPACING               no          y-spacing --------- " --------- (default: 3)
56
57            EDIT                    no          0|1 (1 => show edit/reload buttons)
58
59        Known Widgets:
60
61            Format of the following descriptions:
62
63# PREFORMATTED WIDTH DEFAULT
64                   <widget>
65                               "description"
66                               [comment]
67                   <param1>    description1
68                   <param2>    description2
69
70
71            TEXT(text)
72                               "prints text to window"
73                <text>         mandatory; Text appearing
74
75            NEW_SECTION()
76                               "starts a new section"
77
78            TEXTFIELD(label,db-path,width)
79                               "a text input field"
80                <label>        mandatory; Label appearing in front of input-field
81                <db-path>      mandatory; path-name of the database entry
82                                          (e.g. 'full_name' or 'ali_23s/data')
83                <width>        mandatory; width of input field (1..n)
84
85            NUMFIELD(label,db-path,width[,[min],[max]])
86                               "a numeric input field"
87                               Note: all in [ ] is optional
88                <label>        mandatory; <like above>
89                <db-path>      mandatory; <like above>
90                <width>        mandatory; width of input field (1..n)
91                <min>          optional; minimum (leave empty for no minimum)
92                <max>          optional if <min>; maximum (leave empty for no maximum)
93
94            CHECKBOX(label,db-path,checked)
95                               "a checkbox"
96                <label>        mandatory; <like above>
97                <db-path>      mandatory; <like above>
98                <checked>      mandatory; 0 or 1 (whether checked by default)
99
100            RADIO(label,db-path,default,orientation[,radio-def]+)
101                               "a radio button field"
102                               Note: [ ]+ means: must occur once, may occur repeated
103                <label>        mandatory; <like above>
104                <db-path>      mandatory; <like above>
105                <default>      mandatory; 1 .. n (which radio button is active by default)
106                <orientation>  mandatory; H,V,X,Y (horizontal or vertical)
107                <radio-def> ::= <text>,<db-value>
108                                or
109                                <text>,'ALLOW_EDIT',<width>,<db-value>
110
111                                <text>        mandatory; text showing up in window
112                                <db-value>    mandatory; text used as database content
113
114            OPENMASK(button-label,mask-name)
115                               "a button opening another mask"
116                <button-label> mandatory; Label appearing on button
117                <mask-name>    mandatory; User-Mask to activate
118
119            CHANGEMASK(button-label,mask-name)
120                               "same as OPENMASK but closes current mask"
121
122            WWW(button-label,url-srt)
123                               "a button to open an URL in the web-browser"
124                <button-label> mandatory; Label appearing on button
125                <url-srt>      mandatory; ACI/SRT expression which creates an URL
126                                          (Note that script runs on current item)
127
128            ID(id)
129                               "assign an identifier to the last element"
130                <id>           mandatory; a unique identifier
131
132            GLOBAL(id,default)
133                               "declare a global variable (visible in ALL masks)"
134                <id>           mandatory; a unique identifier
135                <default>      mandatory; default value for variable
136
137            LOCAL(id,default)
138                               "declare a local variable (only visible in CURRENT masks)"
139                <id>           mandatory; a unique identifier
140                <default>      mandatory; default value for variable
141
142            SCRIPT(id,aci)
143                               "declare a script"
144                <id>           mandatory; a unique identifier
145                <aci>          mandatory; the script itself (" has to be written as \")
146
147            SHOW(label,idref,width)
148                               "display/edit a variable or script"
149                <label>        mandatory; Label appearing in front of input-field
150                <idref>        mandatory; name of an existing identifier
151                <width>        mandatory; width of display textfield
152
153            ASSIGN(dest,source,button-label)
154                               "a button to assign value of 'source' to 'dest'"
155                <dest>         mandatory; ID of destination
156                                          (may be a variable, a named field, etc.)
157                <source>       mandatory; ID of source
158                                          (variable, named field, script, etc.)
159                <button-label> mandatory; text appearing on button
160# PREFORMATTED RESET
161
162        Examples for Widgets:
163
164# PREFORMATTED WIDTH DEFAULT
165            TEXTFIELD(   "Name   ",  "full_name" , 50  )
166            TEXT("Publication:")
167            TEXTFIELD(   "Author ",  "author" ,  40  )    ID(AUTHOR)
168            TEXTFIELD(   "Title  ",  "title" ,  40  )
169            TEXTFIELD(   "Journal",  "journal" ,  30  )
170
171            TEXTFIELD(   "Remark ",  "remark2" ,  50  )
172
173            CHECKBOX(   "Checked ",  "checked" ,  0  ) TEXTFIELD("by","checked_by",8)
174# PREFORMATTED RESET
175
176
Note: See TracBrowser for help on using the repository browser.