# Markup (v1.5): selection bar, pen, shapes, text box, note, undo/redo, select + delete, save.
# Run on a copy of test/sample.pdf (test/mksamples.py). Page points are from the page's top-left.
wait 1200
key ctrl+e
wait 300
state test/out/t18_01_edit.txt
shotscreen test/out/t18_01_edit.png
echo --- select text on page 1 and highlight it from the selection bar
pdown 1 60 104
pmove 1 150 104
pmove 1 300 106
pup 1 300 106
wait 300
state test/out/t18_02_sel.txt
shotscreen test/out/t18_02_sel.png
mini 0
wait 700
state test/out/t18_03_highlight.txt
echo --- pen stroke
rail 2
pdown 1 100 300
pmove 1 140 280
pmove 1 180 320
pmove 1 220 290
pmove 1 260 330
pup 1 260 330
wait 600
echo --- rectangle, ellipse, arrow
rail 5
pdown 1 320 260
pmove 1 400 300
pup 1 460 340
wait 500
rail 6
pdown 1 320 380
pmove 1 400 420
pup 1 460 450
wait 500
rail 7
pdown 1 100 420
pmove 1 180 430
pup 1 250 460
wait 600
state test/out/t18_04_shapes.txt
shotscreen test/out/t18_04_shapes.png
echo --- text box
rail 3
pclick 1 80 520
wait 300
type Hello from a text box
wait 200
state test/out/t18_05_typing.txt
shotscreen test/out/t18_05_typing.png
key esc
wait 600
echo --- note
rail 4
pclick 1 520 200
wait 300
type Check this number
key ctrl+enter
wait 700
state test/out/t18_06_note.txt
shotscreen test/out/t18_06_note.png
echo --- undo the note, redo it
key ctrl+z
wait 600
state test/out/t18_07_undo.txt
key ctrl+y
wait 600
state test/out/t18_08_redo.txt
echo --- select the rectangle and delete it
rail 0
wait 200
pclick 1 390 262
wait 300
state test/out/t18_09_asel.txt
shotscreen test/out/t18_09_asel.png
key del
wait 600
state test/out/t18_10_deleted.txt
echo --- hover the note: its text shows
phover 1 520 200
wait 400
shotscreen test/out/t18_11_hover.png
echo --- save
key ctrl+s
wait 1200
state test/out/t18_12_saved.txt
shotscreen test/out/t18_12_saved.png
quit
