From: Riccardo B. <bor...@us...> - 2008-06-24 16:57:11
|
Update of /cvsroot/ftm/ftm/externals/max In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv26817/externals/max Modified Files: ftm.editor.cpp ftm.mess.c Log Message: ftm.editor: fixed open help patch in locked patcher Index: ftm.editor.cpp =================================================================== RCS file: /cvsroot/ftm/ftm/externals/max/ftm.editor.cpp,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** ftm.editor.cpp 19 Jun 2008 15:05:29 -0000 1.62 --- ftm.editor.cpp 24 Jun 2008 16:57:18 -0000 1.63 *************** *** 180,183 **** --- 180,199 ---- } + void doAction(JUCE_NAMESPACE::String action) + { + static t_object *pcontrol = NULL; + + if(action == JUCE_NAMESPACE::String("help")) + { + fts_atom_t a; + + if(pcontrol == NULL) + pcontrol = (t_object *)newinstance(gensym("pcontrol"), 0, NULL); + + fts_set_symbol(&a, gensym("ftm.editor")); + typedmess(pcontrol, gensym("help"), 1, &a); + } + } + void paint (JUCE_NAMESPACE::Graphics& g) { Index: ftm.mess.c =================================================================== RCS file: /cvsroot/ftm/ftm/externals/max/ftm.mess.c,v retrieving revision 1.111 retrieving revision 1.112 diff -C2 -d -r1.111 -r1.112 *** ftm.mess.c 24 Jun 2008 09:25:51 -0000 1.111 --- ftm.mess.c 24 Jun 2008 16:57:18 -0000 1.112 *************** *** 998,1005 **** isArrowKey( int key) { ! return (key == kUpKey || key == kDownKey || key == kLeftKey || key == kRightKey); } - #ifndef WIN32 --- 998,1004 ---- isArrowKey( int key) { ! return (key == @ || key == kDownKey || key == kLeftKey || key == kRightKey); } #ifndef WIN32 |