blob: d80ff0744119846146811361d5d30994f1fd589e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
import type_options
/*
this file is for:
ButtonUIObject
EditUIObject
CheckBoxUIObject
RadioButtonUIObject
ListBoxUIObject
ComboBoxUIObject
SpinUIObject
SpinFieldUIObject
TabControlUIObject
*/
UIObjectCommand:
ButtonUIObject | CheckBoxUIObject | EditUIObject |
RadioButtonUIObject | ListBoxUIObject | ComboBoxUIObject |
SpinUIObject | SpinFieldUIObject | TabControlUIObject | General_type_command_on_UI_Object
;
ButtonUIObject:
'Click on' ui_button=STRING 'from' parent_id=ID
;
CheckBoxUIObject:
'Toggle' Check_box_id=STRING 'CheckBox' 'from' parent_id=ID
;
RadioButtonUIObject:
'Select' Radio_button_id=STRING 'RadioButton' 'from' parent_id=ID
;
ComboBoxUIObject:
'Select in' Combo_box_id=STRING 'ComboBox' 'item number' item_num=INT 'from' parent_id=ID
;
TabControlUIObject:
'Choose Tab number' tab_page_number=INT 'in' tab_id=STRING 'from' parent_id=ID
;
EditUIObject:
action=action_on_UIObject 'from' parent_id=ID
;
SpinFieldUIObject:
change=increase_or_ecrease Spin_id=STRING 'from' parent_id=ID
;
ListBoxUIObject:
'Select element with position ' POS=INT 'in' list_id=STRING 'from' parent_id=ID
;
//==========================================
SpinUIObject:
'from' parent_id=ID
//unkown for now
;
//==========================================
//hellper grammer for EditUIObject
action_on_UIObject:
Type_action | SELECT | Clear
;
Type_action:
'Type on' edit_button=STRING what_to_type=Type_options
;
SELECT:
'Select in ' edit_button=STRING
'{"FROM": "' from_pos=INT '" , "TO" : "'to_pos=INT '"}'
;
Clear:
'Clear' edit_button=STRING
;
//helper functions for SpinUIObject
increase_or_ecrease:
'Increase' | 'Decrease'
;
//==================================================
General_type_command_on_UI_Object:
'Type on' UI_Obj=STRING what_to_type=Type_options 'from' parent_id=ID
;
|