robertlipe [Wed, 20 Feb 2013 05:56:01 +0000 (05:56 +0000)]
Make a serious attack on the new XML serializer for GPX. This version actually
totally passes our test suite, byte for byte, even when our old version was
kind of dumb. There's still plenty of work to be done but it's at a point
where we could consider turning it on by default soon.
robertlipe [Mon, 18 Feb 2013 04:39:31 +0000 (04:39 +0000)]
Start scratching in new GPX writer, turned off right now.
Problems remain in output encoding and some of the darker corners (GPX 1.1,
preserving unknown trails, weird header munging, etc.) aren't implemented yet.
robertlipe [Mon, 11 Feb 2013 21:50:47 +0000 (21:50 +0000)]
Tested:
Move icon_descr to a reference-counted QString, freeing us from the horror
of the 'is_dynamic? xfree()' mess and the issues in waypt_dupe. The code
is better in some ways, but suffers now while there are still a lot of
const char*/QString edges, but there's only so much you can do in one commit
and still keep the tree running.
Builds Mac and Mingw-cross. valgrind runs on Ubuntu. (and caught a few
errors as I introduced them.)
tsteven4 [Sun, 10 Feb 2013 23:31:06 +0000 (23:31 +0000)]
CoastalExplorer: Allow compilation to succeed without expat.
Note that using this format, and many others, witout expat will result in fatal run time errors.
robertlipe [Sun, 10 Feb 2013 06:02:10 +0000 (06:02 +0000)]
Beging the long, hard road of moving core structures from char * to QString.
Mostly, this just compartmentalizes the pain of character set conversions in
xmlgeneric.cc while letting them accpet QStrings.
robertlipe [Tue, 29 Jan 2013 20:51:17 +0000 (20:51 +0000)]
Silence the 'illegal byte sequence' on Mountain Lion. We're invoking sed
and if LANG is en_US.UTF-8 (the default) sed complains about the invalid UTF
encodings. Just force it to C for this DOP test and back.
robertlipe [Sun, 27 Jan 2013 22:12:25 +0000 (22:12 +0000)]
Turn on the first real use of Qt, replacing the creation_time in our waypoints
with a QDateTime which will (eventually) give us coherent times before 1970
and with decent sub-secont support. This patch itself doesn't really give
us that, but it lays important steps.
Right now, it's conditionally compiled under NEWTIME, but I don't expect that
to last very long. We'll move to *requiring* Qt very quickly; this is a prop
for ease of development right now.
robertlipe [Sun, 27 Jan 2013 03:08:44 +0000 (03:08 +0000)]
More changes to support a time object.
I've not gone whole hog on this; it's still pretty cowardly. The time
class is still fundamentally a time_t (sigh) and shimmed to a subclass of
QDateTime under conditional compilation. I'll be pulling out those props
soon.
robertlipe [Tue, 22 Jan 2013 00:10:55 +0000 (00:10 +0000)]
Begin (very conservatively) moving some of our key data structures to
classes. For now, there is overlap between ctors and our various users
of these objects (which, in many cases, promptly get our carefully initialized
objects and overwrite them...) , but let's start here.
robertlipe [Sun, 13 Jan 2013 23:37:20 +0000 (23:37 +0000)]
Mechanical changes to build on Linux. Most were just hyper const-ipation.
--This line, and those below, willignored--
M gpsbabel/jeeps/gpsusbstub.cc
M gpsbabel/xcsv.cc
M gpsbabel/geo.cc
M gpsbabel/hsa_ndv.cc
M gpsbabel/rgbcolors.cc
M gpsbabel/magproto.cc
M gpsbabel/gopal.cc
M gpsbabel/pathaway.cc
M gpsbabel/delbin.cc
M gpsbabel/tef_xml.cc
M gpsbabel/ozi.cc
robertlipe [Sun, 13 Jan 2013 22:36:39 +0000 (22:36 +0000)]
Start the C->C++ migration. Rename all interesting .c files to .cc. Tweak
build system to cope with this. Some minor warning cleanups (mostly string
constant chatter) but mtk_locus was the only source file that got any
non-trivial edit in this process. (How? Because I've been chipping at
the "C as C++" block for a long time and regularly compiling as both.)
tsteven4 [Fri, 28 Dec 2012 14:05:52 +0000 (14:05 +0000)]
Restore/Add support for building some make targets when builddir != srcdir.
Supported targets include the default, check, torture, clean and more-clean.
robertlipe [Sun, 9 Dec 2012 19:45:31 +0000 (19:45 +0000)]
When writing GPX and forcing unique names, handle waypoints, tracks, and
routes as different namespaces. This is the result of the problem reported
by R Tange. Thanx, Steve.