home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / AppsToGo.Changes / DTS.Lib / ViewHierarchy.c.df < prev    next >
Encoding:
Text File  |  1993-06-18  |  6.2 KB  |  186 lines  |  [TEXT/MPS ]

  1. File #1: b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c
  2. File #2: a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c
  3.  
  4. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 8; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 8)
  5. ** Copyright © 1990-1992 Apple Computer, Inc.
  6.  
  7. ** Copyright © 1990-1993 Apple Computer, Inc.
  8.  
  9.  
  10. Extra lines in 2nd before 12 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line Δ12; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 12:19)
  11. /* You may incorporate this sample code into your applications without
  12. ** restriction, though the sample code has been provided "AS IS" and the
  13. ** responsibility for its operation is 100% yours.  However, what you are
  14. ** not permitted to do is to redistribute the source as "DSC Sample Code"
  15. ** after having made changes. If you're going to re-distribute the source,
  16. ** we require that you make it clear in the source that the code was
  17. ** descended from Apple Sample Code, but that you've made changes. */
  18.  
  19.  
  20.  
  21. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 117; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 125)
  22.         case 1:
  23.  
  24.         case 101:
  25.  
  26.  
  27. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 134; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 142)
  28.         case 2:
  29.  
  30.         case 102:
  31.  
  32.  
  33. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 143; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 151)
  34.         case 4:
  35.  
  36.         case 103:
  37.  
  38.  
  39. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 244:245; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 252)
  40.     Rect            ctlRect, brdrRect, viewRect, destRect, listRect1, listRect2, newDisplay;
  41.     short            mode;
  42.  
  43.     ControlHandle    ctl;
  44.  
  45.  
  46. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 249; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 256)
  47.     TextStyle        styl;
  48.  
  49.     OSErr            err;
  50.  
  51.  
  52. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 254:323; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 261:278)
  53.     GetFNum("\pMonaco", &styl.tsFont);
  54.     styl.tsSize = 9;
  55.  
  56.     ctlRect = window->portRect;
  57.     --ctlRect.top;
  58.     --ctlRect.left;
  59.     ctlRect.right  = ctlRect.left + 298;
  60.     ++ctlRect.bottom;
  61.     InsetRect(&ctlRect, 10, 10);
  62.     brdrRect = ctlRect;
  63.     viewRect = ctlRect;
  64.     InsetRect(&viewRect, 4, 4);
  65.     destRect = viewRect;
  66.     destRect.right -= 2;    /* This fixes a TextEdit problem where the
  67.                             ** view has to be a little outside the dest on
  68.                             ** the right, or else characters are clipped. */
  69.  
  70.     mode = (cteReadOnly | cteVScroll | cteActive | cteShowActive);
  71.     CTENew(gTECtl, true, window, &dump, &ctlRect, &destRect, &viewRect, &brdrRect, 32000, mode);
  72.     if (dump)
  73.         TESetStyle((doFont | doSize), &styl, false, dump);
  74.     else
  75.         return(memFullErr);
  76.  
  77.     SetRect(&newDisplay, ctlRect.right + 26, ctlRect.top, ctlRect.right + 116, ctlRect.top + 20);
  78.     brdrRect = newDisplay;
  79.     viewRect = newDisplay;
  80.     InsetRect(&viewRect, 4, 4);
  81.     destRect = viewRect;
  82.     destRect.right -= 2;
  83.     mode = (cteActive | cteShowActive | cteTabSelectAll);
  84.     CTENew(gTECtl, true, window, &display, &newDisplay, &destRect, &viewRect, &brdrRect, 10, mode);
  85.     if (display) {
  86.         TESetStyle((doFont | doSize), &styl, false, display);
  87.         CTESetKeyFilter(display, VHDisplayFilter);
  88.     }
  89.     else
  90.         return(memFullErr);
  91.  
  92.     ctlRect.top += 38;
  93.  
  94.     ctlRect.left  = ctlRect.right + 26;
  95.     ctlRect.right = ctlRect.left  + 70;
  96.     listRect1 = ctlRect;
  97.  
  98.     ctlRect.left  = ctlRect.right + 26;
  99.     ctlRect.right = ctlRect.left  + 70;
  100.     listRect2 = ctlRect;
  101.  
  102.     mode = (clVScroll | clShowActive | clDrawIt);
  103.  
  104.     window->txFont = styl.tsFont;
  105.     window->txSize = styl.tsSize;
  106.  
  107.     clist = CLNew(gListCtl, true, &listRect2, 0, 1, 11, 80, 0, window, mode);
  108.     if (clist)
  109.         (*clist)->selFlags = lOnlyOne;
  110.     else
  111.         return(memFullErr);
  112.  
  113.     plist = CLNew(gListCtl, true, &listRect1, 0, 1, 11, 80, 0, window, mode);
  114.     if (plist)
  115.         (*plist)->selFlags = lOnlyOne;
  116.     else
  117.         return(memFullErr);
  118.  
  119.     newView = GetNewControl(rNewViewCtl, window);
  120.     if (!newView)
  121.         return(memFullErr);
  122.  
  123.  
  124.     if (err = AddControlSet(window, (*frHndl)->fileState.sfType, kwStandardVis, 0, 0, nil))
  125.         return(err);
  126.  
  127.     CNum2Ctl(window, 100, &ctl);
  128.     dump = (TEHandle)GetCRefCon(ctl);
  129.  
  130.     CNum2Ctl(window, 101, &ctl);
  131.     display = (TEHandle)GetCRefCon(ctl);
  132.     CTESetKeyFilter(display, VHDisplayFilter);
  133.  
  134.     CNum2Ctl(window, 102, &ctl);
  135.     plist = (ListHandle)GetCRefCon(ctl);
  136.  
  137.     CNum2Ctl(window, 103, &ctl);
  138.     clist = (ListHandle)GetCRefCon(ctl);
  139.  
  140.     CNum2Ctl(window, 104, &newView);
  141.  
  142.  
  143.  
  144. Extra lines in 2nd before 443 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line Δ443; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 398)
  145.     WindowPtr        oldPort;
  146.  
  147.  
  148. Extra lines in 2nd before 468 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line Δ468; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 424:426)
  149.     GetPort(&oldPort);
  150.     SetPort((*frHndl)->fileState.window);
  151.  
  152.  
  153.  
  154. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 536:539; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 495:500)
  155.     DisposeHandle(CTESwapText(dump, text, nil, true));
  156.  
  157.  
  158.  
  159.  
  160.  
  161.     UseControlStyle(CTEViewFromTE(dump));
  162.     DisposeHandle(CTESwapText(dump, text, nil, true));
  163.     UseControlStyle(nil);
  164.  
  165.     UseControlStyle(CLViewFromList(clist));
  166.  
  167.  
  168. Nonmatching lines (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line 554:556; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 515:517)
  169.  
  170.  
  171.  
  172.  
  173.     UseControlStyle(nil);
  174.  
  175.     UseControlStyle(CLViewFromList(plist));
  176.  
  177.  
  178. Extra lines in 2nd before 576 in 1st (File "b:-archives:93/03/25.Dev.CD.Version:AppsToGo.CD:DTS.Lib:ViewHierarchy.c"; Line Δ576; File "a:Desktop Folder:AppsToGo.src:DTS.Lib:ViewHierarchy.c"; Line 537:540)
  179.     UseControlStyle(nil);
  180.  
  181.     SetPort(oldPort);
  182.     return(noErr);
  183.  
  184.  
  185. *** EOF on both files at the same time ***
  186.