|
From: creedon <icr...@us...> - 2006-02-15 05:16:03
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/menus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16329 Modified Files: buildSuitesSubmenu Log Message: on Windows there currently is no &Operations menu so we just add to Operations Index: buildSuitesSubmenu =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/menus/buildSuitesSubmenu,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** buildSuitesSubmenu 30 Sep 2005 15:50:08 -0000 1.3 --- buildSuitesSubmenu 15 Feb 2006 05:15:49 -0000 1.4 *************** *** 1,3 **** FrontierVcsFile:1:scpt:system.menus.buildSuitesSubmenu ! on buildSuitesSubMenu () { ÇChanges Ç9/27/05; 7:47:41 PM by TAC Çsuites are added to the top of the menu w/built-in commands at bottom Ç12/4/04; 12:30:36 PM by TAC ÇMain menu is now Operations Ç9/23/99; 2:58:52 PM by PBS ÇYou can put the address of a suite in the suites table, and it will be added to the menu. Ç9/24/99; 10:50:48 AM by PBS ÇIf the suite is in a gdb, and the gdb is open, and the suite contains a suiteName item, use that when building the Suites submenu. Otherwise, if the gdb is not open, use the name of the object in the Suites table. ÇBuild the Suites submenu in the Main menu. local (localMenu = system.menus.virginSuitesMenu); local (oldTarget = target.get ()); target.set (@localMenu); local (adrSuitesTable = @root.suites); local (i, ct = sizeOf (adrSuitesTable^), adrSuite, adrMenu, name, logic); for i = ct downTo 1 { adrSuite = @adrSuitesTable^ [i]; local (suiteType = typeOf (adrSuite^)); case suiteType { //handle tables and addresses tableType { adrMenu = @adrsuite^.menu; if not defined (adrMenu^) { continue}; if typeOf (adrMenu^) != menubarType { continue}; try { name = adrSuite^.suiteName} else { name = nameOf (adrSuite^)}}; addressType { name = nameOf (adrSuite^); if defined (adrSuite^^.suiteName) { //PBS 9/24/99: if the gdb is open, and the suite contains a suiteName, use it name = adrSuite^^.suiteName}}} else { //if it's not a table or address, continue continue}; logic = "system.menus.swapInSuite (@" + adrSuite + ")"; menu.addMenuCommand (@localMenu, "Suites", name, logic); op.reorg (up, infinity)}; if system.environment.isMac { menu.addSubMenu (@system.menus.menubar, "Operations", @localMenu)}; // 6/12/05; 11:59:39 PM by TAC if system.environment.isWindows { menu.addSubMenu (@system.menus.menubar, "&Operations", @localMenu)}; // 6/12/05; 11:59:48 PM by TAC try {target.set (oldTarget)}}; Çbundle // testing ÇbuildSuitesSubMenu () \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:system.menus.buildSuitesSubmenu ! on buildSuitesSubMenu () { ÇChanges Ç2/12/06; 3:03:26 PM by TAC, AR Çon Windows there currently is no &Operations menu so we just add to Operations Ç9/27/05; 7:47:41 PM by TAC Çsuites are added to the top of the menu w/built-in commands at bottom Ç12/4/04; 12:30:36 PM by TAC ÇMain menu is now Operations Ç9/23/99; 2:58:52 PM by PBS ÇYou can put the address of a suite in the suites table, and it will be added to the menu. Ç9/24/99; 10:50:48 AM by PBS ÇIf the suite is in a gdb, and the gdb is open, and the suite contains a suiteName item, use that when building the Suites submenu. Otherwise, if the gdb is not open, use the name of the object in the Suites table. ÇBuild the Suites submenu in the Main menu. local (localMenu = system.menus.virginSuitesMenu); local (oldTarget = target.get ()); target.set (@localMenu); local (adrSuitesTable = @root.suites); local (i, ct = sizeOf (adrSuitesTable^), adrSuite, adrMenu, name, logic); for i = ct downTo 1 { adrSuite = @adrSuitesTable^ [i]; local (suiteType = typeOf (adrSuite^)); case suiteType { //handle tables and addresses tableType { adrMenu = @adrsuite^.menu; if not defined (adrMenu^) { continue}; if typeOf (adrMenu^) != menubarType { continue}; try { name = adrSuite^.suiteName} else { name = nameOf (adrSuite^)}}; addressType { name = nameOf (adrSuite^); if defined (adrSuite^^.suiteName) { //PBS 9/24/99: if the gdb is open, and the suite contains a suiteName, use it name = adrSuite^^.suiteName}}} else { //if it's not a table or address, continue continue}; logic = "system.menus.swapInSuite (@" + adrSuite + ")"; menu.addMenuCommand (@localMenu, "Suites", name, logic); op.reorg (up, infinity)}; Çif system.environment.isMac menu.addSubMenu (@system.menus.menubar, "Operations", @localMenu); // 6/12/05; 11:59:39 PM by TAC Çif system.environment.isWindows Çmenu.addSubMenu (@system.menus.menubar, "&Operations", @localMenu) // 6/12/05; 11:59:48 PM by TAC try {target.set (oldTarget)}}; Çbundle // testing ÇbuildSuitesSubMenu () \ No newline at end of file |