4 A Programmer's Text Editor
6 Copyright (C) 1991-2007 Angel Ortega <angel@triptico.com>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 http://www.triptico.com
28 mp.actions['menu'] = sub (d) { mp.drv.menu(); };
30 /* default key bindings */
32 mp.keycodes['ctrl-a'] = 'menu';
33 mp.keycodes['ctrl-space'] = 'menu';
35 /* action descriptions */
37 mp.actdesc['menu'] = LL("Menu");
39 /* default UI functions (dummy) */
41 sub mp.drv.menu() { return NULL; }
42 sub mp.drv.clip_to_sys() { return NULL; }
43 sub mp.drv.sys_to_clip() { return NULL; }
44 sub mp.drv.update_ui() { return NULL; }
45 sub mp.drv.timer(msecs,func) { return NULL; }
46 sub mp.drv.busy(onoff) { return NULL; }
50 sub mp.update_ui() { mp.drv.update_ui(); }
51 sub mp.alert(msg) { mp.drv.alert(msg); }
52 sub mp.confirm(msg) { mp.drv.confirm(msg); }
53 sub mp.openfile(prompt) { mp.drv.openfile(prompt); }
54 sub mp.savefile(prompt) { mp.drv.savefile(prompt); }
55 sub mp.form(widgets) { mp.drv.form(widgets); }
56 sub mp.timer(msecs,func) { mp.drv.timer(msecs,func); }
57 sub mp.busy(onoff) { mp.drv.busy(onoff); }