From: <ke...@us...> - 2007-04-12 00:11:25
|
Revision: 955 http://svn.sourceforge.net/hackndev/?rev=955&view=rev Author: keddar Date: 2007-04-11 17:11:22 -0700 (Wed, 11 Apr 2007) Log Message: ----------- l4p: 'Custom' changed to 'All found modules' Modified Paths: -------------- linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2007-04-09 11:49:13 UTC (rev 954) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2007-04-12 00:11:22 UTC (rev 955) @@ -107,8 +107,8 @@ Boolean UseSclBar,CardIn; - + static Boolean BFUCopySettingsStruct(BFUSettingsType *source,BFUSettingsType *dest) { UInt8 i; @@ -211,7 +211,7 @@ options |= BFUSettingsValues.source; // BFUPrintHex(options,optstr); // StrPrintF(optstr,"%x",options); -// BFUdoDie(optstr,options); +// BFUdoDie(optstr,options); // StrPrintF(BFUCommandLinePart,"%x",(UInt16)options); /*now it should look like this bit content @@ -340,7 +340,7 @@ StrPrintF(netSet,"%d",BFUSettingsValues.modlist); StrCat(BFUCommandLinePart,netSet); StrCat(BFUCommandLinePart,del); -// +// #ifdef BFU_VERBOSE BFUdoDie(BFUCommandLinePart,0); #endif @@ -438,7 +438,7 @@ return true; } return false; - + } /* @@ -514,7 +514,7 @@ #endif //file doesn't exists, try another card return false; - break; + break; case dmErrAlreadyExists: //- not possible - RAM is tested first BFUPrefsVolRefNum=volRefNum; @@ -636,7 +636,7 @@ { err = DmGetLastErr(); BFUdoDie("Couldn't create new record.",err); - DmCloseDatabase(db); + DmCloseDatabase(db); return false; } // BFUdoDie("going to lock new handle",0); @@ -646,7 +646,7 @@ err = DmGetLastErr(); BFUdoDie("Couldn't create new record.",err); DmReleaseRecord(db, index, false); - DmCloseDatabase(db); + DmCloseDatabase(db); return false; } // BFUdoDie("going copy settings",0); @@ -658,7 +658,7 @@ // BFUdoDie("going to close dbase",0); DmCloseDatabase(db); // if (BFUPrefsFoundOnCard) -// return +// return if (BFUSettingsValues.save2card) return BFUExportPrefs2Card(); else @@ -685,7 +685,7 @@ case vfsErrDirNotEmpty: BFUdoDie("Directory is not empty (VFSFileDelete). That means something is wrong, I'm not deleting directories...",0); return false; - break; + break; case vfsErrFileStillOpen: BFUdoDie("Old preferences are still opened - shouldn't happen",0); break; @@ -787,12 +787,12 @@ break; case BFUCopy2RAMBox: BFUSettingsValues.copy2ram = CtlGetValue(getObjectPtr(pForm,BFUCopy2RAMBox)); - break; + break; case BFULiveChangesBox: BFUSettingsValues.live_changes = CtlGetValue(getObjectPtr(pForm,BFULiveChangesBox)); break; - + } break; case popSelectEvent: @@ -1233,7 +1233,7 @@ BFUSetFieldText(pForm,BFUPalmIPField2,c,4); StrPrintF(c,"%d",BFUSettingsValues.PalmIP[3]); BFUSetFieldText(pForm,BFUPalmIPField3,c,4); - + StrPrintF(c,"%d",BFUSettingsValues.PCIP[0]); BFUSetFieldText(pForm,BFUPCIPField0,c,4); StrPrintF(c,"%d",BFUSettingsValues.PCIP[1]); @@ -1324,7 +1324,7 @@ { ControlType *pTrigger = getObjectPtr(pForm,idxT); ListType *pList = getObjectPtr(pForm,idxL); -// CtlSetValue(pTrigger, selection); +// CtlSetValue(pTrigger, selection); CtlSetLabel(pTrigger,LstGetSelectionText(pList,selection)); // CtlShowControl(pTrigger); } @@ -1340,7 +1340,7 @@ static void BFUNetFormSaveFields(FormType *pForm) { UInt8 i; - + for (i =0 ; i <4 ; ++i) { BFUSettingsValues.PalmIP[i] = StrAToI(FldGetTextPtr(getObjectPtr(pForm,BFUPalmIPField0+i))); @@ -1394,7 +1394,7 @@ } static void BFUToolsFormSaveFields(FormType *pForm) -{ +{ } static void BFUAdvancedFormSaveFields(FormType *pForm) @@ -1474,7 +1474,7 @@ msize = 1; listHandle = 0; ptrHandle = 0; - modPtrHandle = 0; + modPtrHandle = 0; modListHandle = 0; if (!fileName) @@ -1490,9 +1490,9 @@ return false; } ptr = MemHandleLock(modListHandle); - StrCopy(ptr,"Custom"); - ptr[6]='\0'; - mlength=7;//"Custom" + StrCopy(ptr," All found modules"); + ptr[18]='\0'; + mlength=19;//" All found modules" MemHandleUnlock(modListHandle); @@ -1560,7 +1560,7 @@ // MemHandleUnlock(listHandle); MemHandleUnlock(ptrHandle); } - + ptr = MemHandleLock(modListHandle); if (!ptr) { @@ -1706,7 +1706,7 @@ Char *ptr, name[BFUDefaultFileNameSize]; Err err; int i = StrLen(whole_name)-StrLen("modlist-")-StrLen(".txt"); - + #ifdef MODULES_VERBOSE_DEBUG BFUdoDie("Entering BFUPush2ModList()",0); #endif Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2007-04-09 11:49:13 UTC (rev 954) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2007-04-12 00:11:22 UTC (rev 955) @@ -83,7 +83,7 @@ CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 TABLE ID BFUModulesTable AT (4 46 145 85) ROWS 24 COLUMNS 2 COLUMNWIDTHS 120 15 LABEL "modlist:" ID 8210 AT (9 31) USABLE FONT 1 - POPUPTRIGGER "Custom" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR + POPUPTRIGGER " All found modules" ID BFUModListTrigger AT (52 29 67 15) USABLE LEFTANCHOR SCROLLBAR ID BFUModScrollBar AT (151 46 7 85) USABLE VALUE 0 MIN 0 MAX 0 PAGESIZE 1 END This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |