GPS4Palm

Source Code Documentation


FileselForm.c File Reference

#include <BuildDefines.h>
#include <PalmOS.h>
#include "ResourceDefines.h"
#include <Extensions/ExpansionMgr/VFSMgr.h>
#include "stringil.h"
#include "FileselForm.h"
#include "file_io.h"
#include "getdir.h"
#include "imginfo.h"
#include "Utils.h"
#include "common.h"

Include dependency graph for FileselForm.c:

Go to the source code of this file.

Defines

#define DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS
#define SORTPREFIX   4
#define SEL_FILENAME   gPrefs.filename
 Name of selected file (passed to/from FileselForm).
#define SEL_FILECARD   gPrefs.filecard
 Card/Volume of selected file (passed to/from FileselForm).

Functions

Boolean FileSelFormHandleEvent (EventPtr eventP)
 File Selection Form Event Handler.

Variables

PrefsType gPrefs
 Preferences data structure.
Boolean gVfsManagerFtr
 VFS Feature Set available.
Boolean gFtrSet35
 OS 3.5 Feature Set available.
TableDrawItemFuncType TableDrawCell
 File table cell drawing function.


Define Documentation

#define DO_NOT_ALLOW_ACCESS_TO_INTERNALS_OF_STRUCTS
 

Definition at line 87 of file FileselForm.c.

#define SEL_FILECARD   gPrefs.filecard
 

Card/Volume of selected file (passed to/from FileselForm).

Definition at line 109 of file FileselForm.c.

Referenced by FileSelFormHandleEvent().

#define SEL_FILENAME   gPrefs.filename
 

Name of selected file (passed to/from FileselForm).

Definition at line 106 of file FileselForm.c.

Referenced by FileSelFormHandleEvent().

#define SORTPREFIX   4
 

Definition at line 103 of file FileselForm.c.

Referenced by FileSelFormHandleEvent(), getdir(), getdir_vfs(), and search_map().


Function Documentation

Boolean FileSelFormHandleEvent EventPtr  eventP  ) 
 

File Selection Form Event Handler.

Parameters:
eventP pointer to event structure
Returns:
Status flag: event handled

Definition at line 406 of file FileselForm.c.

References CreateDatabase(), DirEmptyAlert, DirEmptyVfsAlert, fclose(), FileSelDateField, FileSelInfo1Field, FileSelSizeField, FileSelTable, fopen(), getdir(), getdir_vfs(), gVfsManagerFtr, imginfo(), memcpy(), scratch, SEL_FILECARD, SEL_FILENAME, SetFieldText(), SORTPREFIX, and StrLen.


Variable Documentation

Boolean gFtrSet35
 

OS 3.5 Feature Set available.

Definition at line 266 of file GPS.c.

Referenced by MapFormHandleEvent(), and noMap().

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

Boolean gVfsManagerFtr
 

VFS Feature Set available.

Definition at line 263 of file GPS.c.

Referenced by FileSelFormHandleEvent(), and search_map().

static void TableDrawCell
 

File table cell drawing function.

Note:
The function's prototype is defined by PalmOS (TableDrawItemFuncType).

On PalmOS 5.2.1 and 3.5.0 (and maybe others) the selected row has to be highlighted manually.

Definition at line 152 of file FileselForm.c.


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke