Subversion Repositories public

Rev

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

Rev 149 Rev 151
Line 30... Line 30...
30
#include <qpointarray.h>
30
#include <qpointarray.h>
31
#include <qrect.h>
31
#include <qrect.h>
32
#include <qstring.h>
32
#include <qstring.h>
33
#include <qtimer.h>
33
#include <qtimer.h>
34
 
34
 
-
 
35
#ifdef GDAL
-
 
36
   #include <gdal/gdal_priv.h>
-
 
37
#endif
-
 
38
 
35
#include "garmin.h"
39
#include "garmin.h"
36
#include "managefile.h"
40
#include "managefile.h"
37
#include "disassemble.h"
41
#include "disassemble.h"
38
 
42
 
39
#include "sportwatcherwidgetbase.h"
43
#include "sportwatcherwidgetbase.h"
Line 43... Line 47...
43
	QString path;
47
	QString path;
44
	QString activ;
48
	QString activ;
45
	INDEX *next;
49
	INDEX *next;
46
} INDEX;
50
} INDEX;
47
 
51
 
-
 
52
typedef struct BMP_HEADER
-
 
53
{
-
 
54
//	uint16 bfType;
-
 
55
	unsigned int bfSize;
-
 
56
	unsigned int bfReserved;
-
 
57
	unsigned int bfOffBits;
-
 
58
} BMP_HEADER;
-
 
59
 
-
 
60
typedef struct BMP_INFO
-
 
61
{
-
 
62
	unsigned int biSize;
-
 
63
	int biWidth;
-
 
64
	int biHeight;
-
 
65
	unsigned short biPlanes;
-
 
66
	unsigned short biBitCount;
-
 
67
	unsigned int biCompression;
-
 
68
	unsigned int biSizeImage;
-
 
69
	int biXPelsPerMeter;
-
 
70
	int biYPelsPerMeter;
-
 
71
	unsigned int biClrUsed;
-
 
72
	unsigned int biClrImportant;
-
 
73
} BMP_INFO;
-
 
74
 
48
class sportwatcherWidget : public sportwatcherWidgetBase
75
class sportwatcherWidget : public sportwatcherWidgetBase
49
{
76
{
50
  Q_OBJECT
77
  Q_OBJECT
51
 
78
 
52
public:
79
public:
Line 100... Line 127...
100
private:
127
private:
101
    QDateTime *garmin_dtime (uint32 t);
128
    QDateTime *garmin_dtime (uint32 t);
102
    void getActivities();
129
    void getActivities();
103
    bool writeTag(const QFile &fn, const QString &str, int indent);
130
    bool writeTag(const QFile &fn, const QString &str, int indent);
104
    bool findIndex(const QString &key);
131
    bool findIndex(const QString &key);
-
 
132
#ifdef GDAL
-
 
133
    bool writeWMSTag(double llat, double llon, double rlat, double rlon, int width, int height);
-
 
134
    void fillBMPHeader (BMP_HEADER *bmpH, BMP_INFO *bmpI, int nXSize, int nYSize, int nRasterCount);
-
 
135
#endif
105
 
136
 
106
private:
137
private:
107
  QWidget *mama;
138
  QWidget *mama;
108
  QPixmap pmProfile, pmMap;
139
  QPixmap pmProfile, pmMap;
109
  QDateTime StartTime;
140
  QDateTime StartTime;
Line 120... Line 151...
120
  unsigned long max_time;
151
  unsigned long max_time;
121
  bool stateHand, stateFlag, stateGlas;
152
  bool stateHand, stateFlag, stateGlas;
122
  int lmbPressed;
153
  int lmbPressed;
123
  LAP *mapLap;
154
  LAP *mapLap;
124
  INDEX *index;
155
  INDEX *index;
-
 
156
#ifdef GDAL
-
 
157
  GDALDataset *poDataset;
-
 
158
#endif
125
 
159
 
126
private:
160
private:
127
  /* Config Parameters */
161
  /* Config Parameters */
128
  int lower1, lower2, lower3;
162
  int lower1, lower2, lower3;
129
  int upper1, upper2, upper3;
163
  int upper1, upper2, upper3;