# HG changeset patch # User Mychaela Falconia # Date 1604818185 0 # Node ID 1a17927dd8a277dad3df1de9a40783fa25749ad6 # Parent c0052fe355d33e10aa5a10fd2785398fbd77c4a0 AUIEditor.h: bogotab fixes diff -r c0052fe355d3 -r 1a17927dd8a2 src/ui/bmi/AUIEditor.h --- a/src/ui/bmi/AUIEditor.h Sun Nov 08 06:39:16 2020 +0000 +++ b/src/ui/bmi/AUIEditor.h Sun Nov 08 06:49:45 2020 +0000 @@ -12,14 +12,14 @@ ******************************************************************************** - $Project name: Basic MMI - $Project code: BMI (6349) - $Module: MMI - $File: AUIEditor.h - $Revision: 1.0 + $Project name: Basic MMI + $Project code: BMI (6349) + $Module: MMI + $File: AUIEditor.h + $Revision: 1.0 - $Author: Condat(UK) - $Date: 30/01/02 + $Author: Condat(UK) + $Date: 30/01/02 ******************************************************************************** @@ -48,38 +48,38 @@ /* * Definitions from common editor function */ -#define INFO_TIMEOUT 1 -#define INFO_KCD_LEFT 2 -#define INFO_KCD_RIGHT 3 -#define INFO_KCD_HUP 4 -#define INFO_KCD_UP 5 -#define INFO_KCD_DOWN 6 -#define INFO_KCD_0_9 7 +#define INFO_TIMEOUT 1 +#define INFO_KCD_LEFT 2 +#define INFO_KCD_RIGHT 3 +#define INFO_KCD_HUP 4 +#define INFO_KCD_UP 5 +#define INFO_KCD_DOWN 6 +#define INFO_KCD_0_9 7 #define INFO_KCD_ALTERNATELEFT 8 -#define INFO_KCD_STAR 9 -#define INFO_KCD_SELECT 10 -#define INFO_EMERGENCY 99 +#define INFO_KCD_STAR 9 +#define INFO_KCD_SELECT 10 +#define INFO_EMERGENCY 99 -#define ED_PREDTEXT_MAX 16 /* Maximum length of predicted text string */ -#define ED_SCROLLBAR_WIDTH 4 /* Width of scrollbar */ +#define ED_PREDTEXT_MAX 16 /* Maximum length of predicted text string */ +#define ED_SCROLLBAR_WIDTH 4 /* Width of scrollbar */ -#define MAX_RO_EDITOR_LEN 1000 +#define MAX_RO_EDITOR_LEN 1000 #ifndef FOREVER -#define TIMER_EXIT 0x0BB8 /* Default SMS timer period - 3 secs. */ -#define SHORT_SECS 0x01F4 /* Information dialogue display times. */ -#define THREE_SECS 0x0BB8 /* 3000 milliseconds. */ -#define FIVE_SECS 0x1388 /* 5000 milliseconds. */ -#define TEN_SECS 0x2710 /* 10000 milliseconds. */ -#define TWO_MIN 0x1D4C0 /* 2 min */ -#define FOREVER 0xFFFF /* Infinite time period. */ +#define TIMER_EXIT 0x0BB8 /* Default SMS timer period - 3 secs. */ +#define SHORT_SECS 0x01F4 /* Information dialogue display times. */ +#define THREE_SECS 0x0BB8 /* 3000 milliseconds. */ +#define FIVE_SECS 0x1388 /* 5000 milliseconds. */ +#define TEN_SECS 0x2710 /* 10000 milliseconds. */ +#define TWO_MIN 0x1D4C0 /* 2 min */ +#define FOREVER 0xFFFF /* Infinite time period. */ #endif /* FOREVER */ /****************************************************************************/ -/* */ -/* TYPES */ -/* */ +/* */ +/* TYPES */ +/* */ /****************************************************************************/ /* External & internal events */ @@ -99,53 +99,53 @@ /****************************************************************************/ -/* */ -/* STRUCTURES */ -/* */ +/* */ +/* STRUCTURES */ +/* */ /****************************************************************************/ /* T_AUI_EDITOR_DATA */ typedef struct { - T_ED_ATTR editor_attr; /* The editor attributes */ - int zone_id; /* Type of editor window */ + T_ED_ATTR editor_attr; /* The editor attributes */ + int zone_id; /* Type of editor window */ - USHORT Identifier; /* Identifier passed on to callback function */ - ULONG timeout; /* Time before editor calls callback */ - T_AUI_EDIT_CB Callback; /* Callback function */ - BOOL destroyEditor; /* TRUE if editor is to be destroyed on exit */ - UBYTE min_enter; /* Minimum number of characters necessary to enter */ - BOOL change_rsk_on_empty; /* TRUE if text of right soft key changes when buffer is empty*/ + USHORT Identifier; /* Identifier passed on to callback function */ + ULONG timeout; /* Time before editor calls callback */ + T_AUI_EDIT_CB Callback; /* Callback function */ + BOOL destroyEditor; /* TRUE if editor is to be destroyed on exit */ + UBYTE min_enter; /* Minimum number of characters necessary to enter */ + BOOL change_rsk_on_empty; /* TRUE if text of right soft key changes when buffer is empty*/ - USHORT TitleId; /* Text ID for the title of the editor */ - UBYTE *TitleString; /* String for title of editor (ignored if TitleId is non-null) */ - USHORT LeftSoftKey; /* Text ID for left soft key */ - USHORT AltLeftSoftKey; /* Text ID for soft key to appear before min_enter characters entered */ - USHORT RightSoftKey; /* Text ID for right soft key */ - USHORT AltRightSoftKey; /* Text ID for soft key to appear when buffer is empty */ - /* SPR#2672 - SH - Removed array */ + USHORT TitleId; /* Text ID for the title of the editor */ + UBYTE *TitleString; /* String for title of editor (ignored if TitleId is non-null) */ + USHORT LeftSoftKey; /* Text ID for left soft key */ + USHORT AltLeftSoftKey; /* Text ID for soft key to appear before min_enter characters entered */ + USHORT RightSoftKey; /* Text ID for right soft key */ + USHORT AltRightSoftKey; /* Text ID for soft key to appear when buffer is empty */ + /* SPR#2672 - SH - Removed array */ } T_AUI_EDITOR_DATA; /****************************************************************************/ -/* */ -/* FUNCTION PROTOTYPES */ -/* */ +/* */ +/* FUNCTION PROTOTYPES */ +/* */ /****************************************************************************/ /* General-purpose Editor */ -T_MFW_HND AUI_edit_Start(T_MFW_HND parent, T_AUI_EDITOR_DATA *editor_data); -T_MFW_HND AUI_edit_QuickStart(T_MFW_HND win, USHORT TitleId, UBYTE *TitleString, USHORT *buffer, USHORT len, T_AUI_EDITOR_DATA *editor_info, T_AUI_EDIT_CB editor_cb); -void AUI_edit_Destroy(T_MFW_HND window); -void AUI_edit_InsertString(T_MFW_HND win, UBYTE *string, T_ATB_DCS dcs); -void AUI_edit_InsertChar(T_MFW_HND win, USHORT character); +T_MFW_HND AUI_edit_Start(T_MFW_HND parent, T_AUI_EDITOR_DATA *editor_data); +T_MFW_HND AUI_edit_QuickStart(T_MFW_HND win, USHORT TitleId, UBYTE *TitleString, USHORT *buffer, USHORT len, T_AUI_EDITOR_DATA *editor_info, T_AUI_EDIT_CB editor_cb); +void AUI_edit_Destroy(T_MFW_HND window); +void AUI_edit_InsertString(T_MFW_HND win, UBYTE *string, T_ATB_DCS dcs); +void AUI_edit_InsertChar(T_MFW_HND win, USHORT character); /* AUI Editor tools */ void AUI_edit_GetSpecificWindowSize(T_ED_ATTR* attr, int zone_id ); -void AUI_edit_CalculateWindow(T_ED_ATTR* attr, int *zone_id ); /* SPR#1559 - SH - Change zone_id to a pointer to int */ +void AUI_edit_CalculateWindow(T_ED_ATTR* attr, int *zone_id ); /* SPR#1559 - SH - Change zone_id to a pointer to int */ void AUI_edit_SetDefault(T_AUI_EDITOR_DATA *editor_data); void AUI_edit_SetDisplay(T_AUI_EDITOR_DATA *editor_data, int zone_id, int colour, UBYTE font ); void AUI_edit_SetEvents(T_AUI_EDITOR_DATA *editor_data, USHORT Identifier, BOOL destroyEditor, ULONG timeout, T_AUI_EDIT_CB Callback);