-rw-r--r-- | src/controller/clear_selection.h | 6 | ||||
-rw-r--r-- | src/controller/clear_selection.sqc | 45 | ||||
-rw-r--r-- | src/controller/keyboard.c | 28 | ||||
-rw-r--r-- | src/controller/keyboard.h | 6 | ||||
-rw-r--r-- | src/controller/selection_from_db.h | 9 | ||||
-rw-r--r-- | src/controller/selection_from_db.sqc | 21 | ||||
-rw-r--r-- | src/controller/selection_to_db.h | 9 | ||||
-rw-r--r-- | src/controller/selection_to_db.sqc | 38 | ||||
-rw-r--r-- | src/model/exp004base.sqc | 144 | ||||
-rw-r--r-- | src/util/pick_convert.c | 50 | ||||
-rw-r--r-- | src/util/pick_convert.h | 29 |
11 files changed, 385 insertions, 0 deletions
diff --git a/src/controller/keyboard.c b/src/controller/keyboard.c new file mode 100644 index 0000000..c6e3c48 --- a/dev/null +++ b/src/controller/keyboard.c | |||
@@ -0,0 +1,28 @@ | |||
1 | #include "keyboard.h" | ||
2 | #include "clear_selection.h" | ||
3 | #include "selection_from_db.h" | ||
4 | |||
5 | void | ||
6 | keyboard (unsigned char key, int x, int y) | ||
7 | { | ||
8 | switch (key) | ||
9 | { | ||
10 | case 27: | ||
11 | /* | ||
12 | * ESC Pressed. | ||
13 | */ | ||
14 | clear_selection (); | ||
15 | break; | ||
16 | |||
17 | case 'g': | ||
18 | /* | ||
19 | * g has been pressed. This is used to load a selection from | ||
20 | * the database since it is the convention to use g for | ||
21 | * refreshing a buffer in Emacs. | ||
22 | */ | ||
23 | selection_from_db (); | ||
24 | break; | ||
25 | } | ||
26 | |||
27 | return; | ||
28 | } | ||