Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Changeset 155


Ignore:
Timestamp:
02/21/08 08:37:53 (4 years ago)
Author:
alex
Message:

cleanup and fix some smaller issues

Location:
trunk/lingosource/castlib1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/OSCmenu_Utilities.ls

    r153 r155  
    2828   
    2929  subli.add("Insert lingodoc script abstract") 
    30   pLookUpCommandList.setaprop("Insert script abstract", ["snipAbstract me", "alexUtilities"]) 
     30  pLookUpCommandList.setaprop("Insert lingodoc script abstract", ["snipAbstract me", "alexUtilities"]) 
    3131   
    3232  subli.add("Insert lingodoc handler description") 
    33   pLookUpCommandList.setaprop("Insert divider", ["snipTitle me", "alexUtilities"]) 
     33  pLookUpCommandList.setaprop("Insert lingodoc handler description", ["snipTitle me", "alexUtilities"]) 
    3434   
    3535  li.add("") 
  • trunk/lingosource/castlib1/alexUtilities.ls

    r153 r155  
    390390  if the runmode contains "Plugin" then return retval 
    391391   
    392   fio = new(xtra "fileio") 
    393    
    394   if not objectP(fio) then return retval 
    395    
    396   retval = fio.displayOpen() 
    397    
    398   fio = void 
     392  if mCheckForXtra(me, "BudAPI") = 1 then -- if buddy is present... 
     393     
     394    --    if the platform contains "mac" then filter = "" 
     395    --    else filter = "*.*" 
     396    return baGetFilename("Please select file", "", "Filename",  "*.*", 1, "Select file", 1, -2, -2) 
     397     
     398  else 
     399    fio = new(xtra "fileio") 
     400     
     401    if not objectP(fio) then return retval 
     402     
     403    retval = fio.displayOpen() 
     404     
     405    fio = void 
     406     
     407  end if 
    399408   
    400409  return retval 
     
    25332542 
    25342543on snipTitle me 
    2535   str = "-----------------------------------\ 
    2536   -- CREATED: <currentDate>\ 
    2537   -- ACTION: Description\ 
    2538   -- INPUT: -\ 
    2539   -- RETURNS: -\ 
    2540   -- CALLER: -\ 
    2541   -- DEBUG: -\ 
    2542   -- TODO: -\ 
    2543 -----------------------------------" 
    2544   pasteFieldContent str, 1 
     2544   
     2545  str = "-----------------------------------"&\ 
     2546RETURN & " -- CREATED: <currentDate>"&\ 
     2547RETURN & " -- ACTION: Description"&\ 
     2548RETURN & " -- INPUT: -"&\ 
     2549RETURN & " -- RETURNS: -"&\ 
     2550RETURN & " -- CALLER: -"&\ 
     2551RETURN & " -- DEBUG: -"&\ 
     2552RETURN & " -- TODO: -"&\ 
     2553RETURN & "-----------------------------------" 
     2554   
     2555  mPasteItem me, str, 1 
     2556   
    25452557end 
    25462558 
     
    25482560 
    25492561on snipAbstract me 
    2550   str = "-- <Scriptname>\ 
    2551 -----------------------------------\ 
    2552 -- CREATED:\ 
    2553 -- <currentDate>\ 
    2554 --\ 
    2555 -- DESCRIPTION:\ 
    2556 -- -\ 
    2557 --\ 
    2558 -- REQUIRES:\ 
    2559 -- (Prerequisites)\ 
    2560 --\ 
    2561 -- USAGE:\ 
    2562 -- -\ 
    2563 --\ 
    2564 -- PARAMS:\ 
    2565 -- -\ 
    2566 --\ 
    2567 -- RETURNS:\ 
    2568 -- -\ 
    2569 --\ 
    2570 -- WARNINGS:\ 
    2571 -- -\ 
    2572 --\ 
    2573 -- TODO:\ 
    2574 -- -\ 
    2575 -----------------------------------" 
    2576   pasteFieldContent str, 1 
    2577 end 
    2578  
    2579 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    2580  
    2581 on pasteFieldContent whichFieldname, replacePlaceHolder 
    2582   m = member(whichFieldname) 
    2583   if ilk(m) <> #member then exit 
    2584   if [#field, #text].getPos(m.type) > 0 then mPasteItem m.text, replacePlaceHolder 
     2562   
     2563  str = "  -- <Scriptname>"&\ 
     2564RETURN & "  -----------------------------------"&\ 
     2565RETURN & "  -- CREATED:"&\ 
     2566RETURN & "  -- <currentDate>"&\ 
     2567RETURN & "  --"&\ 
     2568RETURN & "  -- DESCRIPTION:"&\ 
     2569RETURN & "  -- -"&\ 
     2570RETURN & "  --"&\ 
     2571RETURN & "  -- REQUIRES:"&\ 
     2572RETURN & "  -- (Prerequisites)"&\ 
     2573RETURN & "  --"&\ 
     2574RETURN & "  -- USAGE:"&\ 
     2575RETURN & "  -- -"&\ 
     2576RETURN & "  --"&\ 
     2577RETURN & "  -- PARAMS:"&\ 
     2578RETURN & "  -- -"&\ 
     2579RETURN & "  --"&\ 
     2580RETURN & "  -- RETURNS:"&\ 
     2581RETURN & "  -- -"&\ 
     2582RETURN & "  --"&\ 
     2583RETURN & "  -- WARNINGS:"&\ 
     2584RETURN & "  -- -"&\ 
     2585RETURN & "  --"&\ 
     2586RETURN & "  -- TODO:"&\ 
     2587RETURN & "  -- -"&\ 
     2588RETURN & "  -----------------------------------" 
     2589   
     2590  mPasteItem me, str, 1 
     2591   
    25852592end 
    25862593 
     
    26282635   
    26292636   
    2630     if ilk(theMem) = #member then 
     2637  if ilk(theMem) = #member then 
    26312638    if theMem.type = #script then 
    26322639       
     
    26362643        placeholders = [["<currentDate>", the short date], ["<scriptname>", theMem.name]] 
    26372644         
    2638           repeat with repl in placeholders 
    2639             if repl[1] <> repl[2] then 
     2645        repeat with repl in placeholders 
     2646          if repl[1] <> repl[2] then 
    26402647            offs = offset(repl[1], theText) 
    26412648            repeat while offs > 0 
     
    26432650              offs = offset(repl[1], theText) 
    26442651            end repeat 
    2645             end if 
    2646           end repeat 
     2652          end if 
     2653        end repeat 
    26472654         
    26482655      end if 
  • trunk/lingosource/castlib1/bbedit_Utilities.ls

    r153 r155  
    103103       
    104104      if length(theText) > 0 then 
    105          
    106105         
    107106        if doLiveEdit then 
     
    142141          end if 
    143142           
    144           tempSrcPath = mGetTempFilePath(me, theName & ".ls") 
    145           tempSrcHFSPath = mConvertUnix2Hfs(me, tempSrcPath) 
     143          tempSrcHFSPath = mGetTempFilePath(me, theName & ".ls") 
     144          tempSrcPath = mConvertHfs2Unix(me, tempSrcHFSPath) 
    146145           
    147146           
     
    153152            mDoShellCmd(me, "bbedit " & tempSrcPath) 
    154153          end if 
    155            
    156154           
    157155        end if 
     
    290288            waitparam = " &" 
    291289            editor = mGetMacBinary(me, editor) 
    292             tempSrcPath = tempSrcHFSPath 
     290            tempSrcPath = mConvertHfs2Unix(me, tempSrcHFSPath) 
    293291          else 
    294292            waitparam = "" 
Note: See TracChangeset for help on using the changeset viewer.