convenience commit; things seem to be working with MEZ1000

This commit is contained in:
Lance Edgar 2013-01-11 10:28:27 -08:00
parent e8693a5012
commit c512466fc0
5 changed files with 975 additions and 620 deletions

View file

@ -19,9 +19,11 @@
<optionReference id="tool.compiler.gcc.68K.option.debugLevel" defaultValue="tool.compiler.m68k_palmos_gcc.option.debug_level.default"/> <optionReference id="tool.compiler.gcc.68K.option.debugLevel" defaultValue="tool.compiler.m68k_palmos_gcc.option.debug_level.default"/>
<optionReference id="tool.compiler.gcc.68K.option.defineSymbols"> <optionReference id="tool.compiler.gcc.68K.option.defineSymbols">
<listOptionValue value="__PALMOS__=0x05000000" builtIn="false"/> <listOptionValue value="__PALMOS__=0x05000000" builtIn="false"/>
<listOptionValue value="SCANLIB_BCS2=1" builtIn="false"/>
</optionReference> </optionReference>
<optionReference id="tool.compiler.gcc.68K.option.includeDirs"> <optionReference id="tool.compiler.gcc.68K.option.includeDirs">
<listOptionValue value="&quot;$(TOOLS_DIR)include/stlport&quot;" builtIn="false"/> <listOptionValue value="&quot;$(TOOLS_DIR)include/stlport&quot;" builtIn="false"/>
<listOptionValue value="&quot;C:\Program Files\SDK_IDV1000-BCS2_20091116\BCS2 Shared Library&quot;" builtIn="false"/>
</optionReference> </optionReference>
<optionReference id="tool.compiler.gcc.68K.option.exceptions" defaultValue="tool.compiler.m68k_palmos_gcc.option.exceptions.enable"/> <optionReference id="tool.compiler.gcc.68K.option.exceptions" defaultValue="tool.compiler.m68k_palmos_gcc.option.exceptions.enable"/>
<optionReference id="tool.compiler.gcc.68K.option.assertions" defaultValue="tool.compiler.m68k_palmos_gcc.option.assertions.enable"/> <optionReference id="tool.compiler.gcc.68K.option.assertions" defaultValue="tool.compiler.m68k_palmos_gcc.option.assertions.enable"/>
@ -40,6 +42,10 @@
<listOptionValue value="-n $(ARTIFACT_NAME)" builtIn="false"/> <listOptionValue value="-n $(ARTIFACT_NAME)" builtIn="false"/>
</optionReference> </optionReference>
</toolReference> </toolReference>
<toolReference id="com.palmsource.eclipse.palmos4dev.compiler.m68k_palmos.assembler" command="m68k-palmos-as" outputPrefix="" inputFlag="" outputFlag="-o" outputs=""/>
<toolReference id="com.palmsource.eclipse.palmos4dev.compiler.m68k_palmos.multigen" command="m68k-palmos-multigen" outputPrefix="" inputFlag="" outputFlag="" outputs=""/>
<toolReference id="com.palmsource.eclipse.palmos4dev.builder.prcmerge_temp" command="&quot;$(TOOLS_DIR)PRCMerge&quot;" outputPrefix="" inputFlag="" outputFlag="-o" outputs=""/>
<toolReference id="com.palmsource.eclipse.palmos4dev.builder.prcmerge" command="&quot;$(TOOLS_DIR)PRCMerge&quot;" outputPrefix="" inputFlag="" outputFlag="-o" outputs="prc"/>
</configuration> </configuration>
<configuration id="target.m68k_palmos.exe.release.1467601361" name="Release" parent="target.m68k_palmos.exe.release"> <configuration id="target.m68k_palmos.exe.release.1467601361" name="Release" parent="target.m68k_palmos.exe.release">
<toolReference id="com.palmsource.eclipse.palmostools.compiler.palmrc" command="&quot;$(TOOLS_DIR)PalmRC&quot;" outputPrefix="" inputFlag="" outputFlag="-o" outputs="trc"> <toolReference id="com.palmsource.eclipse.palmostools.compiler.palmrc" command="&quot;$(TOOLS_DIR)PalmRC&quot;" outputPrefix="" inputFlag="" outputFlag="-o" outputs="trc">

View file

