GPS4Palm

Source Code Documentation


MapForm.c File Reference

#include <PalmOS.h>
#include <PalmCompatibility.h>
#include <Libraries/PalmOSGlue/PalmOSGlue.h>
#include <Extensions/ExpansionMgr/VFSMgr.h>
#include "stringil.h"
#include "ResourceDefines.h"
#include "MapForm.h"
#include "FileselForm.h"
#include "dobitmap.h"
#include "pngdec.h"
#include "gifread.h"
#include "common.h"
#include "Serial.h"
#include "GPS.h"
#include "HandleMessage.h"
#include "Data.h"
#include "Clip.h"
#include "geo.h"
#include "georef.h"
#include "fp.h"
#include "Utils.h"
#include "getdir.h"
#include "file_io.h"
#include "fiveway.h"

Include dependency graph for MapForm.c:

Go to the source code of this file.

Defines

#define ON_MAP(x, y)
#define FW_ZOOM   0
 FiveWay Mode: Zoom.
#define FW_PAN   1
 FiveWay Mode: Pan.

Functions

void noMap ()
 Clear screen and display message "No map available!".
Boolean MapFormHandleEvent (EventPtr eventP)
 Map Form event handler.

Variables

PrefsType gPrefs
 Preferences data structure.
GPSType gGPSData
Boolean gFiveWayAvail
 FiveWay Controller available.
Boolean gHdFtrSet
 High-Density Display Feature Set available.
Boolean gFtrSet35
 OS 3.5 Feature Set available.
unsigned short int w
unsigned short int h
unsigned short int bandh
unsigned int mapmax
RGBColorType map [256]
Boolean color
 passed to PNG (maybe others) to generate greyscale or colors
PrefsType gPrefs
 Preferences data structure.


Define Documentation

#define FW_PAN   1
 

FiveWay Mode: Pan.

Definition at line 203 of file MapForm.c.

Referenced by MapFormHandleEvent().

#define FW_ZOOM   0
 

FiveWay Mode: Zoom.

Definition at line 202 of file MapForm.c.

Referenced by MapFormHandleEvent().

#define ON_MAP x,
 ) 
 

Value:

( (x >= dx+CROSS_X) && (x <= dx+dw-CROSS_X) && \
    (y >= dy+CROSS_Y) && (y <= dy+dh-CROSS_X))

Definition at line 197 of file MapForm.c.

Referenced by MapFormHandleEvent().


Function Documentation

Boolean MapFormHandleEvent EventPtr  eventP  ) 
 

Map Form event handler.

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

Definition at line 503 of file MapForm.c.

References AbortGIFAlert, AbortPNGAlert, AboutForm, AboutMenu, PrefsType::act_rte, PrefsType::act_trk, PrefsType::auto_wpt, calcxy(), cleanGIF(), cleanPNG(), color, CROSS_X, CROSS_Y, DebugForm, DebugMenu, DLD_A, DLD_O, DLD_Q, dobitmap(), doGIF(), doPNG(), DoReceiveFlush(), MapPrefsType::download, fclose(), MapPrefsType::fetch, FETCH_READY, FETCH_START, FETCH_STOP, FetchMapMenu, FileDescrType::fh, PrefsType::filecard, FILEDIR, PrefsType::filename, FileOpenMenu, FileSelForm, FiveWayCenterPressed, FiveWayKeyPressed, PrefsType::form, FileDescrType::fr, fread(), FW_PAN, FW_ZOOM, georef_filename(), gFiveWayAvail, gFtrSet35, gGPSData, gHdFtrSet, gNewSerialManager, gPortID, gPrefs, GPSMainForm, GPSPortForm, h, GPSType::lat, ActTrackType::log_state, GPSType::lon, map, MapForm, mapmax, MapOptsForm, MapOptsMenu, PrefsType::mapprefs, MiscOptsForm, MiscOptsMenu, NavigationForm, NavigationMenu, NoFileAlert, noMap(), NotifyApproach(), NoZLibAlert, ON_MAP, PortsMenu, PosclipMenu, PosgeodbMenu, Position2Clipboard(), Position2Geodb(), PositionMenu, QueryDldAlert, r, ReadFromGPS(), rewind(), RouteForm, RouteMenu, MapPrefsType::scale, search_map(), SEL_AUTO, SEL_USER, MapPrefsType::select, SkyviewForm, SkyviewMenu, STAT_REDRAW, StrCopy, strlen(), StrLen, strncmp(), TrackForm, TrackIntervalCheck(), TrackMenu, TrackWriteLog(), PrefsType::units, UpdateActWpt(), UpdateStatus(), GPSType::valid, ActRouteType::valid, VFS_FLAG, w, WaypointForm, WaypointMenu, and WrongFileAlert.

void noMap  ) 
 

Clear screen and display message "No map available!".

Definition at line 439 of file MapForm.c.

References gFtrSet35, gHdFtrSet, NoMapStr, r, and StrLen.

Referenced by MapFormHandleEvent().


Variable Documentation

unsigned short int bandh
 

Definition at line 99 of file gifread.c.

Boolean color
 

passed to PNG (maybe others) to generate greyscale or colors

Definition at line 236 of file MapForm.c.

Boolean gFiveWayAvail
 

FiveWay Controller available.

Definition at line 272 of file GPS.c.

Referenced by MapFormHandleEvent().

Boolean gFtrSet35
 

OS 3.5 Feature Set available.

Definition at line 266 of file GPS.c.

GPSType gGPSData
 

Definition at line 129 of file HandleMessage.c.

Boolean gHdFtrSet
 

High-Density Display Feature Set available.

Definition at line 269 of file GPS.c.

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

PrefsType gPrefs
 

Preferences data structure.

Definition at line 279 of file GPS.c.

unsigned short int h
 

Definition at line 99 of file gifread.c.

RGBColorType map[256]
 

Definition at line 101 of file gifread.c.

unsigned int mapmax
 

Definition at line 100 of file gifread.c.

unsigned short int w
 

Definition at line 99 of file gifread.c.


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