Subversion Repositories public

Rev

Rev 245 | Rev 247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 245 Rev 246
Line 39... Line 39...
39
#include "garmin.h"
39
#include "garmin.h"
40
#include "managefile.h"
40
#include "managefile.h"
41
#include "disassemble.h"
41
#include "disassemble.h"
42
 
42
 
43
#include <QtGui/QWidget>
43
#include <QtGui/QWidget>
-
 
44
#include <QTreeWidget>
44
#include "ui_sportwatcherwidgetbase.h"
45
#include "ui_sportwatcherwidgetbase.h"
45
 
46
 
46
typedef enum {
47
typedef enum {
47
	MPT_BMP = 0,
48
	MPT_BMP = 0,
48
	MPT_SHP = 1,
49
	MPT_SHP = 1,
Line 52... Line 53...
52
	MPT_SGI = 5,
53
	MPT_SGI = 5,
53
	MPT_TIF = 6,
54
	MPT_TIF = 6,
54
	MPT_WMS = 7
55
	MPT_WMS = 7
55
} MPT;
56
} MPT;
56
 
57
 
57
typedef struct INDEX
-
 
58
{
-
 
59
	QString path;
-
 
60
	QString activ;
-
 
61
	INDEX *next;
-
 
62
} INDEX;
-
 
63
 
-
 
64
typedef struct GEORECT
58
typedef struct GEORECT
65
{
59
{
66
	double llat;
60
	double llat;
67
	double llon;
61
	double llon;
68
	double rlat;
62
	double rlat;
Line 100... Line 94...
100
	   void btGlasPlusSlot();
94
	   void btGlasPlusSlot();
101
	   void btHandSlot();
95
	   void btHandSlot();
102
	   void btGlasSlot();
96
	   void btGlasSlot();
103
	   void btFlagSlot();
97
	   void btFlagSlot();
104
	   void liLapsSlot(Q3ListViewItem *item);
98
	   void liLapsSlot(Q3ListViewItem *item);
105
	   void liActivitiesSlot(Q3ListViewItem *item);
99
	   void liActivitiesSlot(QTreeWidgetItem *item, int col);
106
	   void helpAbout();
-
 
107
	   void helpContents();
-
 
108
	   void helpIndex();
-
 
109
	   void fileExit();
-
 
110
	   void filePrint();
100
	   void filePrint();
111
	   void fileSaveAs();
101
	   void fileSaveAs();
112
	   void fileSave();
102
	   void fileSave();
113
	   void fileOpen();
103
	   void fileOpen();
114
	   void fileImport();
104
	   void fileImport();
Line 139... Line 129...
139
 
129
 
140
	private:
130
	private:
141
	   void getActivities();
131
	   void getActivities();
142
	   QDateTime *garmin_dtime (uint32 t);
132
	   QDateTime *garmin_dtime (uint32 t);
143
	   bool writeTag(const QFile &fn, const QString &str, int indent);
133
	   bool writeTag(const QFile &fn, const QString &str, int indent);
144
	   bool findIndex(const QString &key);
-
 
145
	   double getAvgAlt (AVGHEIGHT *avgHeight, int pos);
134
	   double getAvgAlt (AVGHEIGHT *avgHeight, int pos);
146
	   AVGHEIGHT *getAvgPtr (AVGHEIGHT *avgHeight, int pos);
135
	   AVGHEIGHT *getAvgPtr (AVGHEIGHT *avgHeight, int pos);
147
	   void saveGPX(const QString &fn);
136
	   void saveGPX(const QString &fn);
148
	   void saveOSM(const QString &fn);
137
	   void saveOSM(const QString &fn);
-
 
138
	   bool findElement(QTreeWidget *wdg, const QString &val);
149
#if defined HAVE_GDAL
139
#if defined HAVE_GDAL
150
	   bool writeWMSTag(double llat, double llon, double rlat, double rlon, int width, int height);
140
	   bool writeWMSTag(double llat, double llon, double rlat, double rlon, int width, int height);
151
	   bool transCoords (double *x1, double *y1, double *x2, double *y2, int code, int width, int height, bool square);
141
	   bool transCoords (double *x1, double *y1, double *x2, double *y2, int code, int width, int height, bool square);
152
	   QString *getProjection (int isrs, QString *srs);
142
	   QString *getProjection (int isrs, QString *srs);
153
	   bool warpImage(QString fn, QString *fName);
143
	   bool warpImage(QString fn, QString *fName);
Line 171... Line 161...
171
	   double oldTransX, oldTransY;
161
	   double oldTransX, oldTransY;
172
	   unsigned long max_time;
162
	   unsigned long max_time;
173
	   bool stateHand, stateFlag, stateGlas;
163
	   bool stateHand, stateFlag, stateGlas;
174
	   int lmbPressed;
164
	   int lmbPressed;
175
	   LAP *mapLap;
165
	   LAP *mapLap;
176
	   INDEX *index;
-
 
177
#if defined HAVE_GDAL
166
#if defined HAVE_GDAL
178
	   GDALDataset *poDataset;
167
	   GDALDataset *poDataset;
179
	   int mFactor;
168
	   int mFactor;
180
	   GEORECT geoRect;
169
	   GEORECT geoRect;
181
#endif
170
#endif
Line 186... Line 175...
186
	   int upper1, upper2, upper3;
175
	   int upper1, upper2, upper3;
187
	   int MaxHr, restHr;
176
	   int MaxHr, restHr;
188
	   int vo2max, weight, sampleTime;
177
	   int vo2max, weight, sampleTime;
189
	   int Units, MapType;
178
	   int Units, MapType;
190
	   bool Serial, Contour, Forerunner;
179
	   bool Serial, Contour, Forerunner;
-
 
180
	   bool DIRTY;
191
	   QString Device, Data, HRM, MAP;
181
	   QString Device, Data, HRM, MAP;
192
};
182
};
193
 
183
 
194
#endif
184
#endif