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
26 /** editor actions **/
28 mp.actions['menu'] = sub (d) { mp.drv.menu(); };
30 /** default key bindings **/
32 mp.keycodes['ctrl-a'] = 'menu';
33 mp.keycodes['alt-a'] = 'menu';
34 mp.keycodes['ctrl-space'] = 'menu';
35 mp.keycodes['alt-space'] = 'menu';
37 /** action descriptions **/
39 mp.actdesc['menu'] = LL("Menu");
41 /** default UI functions (dummy) **/
43 sub mp.drv.menu() { return NULL; }
44 sub mp.drv.clip_to_sys() { return NULL; }
45 sub mp.drv.sys_to_clip() { return NULL; }
46 sub mp.drv.update_ui() { return NULL; }
47 sub mp.drv.timer(msecs,func) { return NULL; }
48 sub mp.drv.busy(onoff) { return NULL; }
50 /** driver wrappers **/
52 sub mp.update_ui() { mp.drv.update_ui(); }
53 sub mp.alert(msg) { mp.drv.alert(msg); }
54 sub mp.confirm(msg) { mp.drv.confirm(msg); }
55 sub mp.openfile(prompt) { mp.drv.openfile(prompt); }
56 sub mp.savefile(prompt) { mp.drv.savefile(prompt); }
57 sub mp.form(widgets) { mp.drv.form(widgets); }
58 sub mp.timer(msecs,func) { mp.drv.timer(msecs,func); }
59 sub mp.busy(onoff) { mp.drv.busy(onoff); }