# Annotation editing (v1.5): highlighter tool, move, recolour, edit text, delete + undo,
# right-click, closing with unsaved changes. On a copy of test/sample.pdf.
wait 1200
key ctrl+e
wait 300
echo --- highlighter tool: dragging over text highlights it
rail 1
pdown 1 60 130
pmove 1 200 130
pup 1 330 130
wait 700
state test/out/t20_01_hl.txt
echo --- a rectangle, then move it with the select tool
rail 5
pdown 1 300 250
pup 1 400 320
wait 600
rail 0
pdown 1 350 251
pmove 1 380 280
pmove 1 400 301
pup 1 400 301
wait 700
state test/out/t20_02_moved.txt
shotscreen test/out/t20_02_moved.png
echo --- recolour it: right-click, Colour (O), Blue (B)
prclick 1 400 302
wait 300
key o
wait 200
key b
wait 700
state test/out/t20_03_blue.txt
echo --- a text box, then change its text by double-clicking it
rail 3
pclick 1 80 420
wait 300
type First text
key esc
wait 700
rail 0
pdblclick 1 90 427
wait 400
state test/out/t20_04_editing.txt
key end
type  and more
key ctrl+enter
wait 700
state test/out/t20_05_edited.txt
echo --- delete the highlight from the right-click menu (A), then undo
prclick 1 120 130
wait 300
shotscreen test/out/t20_06_menu.png
key a
wait 700
state test/out/t20_06_deleted.txt
key ctrl+z
wait 700
state test/out/t20_07_undone.txt
echo --- save, one more change, then close the tab and answer No
key ctrl+s
wait 1200
rail 6
pdown 1 100 600
pup 1 200 680
wait 600
state test/out/t20_08_dirty.txt
key ctrl+w
wait 500
shotscreen test/out/t20_09_prompt.png
key n
wait 700
state test/out/t20_10_closed.txt
quit
