summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/controller/clear_selection.h6
-rw-r--r--src/controller/clear_selection.sqc45
-rw-r--r--src/controller/keyboard.c28
-rw-r--r--src/controller/keyboard.h6
-rw-r--r--src/controller/selection_from_db.h9
-rw-r--r--src/controller/selection_from_db.sqc21
-rw-r--r--src/controller/selection_to_db.h9
-rw-r--r--src/controller/selection_to_db.sqc38
-rw-r--r--src/model/exp004base.sqc144
-rw-r--r--src/util/pick_convert.c50
-rw-r--r--src/util/pick_convert.h29
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
5void
6keyboard (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}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.