source: tags/arb_5.1/HELP_SOURCE/oldhelp/input_mask_format.hlp

Last change on this file was 2986, checked in by westram, 20 years ago

fixed link note

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.6 KB
Line 
1#Please insert up references in the next lines (line starts with keyword UP)
2UP      arb.hlp
3UP      input_mask.hlp
4
5#Please insert subtopic references  (line starts with keyword SUB)
6SUB     commands.hlp
7SUB     parser.hlp
8SUB     regexpr.hlp
9
10
11# Hypertext links in helptext can be added like this: LINK{ref.hlp|http://add|bla@domain}
12
13#************* Title of helpfile !! and start of real helpfile ********
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                   <widget> "description"
64                   description of <widget-parameters>
65
66
67            TEXT(text) "prints text to window"
68
69                <text>         mandatory; Text appearing
70
71            NEW_SECTION() "starts a new section"
72
73            TEXTFIELD(label,db-path,width) "a text input field"
74
75                <label>        mandatory; Label appearing in front of input-field
76                <db-path>      mandatory; path-name of the database entry (i.e. 'full_name' or 'ali_23s/data')
77                <width>        mandatory; width of input field (1..n)
78
79            NUMFIELD(label,db-path,width[,[min],[max]]) "a numeric input field" Note: all in [ ] is optional
80
81                <label>        mandatory; <like above>
82                <db-path>      mandatory; <like above>
83                <width>        mandatory; width of input field (1..n)
84                <min>          optional; minimum (leave empty for no minimum)
85                <max>          optional if <min>; maximum (leave empty for no maximum)
86
87            CHECKBOX(label,db-path,checked) "a checkbox"
88
89                <label>        mandatory; <like above>
90                <db-path>      mandatory; <like above>
91                <checked>      mandatory; 0 or 1 (value is used if database entry is missing)
92
93            RADIO(label,db-path,default,orientation[,radio-def]+) "a radio button field" Note: [ ]+ means: must occur once, may occur repeated
94
95                <label>        mandatory; <like above>
96                <db-path>      mandatory; <like above>
97                <default>      mandatory; 1 .. n (which radio button is active if database entry is missing)
98                <orientation>  mandatory; H,V,X,Y (horizontal or vertical)
99
100                <radio-def> ::= <text>,<db-value>
101                                or
102                                <text>,'ALLOW_EDIT',<width>,<db-value>
103
104                                <text>        mandatory; text showing up in window
105                                <db-value>    mandatory; text used as database content
106
107            OPENMASK(button-label,mask-name) "a button opening another mask"
108
109                <button-label> mandatory; Label appearing on button
110                <mask-name>    mandatory; User-Mask to activate
111
112            CHANGEMASK(button-label,mask-name) "same as OPENMASK but closes current mask"
113
114            WWW(button-label,url-srt) "a button to open an URL in the web-browser"
115
116                <button-label> mandatory; Label appearing on button
117                <url-srt>      mandatory; ACI/SRT expression which creates an URL (script runs on current item)
118
119            ID(id) "assign an identifier to the last element"
120
121                <id>           mandatory; a unique identifier
122
123            GLOBAL(id,default) "declare a global variable (visible in ALL masks)"
124
125                <id>           mandatory; a unique identifier
126                <default>      mandatory; default value for variable
127
128            LOCAL(id,default) "declare a local variable (only visible in CURRENT masks)"
129
130                <id>           mandatory; a unique identifier
131                <default>      mandatory; default value for variable
132
133            SCRIPT(id,aci)     "declare a script"
134
135                <id>           mandatory; a unique identifier
136                <aci>          mandatory; the script itself (" has to be written as \")
137
138            SHOW(label,idref,width) "display/edit a variable or script"
139
140                <label>        mandatory; Label appearing in front of input-field
141                <idref>        mandatory; name of an existing identifier
142                <width>        mandatory; width of display textfield
143
144            ASSIGN(dest,source,button-label) "a button to assign value of 'source' to 'dest'"
145
146                <dest>         mandatory; ID of destination (may be a variable, a named field, etc.)
147                <source>       mandatory; ID of source (variable, named field, script, etc.)
148                <button-label> mandatory; text appearing on button
149
150
151        Examples for Widgets:
152
153            TEXTFIELD(   "Name   ",  "full_name" , 50  )
154            TEXT("Publication:")
155            TEXTFIELD(   "Author ",  "author" ,  40  )    ID(AUTHOR)
156            TEXTFIELD(   "Title  ",  "title" ,  40  )
157            TEXTFIELD(   "Journal",  "journal" ,  30  )
158
159            TEXTFIELD(   "Remark ",  "remark2" ,  50  )
160
161            CHECKBOX(   "Checked ",  "checked" ,  0  ) TEXTFIELD("by","checked_by",8)
162
163
Note: See TracBrowser for help on using the repository browser.