From 734d951472de0ea6eb73dddffdf5d60e7b0a98ad Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 13 Nov 2004 05:21:59 +0000 Subject: [PATCH] pass globals to palm_dictionary_make, and use it to draw a crude string on board when copying dictionaries from card to memory -- since that can take several seconds. --- palm/palmdict.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/palm/palmdict.c b/palm/palmdict.c index 5b3cf6784..5c92e7767 100644 --- a/palm/palmdict.c +++ b/palm/palmdict.c @@ -29,6 +29,7 @@ #include "dictui.h" #include "palmmain.h" #include "pace_man.h" /* READ_UNALIGNED16 */ +#include "LocalizedStrIncludes.h" typedef struct DictStart { unsigned long indexStart; @@ -65,7 +66,8 @@ static array_edge* palm_dict_edge_for_index_multi( DictionaryCtxt* dict, XP_U32 index ); DictionaryCtxt* -palm_dictionary_make( MPFORMAL XP_UCHAR* dictName, PalmDictList* dl ) +palm_dictionary_make( MPFORMAL PalmAppGlobals* globals, + XP_UCHAR* dictName, PalmDictList* dl ) { Boolean found; UInt16 cardNo; @@ -124,6 +126,9 @@ palm_dictionary_make( MPFORMAL XP_UCHAR* dictName, PalmDictList* dl ) } if ( dle->location == DL_VFS ) { + XP_UCHAR* str = getResString( globals, STR_DICT_COPY_EXPL ); + WinDrawChars( str, XP_STRLEN(str), 5, 40 ); + err = VFSImportDatabaseFromFile( dle->u.vfsData.volNum, (const char*)dle->path, &cardNo, &dbID );