00001 00007 /* 00008 Copyright (C) 1999,2000,2001,2002 Christian Claveleira (Christian.Claveleira@cru.fr) 00009 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 typedef struct 00026 { 00027 Boolean DrawWpts, 00028 DrawGrd, 00029 DrawRtes, 00030 DrawTrk, 00031 DrawActTrk; 00032 UInt AllowedOps; /* cf MapOp* */ 00033 } 00034 MapFlagsType; 00035 extern MapFlagsType MapFlags; 00036 00037 extern RectangleType DrawRect; 00038 00039 #define MapOpActiveRte 0x1 /* display of active route */ 00040 #define MapOpMapTrack 0x2 /* selection of supplementary track to draw */ 00041 //#define MapOpSelTrack 0x4 /* display of selected track */ 00042 #define MapOpTrack 0x8 /* real time track */ 00043 #define MapOpRteEdit 0x10 /* route edition */ 00044 #define MapOpRteNew 0x20 /* route creation */ 00045 #define MapOpWptDisp 0x40 /* waypoint display */ 00046 00047 00048 extern void DrawTrack (UInt index, Boolean rescale, Boolean Clear) MAP_SECTION; 00049 extern Boolean MapFormHandleEvent (EventPtr e) MAP_SECTION; 00050 extern Boolean DrawRoute (UInt index, Boolean rescale, Semicircle_Type * position) MAP_SECTION;