Created
December 8, 2011 20:55
-
-
Save ihodes/1448540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(doto frame | |
(.setDefaultCloseOperation JFrame/EXIT_ON_CLOSE) | |
(.setFocusable true) | |
(init-jframe-key-bindings! | |
{"RIGHT" [:next-view to-next-view] | |
"LEFT" [:prev-view to-previous-view] | |
"UP" [:inc-thresh #(swap-thresh! (partial + 10))] | |
"DOWN" [:dec-thresh #(swap-thresh! (partial (flip -) 10))] | |
"ctrl D" [:del-markers delete-markers!] | |
"T" [:thresh-test conduct-thresh-test] | |
"Y" [:suggest-threst suggest-thresh!] | |
"A" [:add-marks #(dosync (ref-set ref-mark-mode :a))] | |
"D" [:del-marks #(dosync (ref-set ref-mark-mode :d))]})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment