;@@@@ do not modify @@@@

[constants]
call=1 
return=2
goto=3
clear=4
set=5

outline=1
fill=2
alpha=3
border_up=4
border_down=5
round=6
fround=7
rect=8
frect=9
side_l=0x00010000
side_r=0x00020000
side_t=0x00040000
side_b=0x00080000
sides=0x000f0000
corner_tl=2
corner_tr=1
corner_bl=4
corner_br=8
corners=15
out_l=0x00001000
out_r=0x00002000
out_t=0x00004000
out_b=0x00008000
outs=0x0000f000

;matrix flags
ratio=1
restorable=2
full=4
partial=8
disabled=32
a_left=0x00010000
a_top=0x00020000
a_right=0x00040000
a_bottom=0x00080000
b_left=0x00100000
b_top=0x00200000
b_right=0x00400000
b_bottom=0x00800000

;ubook events
ue_first_page=152
ue_prev_page=150
ue_page=162
ue_next_page=151
ue_last_page=153
ue_back=154
ue_forward=156
ue_browse=110
ue_prev_section=108
ue_next_section=109
ue_sections=107
ue_find_prev=163
ue_find=160
ue_find_next=161
ue_find_stop=164
ue_lookup=524
ue_cover=103
ue_exit=100
ue_options=105
ue_help=125
ue_about=101
ue_minimize=180
ue_maximize=181
ue_auto=140
ue_illustration=128
ue_prev_mark=190
ue_marks=126
ue_next_mark=191
ue_select_text=501
ue_select_word=503
ue_select_link=504
ue_follow_link=506
ue_click_skin=507
ue_click_image=508
ue_prev_illustration=527
ue_next_illustration=528

ue_enter_image=505
ue_leave_image=523

ue_pan_left=510
ue_pan_right=511
ue_pan_up=512
ue_pan_down=513
ue_zoom_all=514
ue_zoom_in=515
ue_zoom_out=516
ue_image_delete=518
ue_image_note=519
ue_image_highlight=520
ue_image_cell=521

ue_text_copy=535

ue_text_delete=536
ue_text_note=537
ue_text_section=538
ue_text_bookmark=539
ue_text_highlight=540
ue_text_underline=541
ue_text_strike=542

set_input=1;
get_input=2;

ue_text_find=543
ue_text_lookup=544

;param(1): -1:backward, 0:check shift key, 1:forward, 2+ cm_ or tm_
ue_cursor_mode=525
ue_touch_mode=526

cm_page=2
cm_text=3
cm_skin=4
cm_links=6

tm_select=2
tm_lock=3
tm_divide=4
tm_cursor=5
tm_flash=32

ue_open_prepare=530
ue_open_update=571
ue_open_close=532

ue_skin_prepare=546
ue_skin_close=548

;param(1): page size (1)
ue_font_prepare=558
ue_font_close=559

;param(1): delta
ue_open_move=529
ue_open_scroll=555
ue_skin_move=545
ue_skin_scroll=556
ue_skin_toggle=573
ue_font_move=560
ue_font_scroll=561

ue_open_set=557
ue_font_select=562
ue_font_size=563

ue_font_sharp=578
ue_font_smooth=579
ue_font_fuzzy=580
ue_font_contrast=581

;param(1): 1-based item index
ue_open_item=531
ue_skin_item=547

ue_edit_image_start=522
ue_edit_image_close=517
ue_edit_marks_start=533
ue_edit_marks_close=534

ue_vcr_play_pause=549
ue_vcr_stop=550

;param(1): 1-based item index
ue_external=551
ue_text_external=552

;param(1): number of keys, (2): number of maps, (3): number of pages
ue_input_prepare=564
ue_input_close=565
ue_input_map=566
ue_input_page=567
ue_input_shift=568
ue_input_key=569
ue_input_accept=570
ue_input_paste=574
ue_input_clear=575

;param(1): direction, -1 or 1
ue_book_next=572

ue_effect=576
ue_syskbd=577

ue_vk_key=553

vk_back=0x08
vk_left=0x25
vk_up=0x26
vk_right=0x27
vk_down=0x28
vk_space=0x20
vk_end=0x23
vk_home=0x24
vk_escape=0x1b
vk_escape=0x1b
vk_return=0x0d

;repeat last command until end of transaction (down->up)
;param(1): delay msecs, param(2): repeat rate msecs
ue_repeat=554

ue_cell_page=1900
ue_cell_rtl=1907
ue_cell_strip=1901
ue_cell_strip_c=1902
ue_cell_column=1903
ue_cell_column_s=1904
ue_cell_delete=1905
ue_cell_play=1906

;triggers
on_load=0
on_exit=1
on_left=2
on_right=3
on_top=4
on_bottom=5
on_wheel_up=6
on_wheel_down=7
on_tab=8
on_page_up=9
on_page_down=10
on_home=11
on_end=12

;fonts
uf_symbols=-1
uf_times=0
uf_arial=1
uf_courier=2

;font styles
uf_normal=0
uf_bold=1
uf_italic=2
uf_underline=4
uf_strikethrough=8

uf_xsmall=4
uf_small=3
uf_medium=2
uf_large=1
uf_xlarge=0

;string format
uf_left=0
uf_right=1
uf_center=2
uf_top=0
uf_bottom=4
uf_vcenter=8
uf_ellisis=16
uf_fit=32
uf_trunc_left=64
uf_outline=0x00010000
uf_outline_up=0x00020000
uf_outline_down=0x00040000

;for ue_open_set
;1st param
op_reset=1
op_toggle=2
op_set=3
op_unset=4
op_save=5
op_restore=6
op_set_top=7

;2nd param
op_drives=16384
op_path=512
op_folders=2
op_zip=4
op_texts=16
op_images=32
op_files=8
op_recents=32768
op_all=49726
op_date=64
op_size=128
op_icons=8192

;various
true=1
false=0
