From: <sle...@us...> - 2006-11-28 11:35:46
|
Revision: 683 http://svn.sourceforge.net/hackndev/?rev=683&view=rev Author: sleep_walker Date: 2006-11-28 03:35:37 -0800 (Tue, 28 Nov 2006) Log Message: ----------- l4p: BFUGarux - new features added, actualised comments, new form, new bugs Modified Paths: -------------- linux4palm/BFUGarux/BFUDefaultSettings.h linux4palm/BFUGarux/BFULinuxHelper.c linux4palm/BFUGarux/BFUSettings-alone.c linux4palm/BFUGarux/BFUSettings.Rsrc linux4palm/BFUGarux/BFUSettings.Rsrc.h linux4palm/BFUGarux/garux-clean.c Modified: linux4palm/BFUGarux/BFUDefaultSettings.h =================================================================== --- linux4palm/BFUGarux/BFUDefaultSettings.h 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUDefaultSettings.h 2006-11-28 11:35:37 UTC (rev 683) @@ -11,7 +11,9 @@ #define BFUDefaultSave2Card 1 #define BFUDefaultFileName "BFUSavedSettings" #define BFUDefaultFileNameOnCard "/BFUSavedSettings.pdb" +#define BFUDefaultFileNameSize 256 + #define BFUDefaultSource 0 #define BFUDefaultAddress "/linux2ram" #define BFUDefaultFS 0 @@ -43,6 +45,8 @@ #define BFUDefaultReflash 0 #define BFUDefaultRAMdiskSize "20%" +#define BFUDefaultFSCK 0 +#define BFUDefaultCopy2RAM 0 #define BFUDelimiter ';' Modified: linux4palm/BFUGarux/BFULinuxHelper.c =================================================================== --- linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFULinuxHelper.c 2006-11-28 11:35:37 UTC (rev 683) @@ -120,11 +120,10 @@ //if length of options is bigger than 4 chars in hexa, read another chars here... // optint = ReadHexa(4,options+4); - + ptr = end+1; //IP adresses if (useNet) { - ptr = end+1; for (i = 0; i < 4; ++i) { IP[i] = ReadHexa(2,ptr); Modified: linux4palm/BFUGarux/BFUSettings-alone.c =================================================================== --- linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUSettings-alone.c 2006-11-28 11:35:37 UTC (rev 683) @@ -31,6 +31,8 @@ UInt8 cardRO; UInt8 keyboard; UInt8 reflash; + UInt8 fsck; + UInt8 copy2ram; Char RAMdiskSize[BFURAMdiskMaxLength]; UInt8 save2card; @@ -45,6 +47,7 @@ static void BFUGlobalFormInit (FormPtr pForm); static void BFUNetFormInit (FormPtr pForm); static void BFUModulesFormInit (FormPtr pForm); +static void BFUToolsFormInit (FormPtr pForm); static void BFUAdvancedFormInit (FormPtr pForm); static void BFUOKButtonPressed(); static void BFUSaveButtonPressed(); @@ -53,15 +56,18 @@ static void BFUNetFormSaveFields(FormType *pForm); static void BFUGlobalFormSaveFields(FormType *pForm); static void BFUModulesFormSaveFields(FormType *pForm); +static void BFUToolsFormSaveFields(FormType *pForm); static void BFUAdvancedFormSaveFields(FormType *pForm); static Boolean BFUSettingsInit(); static void BFUInitSettingsFromDef(); static Boolean BFUGlobalFormEventHandler (EventPtr pEvent); static Boolean BFUNetFormEventHandler (EventPtr pEvent); static Boolean BFUModulesFormEventHandler (EventPtr pEvent); +static Boolean BFUToolsFormEventHandler (EventPtr pEvent); static Boolean BFUAdvancedFormEventHandler (EventPtr pEvent); static void BFUSetFieldText(FormType *pForm,UInt32 index,Char *new_text,UInt32 MaxLength); + Char BFUCommandLinePart[BFUCommandLinePartLength]; Boolean BFUPrefsFound; BFUSettingsType BFUSettingsValues; @@ -92,15 +98,19 @@ dest->PalmIP[i] = source->PalmIP[i]; dest->mask[i] = source->mask[i]; } -//advanced settings +//advanced settings & tools dest->debug = source->debug; dest->silentBoot = source->silentBoot; dest->CPUspeed = source->CPUspeed; dest->cardRO = source->cardRO; dest->keyboard = source ->keyboard; + StrNCopy(dest->RAMdiskSize,source->RAMdiskSize,BFURAMdiskMaxLength); + dest->save2card = source->save2card; - dest->reflash = source->reflash; + dest->reflash = source->reflash; + dest->copy2ram = source->copy2ram; + dest->fsck = source->fsck; return true; } @@ -141,7 +151,10 @@ #endif del[0] = BFUDelimiter; del[1] = '\0'; - + options |= BFUSettingsValues.copy2ram; + options <<= 1; + options |= BFUSettingsValues.fsck; + options <<= 1; options |= BFUSettingsValues.reflash; options = options << 1; options |= BFUSettingsValues.keyboard; @@ -181,6 +194,8 @@ 10 cardRO 11 keyboard 12 reflash +13 fsck +14 copy2ram */ // StrCopy(BFUCommandLinePart,) // BFUdoDie("Creating address and/or device string",0); @@ -320,6 +335,8 @@ StrNCopy(BFUSettingsValues.RAMdiskSize,BFUDefaultRAMdiskSize,BFURAMdiskMaxLength); BFUSettingsValues.save2card = BFUDefaultSave2Card; BFUSettingsValues.reflash = BFUDefaultReflash; + BFUSettingsValues.copy2ram = BFUDefaultCopy2RAM; + BFUSettingsValues.fsck = 0; } @@ -702,21 +719,103 @@ case BFUSave2CardBox: BFUSettingsValues.save2card = CtlGetValue(getObjectPtr(pForm,BFUSave2CardBox)); break; - case BFUSilentBootBox: - BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); - break; + + case BFUCardReadonlyBox: BFUSettingsValues.cardRO = CtlGetValue(getObjectPtr(pForm,BFUCardReadonlyBox)); break; case BFUDebugModeBox: BFUSettingsValues.debug = CtlGetValue(getObjectPtr(pForm,BFUDebugModeBox)); break; + case BFUCopy2RAMBox: + BFUSettingsValues.copy2ram = CtlGetValue(getObjectPtr(pForm,BFUCopy2RAMBox)); + break; + + } + break; + case popSelectEvent: + switch(pEvent->data.popSelect.controlID) + { + case BFUPartTrigger: + switch(pEvent->data.popSelect.selection) + { + case 0: + FrmGotoForm(BFUGlobalForm); + break; + case 1: + FrmGotoForm(BFUNetForm); + break; + case 2: + FrmGotoForm(BFUModulesForm); + break; + case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: + break; + } + handled = true; + break; + case BFUCPUSpeedTrigger: + BFUSettingsValues.CPUspeed = pEvent->data.popSelect.selection; + break; + } +// *** ADD EVENT HANDLING HERE *** // + default: + break; + } + return handled; +} + + +Boolean BFUToolsFormEventHandler(EventPtr pEvent) +{ + Boolean handled = false; + FormPtr pForm = FrmGetActiveForm(); + switch (pEvent->eType) + { + case frmOpenEvent: // Form's 1st event + FrmDrawForm(pForm); + BFUToolsFormInit(pForm); + handled = true; + break; + case frmCloseEvent: + BFUToolsFormSaveFields(pForm); + break; + case ctlSelectEvent: + switch (pEvent->data.ctlSelect.controlID) + { + case BFUOKButton: + BFUToolsFormSaveFields(pForm); + BFUOKButtonPressed(); + handled = true; + break; + case BFUSaveButton: + BFUToolsFormSaveFields(pForm); + BFUSaveButtonPressed(); + handled = true; + break; + case BFUCancelButton: + BFUCancelButtonPressed(); + handled = true; + break; + case BFUSave2CardBox: + BFUSettingsValues.save2card = CtlGetValue(getObjectPtr(pForm,BFUSave2CardBox)); + break; + + + case BFUSilentBootBox: + BFUSettingsValues.silentBoot = CtlGetValue(getObjectPtr(pForm,BFUSilentBootBox)); + break; case BFUKeyboardSupportBox: BFUSettingsValues.keyboard = CtlGetValue(getObjectPtr(pForm,BFUKeyboardSupportBox)); break; case BFUReflashBox: BFUSettingsValues.reflash = CtlGetValue(getObjectPtr(pForm,BFUReflashBox)); break; + case BFURunFSCKBox: + BFUSettingsValues.fsck = CtlGetValue(getObjectPtr(pForm,BFURunFSCKBox)); + break; } break; case popSelectEvent: @@ -736,11 +835,13 @@ break; case 3: break; + case 4: + FrmGotoForm(BFUAdvancedForm); + break; } handled = true; break; - case BFUCPUSpeedTrigger: - BFUSettingsValues.CPUspeed = pEvent->data.popSelect.selection; + default: break; } // *** ADD EVENT HANDLING HERE *** // @@ -802,6 +903,9 @@ case 2: break; case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: FrmGotoForm(BFUAdvancedForm); break; } @@ -869,6 +973,9 @@ FrmGotoForm(BFUModulesForm); break; case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: FrmGotoForm(BFUAdvancedForm); break; } @@ -935,6 +1042,9 @@ FrmGotoForm(BFUModulesForm); break; case 3: + FrmGotoForm(BFUToolsForm); + break; + case 4: FrmGotoForm(BFUAdvancedForm); break; } @@ -1024,15 +1134,25 @@ CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); } +static void BFUToolsFormInit (FormPtr pForm) +{ + CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); + + CtlSetValue(getObjectPtr(pForm,BFUSilentBootBox),BFUSettingsValues.silentBoot); + CtlSetValue(getObjectPtr(pForm,BFUKeyboardSupportBox),BFUSettingsValues.keyboard); + CtlSetValue(getObjectPtr(pForm,BFUReflashBox),BFUSettingsValues.reflash); + CtlSetValue(getObjectPtr(pForm,BFURunFSCKBox),BFUSettingsValues.fsck); + +} + + static void BFUAdvancedFormInit (FormPtr pForm) { CtlSetValue(getObjectPtr(pForm,BFUSave2CardBox),BFUSettingsValues.save2card); BFUSetTriggerState(pForm,BFUCPUSpeedTrigger,BFUCPUSpeedList,BFUSettingsValues.CPUspeed); - CtlSetValue(getObjectPtr(pForm,BFUSilentBootBox),BFUSettingsValues.silentBoot); CtlSetValue(getObjectPtr(pForm,BFUCardReadonlyBox),BFUSettingsValues.cardRO); CtlSetValue(getObjectPtr(pForm,BFUDebugModeBox),BFUSettingsValues.debug); - CtlSetValue(getObjectPtr(pForm,BFUKeyboardSupportBox),BFUSettingsValues.keyboard); - CtlSetValue(getObjectPtr(pForm,BFUReflashBox),BFUSettingsValues.reflash); + CtlSetValue(getObjectPtr(pForm,BFUCopy2RAMBox),BFUSettingsValues.copy2ram); BFUSetFieldText(pForm,BFURAMdiskSizeField,BFUSettingsValues.RAMdiskSize,BFURAMdiskMaxLength); } @@ -1100,6 +1220,10 @@ { } +static void BFUToolsFormSaveFields(FormType *pForm) +{ +} + static void BFUAdvancedFormSaveFields(FormType *pForm) { StrNCopy(BFUSettingsValues.RAMdiskSize, Modified: linux4palm/BFUGarux/BFUSettings.Rsrc =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUSettings.Rsrc 2006-11-28 11:35:37 UTC (rev 683) @@ -22,22 +22,22 @@ BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 41 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 END -FORM ID 8100 AT (0 0 160 160) +FORM ID BFUNetForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8602 DEFAULTBTNID 8540 + HELPID 8602 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Network" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Global" ID BFUPartTrigger AT (56 15 51 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 @@ -68,46 +68,65 @@ LABEL "." ID 8141 AT (70 116) USABLE FONT 1 END -FORM ID 8200 AT (0 0 160 160) +FORM ID BFUModulesForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8603 DEFAULTBTNID 8540 + HELPID 8603 DEFAULTBTNID BFUOKButton BEGIN TITLE "BFUSettings - Modules" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Modules" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 TABLE ID BFUModuleTable AT (9 31 141 100) ROWS 8 COLUMNS 2 COLUMNWIDTHS 120 8 END -FORM ID 8300 AT (0 0 160 160) +FORM ID BFUToolsForm AT (0 0 160 160) FRAME MODAL NOSAVEBEHIND USABLE - HELPID 8604 DEFAULTBTNID 8540 + HELPID 8605 DEFAULTBTNID BFUOKButton BEGIN + TITLE "BFUSettings - Tools" + BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME + BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME + POPUPTRIGGER "Tools" ID BFUPartTrigger AT (56 15 50 15) USABLE LEFTANCHOR + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED + POPUPLIST ID BFUPartTrigger BFUPartList + LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 + CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 46 91 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 61 145 15) USABLE RIGHTANCHOR GROUP 0 + CHECKBOX "Run fsck for card" ID BFURunFSCKBox AT (9 76 145 15) USABLE RIGHTANCHOR GROUP 0 + +END + + +FORM ID BFUAdvancedForm AT (0 0 160 160) + FRAME MODAL NOSAVEBEHIND USABLE + HELPID 8605 DEFAULTBTNID BFUOKButton +BEGIN TITLE "BFUSettings - Advanced" BUTTON "OK" ID BFUOKButton AT (5 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Save" ID BFUSaveButton AT (41 140 30 15) USABLE RIGHTANCHOR FRAME BUTTON "Cancel" ID BFUCancelButton AT (126 140 30 15) USABLE RIGHTANCHOR FRAME POPUPTRIGGER "Advanced" ID BFUPartTrigger AT (56 15 55 15) USABLE LEFTANCHOR - LIST "Global" "Network" "Modules" "Advanced" ID BFUPartList AT (56 15 60 44) NONUSABLE DISABLED + LIST "Global" "Network" "Modules" "Tools" "Advanced" ID BFUPartList AT (56 15 60 55) NONUSABLE DISABLED POPUPLIST ID BFUPartTrigger BFUPartList LABEL "Set:" ID 8035 AT (9 16) USABLE FONT 1 CHECKBOX "To card" ID BFUSave2CardBox AT (74 140 47 15) USABLE LEFTANCHOR GROUP 0 - CHECKBOX "Silent boot" ID BFUSilentBootBox AT (9 31 60 15) USABLE RIGHTANCHOR GROUP 0 - LABEL "CPU Frequency:" ID 8350 AT (9 50) USABLE FONT 1 - LIST "Auto" "133 MHz" "266 MHz" "400 MHz" ID BFUCPUSpeedList AT (90 48 39 44) NONUSABLE DISABLED - POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 48 55 15) USABLE LEFTANCHOR + LABEL "CPU Frequency:" ID 8350 AT (9 33) USABLE FONT 1 + LIST "Auto" "133 MHz" "266 MHz" "400 MHz" ID BFUCPUSpeedList AT (90 31 39 44) NONUSABLE DISABLED + POPUPTRIGGER "Auto" ID BFUCPUSpeedTrigger AT (90 31 55 15) USABLE LEFTANCHOR POPUPLIST ID BFUCPUSpeedTrigger BFUCPUSpeedList - LABEL "RAMdisk size:" ID 8351 AT (9 67) USABLE FONT 1 - FIELD ID BFURAMdiskSizeField AT (90 67 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 - CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 80 96 15) USABLE LEFTANCHOR GROUP 0 + LABEL "RAMdisk size:" ID 8351 AT (9 48) USABLE FONT 1 + FIELD ID BFURAMdiskSizeField AT (90 48 30 15) USABLE LEFTALIGN EDITABLE UNDERLINED SINGLELINE MAXCHARS 6 + CHECKBOX "SD/MMC read-only" ID BFUCardReadonlyBox AT (9 63 96 15) USABLE LEFTANCHOR GROUP 0 + CHECKBOX "Copy modules to RAM" ID BFUCopy2RAMBox AT (9 78 110 15) USABLE LEFTANCHOR GROUP 0 CHECKBOX "Debug" ID BFUDebugModeBox AT (9 93 42 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "Keyboard support" ID BFUKeyboardSupportBox AT (9 106 91 15) USABLE RIGHTANCHOR GROUP 0 - CHECKBOX "SmallROM reflash (dangerous!)" ID BFUReflashBox AT (9 119 145 15) USABLE RIGHTANCHOR GROUP 0 END // --------------- Resources of type 'tSTR' --------------- @@ -172,13 +191,35 @@ "Cancel\n" \ "Exit and no BFUSettings will be used." -STRING ID 8604 "BFUSettings - Advanced\n" \ +STRING ID 8604 "BFUSettings - Tools\n" \ "(Bootloader for users)\n\n" \ + "This window is dedicated to enable useful things.\n\n\n" \ + "Set:\n\nSwitches to other part of settings - global, network, modules, tools and " \ + "advanced.\n\n\n" \ + "Silent boot\n\n" \ + "This will produce no output during boot.\n\n\n" \ + "Keyboard\n\n" \ + "This enable running external keyboard handling program. Currently Stowaway (PPK) and compatibile supported.\n\n\n" \ + "SmallROM reflash\n\n" \ + "This will reflash your SmallROM for suspend/resume support. Read more before enabling that...\n\n\n" \ + "Run fsck for card\n\n" \ + "This will run dosfsck on first partition of card. Usefull for checking errors after bad unmount...\n\n\n" \ + "OK\n\n" \ + "Prepare settings to be sent and leave BFUSettings\n\n\n" \ + "Save\n\n" \ + "Save preferences for next use.\n\n\n" \ + "To card\n" \ + "If disabled, preferences are saved just to RAM database. If enabled it will " \ + "replace previously found preferences on card or save it on first volume\n\n\n" \ + "Cancel\n" \ + "Exit and no BFUSettings will be used." + + +STRING ID 8605 "BFUSettings - Advanced\n" \ + "(Bootloader for users)\n\n" \ "This window is dedicated to set advanced settings.\n\n\n" \ "Set:\n\nSwitches to other part of settings - global, network, modules and " \ "advanced.\n\n\n" \ - "Silent boot\n\n" \ - "This will produce no output during boot.\n\n\n" \ "CPU Frequency\n\n" \ "You can select CPU speed. Less speed means less battery needs.\n\n\n" \ "RAMdisk size:\n\n" \ @@ -186,6 +227,8 @@ "RAMdisk means less RAM for running applications.\n\n" \ "SD/MMC read-only\n\n" \ "With this option you can mount card as read only (if it is mounted).\n\n\n" \ + "Copy modules to RAM\n\n" \ + "This will mount modules directly from card without copying first to RAM.\n\n\n" \ "Debug\n\n" \ "This option will produce debug informations of BFUSettings script part." \ " Usefull for developers.\n\n" \ Modified: linux4palm/BFUGarux/BFUSettings.Rsrc.h =================================================================== --- linux4palm/BFUGarux/BFUSettings.Rsrc.h 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/BFUSettings.Rsrc.h 2006-11-28 11:35:37 UTC (rev 683) @@ -9,16 +9,20 @@ #define BFUModulesForm 8200 //"BFUSettings - Modules" #define BFUModuleTable 8201 -#define BFUAdvancedForm 8300 //"BFUSettings - Advanced" +#define BFUToolsForm 8300 //"BFUSettings - Tools" #define BFUSilentBootBox 8301 -#define BFUCPUSpeedTrigger 8302 -#define BFUCPUSpeedList 8320 -#define BFURAMdiskSizeField 8303 -#define BFUCardReadonlyBox 8304 -#define BFUDebugModeBox 8305 -#define BFUKeyboardSupportBox 8306 -#define BFUReflashBox 8307 +#define BFUKeyboardSupportBox 8303 +#define BFUReflashBox 8304 +#define BFURunFSCKBox 8305 +#define BFUAdvancedForm 8400 //"BFUSettings - Advanced" +#define BFUCPUSpeedTrigger 8401 +#define BFUCPUSpeedList 8420 +#define BFURAMdiskSizeField 8402 +#define BFUCopy2RAMBox 8403 +#define BFUCardReadonlyBox 8404 +#define BFUDebugModeBox 8405 + #define BFUNetForm 8100 //"BFUSettings - Network" #define BFUUseNetBox 8101 //fields of Palm IP address Modified: linux4palm/BFUGarux/garux-clean.c =================================================================== --- linux4palm/BFUGarux/garux-clean.c 2006-11-27 15:00:27 UTC (rev 682) +++ linux4palm/BFUGarux/garux-clean.c 2006-11-28 11:35:37 UTC (rev 683) @@ -318,6 +318,8 @@ FrmSetEventHandler (pForm, BFUNetFormEventHandler); if (formId == BFUModulesForm) FrmSetEventHandler (pForm, BFUModulesFormEventHandler); + if (formId == BFUToolsForm) + FrmSetEventHandler (pForm, BFUToolsFormEventHandler); if (formId == BFUAdvancedForm) FrmSetEventHandler (pForm, BFUAdvancedFormEventHandler); #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |