From: Arlo B. <abe...@us...> - 2004-10-24 19:44:21
|
Update of /cvsroot/pythoncard/PythonCard/tools/experimentalResourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32733 Modified Files: resourceEditor.py resourceEditor.rsrc.py Log Message: Added a dialog to the resource editor that binds actions. Widget treats these bindings as extensions to the set provided by specifically-named functions on the background (the background's functions override the bindings set in the dialog). Abel, Lion Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/experimentalResourceEditor/resourceEditor.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** resourceEditor.py 24 Oct 2004 19:21:46 -0000 1.1 --- resourceEditor.py 24 Oct 2004 19:43:42 -0000 1.2 *************** *** 26,29 **** --- 26,30 ---- from modules.propertyEditor import PropertyEditor from modules import resourceOutput + from modules import actionBinderDialog SIZING_HANDLE_SIZE = 7 *************** *** 1408,1411 **** --- 1409,1415 ---- self.documentChanged = True + def on_editActionBinder_command(self, event): + actionBinderDialog.runDialog(self) + def on_editStrings_command(self, event): stringList = {} Index: resourceEditor.rsrc.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/experimentalResourceEditor/resourceEditor.rsrc.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** resourceEditor.rsrc.py 24 Oct 2004 19:21:46 -0000 1.1 --- resourceEditor.rsrc.py 24 Oct 2004 19:43:43 -0000 1.2 *************** *** 114,117 **** --- 114,122 ---- }, {'type':'MenuItem', + 'name':'menuEditActionBinder', + 'label':'Edit Actions...', + 'command':'editActionBinder', + }, + {'type':'MenuItem', 'name':'menuEditStrings', 'label':'String Editor...', |