-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 @@ +#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; +} |