summaryrefslogtreecommitdiffstats
Side-by-side diff
-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 @@
+#include "keyboard.h"
+#include "clear_selection.h"
+#include "selection_from_db.h"
+
+void
+keyboard (unsigned char key, int x, int y)
+{
+ switch (key)
+ {
+ case 27:
+ /*
+ * ESC Pressed.
+ */
+ clear_selection ();
+ break;
+
+ case 'g':
+ /*
+ * g has been pressed. This is used to load a selection from
+ * the database since it is the convention to use g for
+ * refreshing a buffer in Emacs.
+ */
+ selection_from_db ();
+ break;
+ }
+
+ return;
+}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.