#include "types.h"
#include "sections.h"
Go to the source code of this file.
Data Structures | |
struct | PrefType |
Preferences structure. More... | |
struct | RecordSeparator |
Defines | |
#define | GPilotSID 'GPil' |
#define | WptDBType 'Wpts' |
#define | TrkDBType 'Trks' |
#define | RteDBType 'Rtes' |
#define | LogDBType 'Logs' |
#define | WptDBName "WptDB-GPil" |
#define | TrkDBName "TrkDB-GPil" |
#define | RteDBName "RteDB-GPil" |
#define | LogDBName "LogDB-GPil" |
#define | GPilotSPrefID 0 |
#define | DBVersion 2 |
#define | MaxRecordSize 62000 |
#define | WinDrawChar(theChar, x, y) do{char mw_buf[1];mw_buf[0]=(theChar);WinDrawChars (mw_buf, 1 , (x), (y));}while(0) |
#define | GTALKDBG_INFOS 128 |
#define | GTALKDBG_CALLS 32 |
#define | GTALKDBG_UNEXP 8 |
#define | LATMAX 0x3fffffffL |
#define | LATMIN 0xC0000000L |
#define | LONMAX 0x7fffffffL |
#define | LONMIN 0x80000000L |
#define | LONMAX23 0x55555554L |
#define | LONMIN23 0xAAAAAAACL |
#define | DELTALONMAX 0X38E38E38 |
#define | GErrNoError 0 |
#define | GErrUnsupportedFmt appErrorClass + 1 |
#define | GErrProtocolError appErrorClass + 2 |
#define | GErrNoHandle appErrorClass + 3 |
Typedefs | |
typedef enum ItemToDisplay | ItemToDisplay |
typedef enum WptSortCritType | WptSortCritType |
typedef enum EditWptMode | EditWptMode |
Enumerations | |
enum | ItemToDisplay { DispUnknown, DispWpt, DispRte, DispTrk } |
Item type to display in main form. | |
enum | WptSortCritType { Alpha, Dist, Lat, Lon, Symbol, Alt, Bear, Current } |
waypoint sort criteria enum | |
enum | EditWptMode { EditWpt, NewWpt, MarkWpt, FromRefWpt } |
Functions | |
Boolean | EditFormHandleEvent (EventPtr e) EDIT_SECTION |
Edit form event handler. | |
Int | CompareWpt (void *p1, void *p2, Int other, SortRecordInfoPtr sp1, SortRecordInfoPtr sp2, VoidHand aph) |
Compares two waypoints features according to Prefs.wptsortcrit. | |
void | SortWpts (WptSortCritType s) |
Sort waypoints according to given criteria. | |
long | SearchWptByName (char *name, Boolean exact, Boolean all) |
Search waypoint by name. | |
int | SetReferencePt (UInt index, Boolean ask) |
Set reference point to waypoint whose index is passed if user confirms. | |
void | DrawSymbol (unsigned int lid, int x, int y) |
Draws a waypoint symbol centered at given coordinates. | |
void | MainListDraw (Int16 itemNum, RectanglePtr bounds, CharPtr *itemsText) |
Draws an item of the main page's list. | |
void | SetPreferences (void) |
Display and setting of preferences with a modal form. | |
Boolean | RecIsSecret (DmOpenRef *DBP, UInt16 index) |
Tests if a record has secret attribute. | |
Err | SetBackupBit (DmOpenRef *DBP) |
Set the backup flag of the given data base. | |
Variables | |
PrefType | Prefs |
DmOpenRef | CurrentDB |
DmOpenRef | WptDB |
DmOpenRef | TrkDB |
DmOpenRef | RteDB |
UInt | CurrentRecordIndex |
UInt * | CurrentCategory |
Semicircle_Type | CurrentWGS84Pos |
char | ReferencePtName [] |
char * | BeamTypes [] |
Semicircle_Type | ReferencePt |
Boolean | OnlyNews |
Boolean | Furuno |
Boolean | CompactTracks |
Boolean | MainListDirty |
EditWptMode | EditMode |
const char * | DistanceUnitNames [] |
char | gbuf1 [512] |
char | gbuf2 [128] |
Boolean | MustCallGpslibTicks |
|
Compares two waypoints features according to Prefs.wptsortcrit. Used as callback.
|
|
Draws a waypoint symbol centered at given coordinates.
|
|
Edit form event handler.
|
|
Draws an item of the main page's list. Take appropriate actions given the type of the object concerned and the display and sort options.
|
|
Tests if a record has secret attribute.
|
|
Search waypoint by name.
|
|
Set the backup flag of the given data base.
|
|
Display and setting of preferences with a modal form.
|
|
Set reference point to waypoint whose index is passed if user confirms.
|
|
Sort waypoints according to given criteria. If allready sorted following given criteria nothing is done except if s == Current.
|