@ -13,6 +13,45 @@
</BUTTONS> </BUTTONS>
</ALERT_RESOURCE> </ALERT_RESOURCE>
<ALERT_RESOURCE RESOURCE_ID="1100">
<ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
<HELP_ID> 0 </HELP_ID>
<DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
<TITLE> "Scanner Error" </TITLE>
<MESSAGE>
"There was an error closing the scanner.\n\nYou may need to reset the device."
</MESSAGE>
<BUTTONS>
<TEXT> "OK" </TEXT>
</BUTTONS>
</ALERT_RESOURCE>
<ALERT_RESOURCE RESOURCE_ID="1200">
<ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
<HELP_ID> 0 </HELP_ID>
<DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
<TITLE> "Scanner Error" </TITLE>
<MESSAGE>
"There was an error enabling the scanner.\n\nYou may need to reset the device."
</MESSAGE>
<BUTTONS>
<TEXT> "OK" </TEXT>
</BUTTONS>
</ALERT_RESOURCE>
<ALERT_RESOURCE RESOURCE_ID="1300">
<ALERT_TYPE> ERROR_ALERT </ALERT_TYPE>
<HELP_ID> 0 </HELP_ID>
<DEFAULT_BUTTON> 0 </DEFAULT_BUTTON>
<TITLE> "Scanner Error" </TITLE>
<MESSAGE>
"There was an error opening the scanner.\n\nYou may need to reset the device."
</MESSAGE>
<BUTTONS>
<TEXT> "OK" </TEXT>
</BUTTONS>
</ALERT_RESOURCE>
<APP_ICON_BITMAP_RESOURCE RESOURCE_ID="1000" LOCALE="enUS" COMMENT="Large icons (1-2 and 8 bits)"> <APP_ICON_BITMAP_RESOURCE RESOURCE_ID="1000" LOCALE="enUS" COMMENT="Large icons (1-2 and 8 bits)">
<BITMAPS> <BITMAPS>
<BITMAP> <BITMAP>
@ -256,7 +295,7 @@
<ID> 1102 </ID> <ID> 1102 </ID>
<LOCATION> <LOCATION>
<X> 38 </X> <X> 38 </X>
<Y> 27 </Y> <Y> 26 </Y>
</LOCATION> </LOCATION>
<USABLE> TRUE </USABLE> <USABLE> TRUE </USABLE>
<FONT_ID> LARGE_BOLD_FONT </FONT_ID> <FONT_ID> LARGE_BOLD_FONT </FONT_ID>
@ -265,18 +304,18 @@
<FORM_LABEL COMMENT="Text1"> <FORM_LABEL COMMENT="Text1">
<ID> 1103 </ID> <ID> 1103 </ID>
<LOCATION> <LOCATION>
<X> 16 </X> <X> 28 </X>
<Y> 78 </Y> <Y> 71 </Y>
</LOCATION> </LOCATION>
<USABLE> TRUE </USABLE> <USABLE> TRUE </USABLE>
<FONT_ID> STD_FONT </FONT_ID> <FONT_ID> STD_FONT </FONT_ID>
<TEXT> "Copyright © 2012 Lance Edgar" </TEXT> <TEXT> "Copyright © 2012 - 2013" </TEXT>
</FORM_LABEL> </FORM_LABEL>
<FORM_LABEL COMMENT="Text2"> <FORM_LABEL COMMENT="Text2">
<ID> 1104 </ID> <ID> 1104 </ID>
<LOCATION> <LOCATION>
<X> 46 </X> <X> 46 </X>
<Y> 53 </Y> <Y> 47 </Y>
</LOCATION> </LOCATION>
<USABLE> TRUE </USABLE> <USABLE> TRUE </USABLE>
<FONT_ID> BOLD_FONT </FONT_ID> <FONT_ID> BOLD_FONT </FONT_ID>
@ -301,12 +340,22 @@
<ID> 1000 </ID> <ID> 1000 </ID>
<LOCATION> <LOCATION>
<X> 26 </X> <X> 26 </X>
<Y> 105 </Y> <Y> 111 </Y>
</LOCATION> </LOCATION>
<USABLE> TRUE </USABLE> <USABLE> TRUE </USABLE>
<FONT_ID> STD_FONT </FONT_ID> <FONT_ID> STD_FONT </FONT_ID>
<TEXT> "http://rattail.edbob.org/" </TEXT> <TEXT> "http://rattail.edbob.org/" </TEXT>
</FORM_LABEL> </FORM_LABEL>
<FORM_LABEL>
<ID> 1001 </ID>
<LOCATION>
<X> 54 </X>
<Y> 88 </Y>
</LOCATION>
<USABLE> TRUE </USABLE>
<FONT_ID> STD_FONT </FONT_ID>
<TEXT> "Lance Edgar" </TEXT>
</FORM_LABEL>
</FORM_OBJECTS> </FORM_OBJECTS>
</FORM_RESOURCE> </FORM_RESOURCE>

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,10 @@
typedef struct { /* typedef struct { */
Char barcode[15]; /* Char barcode[15]; */
Char cases[4]; /* Char cases[4]; */
Char units[4]; /* Char units[4]; */
} RatScanDbRecord; /* } RatScanDbRecord; */
#ifdef SCANLIB_BCS2 #ifdef SCANLIB_BCS2
@ -14,25 +14,28 @@ static void CloseBCS2Scanner();
#ifdef SCANLIB_JANAM #ifdef SCANLIB_JANAM
//static Boolean OpenBabboScanner(); //static Boolean OpenBabboScanner();
//static void CloseBabboScanner();
#endif #endif
static DmOpenRef CreateScanDatabase(); /* static DmOpenRef CreateScanDatabase(); */
static void DrawCustomTableItem(void* table, Int16 row, Int16 col, RectangleType* bounds); /* static void DrawCustomTableItem(void* table, Int16 row, Int16 col, RectangleType* bounds); */
/* static Int16 GetCheckedValue(UInt16 objId); */ /* static Int16 GetCheckedValue(UInt16 objId); */
static Boolean IsChecked(FormPtr form, UInt16 controlID); /* static Boolean IsChecked(FormPtr form, UInt16 controlID); */
static void *GetObjectPtr(UInt16 objId); /* static void *GetObjectPtr(UInt16 objId); */
static Boolean MainFormHandleEvent(EventPtr event); /* static Boolean MainFormHandleEvent(EventPtr event); */
static void MainFormInit(FormPtr form); /* static void MainFormInit(FormPtr form); */
static void MainFormLoadTable(TablePtr table, Boolean updateScroll); /* static void MainFormLoadTable(TablePtr table, Boolean updateScroll); */
static DmOpenRef OpenScanDatabase(); /* static DmOpenRef OpenScanDatabase(); */
static void SetFieldFocus(UInt16 objId); /* static void ShowQuantityForm(UInt16 triggerID, Boolean manual); */
static void ShowQuantityForm(UInt16 triggerID, Boolean manual); /* static Boolean StoreScanData(); */
static Boolean StoreScanData();
/* static void EnableScanner(Boolean enable); */
/* static void FocusBarcode(); */
//static void FetchScanData();
/* static void ProcessScan(); */
// Quantity Form // Quantity Form
static Boolean QuantityFormHandleEvent(EventPtr event); /* static Boolean QuantityFormHandleEvent(EventPtr event); */
static void QuantityFormInit(FormPtr form); /* static void QuantityFormInit(FormPtr form); */
static void AppendQuantityDigit(UInt16 digit); /* static void AppendQuantityDigit(UInt16 digit); */
static void UpdateQuantityDisplay(); /* static void UpdateQuantityDisplay(); */
static void QuantityFormAccept(); /* static void QuantityFormAccept(); */

View file

@ -16,6 +16,9 @@
#define MainFormUnits 1001 #define MainFormUnits 1001
#define AlertTest 1000 #define AlertTest 1000
#define AlertScannerOpenError 1300
#define AlertScannerEnableError 1200
#define AlertScannerCloseError 1100
// Resource: tFRM 1100 // Resource: tFRM 1100
#define AboutForm 1100 //(Left Origin = 2, Top Origin = 2, Width = 156, Height = 156, Usable = 1, Modal = 1, Save Behind = 1, Help ID = 0, Menu Bar ID = 0, Default Button ID = 0) #define AboutForm 1100 //(Left Origin = 2, Top Origin = 2, Width = 156, Height = 156, Usable = 1, Modal = 1, Save Behind = 1, Help ID = 0, Menu Bar ID = 0, Default Button ID = 0)