/*

    Minimum Profit 5.x
    A Programmer's Text Editor

    Copyright (C) 1991-2012 Angel Ortega <angel@triptico.com>

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    as published by the Free Software Foundation; either version 2
    of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

    http://triptico.com

*/

/** editor actions **/

mp.actions['menu']	= sub (d) { mp_drv.menu(); };

/** default key bindings **/

mp.keycodes['ctrl-a']       = 'menu';
mp.keycodes['alt-a']        = 'ctrl-a';
mp.keycodes['ctrl-space']   = 'menu';
mp.keycodes['alt-space']    = 'ctrl-a';
mp.keycodes['mouse-menu']   = 'menu';

/** action descriptions **/

mp.actdesc['menu']			= LL("Menu");

/** default UI functions (dummy) **/

sub mp_drv.menu()               { return NULL; }
sub mp_drv.clip_to_sys()        { return NULL; }
sub mp_drv.sys_to_clip()        { return NULL; }
sub mp_drv.update_ui()          { return NULL; }
sub mp_drv.timer(msecs,func)    { return NULL; }
sub mp_drv.busy(onoff)          { return NULL; }

/** driver wrappers **/

sub mp.update_ui()			{ mp_drv.update_ui(); }
sub mp.alert(msg)			{ mp_drv.alert(msg); }
sub mp.confirm(msg)			{ mp_drv.confirm(msg); }
sub mp.openfile(prompt)		{ mp_drv.openfile(prompt); }
sub mp.savefile(prompt)		{ mp_drv.savefile(prompt); }
sub mp.form(widgets)		{ mp_drv.form(widgets); }
sub mp.timer(msecs,func)	{ mp_drv.timer(msecs,func); }
sub mp.busy(onoff)			{ mp_drv.busy(onoff); }
