convenience commit; things seem to be working with MEZ1000
This commit is contained in:
parent
e8693a5012
commit
c512466fc0
|
@ -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.defineSymbols">
|
||||
<listOptionValue value="__PALMOS__=0x05000000" builtIn="false"/>
|
||||
<listOptionValue value="SCANLIB_BCS2=1" builtIn="false"/>
|
||||
</optionReference>
|
||||
<optionReference id="tool.compiler.gcc.68K.option.includeDirs">
|
||||
<listOptionValue value=""$(TOOLS_DIR)include/stlport"" builtIn="false"/>
|
||||
<listOptionValue value=""C:\Program Files\SDK_IDV1000-BCS2_20091116\BCS2 Shared Library"" builtIn="false"/>
|
||||
</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.assertions" defaultValue="tool.compiler.m68k_palmos_gcc.option.assertions.enable"/>
|
||||
|
@ -40,6 +42,10 @@
|
|||
<listOptionValue value="-n $(ARTIFACT_NAME)" builtIn="false"/>
|
||||
</optionReference>
|
||||
</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=""$(TOOLS_DIR)PRCMerge"" outputPrefix="" inputFlag="" outputFlag="-o" outputs=""/>
|
||||
<toolReference id="com.palmsource.eclipse.palmos4dev.builder.prcmerge" command=""$(TOOLS_DIR)PRCMerge"" outputPrefix="" inputFlag="" outputFlag="-o" outputs="prc"/>
|
||||
</configuration>
|
||||
<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=""$(TOOLS_DIR)PalmRC"" outputPrefix="" inputFlag="" outputFlag="-o" outputs="trc">
|
||||
|
|
|
@ -13,6 +13,45 @@
|
|||
</BUTTONS>
|
||||
</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)">
|
||||
<BITMAPS>
|
||||
<BITMAP>
|
||||
|
@ -256,7 +295,7 @@
|
|||
<ID> 1102 </ID>
|
||||
<LOCATION>
|
||||
<X> 38 </X>
|
||||
<Y> 27 </Y>
|
||||
<Y> 26 </Y>
|
||||
</LOCATION>
|
||||
<USABLE> TRUE </USABLE>
|
||||
<FONT_ID> LARGE_BOLD_FONT </FONT_ID>
|
||||
|
@ -265,18 +304,18 @@
|
|||
<FORM_LABEL COMMENT="Text1">
|
||||
<ID> 1103 </ID>
|
||||
<LOCATION>
|
||||
<X> 16 </X>
|
||||
<Y> 78 </Y>
|
||||
<X> 28 </X>
|
||||
<Y> 71 </Y>
|
||||
</LOCATION>
|
||||
<USABLE> TRUE </USABLE>
|
||||
<FONT_ID> STD_FONT </FONT_ID>
|
||||
<TEXT> "Copyright © 2012 Lance Edgar" </TEXT>
|
||||
<TEXT> "Copyright © 2012 - 2013" </TEXT>
|
||||
</FORM_LABEL>
|
||||
<FORM_LABEL COMMENT="Text2">
|
||||
<ID> 1104 </ID>
|
||||
<LOCATION>
|
||||
<X> 46 </X>
|
||||
<Y> 53 </Y>
|
||||
<Y> 47 </Y>
|
||||
</LOCATION>
|
||||
<USABLE> TRUE </USABLE>
|
||||
<FONT_ID> BOLD_FONT </FONT_ID>
|
||||
|
@ -301,12 +340,22 @@
|
|||
<ID> 1000 </ID>
|
||||
<LOCATION>
|
||||
<X> 26 </X>
|
||||
<Y> 105 </Y>
|
||||
<Y> 111 </Y>
|
||||
</LOCATION>
|
||||
<USABLE> TRUE </USABLE>
|
||||
<FONT_ID> STD_FONT </FONT_ID>
|
||||
<TEXT> "http://rattail.edbob.org/" </TEXT>
|
||||
</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_RESOURCE>
|
||||
|
||||
|
|
1478
src/AppMain.c
1478
src/AppMain.c
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,10 @@
|
|||
|
||||
|
||||
typedef struct {
|
||||
Char barcode[15];
|
||||
Char cases[4];
|
||||
Char units[4];
|
||||
} RatScanDbRecord;
|
||||
/* typedef struct { */
|
||||
/* Char barcode[15]; */
|
||||
/* Char cases[4]; */
|
||||
/* Char units[4]; */
|
||||
/* } RatScanDbRecord; */
|
||||
|
||||
|
||||
#ifdef SCANLIB_BCS2
|
||||
|
@ -14,25 +14,28 @@ static void CloseBCS2Scanner();
|
|||
|
||||
#ifdef SCANLIB_JANAM
|
||||
//static Boolean OpenBabboScanner();
|
||||
//static void CloseBabboScanner();
|
||||
#endif
|
||||
|
||||
static DmOpenRef CreateScanDatabase();
|
||||
static void DrawCustomTableItem(void* table, Int16 row, Int16 col, RectangleType* bounds);
|
||||
/* static DmOpenRef CreateScanDatabase(); */
|
||||
/* static void DrawCustomTableItem(void* table, Int16 row, Int16 col, RectangleType* bounds); */
|
||||
/* static Int16 GetCheckedValue(UInt16 objId); */
|
||||
static Boolean IsChecked(FormPtr form, UInt16 controlID);
|
||||
static void *GetObjectPtr(UInt16 objId);
|
||||
static Boolean MainFormHandleEvent(EventPtr event);
|
||||
static void MainFormInit(FormPtr form);
|
||||
static void MainFormLoadTable(TablePtr table, Boolean updateScroll);
|
||||
static DmOpenRef OpenScanDatabase();
|
||||
static void SetFieldFocus(UInt16 objId);
|
||||
static void ShowQuantityForm(UInt16 triggerID, Boolean manual);
|
||||
static Boolean StoreScanData();
|
||||
/* static Boolean IsChecked(FormPtr form, UInt16 controlID); */
|
||||
/* static void *GetObjectPtr(UInt16 objId); */
|
||||
/* static Boolean MainFormHandleEvent(EventPtr event); */
|
||||
/* static void MainFormInit(FormPtr form); */
|
||||
/* static void MainFormLoadTable(TablePtr table, Boolean updateScroll); */
|
||||
/* static DmOpenRef OpenScanDatabase(); */
|
||||
/* static void ShowQuantityForm(UInt16 triggerID, Boolean manual); */
|
||||
/* static Boolean StoreScanData(); */
|
||||
|
||||
/* static void EnableScanner(Boolean enable); */
|
||||
/* static void FocusBarcode(); */
|
||||
//static void FetchScanData();
|
||||
/* static void ProcessScan(); */
|
||||
|
||||
// Quantity Form
|
||||
static Boolean QuantityFormHandleEvent(EventPtr event);
|
||||
static void QuantityFormInit(FormPtr form);
|
||||
static void AppendQuantityDigit(UInt16 digit);
|
||||
static void UpdateQuantityDisplay();
|
||||
static void QuantityFormAccept();
|
||||
/* static Boolean QuantityFormHandleEvent(EventPtr event); */
|
||||
/* static void QuantityFormInit(FormPtr form); */
|
||||
/* static void AppendQuantityDigit(UInt16 digit); */
|
||||
/* static void UpdateQuantityDisplay(); */
|
||||
/* static void QuantityFormAccept(); */
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
#define MainFormUnits 1001
|
||||
|
||||
#define AlertTest 1000
|
||||
#define AlertScannerOpenError 1300
|
||||
#define AlertScannerEnableError 1200
|
||||
#define AlertScannerCloseError 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)
|
||||
|
|
Loading…
Reference in a new issue