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

Changeset 23 for trunk/lingosource


Ignore:
Timestamp:
09/14/07 12:16:07 (5 years ago)
Author:
alex
Message:

now with svn status

Location:
trunk/lingosource/castlib1
Files:
2 edited

Legend:

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

    r21 r23  
    294294       
    295295      glob[#copy2ClipBoard] = 0 
    296       glob[#theTargetInstance] = new(script "alexUtilities") 
     296       
     297      alexUtilities = new(script "alexUtilities") 
     298      alexUtilities.setaprop(#pHandlerMenuWindowName, (the activewindow).name) 
     299      glob[#theTargetInstance] = alexUtilities 
    297300       
    298301      if cmdli.word.count then 
  • trunk/lingosource/castlib1/alexUtilities.ls

    r21 r23  
    33 
    44property ancestor 
     5 
     6 
     7-- since this script runs in "stage scope" we just set the name off the handlerMenu window 
     8-- so that this script can "tell" something to the window, where it originates from => the tool miaw window 
     9-- this is used for the "mDisplayWaitStatusText" and "mSwitchToStatusMode" handler at the moment 
     10property pHandlerMenuWindowName 
     11property pStatusMode -- are we in "show status" mode => maximized 
     12 
    513 
    614on new me 
     
    7381  dertext = mGetTextFromFile(me, pfad) 
    7482  if length(dertext) > 0 then 
     83    mSwitchToStatusMode me, 1 
    7584    theResult = mGetListFromXMLString(me, dertext) 
     85    mSwitchToStatusMode me, 0 
    7686  end if 
    7787  return theResult 
     
    477487  if thePath = 0 then exit 
    478488   
     489   
    479490  mp = the moviepath 
    480491  if length(mp) < 1 then mp = the applicationpath 
     492   
     493   
    481494   
    482495  theType = string(theType) 
     
    495508   
    496509  if not(["jpg", "png", "bmp", "pct"].getPos(theType)) then exit 
     510   
     511  mSwitchToStatusMode me, 1 
    497512   
    498513  useMemberName = (the last char of thePath = the last char of mp) 
     
    522537    end repeat 
    523538  end repeat 
     539   
     540  mSwitchToStatusMode me, 0 
     541   
    524542end 
    525543 
     
    816834-- put mFindInGPDL("") 
    817835on mFindInGPDL me, str -- durchsucht alle behavior initializers in diesem movie nach <str> 
     836   
     837  mSwitchToStatusMode me, 1 
     838   
    818839  letzterframe = the lastframe 
    819840  letzterkanal = the lastChannel 
     
    835856    end repeat 
    836857  end repeat 
     858   
     859  mSwitchToStatusMode me, 0 
     860   
    837861  return retlist 
    838862end 
     
    9791003 
    9801004on mListallPuts me 
     1005   
     1006  mSwitchToStatusMode me, 1 
     1007   
     1008  mDisplayWaitStatusText me, "See the message window for results of search" 
     1009   
    9811010  cnum = the number of castlibs 
    9821011  repeat with l = 1 to cnum 
     
    10281057                  if not(linWOQuote contains " after ") then 
    10291058                    if not(linWOQuote contains " before ") then 
     1059                       
     1060                      mDisplayWaitStatusText me, theLine 
     1061                       
    10301062                      put "-----------" 
    10311063                      le = length(st.line[1 .. r-1]) 
     
    10421074    end repeat 
    10431075  end repeat 
     1076   
     1077  mSwitchToStatusMode me, 0 
     1078   
    10441079end 
    10451080 
     
    19692004    exit 
    19702005  end if 
     2006   
     2007  mSwitchToStatusMode me, 1 
    19712008   
    19722009  -- loop through all castlibs: 
     
    20412078  fx = 0 
    20422079  fio = 0 
     2080   
     2081  mSwitchToStatusMode me, 0 
     2082   
    20432083end 
    20442084 
     
    31923232        end if 
    31933233         
    3194         shell_cmd(bbdiffpath & " --ignore-curly-quotes --ignore-spaces --wait --resume " &QUOTE& tempSrcPath &QUOTE&&QUOTE& comm &QUOTE) 
     3234        theResult = shell_cmd_list(bbdiffpath & " --ignore-curly-quotes --ignore-spaces --wait --resume " &QUOTE& tempSrcPath &QUOTE&&QUOTE& comm &QUOTE && "2>&1") 
    31953235         
    31963236        -- since we used the --wait and the --resume switch, we will only come to this line AFTER the diff process in bbedit is finished 
    31973237         
    3198          
    3199         -------- now write the results of the BBEdit diff back into the script members 
    3200         scrText = mGetTextFromTempFile(me, tempSrcHFSPath) 
    3201          
    3202          
    3203         if convertLineBreaksToUnix = 1 then 
    3204           ------------------------------------------ trac subversion support works better with unix linebreaks... 
    3205           if mCheckForXtra(me, "Pregex") = 1 then 
    3206              
    3207             scrTextLi = [scrText] 
    3208             if the platform contains "mac" then 
    3209               pregex_replace(scrTextLi, "\x0D?\x0A", "g", "\x0D") 
    3210             else 
    3211               pregex_replace(scrTextLi, "\x0D([^\x0A])", "g", "\x0D\x0A\1") 
    3212               pregex_replace(scrTextLi, "([^\x0D])\x0A", "g", "\1\x0D\x0A") 
    3213             end if 
    3214             scrText = scrTextLi[1] 
    3215              
    3216           else 
    3217              
    3218             if the platform contains "mac" then 
     3238        if count(theResult) > 0 then 
     3239          alert "No differences found" 
     3240           
     3241        else 
     3242           
     3243          -------- now write the results of the BBEdit diff back into the script members 
     3244          scrText = mGetTextFromTempFile(me, tempSrcHFSPath) 
     3245           
     3246           
     3247          if convertLineBreaksToUnix = 1 then 
     3248            ------------------------------------------ trac subversion support works better with unix linebreaks... 
     3249            if mCheckForXtra(me, "Pregex") = 1 then 
    32193250               
    3220               -- first convert windows to mac 
    3221               fndStr = numToChar(13) & numToChar(10) 
    3222               offs = offset(fndStr, scrText) 
    3223               repeat while offs > 0 
    3224                 put numToChar(13) into char offs to offs+1 of scrText 
    3225                 offs = offset(fndStr, scrText) 
    3226               end repeat 
    3227                
    3228               -- now convert unix to mac 
    3229               fndStr = numToChar(10) 
    3230               offs = offset(fndStr, scrText) 
    3231               repeat while offs > 0 
    3232                 put numToChar(13) into char offs of scrText 
    3233                 offs = offset(fndStr, scrText) 
    3234               end repeat 
     3251              scrTextLi = [scrText] 
     3252              if the platform contains "mac" then 
     3253                pregex_replace(scrTextLi, "\x0D?\x0A", "g", "\x0D") 
     3254              else 
     3255                pregex_replace(scrTextLi, "\x0D([^\x0A])", "g", "\x0D\x0A\1") 
     3256                pregex_replace(scrTextLi, "([^\x0D])\x0A", "g", "\1\x0D\x0A") 
     3257              end if 
     3258              scrText = scrTextLi[1] 
    32353259               
    32363260            else 
    32373261               
    3238               fndStr = numToChar(13) & numToChar(10) 
    3239               offs = offset(fndStr, scrText) 
    3240               repeat while offs > 0 
    3241                 put "ÀÀÀ" into char offs+1 of scrText 
     3262              if the platform contains "mac" then 
     3263                 
     3264                -- first convert windows to mac 
     3265                fndStr = numToChar(13) & numToChar(10) 
    32423266                offs = offset(fndStr, scrText) 
    3243               end repeat 
    3244                
    3245                
    3246               fndStr = numToChar(10) 
    3247               offs = offset(fndStr, scrText) 
    3248               repeat while offs > 0 
    3249                 put numToChar(13) & numToChar(10) into char offs of scrText 
     3267                repeat while offs > 0 
     3268                  put numToChar(13) into char offs to offs+1 of scrText 
     3269                  offs = offset(fndStr, scrText) 
     3270                end repeat 
     3271                 
     3272                -- now convert unix to mac 
     3273                fndStr = numToChar(10) 
    32503274                offs = offset(fndStr, scrText) 
    3251               end repeat 
    3252                
    3253                
    3254                
    3255               fndStr = numToChar(13) & "ÀÀÀ" 
    3256               offs = offset(fndStr, scrText) 
    3257               repeat while offs > 0 
    3258                 put numToChar(13) & numToChar(10) into char offs to offs+3 of scrText 
     3275                repeat while offs > 0 
     3276                  put numToChar(13) into char offs of scrText 
     3277                  offs = offset(fndStr, scrText) 
     3278                end repeat 
     3279                 
     3280              else 
     3281                 
     3282                fndStr = numToChar(13) & numToChar(10) 
    32593283                offs = offset(fndStr, scrText) 
    3260               end repeat 
    3261                
    3262                
    3263                
    3264               fndStr = "ÀÀÀ" 
    3265               offs = offset(fndStr, scrText) 
    3266               repeat while offs > 0 
    3267                 put numToChar(13) & numToChar(10) into char offs to offs+2 of scrText 
     3284                repeat while offs > 0 
     3285                  put "ÀÀÀ" into char offs+1 of scrText 
     3286                  offs = offset(fndStr, scrText) 
     3287                end repeat 
     3288                 
     3289                 
     3290                fndStr = numToChar(10) 
    32683291                offs = offset(fndStr, scrText) 
    3269               end repeat 
     3292                repeat while offs > 0 
     3293                  put numToChar(13) & numToChar(10) into char offs of scrText 
     3294                  offs = offset(fndStr, scrText) 
     3295                end repeat 
     3296                 
     3297                 
     3298                 
     3299                fndStr = numToChar(13) & "ÀÀÀ" 
     3300                offs = offset(fndStr, scrText) 
     3301                repeat while offs > 0 
     3302                  put numToChar(13) & numToChar(10) into char offs to offs+3 of scrText 
     3303                  offs = offset(fndStr, scrText) 
     3304                end repeat 
     3305                 
     3306                 
     3307                 
     3308                fndStr = "ÀÀÀ" 
     3309                offs = offset(fndStr, scrText) 
     3310                repeat while offs > 0 
     3311                  put numToChar(13) & numToChar(10) into char offs to offs+2 of scrText 
     3312                  offs = offset(fndStr, scrText) 
     3313                end repeat 
     3314                 
     3315              end if 
    32703316               
    32713317            end if 
    3272              
     3318            ----------------------------------------- 
    32733319          end if 
    3274           ----------------------------------------- 
     3320           
     3321           
     3322          memref.scripttext = scrText 
     3323           
    32753324        end if 
    32763325         
    3277          
    3278         memref.scripttext = scrText 
    3279          
    3280       end if 
     3326        exit -- we only proceed one script member 
     3327         
     3328         
     3329      end if 
     3330       
    32813331       
    32823332    end repeat 
    32833333  end repeat 
    3284    
    3285    
    3286    
    3287    
    3288    
    32893334   
    32903335   
     
    33623407   
    33633408  theFolder = mGetWorkingCopyPath(me, the moviepath & the moviename, 0, workingCopies, "No working copy is specified for this movies scripttext. Please select a working copy for the scripttext now.") 
     3409  --  put "mFindWorkingCopyCounterpart: theFolder:" && theFolder 
    33643410   
    33653411  if length(theFolder) < 1 then return "" 
     
    33813427  if theFoldername <> "castlib" & m then 
    33823428     
    3383     newPath = theFolder & "castlib" & m 
     3429    newPath = theFolder & "castlib" & m & delim 
    33843430     
    33853431    if baFolderExists(newPath) = 0 then 
     
    33963442      else 
    33973443         
    3398         theFolder = newPath 
     3444        if count(infolist) < 1 then 
     3445           
     3446          alert "The specified folder doesn't seem to contain info for this castlib: file memberInfo.xml missing." 
     3447          return "" 
     3448           
     3449        else 
     3450          theFolder = newPath 
     3451        end if 
    33993452         
    34003453      end if 
     
    34303483  repeat with l = 1 to cnt 
    34313484    li = infolist[l] 
     3485    --    put "memberName:" && li.getaprop(#memberName) 
    34323486    if li.getaprop(#memberName) = memref.name then 
    34333487       
     
    34363490      fpath = theFolder & fname & ".ls" 
    34373491       
     3492      --      put "path:" && fpath  
     3493       
    34383494      if baFileExists(fpath) then return fpath 
    34393495       
     
    34503506 
    34513507on mExportScriptsToFolder me, skipIcons, selectionOnly, convertLineBreaksToUnix, chooseNewPath 
     3508   
    34523509  mExportAllScriptsToDiskWithFolder me, skipIcons, selectionOnly, convertLineBreaksToUnix, void, chooseNewPath 
     3510   
    34533511end 
    34543512 
     
    35023560   
    35033561   
     3562  mSwitchToStatusMode me, 1 
    35043563   
    35053564  repeat with m = firstCastNum to lastCastNum 
     
    35103569      if err <> 1 then 
    35113570        alert "Failed to create directory:" && thisFolder 
     3571        mSwitchToStatusMode me, 0 
    35123572        exit 
    35133573      end if 
     
    35383598           
    35393599          memname = memref.name 
     3600           
     3601           
     3602          mDisplayWaitStatusText me, "Processing member:" && memname 
     3603           
    35403604           
    35413605          scrText = memref.scripttext 
     
    37333797  end repeat 
    37343798   
     3799  mSwitchToStatusMode me, 0 
     3800   
    37353801end 
    37363802 
     
    38073873   
    38083874  if mCheckForXtra(me, "budapi") then 
     3875     
     3876    mSwitchToStatusMode me, 1 
    38093877     
    38103878    if baFileExists(thePath & "memberInfo.xml") then 
     
    38213889    end if 
    38223890     
     3891    mSwitchToStatusMode me, 0 
     3892     
    38233893  else 
    38243894     
     
    40114081    spath = thePath 
    40124082  end if 
     4083   
     4084   
     4085  mDisplayWaitStatusText me, "Importing file:" && spath 
     4086   
    40134087   
    40144088  scrtext = mGetTextFromFile(me, spath) 
     
    42264300  fio = 0 
    42274301   
     4302   
     4303  mDisplayWaitStatusText me, "Imported file:" && spath && "into member" && scr 
     4304   
     4305   
    42284306  return 1 
    42294307   
     
    42544332  end if 
    42554333   
     4334  mSwitchToStatusMode me, 1 
     4335  mDisplayWaitStatusText me, "Updating folder:" && workingFolder 
     4336   
    42564337  theresult = shell_cmd_list(svnBinary && "update" && QUOTE & workingFolder & QUOTE) 
     4338   
     4339  mSwitchToStatusMode me, 0 
    42574340   
    42584341  if count(theresult) > 0 then 
     
    44664549  theResult = mSVN_Commit_CurrentMovie_Binaries(me, chooseNewPath, commitMsg, 1) 
    44674550   
     4551   
    44684552end 
    44694553 
     
    44824566  end if 
    44834567   
     4568   
    44844569  theResult = mSVN_Commit_CurrentScripts_ScriptText(me, castlib(the activecastlib), chooseNewPath, commitMsg, 1, selectionList) 
    44854570   
    44864571  theResult = mSVN_Commit_SelectedCastlib(me, chooseNewPath, commitMsg, 1, 0, selectionList) 
     4572   
    44874573   
    44884574end 
     
    45364622  end if 
    45374623   
     4624   
     4625   
    45384626  put "Committing castlibs:" && castlibList 
    45394627   
     
    45914679   
    45924680   
     4681  mSwitchToStatusMode me, 1 
     4682  mDisplayWaitStatusText me, "Committing castlibs:" && castlibList 
     4683   
    45934684   
    45944685   
     
    46164707        if offs <> 1 then 
    46174708          alert "Castlib" && castlib(actCL) && "is not within your current moviepath. This is not supported." 
     4709          mSwitchToStatusMode me, 0 
    46184710          return 0 
    46194711        end if 
     
    46334725         
    46344726        -- must be something REALLY wrong, as the filename should ALWAYS be of any length (internal castlibs ) 
     4727        mSwitchToStatusMode me, 0 
    46354728        return 0 
    46364729         
     
    46774770    --  repeat with cl in castlibList 
    46784771    --------------------------------------- 
     4772     
     4773    mDisplayWaitStatusText me, "SVN update of:" && castlibList[r][3] 
     4774     
    46794775    theresult = shell_cmd_list(svnBinary && "update" && QUOTE & castlibList[r][3] & QUOTE) 
    46804776     
     
    46874783      end if 
    46884784      alert "Can't proceed svn error while trying to update:" && theError 
     4785      mSwitchToStatusMode me, 0 
    46894786      return 0   
    46904787    end if 
     
    47064803  if isChanged = 0 then 
    47074804    alert "Apparently there are no changes to the most recent version in the svn repository: svn status is empty" 
     4805    mSwitchToStatusMode me, 0 
    47084806    return 0  
    47094807  end if 
     
    47164814  end repeat 
    47174815   
     4816   
     4817  mDisplayWaitStatusText me, "SVN commit for:" && pathStr 
     4818   
    47184819  theresult = shell_cmd_list(svnBinary && "ci --message" && QUOTE & msg & QUOTE & pathStr) 
    47194820   
     
    47324833   
    47334834  setPref("svn_wCopies_paths_Binary.txt", string(workingCopies)) 
     4835   
     4836  mSwitchToStatusMode me, 0 
    47344837   
    47354838  return 1 
     
    47754878    end if 
    47764879     
     4880    mSwitchToStatusMode me, 1 
     4881     
     4882    mDisplayWaitStatusText me, "Saving movie..." 
     4883     
    47774884    saveMovie() 
     4885     
     4886  else 
     4887     
     4888    mSwitchToStatusMode me, 1 
     4889     
    47784890  end if 
    47794891  ---------------------------------------- 
     
    47864898    if erg <> 0 then 
    47874899      alert "An error occurred during copying the movie:" && erg 
     4900      mSwitchToStatusMode me, 0 
    47884901      return 0 
    47894902    end if 
     
    48014914          if offs <> 1 then 
    48024915            alert "Castlib" && castlib(n) && "is not within your current moviepath. This is not supported." 
     4916            mSwitchToStatusMode me, 0 
    48034917            return 0 
    48044918          end if 
     
    48314945   
    48324946  --------------------------------------- 
     4947  mDisplayWaitStatusText me, "SVN update for:" && workingFolder 
     4948   
    48334949  theresult = shell_cmd_list(svnBinary && "update" && QUOTE & workingFolder & QUOTE) 
    48344950   
     
    48414957    end if 
    48424958    alert "Can't proceed svn error while trying to update:" && theError 
     4959    mSwitchToStatusMode me, 0 
    48434960    return 0   
    48444961  end if 
     
    48584975  if cnt < 1 then 
    48594976    alert "Apparently there are no changes to the most recent version in the svn repository: svn status is empty" 
     4977    mSwitchToStatusMode me, 0 
    48604978    return 0 
    48614979  end if 
     
    48734991        -- we only put a message, so the user is made aware of this fact 
    48744992        put "Missing file!" && answ && "is missing here, but present in the repository" 
     4993        mDisplayWaitStatusText me, "Missing file!" && answ && "is missing here, but present in the repository" 
    48754994         
    48764995      "?": -- newly added file 
     
    48784997         
    48794998        put "Added file" && answ && "to the repository" 
     4999        mDisplayWaitStatusText me, "Added file" && answ && "to the repository" 
    48805000         
    48815001      "m": 
    48825002        -- just log the changes: 
    48835003        put "Update file:" && answ 
     5004        mDisplayWaitStatusText me, "Update file:" && answ 
    48845005         
    48855006    end case 
    48865007     
    48875008  end repeat 
     5009   
     5010  mDisplayWaitStatusText me, "SVN commit of:" && workingFolder 
    48885011   
    48895012  theresult = shell_cmd_list(svnBinary && "ci --message" && QUOTE & msg & QUOTE && QUOTE & workingFolder & QUOTE) 
     
    49035026   
    49045027  setPref("svn_wCopies_paths_Binary.txt", string(workingCopies)) 
     5028   
     5029  mSwitchToStatusMode me, 0 
    49055030   
    49065031  return 1 
     
    49715096   
    49725097   
     5098  mSwitchToStatusMode me, 1 
     5099   
    49735100   
    49745101  doReturnToOldMovie = 0 
    49755102   
    49765103  if (onlyUpdate_SVN_WorkingFolder <> 1) or (the moviepath contains workingFolder) then 
     5104     
     5105    mDisplayWaitStatusText me, "Temporary switch to new movie in order to replace files" 
    49775106     
    49785107    ------------------------------ 
     
    49995128   
    50005129   
     5130  mDisplayWaitStatusText me, "SVN update:" && newpathUnix 
     5131   
    50015132  theresult = shell_cmd_list(svnBinary && "update" && QUOTE & newpathUnix & QUOTE) 
    50025133   
     
    50495180  setPref("svn_wCopies_paths_Binary.txt", string(workingCopies)) 
    50505181   
     5182  mSwitchToStatusMode me, 0 
     5183   
    50515184end 
    50525185 
     
    50635196  workingFolder = mGetWorkingCopyPath(me, the moviepath & the moviename, chooseNewPath, workingCopies, "No working copy is specified for this movies binaries (director files). Please select a working copy of the director files.") 
    50645197  if length(workingFolder) < 1 then exit 
     5198   
     5199   
     5200  mSwitchToStatusMode me, 1 
     5201   
    50655202   
    50665203  if the platform contains "mac" then 
     
    50805217  if (onlyUpdate_SVN_WorkingFolder <> 1) or (the moviepath contains workingFolder) then 
    50815218     
     5219     
     5220    mDisplayWaitStatusText me, "Temporary switch to new movie in order to replace files" 
     5221     
    50825222    ------------------------------ 
    50835223    -- close this movie by issuing a "new movie..." command 
     
    50905230  end if 
    50915231   
     5232  mDisplayWaitStatusText me, "SVN update:" && workingFolderUnix 
     5233   
    50925234  theresult = shell_cmd_list(svnBinary && "update" && QUOTE & workingFolderUnix & QUOTE) 
    50935235   
     
    51305272   
    51315273  setPref("svn_wCopies_paths_Binary.txt", string(workingCopies)) 
     5274   
     5275   
     5276  mSwitchToStatusMode me, 0 
    51325277   
    51335278end 
     
    52165361   
    52175362   
     5363  statusSwitched = mSwitchToStatusMode(me, 1) 
    52185364   
    52195365  clibfolder = "" 
     
    52705416    if count(castlibList) < 1 then 
    52715417      alert "No castlib selected. The parameter didn't yiled a valid list. Make sure, that you provide a linear list with integers, specifying a number of a castlib each." 
     5418      if statusSwitched = 1 then statusSwitched = mSwitchToStatusMode(me, 0) 
    52725419      return 0 
    52735420    end if 
    52745421     
     5422     
     5423     
     5424    mDisplayWaitStatusText me, "Commiting scripttext for castlibs:" && castlibList 
    52755425     
    52765426    put "Commiting scripttext for castlibs:" && castlibList 
     
    52855435       
    52865436      selected_Members_Only = castlib(castlibList[n]) 
     5437       
     5438      mDisplayWaitStatusText me, "Saving castlib:" && selected_Members_Only 
    52875439       
    52885440      selected_Members_Only.save() 
     
    53115463  else -- treat all: 
    53125464     
     5465    mDisplayWaitStatusText me, "Saving movie..." 
     5466     
    53135467    saveMovie() 
    53145468     
    53155469    mExportAllScriptsToDiskWithFolder me, 1, selected_Members_Only, 1, workingFolder 
    53165470     
    5317     castlibList = [] 
     5471    castlibList = 0 
    53185472     
    53195473  end if 
     
    53245478     
    53255479    -------- if we work on only one castlib: 
    5326     if length(clibfolder) then workingFolder = clibfolder 
     5480    if length(clibfolder) > 0 then workingFolder = clibfolder 
    53275481    -------- 
    53285482     
     
    53345488      if the last char of workingFolder = the last char of the applicationpath then delete the last char of workingFolder 
    53355489    end if 
     5490     
    53365491     
    53375492    workingFolder = " " & QUOTE & workingFolder & QUOTE 
     
    53575512       
    53585513      put " " & QUOTE & castlibList[n][3] & QUOTE after workingFolder 
     5514       
    53595515    end repeat 
    53605516     
    53615517  end if 
     5518   
     5519   
     5520  mDisplayWaitStatusText me, "SVN update of:" && workingFolder 
    53625521   
    53635522   
     
    53735532    end if 
    53745533    alert "Can't proceed svn error while trying to update:" && theError 
     5534    if statusSwitched = 1 then statusSwitched = mSwitchToStatusMode(me, 0) 
    53755535    return 0   
    53765536  end if 
     
    53815541  if cnt < 1 then 
    53825542    alert "Apparently there are no changes to the scripts of the most recent version in the svn repository: svn status is empty" 
     5543    if statusSwitched = 1 then statusSwitched = mSwitchToStatusMode(me, 0) 
    53835544    return 0 
    53845545  end if 
     
    53975558        put "Missing file!" && answ && "is missing here, but present in the repository" 
    53985559         
     5560        mDisplayWaitStatusText me, "Missing file!" && answ && "is missing here, but present in the repository" 
     5561         
     5562         
    53995563      "?": -- newly added file 
    54005564        shell_cmd_list(svnBinary && "add" && QUOTE & answ & QUOTE) 
    54015565         
    54025566        put "Added file" && answ && "to the repository" 
     5567         
     5568        mDisplayWaitStatusText me, "Added file" && answ && "to the repository" 
    54035569         
    54045570      "m": 
     
    54065572        put "Update file:" && answ 
    54075573         
     5574        mDisplayWaitStatusText me, "Update file:" && answ 
     5575         
    54085576    end case 
    54095577     
    54105578  end repeat 
    54115579   
    5412    
     5580  mDisplayWaitStatusText me, "SVN commit:" && workingFolder 
    54135581   
    54145582  theresult = shell_cmd_list(svnBinary && "ci --message" && QUOTE & msg & QUOTE & workingFolder) 
     
    54325600  setPref("svn_workingCopies_paths.txt", string(workingCopies)) 
    54335601   
     5602   
     5603  if statusSwitched = 1 then statusSwitched = mSwitchToStatusMode(me, 0) 
    54345604   
    54355605  return 1 
     
    56445814 
    56455815 
     5816-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     5817 
     5818on mSwitchToStatusMode me, On_Off 
     5819   
     5820  retval = 0 
     5821   
     5822  if pStatusMode = On_Off then return retval 
     5823  pStatusMode = 0 
     5824   
     5825  pHandlerMenuWindowName = string(pHandlerMenuWindowName) 
     5826  if length(pHandlerMenuWindowName) < 1 then return retval 
     5827  w = window(pHandlerMenuWindowName) 
     5828   
     5829  if ilk(w) <> #window then return retval 
     5830   
     5831  retval = 1 
     5832   
     5833  pStatusMode = On_Off 
     5834   
     5835  r = w.rect 
     5836   
     5837  tell w 
     5838     
     5839    spr = sprite(xscr().mGetkanal(#helpTextSprite)) 
     5840     
     5841    if On_Off = 1 then 
     5842       
     5843      member("statusOutput").text = "The following operation may take some time..." 
     5844      spr.member = member("statusOutput") 
     5845       
     5846      newRect = rect(r.left, r.top, r.right, r.top + spr.rect.bottom) 
     5847       
     5848      if (label("withSearch") <> marker(0)) then 
     5849        go "withSearch" 
     5850      end if 
     5851       
     5852    else 
     5853       
     5854      spr.member = member("helptext") 
     5855       
     5856      newRect = rect(r.left, r.top, r.right, r.top + spr.rect.top) 
     5857       
     5858      if (label("withoutSearch") <> marker(0)) then go "withoutSearch" 
     5859       
     5860    end if 
     5861     
     5862    updatestage 
     5863  end tell 
     5864   
     5865  w.rect = newRect 
     5866   
     5867  return retval 
     5868   
     5869end 
     5870 
     5871-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     5872 
     5873on mDisplayWaitStatusText me, str 
     5874   
     5875  if pStatusMode = 0 then exit 
     5876   
     5877  pHandlerMenuWindowName = string(pHandlerMenuWindowName) 
     5878  if length(pHandlerMenuWindowName) < 1 then exit 
     5879  w = window(pHandlerMenuWindowName) 
     5880   
     5881  if ilk(w) <> #window then exit 
     5882   
     5883  tell w 
     5884    member("statusOutput").setContentsAfter(RETURN & str) 
     5885    updatestage 
     5886     
     5887  end tell 
     5888   
     5889end 
     5890 
     5891 
    56465892 
    56475893-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
Note: See TracChangeset for help on using the changeset viewer.