add quantity form; general overhaul (savepoint)
This commit is contained in:
parent
304504bdfa
commit
e43dca60f2
4 changed files with 1258 additions and 784 deletions
1672
src/AppMain.c
1672
src/AppMain.c
File diff suppressed because it is too large
Load diff
|
@ -11,15 +11,22 @@ typedef struct {
|
|||
static void CloseBCS2Scanner();
|
||||
static DmOpenRef CreateScanDatabase();
|
||||
static void DrawCustomTableItem(void* table, Int16 row, Int16 col, RectangleType* bounds);
|
||||
static UInt16 GetActiveFieldId(FormPtr form);
|
||||
static Int16 GetCheckedValue(UInt16 objId);
|
||||
static void *GetObjectPtrById(FormPtr form, UInt16 objId);
|
||||
/* 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 Boolean OpenBabboScanner();
|
||||
static Boolean OpenBCS2Scanner();
|
||||
static DmOpenRef OpenScanDatabase();
|
||||
static void ProcessScan();
|
||||
static void SetFieldFocus(UInt16 objId);
|
||||
static void ShowQuantityForm(UInt16 triggerID, Boolean manual);
|
||||
static Boolean StoreScanData();
|
||||
|
||||
// Quantity Form
|
||||
static Boolean QuantityFormHandleEvent(EventPtr event);
|
||||
static void QuantityFormInit(FormPtr form);
|
||||
static void AppendQuantityDigit(UInt16 digit);
|
||||
static void UpdateQuantityDisplay();
|
||||
static void QuantityFormAccept();
|
||||
|
|
|
@ -24,6 +24,22 @@
|
|||
#define AboutText1Label 1103 //(Left Origin = 23, Top Origin = 54, Usable = 1, Font = Standard)
|
||||
#define AboutText2Label 1104 //(Left Origin = 50, Top Origin = 104, Usable = 1, Font = Bold)
|
||||
|
||||
#define QuantityForm 1200
|
||||
|
||||
#define QuantityForm1 1000
|
||||
#define QuantityForm2 1001
|
||||
#define QuantityForm3 1002
|
||||
#define QuantityForm4 1003
|
||||
#define QuantityForm5 1004
|
||||
#define QuantityForm6 1005
|
||||
#define QuantityForm7 1006
|
||||
#define QuantityForm8 1007
|
||||
#define QuantityForm9 1008
|
||||
#define QuantityForm0 1009
|
||||
#define QuantityFormOK 1010
|
||||
#define QuantityFormClear 1012
|
||||
#define QuantityFormCancel 1011
|
||||
#define QuantityFormQuantity 1013
|
||||
|
||||
// Resource: Talt 1001
|
||||
#define RomIncompatibleAlert 1001
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue