Subversion Repositories public

Compare Revisions

Ignore whitespace Rev 312 → Rev 313

/sportwatcher/trunk/src/CMakeLists.txt
35,6 → 35,8
kde4_add_executable(sportwatcher ${sportwatcher_SRCS})
 
target_link_libraries(sportwatcher
garmin
gant
${KDE4_KDEUI_LIBS}
${KDE4_KIO_LIBS}
${KDE4_KDE3SUPPORT_LIBS}
41,9 → 43,7
${GDAL_LIBRARY}
${LIBUSB_LIBRARY}
${FREETYPE_LIBRARIES}
${MAPNIK_LIBRARIES}
garmin
gant )
${MAPNIK_LIBRARIES} )
 
kde4_install_icons(${ICON_INSTALL_DIR} )
 
/sportwatcher/trunk/src/import.cpp
249,9 → 249,10
*/
bool gmn_import::startElement( const QString&, const QString&,
const QString& qName,
const QXmlAttributes&)
const QXmlAttributes& att)
{
int i = CON_FIRST;
int index;
 
while (i <= CON_LAST)
{
271,7 → 272,21
 
run.track_index = 0;
run.first_lap_index = 0;
run.sport_type = 0; // Running
// Find sport type, if there is one
if ((index = att.index(QString("Sport"))) != -1)
{
if (att.value(index).toAscii().toLower() == QString("Running").toLower())
run.sport_type = D1000_running;
else if (att.value(index).toAscii().toLower() == QString("Biking").toLower())
run.sport_type = D1000_biking;
else if (att.value(index).toAscii().toLower() == QString("Other").toLower())
run.sport_type = D1000_other;
else
run.sport_type = D1000_other;
}
else
run.sport_type = D1000_other; // Other
 
tk = i;
}