|
From: Kevin A. <ka...@us...> - 2004-08-22 19:11:45
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29030/tools/resourceEditor/modules Modified Files: dialogInfoDialog.py menuDialog.py stringDialog.py Log Message: added function wrappers for dialogInfoDialog, menuDialog, and stringDialog Index: dialogInfoDialog.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules/dialogInfoDialog.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dialogInfoDialog.py 15 Apr 2004 23:59:30 -0000 1.6 --- dialogInfoDialog.py 22 Aug 2004 19:11:35 -0000 1.7 *************** *** 20,21 **** --- 20,31 ---- self.components.fldSize.text = str(rsrc.size) + def dialogInfoDialog(parent, rsrc): + dlg = DialogInfoDialog(parent, rsrc) + result = dlg.showModal() + if result.accepted: + result.name = dlg.components.fldName.text + result.title = dlg.components.fldTitle.text + result.position = eval(dlg.components.fldPosition.text) + result.size = eval(dlg.components.fldSize.text) + dlg.destroy() + return result Index: menuDialog.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules/menuDialog.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** menuDialog.py 10 Aug 2004 23:41:00 -0000 1.15 --- menuDialog.py 22 Aug 2004 19:11:35 -0000 1.16 *************** *** 374,375 **** --- 374,387 ---- self.rebuildListMenus(sel) self.displayItemAttributes(sel) + + + def menuDialog(parent, rsrc): + dlg = MenuDialog(parent, rsrc) + result = dlg.showModal() + if result.accepted: + if len(dlg.menuList) == 0: + result.menubar = None + else: + result.menubar = menuResourceFromList(dlg.menuList) + dlg.destroy() + return result Index: stringDialog.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/modules/stringDialog.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** stringDialog.py 24 Apr 2004 06:49:47 -0000 1.10 --- stringDialog.py 22 Aug 2004 19:11:35 -0000 1.11 *************** *** 52,55 **** --- 52,56 ---- def on_fldName_closeField(self, event): + print "closeField fldName", event.target.text newName = event.target.text previousName = self.getStringSelectionKey() *************** *** 68,71 **** --- 69,73 ---- def on_fldValue_closeField(self, event): + print "closeField fldValue", event.target.text sel = self.components.listStrings.selection name = self.getStringSelectionKey() *************** *** 104,105 **** --- 106,116 ---- self.displayItemAttributes(self.getStringSelectionKey()) + + def stringDialog(parent, rsrc): + dlg = StringDialog(parent, rsrc) + result = dlg.showModal() + if result.accepted: + result.stringList = stringResourceFromList(dlg.stringList) + dlg.destroy() + return result + |