1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Made the moving time switch affect all related values

More standardized time type switching (menu)
This commit is contained in:
Martin Tůma 2017-02-12 19:57:55 +01:00
parent f4a992a66f
commit 99e32b1a15
17 changed files with 291 additions and 277 deletions

View File

@ -77,7 +77,7 @@ HEADERS += src/config.h \
src/colorbox.h \
src/stylecombobox.h \
src/opengl.h \
src/fliplabel.h
src/timetype.h
SOURCES += src/main.cpp \
src/gui.cpp \
src/poi.cpp \
@ -131,8 +131,7 @@ SOURCES += src/main.cpp \
src/nmeaparser.cpp \
src/optionsdialog.cpp \
src/colorbox.cpp \
src/stylecombobox.cpp \
src/fliplabel.cpp
src/stylecombobox.cpp
RESOURCES += gpxsee.qrc
TRANSLATIONS = lang/gpxsee_cs.ts \
lang/gpxsee_sv.ts

View File

@ -190,55 +190,55 @@
<context>
<name>GUI</name>
<message>
<location filename="../src/gui.cpp" line="552"/>
<location filename="../src/gui.cpp" line="569"/>
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
<translation>Program GPXSee je distribuován pod podmínkami licence GNU General Public License verze 3. Pro více informací navštivte stránky programu na adrese </translation>
</message>
<message>
<location filename="../src/gui.cpp" line="616"/>
<location filename="../src/gui.cpp" line="633"/>
<source>Open file</source>
<translation>Otevřít soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="706"/>
<location filename="../src/gui.cpp" line="723"/>
<source>Open POI file</source>
<translation>Otevřít POI soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="225"/>
<location filename="../src/gui.cpp" line="227"/>
<source>Open</source>
<translation>Otevřít</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="209"/>
<location filename="../src/gui.cpp" line="211"/>
<source>Quit</source>
<translation>Ukončit</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="217"/>
<location filename="../src/gui.cpp" line="568"/>
<location filename="../src/gui.cpp" line="569"/>
<location filename="../src/gui.cpp" line="219"/>
<location filename="../src/gui.cpp" line="585"/>
<location filename="../src/gui.cpp" line="586"/>
<source>Keyboard controls</source>
<translation>Ovládací klávesy</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="241"/>
<location filename="../src/gui.cpp" line="243"/>
<source>Close</source>
<translation>Zavřít</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="247"/>
<location filename="../src/gui.cpp" line="249"/>
<source>Reload</source>
<translation>Znovu načíst</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="480"/>
<location filename="../src/gui.cpp" line="497"/>
<source>Show</source>
<translation>Zobrazit</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="401"/>
<location filename="../src/gui.cpp" line="474"/>
<location filename="../src/gui.cpp" line="415"/>
<location filename="../src/gui.cpp" line="491"/>
<source>File</source>
<translation>Soubor</translation>
</message>
@ -258,195 +258,195 @@
<translation>Soubory NMEA (*.nmea)</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="215"/>
<location filename="../src/gui.cpp" line="591"/>
<location filename="../src/gui.cpp" line="592"/>
<location filename="../src/gui.cpp" line="217"/>
<location filename="../src/gui.cpp" line="608"/>
<location filename="../src/gui.cpp" line="609"/>
<source>Data sources</source>
<translation>Zdroje dat</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="255"/>
<location filename="../src/gui.cpp" line="257"/>
<source>Load POI file</source>
<translation>Nahrát POI soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="258"/>
<location filename="../src/gui.cpp" line="260"/>
<source>Close POI files</source>
<translation>Zavřit POI soubory</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="260"/>
<location filename="../src/gui.cpp" line="262"/>
<source>Overlap POIs</source>
<translation>Překrývat POI</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="264"/>
<location filename="../src/gui.cpp" line="266"/>
<source>Show POI labels</source>
<translation>Zobrazit názvy POI</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="269"/>
<location filename="../src/gui.cpp" line="271"/>
<source>Show POIs</source>
<translation>Zobrazit POI</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="278"/>
<location filename="../src/gui.cpp" line="280"/>
<source>Show map</source>
<translation>Zobrazit mapu</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="284"/>
<location filename="../src/gui.cpp" line="286"/>
<source>Clear tile cache</source>
<translation>Vymazat mezipaměť dlaždic</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="293"/>
<location filename="../src/gui.cpp" line="297"/>
<location filename="../src/gui.cpp" line="580"/>
<location filename="../src/gui.cpp" line="295"/>
<location filename="../src/gui.cpp" line="299"/>
<location filename="../src/gui.cpp" line="597"/>
<source>Next map</source>
<translation>Následující mapa</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="304"/>
<location filename="../src/gui.cpp" line="306"/>
<source>Show tracks</source>
<translation>Zobrazit cesty</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="308"/>
<location filename="../src/gui.cpp" line="310"/>
<source>Show routes</source>
<translation>Zobrazit trasy</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="312"/>
<location filename="../src/gui.cpp" line="314"/>
<source>Show waypoints</source>
<translation>Zobrazit navigační body</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="316"/>
<location filename="../src/gui.cpp" line="318"/>
<source>Waypoint labels</source>
<translation>Názvy navigačních bodů</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="327"/>
<location filename="../src/gui.cpp" line="329"/>
<source>Show graphs</source>
<translation>Zobrazit grafy</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="349"/>
<location filename="../src/gui.cpp" line="351"/>
<source>Show grid</source>
<translation>Zobrazit mřížku</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="355"/>
<location filename="../src/gui.cpp" line="357"/>
<source>Show toolbars</source>
<translation>Zobrazovat nástrojové lišty</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="361"/>
<location filename="../src/gui.cpp" line="363"/>
<source>Total time</source>
<translation>Celkový čas</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="368"/>
<location filename="../src/gui.cpp" line="876"/>
<source>Moving time</source>
<translation>Čistý čas</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="375"/>
<source>Metric</source>
<translation>Metrické</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="366"/>
<location filename="../src/gui.cpp" line="380"/>
<source>Imperial</source>
<translation>Imperiální</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="372"/>
<location filename="../src/gui.cpp" line="386"/>
<source>Fullscreen mode</source>
<translation>Celoobrazovkový režim</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="378"/>
<location filename="../src/gui.cpp" line="392"/>
<source>Options...</source>
<translation>Nastavení...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="383"/>
<location filename="../src/gui.cpp" line="397"/>
<source>Next</source>
<translation>Následující</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="386"/>
<location filename="../src/gui.cpp" line="400"/>
<source>Previous</source>
<translation>Předchozí</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="390"/>
<location filename="../src/gui.cpp" line="404"/>
<source>Last</source>
<translation>Poslední</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="393"/>
<location filename="../src/gui.cpp" line="407"/>
<source>First</source>
<translation>První</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="415"/>
<location filename="../src/gui.cpp" line="429"/>
<source>Map</source>
<translation>Mapa</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="422"/>
<location filename="../src/gui.cpp" line="436"/>
<source>Graph</source>
<translation>Graf</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="430"/>
<location filename="../src/gui.cpp" line="444"/>
<source>POI</source>
<translation>POI</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="431"/>
<location filename="../src/gui.cpp" line="445"/>
<source>POI files</source>
<translation>POI soubory</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="442"/>
<location filename="../src/gui.cpp" line="456"/>
<source>Data</source>
<translation>Data</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="443"/>
<location filename="../src/gui.cpp" line="457"/>
<source>Display</source>
<translation>Zobrazit</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="451"/>
<location filename="../src/gui.cpp" line="465"/>
<source>Settings</source>
<translation>Nastavení</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="452"/>
<location filename="../src/gui.cpp" line="469"/>
<source>Units</source>
<translation>Jednotky</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="461"/>
<location filename="../src/gui.cpp" line="478"/>
<source>Help</source>
<translation>Nápověda</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="581"/>
<location filename="../src/gui.cpp" line="598"/>
<source>Previous map</source>
<translation>Předchozí mapa</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="859"/>
<location filename="../src/gui.cpp" line="1078"/>
<source>Moving Time</source>
<translation>Čistý čas</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1065"/>
<location filename="../src/gui.cpp" line="1082"/>
<source>No files loaded</source>
<translation>Nejsou načteny žádné soubory</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1077"/>
<source>Total Time</source>
<translation>Celkový čas</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="105"/>
<source>GPX files (*.gpx)</source>
@ -473,18 +473,18 @@
<translation>Všechny soubory (*)</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="845"/>
<location filename="../src/gui.cpp" line="848"/>
<location filename="../src/gui.cpp" line="862"/>
<location filename="../src/gui.cpp" line="865"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="837"/>
<location filename="../src/gui.cpp" line="854"/>
<source>Routes</source>
<translation>Trasy</translation>
</message>
<message numerus="yes">
<location filename="../src/gui.cpp" line="1069"/>
<location filename="../src/gui.cpp" line="1086"/>
<source>%n files</source>
<translation>
<numerusform>%n soubor</numerusform>
@ -493,32 +493,32 @@
</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="571"/>
<location filename="../src/gui.cpp" line="588"/>
<source>Next file</source>
<translation>Následující soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="549"/>
<location filename="../src/gui.cpp" line="566"/>
<source>Version </source>
<translation>Verze </translation>
</message>
<message>
<location filename="../src/gui.cpp" line="230"/>
<location filename="../src/gui.cpp" line="232"/>
<source>Print...</source>
<translation>Tisknout...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="235"/>
<location filename="../src/gui.cpp" line="237"/>
<source>Export to PDF...</source>
<translation>Exportovat do PDF...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="839"/>
<location filename="../src/gui.cpp" line="856"/>
<source>Waypoints</source>
<translation>Navigační body</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="573"/>
<location filename="../src/gui.cpp" line="590"/>
<source>Previous file</source>
<translation>Předchozí soubor</translation>
</message>
@ -528,96 +528,97 @@
<translation>Podporované soubory (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx)</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="320"/>
<location filename="../src/gui.cpp" line="322"/>
<source>Route waypoints</source>
<translation>Body tras</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="575"/>
<location filename="../src/gui.cpp" line="592"/>
<source>First file</source>
<translation>První soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="577"/>
<location filename="../src/gui.cpp" line="594"/>
<source>Last file</source>
<translation>Poslední soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="578"/>
<location filename="../src/gui.cpp" line="595"/>
<source>Append modifier</source>
<translation>Modifikátor nahradit/přidat</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="595"/>
<location filename="../src/gui.cpp" line="612"/>
<source>Map (tiles) source URLs are read on program startup from the following file:</source>
<translation>URL mapových zdrojů (dlaždic) jsou načteny při startu programu z následujícího souboru:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="598"/>
<location filename="../src/gui.cpp" line="615"/>
<source>The file format is one map entry per line, consisting of the map name and tiles URL delimited by a TAB character. The tile X and Y coordinates are replaced with $x and $y in the URL and the zoom level is replaced with $z. An example map file could look like:</source>
<translation>Formát souboru je jeden mapový záznam na řádku, kde mapový záznam sestává ze jména mapy a URL dlaždic navzájem oddělených tabulátorem. Souřadnice dlaždice jsou v URL nahrazeny řetězci $x a $y, úroven přiblížení (zoom) pak řetězcem $z. Příklad:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="606"/>
<location filename="../src/gui.cpp" line="623"/>
<source>To make GPXSee load a POI file automatically on startup, add the file to the following directory:</source>
<translation>POI soubory, které se mají automaticky nahrát při startu programu jsou načítány z následujícího adresáře:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="695"/>
<location filename="../src/gui.cpp" line="712"/>
<source>Error loading data file:</source>
<translation>Datový soubor nelze načíst:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="698"/>
<location filename="../src/gui.cpp" line="723"/>
<location filename="../src/gui.cpp" line="715"/>
<location filename="../src/gui.cpp" line="740"/>
<source>Line: %1</source>
<translation>Řádka: %1</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="720"/>
<location filename="../src/gui.cpp" line="737"/>
<source>Error loading POI file:</source>
<translation>Soubor POI nelze načíst:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="831"/>
<location filename="../src/gui.cpp" line="848"/>
<source>Name</source>
<translation>Název</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="835"/>
<location filename="../src/gui.cpp" line="852"/>
<source>Tracks</source>
<translation>Cesty</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="220"/>
<location filename="../src/gui.cpp" line="548"/>
<location filename="../src/gui.cpp" line="222"/>
<location filename="../src/gui.cpp" line="565"/>
<source>About GPXSee</source>
<translation>O aplikaci GPXSee</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="485"/>
<location filename="../src/gui.cpp" line="502"/>
<source>Navigation</source>
<translation>Navigace</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="594"/>
<location filename="../src/gui.cpp" line="611"/>
<source>Map sources</source>
<translation>Mapové zdroje</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="605"/>
<location filename="../src/gui.cpp" line="622"/>
<source>POIs</source>
<translation>POI body</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="335"/>
<location filename="../src/gui.cpp" line="855"/>
<location filename="../src/gui.cpp" line="337"/>
<location filename="../src/gui.cpp" line="872"/>
<source>Distance</source>
<translation>Vzdálenost</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="342"/>
<location filename="../src/gui.cpp" line="857"/>
<location filename="../src/gui.cpp" line="344"/>
<location filename="../src/gui.cpp" line="466"/>
<location filename="../src/gui.cpp" line="874"/>
<source>Time</source>
<translation>Čas</translation>
</message>
@ -807,7 +808,7 @@
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="155"/>
<source>Moving Time</source>
<source>Moving time</source>
<translation>Čistý čas</translation>
</message>
<message>
@ -926,7 +927,7 @@
<translation>Rychlost</translation>
</message>
<message>
<location filename="../src/speedgraph.cpp" line="74"/>
<location filename="../src/speedgraph.cpp" line="78"/>
<source>km/h</source>
<translation>km/h</translation>
</message>
@ -941,7 +942,7 @@
<translation>Maximum</translation>
</message>
<message>
<location filename="../src/speedgraph.cpp" line="77"/>
<location filename="../src/speedgraph.cpp" line="81"/>
<source>mi/h</source>
<translation>mi/h</translation>
</message>
@ -999,12 +1000,12 @@
</message>
<message>
<location filename="../src/trackitem.cpp" line="17"/>
<source>Time</source>
<translation>Čas</translation>
<source>Total time</source>
<translation>Celkový čas</translation>
</message>
<message>
<location filename="../src/trackitem.cpp" line="19"/>
<source>Moving Time</source>
<source>Moving time</source>
<translation>Čistý čas</translation>
</message>
<message>

View File

@ -190,55 +190,55 @@
<context>
<name>GUI</name>
<message>
<location filename="../src/gui.cpp" line="552"/>
<location filename="../src/gui.cpp" line="569"/>
<source>GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at </source>
<translation>GPXSee distribueras under vilkoren för GNU General Public License version 3. För mer info om GPXSee, besök hemsidan </translation>
</message>
<message>
<location filename="../src/gui.cpp" line="616"/>
<location filename="../src/gui.cpp" line="633"/>
<source>Open file</source>
<translation>Öppna fil</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="706"/>
<location filename="../src/gui.cpp" line="723"/>
<source>Open POI file</source>
<translation>Öppna POI-fil</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="225"/>
<location filename="../src/gui.cpp" line="227"/>
<source>Open</source>
<translation>Öppna</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="209"/>
<location filename="../src/gui.cpp" line="211"/>
<source>Quit</source>
<translation>Avsluta</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="217"/>
<location filename="../src/gui.cpp" line="568"/>
<location filename="../src/gui.cpp" line="569"/>
<location filename="../src/gui.cpp" line="219"/>
<location filename="../src/gui.cpp" line="585"/>
<location filename="../src/gui.cpp" line="586"/>
<source>Keyboard controls</source>
<translation>Snabbtangenter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="241"/>
<location filename="../src/gui.cpp" line="243"/>
<source>Close</source>
<translation>Stäng</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="247"/>
<location filename="../src/gui.cpp" line="249"/>
<source>Reload</source>
<translation>Uppdatera</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="480"/>
<location filename="../src/gui.cpp" line="497"/>
<source>Show</source>
<translation>Visa</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="401"/>
<location filename="../src/gui.cpp" line="474"/>
<location filename="../src/gui.cpp" line="415"/>
<location filename="../src/gui.cpp" line="491"/>
<source>File</source>
<translation>Arkiv</translation>
</message>
@ -258,203 +258,203 @@
<translation>NMEA-filer (*.nmea)</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="215"/>
<location filename="../src/gui.cpp" line="591"/>
<location filename="../src/gui.cpp" line="592"/>
<location filename="../src/gui.cpp" line="217"/>
<location filename="../src/gui.cpp" line="608"/>
<location filename="../src/gui.cpp" line="609"/>
<source>Data sources</source>
<translation>Datakällor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="255"/>
<location filename="../src/gui.cpp" line="257"/>
<source>Load POI file</source>
<translation>Läs in POI-fil</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="258"/>
<location filename="../src/gui.cpp" line="260"/>
<source>Close POI files</source>
<translation>Stäng POI-filer</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="260"/>
<location filename="../src/gui.cpp" line="262"/>
<source>Overlap POIs</source>
<translation>Överlappa POI:er</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="264"/>
<location filename="../src/gui.cpp" line="266"/>
<source>Show POI labels</source>
<translation>Visa POI-namn</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="269"/>
<location filename="../src/gui.cpp" line="271"/>
<source>Show POIs</source>
<translation>Visa POI:er</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="278"/>
<location filename="../src/gui.cpp" line="280"/>
<source>Show map</source>
<translation>Visa karta</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="284"/>
<location filename="../src/gui.cpp" line="286"/>
<source>Clear tile cache</source>
<translation>Rensa kart-cache</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="293"/>
<location filename="../src/gui.cpp" line="297"/>
<location filename="../src/gui.cpp" line="580"/>
<location filename="../src/gui.cpp" line="295"/>
<location filename="../src/gui.cpp" line="299"/>
<location filename="../src/gui.cpp" line="597"/>
<source>Next map</source>
<translation>Nästa karta</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="304"/>
<location filename="../src/gui.cpp" line="306"/>
<source>Show tracks</source>
<translation>Visa spår</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="308"/>
<location filename="../src/gui.cpp" line="310"/>
<source>Show routes</source>
<translation>Visa rutter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="312"/>
<location filename="../src/gui.cpp" line="314"/>
<source>Show waypoints</source>
<translation>Visa vägpunkter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="316"/>
<location filename="../src/gui.cpp" line="318"/>
<source>Waypoint labels</source>
<translation>Vägpunktsnamn</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="327"/>
<location filename="../src/gui.cpp" line="329"/>
<source>Show graphs</source>
<translation>Visa diagram</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="349"/>
<location filename="../src/gui.cpp" line="351"/>
<source>Show grid</source>
<translation>Visa stödlinjer</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="355"/>
<location filename="../src/gui.cpp" line="357"/>
<source>Show toolbars</source>
<translation>Visa verktygsfält</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="361"/>
<location filename="../src/gui.cpp" line="363"/>
<source>Total time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui.cpp" line="368"/>
<location filename="../src/gui.cpp" line="876"/>
<source>Moving time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui.cpp" line="375"/>
<source>Metric</source>
<translation>Meter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="366"/>
<location filename="../src/gui.cpp" line="380"/>
<source>Imperial</source>
<translation>Imperial</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="372"/>
<location filename="../src/gui.cpp" line="386"/>
<source>Fullscreen mode</source>
<translation>Helskärmsläge</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="378"/>
<location filename="../src/gui.cpp" line="392"/>
<source>Options...</source>
<translation>Alternativ...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="383"/>
<location filename="../src/gui.cpp" line="397"/>
<source>Next</source>
<translation>Nästa</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="386"/>
<location filename="../src/gui.cpp" line="400"/>
<source>Previous</source>
<translation>Föregående</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="390"/>
<location filename="../src/gui.cpp" line="404"/>
<source>Last</source>
<translation>Sista</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="393"/>
<location filename="../src/gui.cpp" line="407"/>
<source>First</source>
<translation>Första</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="415"/>
<location filename="../src/gui.cpp" line="429"/>
<source>Map</source>
<translation>Karta</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="422"/>
<location filename="../src/gui.cpp" line="436"/>
<source>Graph</source>
<translation>Diagram</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="430"/>
<location filename="../src/gui.cpp" line="444"/>
<source>POI</source>
<translation>POI</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="431"/>
<location filename="../src/gui.cpp" line="445"/>
<source>POI files</source>
<translation>POI-filer</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="442"/>
<location filename="../src/gui.cpp" line="456"/>
<source>Data</source>
<translation>Data</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="443"/>
<location filename="../src/gui.cpp" line="457"/>
<source>Display</source>
<translation>Visa</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="451"/>
<location filename="../src/gui.cpp" line="465"/>
<source>Settings</source>
<translation>Inställningar</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="452"/>
<location filename="../src/gui.cpp" line="469"/>
<source>Units</source>
<translation>Enhet</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="461"/>
<location filename="../src/gui.cpp" line="478"/>
<source>Help</source>
<translation>Hjälp</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="581"/>
<location filename="../src/gui.cpp" line="598"/>
<source>Previous map</source>
<translation>Föregående karta</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="859"/>
<location filename="../src/gui.cpp" line="1078"/>
<source>Moving Time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1065"/>
<location filename="../src/gui.cpp" line="1082"/>
<source>No files loaded</source>
<translation>Inga filer inlästa</translation>
</message>
<message numerus="yes">
<location filename="../src/gui.cpp" line="1069"/>
<location filename="../src/gui.cpp" line="1086"/>
<source>%n files</source>
<translation>
<numerusform>%n filer</numerusform>
<numerusform>%n filer</numerusform>
</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1077"/>
<source>Total Time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/gui.cpp" line="105"/>
<source>GPX files (*.gpx)</source>
@ -481,43 +481,43 @@
<translation>Alla filer (*)</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="845"/>
<location filename="../src/gui.cpp" line="848"/>
<location filename="../src/gui.cpp" line="862"/>
<location filename="../src/gui.cpp" line="865"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="837"/>
<location filename="../src/gui.cpp" line="854"/>
<source>Routes</source>
<translation>Rutter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="571"/>
<location filename="../src/gui.cpp" line="588"/>
<source>Next file</source>
<translation>Nästa fil</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="549"/>
<location filename="../src/gui.cpp" line="566"/>
<source>Version </source>
<translation>Version </translation>
</message>
<message>
<location filename="../src/gui.cpp" line="230"/>
<location filename="../src/gui.cpp" line="232"/>
<source>Print...</source>
<translation>Skriv ut...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="235"/>
<location filename="../src/gui.cpp" line="237"/>
<source>Export to PDF...</source>
<translation>Exportera till PDF...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="839"/>
<location filename="../src/gui.cpp" line="856"/>
<source>Waypoints</source>
<translation>Vägpunkter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="573"/>
<location filename="../src/gui.cpp" line="590"/>
<source>Previous file</source>
<translation>Föregående fil</translation>
</message>
@ -527,96 +527,97 @@
<translation>Filer som stöds (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx)</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="320"/>
<location filename="../src/gui.cpp" line="322"/>
<source>Route waypoints</source>
<translation>Ruttvägpunkter</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="575"/>
<location filename="../src/gui.cpp" line="592"/>
<source>First file</source>
<translation>Första filen</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="577"/>
<location filename="../src/gui.cpp" line="594"/>
<source>Last file</source>
<translation>Sista filen</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="578"/>
<location filename="../src/gui.cpp" line="595"/>
<source>Append modifier</source>
<translation>Tillämpa modifierare</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="595"/>
<location filename="../src/gui.cpp" line="612"/>
<source>Map (tiles) source URLs are read on program startup from the following file:</source>
<translation>Kartadresser (URL:er) läses in vid programstart, från följande fil:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="598"/>
<location filename="../src/gui.cpp" line="615"/>
<source>The file format is one map entry per line, consisting of the map name and tiles URL delimited by a TAB character. The tile X and Y coordinates are replaced with $x and $y in the URL and the zoom level is replaced with $z. An example map file could look like:</source>
<translation>Filformatet är en kartpost per rad, bestående av kartnamn och kartrutans URL, avgränsade med ett TAB-tecken. Kartrutans X- och Y-koordinater ersätts med $x och $y i URL:en och zoomnivån ersätts med $z. Exempel en kartfil kan se ut här:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="606"/>
<location filename="../src/gui.cpp" line="623"/>
<source>To make GPXSee load a POI file automatically on startup, add the file to the following directory:</source>
<translation>För att GPXSee skall läsa in en POI-fil automatiskt vid programstart, läggs filen i följande mapp:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="695"/>
<location filename="../src/gui.cpp" line="712"/>
<source>Error loading data file:</source>
<translation>Fel vid inläsning av datafil:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="698"/>
<location filename="../src/gui.cpp" line="723"/>
<location filename="../src/gui.cpp" line="715"/>
<location filename="../src/gui.cpp" line="740"/>
<source>Line: %1</source>
<translation>Rad: %1</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="720"/>
<location filename="../src/gui.cpp" line="737"/>
<source>Error loading POI file:</source>
<translation>Fel vid inläsning av POI-fil:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="831"/>
<location filename="../src/gui.cpp" line="848"/>
<source>Name</source>
<translation>Namn</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="835"/>
<location filename="../src/gui.cpp" line="852"/>
<source>Tracks</source>
<translation>Spår</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="220"/>
<location filename="../src/gui.cpp" line="548"/>
<location filename="../src/gui.cpp" line="222"/>
<location filename="../src/gui.cpp" line="565"/>
<source>About GPXSee</source>
<translation>Om GPXSee</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="485"/>
<location filename="../src/gui.cpp" line="502"/>
<source>Navigation</source>
<translation>Navigation</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="594"/>
<location filename="../src/gui.cpp" line="611"/>
<source>Map sources</source>
<translation>Kartkällor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="605"/>
<location filename="../src/gui.cpp" line="622"/>
<source>POIs</source>
<translation>POI:er</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="335"/>
<location filename="../src/gui.cpp" line="855"/>
<location filename="../src/gui.cpp" line="337"/>
<location filename="../src/gui.cpp" line="872"/>
<source>Distance</source>
<translation>Avstånd</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="342"/>
<location filename="../src/gui.cpp" line="857"/>
<location filename="../src/gui.cpp" line="344"/>
<location filename="../src/gui.cpp" line="466"/>
<location filename="../src/gui.cpp" line="874"/>
<source>Time</source>
<translation>Tid</translation>
</message>
@ -806,7 +807,7 @@
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="155"/>
<source>Moving Time</source>
<source>Moving time</source>
<translation type="unfinished"></translation>
</message>
<message>
@ -925,7 +926,7 @@
<translation>Hastighet</translation>
</message>
<message>
<location filename="../src/speedgraph.cpp" line="74"/>
<location filename="../src/speedgraph.cpp" line="78"/>
<source>km/h</source>
<translation>km/h</translation>
</message>
@ -940,7 +941,7 @@
<translation>Max</translation>
</message>
<message>
<location filename="../src/speedgraph.cpp" line="77"/>
<location filename="../src/speedgraph.cpp" line="81"/>
<source>mi/h</source>
<translation>mi/h</translation>
</message>
@ -998,12 +999,12 @@
</message>
<message>
<location filename="../src/trackitem.cpp" line="17"/>
<source>Time</source>
<translation>Tid</translation>
<source>Total time</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/trackitem.cpp" line="19"/>
<source>Moving Time</source>
<source>Moving time</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1,28 +0,0 @@
#include "fliplabel.h"
void FlipLabel::addItem(const QString &key, const QString &value)
{
_labels.insert(key, value);
if (_labels.size() == 1)
_it = _labels.constBegin();
QLabel::setText(_it.value());
QLabel::setToolTip(_it.key());
}
void FlipLabel::mousePressEvent(QMouseEvent *event)
{
Q_UNUSED(event);
if (!_labels.count())
return;
_it++;
if (_it == _labels.constEnd())
_it = _labels.constBegin();
QLabel::setText(_it.value());
QLabel::setToolTip(_it.key());
}

View File

@ -1,22 +0,0 @@
#ifndef FLIPLABEL_H
#define FLIPLABEL_H
#include <QLabel>
#include <QMap>
class FlipLabel : public QLabel
{
public:
FlipLabel(QWidget *parent = 0) : QLabel(parent) {}
void addItem(const QString &key, const QString &value);
protected:
void mousePressEvent(QMouseEvent *event);
private:
QMap<QString, QString> _labels;
QMap<QString, QString>::const_iterator _it;
};
#endif // FLIPLABEL_H

View File

@ -4,6 +4,7 @@
#include <QList>
#include "graphview.h"
#include "units.h"
#include "timetype.h"
class Data;
class PathItem;
@ -18,10 +19,11 @@ public:
virtual QString label() const = 0;
virtual void loadData(const Data &data, const QList<PathItem *> &paths) = 0;
virtual void clear() = 0;
virtual void setUnits(enum Units units) = 0;
virtual void showTracks(bool show) = 0;
virtual void showRoutes(bool show) = 0;
virtual void clear() {}
virtual void setUnits(enum Units units) {Q_UNUSED(units)}
virtual void setTimeType(enum TimeType type) {Q_UNUSED(type)}
virtual void showTracks(bool show) {Q_UNUSED(show)}
virtual void showRoutes(bool show) {Q_UNUSED(show)}
};
#endif // GRAPHTAB_H

View File

@ -41,7 +41,6 @@
#include "cpuarch.h"
#include "graphtab.h"
#include "format.h"
#include "fliplabel.h"
#include "gui.h"
@ -361,6 +360,18 @@ void GUI::createActions()
SLOT(showToolbars(bool)));
ag = new QActionGroup(this);
ag->setExclusive(true);
_totalTimeAction = new QAction(tr("Total time"), this);
_totalTimeAction->setCheckable(true);
_totalTimeAction->setActionGroup(ag);
connect(_totalTimeAction, SIGNAL(triggered()), this,
SLOT(setTotalTime()));
_movingTimeAction = new QAction(tr("Moving time"), this);
_movingTimeAction->setCheckable(true);
_movingTimeAction->setActionGroup(ag);
connect(_movingTimeAction, SIGNAL(triggered()), this,
SLOT(setMovingTime()));
ag = new QActionGroup(this);
ag->setExclusive(true);
_metricUnitsAction = new QAction(tr("Metric"), this);
_metricUnitsAction->setCheckable(true);
_metricUnitsAction->setActionGroup(ag);
@ -452,6 +463,9 @@ void GUI::createMenus()
dataMenu->addAction(_showWaypointsAction);
QMenu *settingsMenu = menuBar()->addMenu(tr("Settings"));
QMenu *timeMenu = settingsMenu->addMenu(tr("Time"));
timeMenu->addAction(_totalTimeAction);
timeMenu->addAction(_movingTimeAction);
QMenu *unitsMenu = settingsMenu->addMenu(tr("Units"));
unitsMenu->addAction(_metricUnitsAction);
unitsMenu->addAction(_imperialUnitsAction);
@ -534,7 +548,7 @@ void GUI::createStatusBar()
{
_fileNameLabel = new QLabel();
_distanceLabel = new QLabel();
_timeLabel = new FlipLabel();
_timeLabel = new QLabel();
_distanceLabel->setAlignment(Qt::AlignHCenter);
_timeLabel->setAlignment(Qt::AlignHCenter);
@ -859,7 +873,7 @@ void GUI::plot(QPrinter *printer)
if (t > 0 && _options.printTime)
info.insert(tr("Time"), Format::timeSpan(t));
if (tm > 0 && _options.printMovingTime)
info.insert(tr("Moving Time"), Format::timeSpan(tm));
info.insert(tr("Moving time"), Format::timeSpan(tm));
ratio = p.paintEngine()->paintDevice()->logicalDpiX() / SCREEN_DPI;
@ -1077,9 +1091,10 @@ void GUI::updateStatusBarInfo()
_distanceLabel->clear();
if (time() > 0) {
_timeLabel->addItem(tr("Total Time"), Format::timeSpan(time()));
_timeLabel->addItem(tr("Moving Time"), Format::timeSpan(movingTime())
+ "<sub>M</sub>");
if (_movingTimeAction->isChecked())
_timeLabel->setText(Format::timeSpan(movingTime()));
else
_timeLabel->setText(Format::timeSpan(time()));
} else
_timeLabel->clear();
}
@ -1190,6 +1205,14 @@ void GUI::updatePathView()
+ _pathView->waypointCount()));
}
void GUI::setTimeType(TimeType type)
{
for (int i = 0; i <_tabs.count(); i++)
_tabs.at(i)->setTimeType(type);
updateStatusBarInfo();
}
void GUI::setUnits(Units units)
{
_export.units = units;
@ -1325,6 +1348,10 @@ void GUI::writeSettings()
settings.endGroup();
settings.beginGroup(SETTINGS_SETTINGS_GROUP);
if ((_movingTimeAction->isChecked() ? Moving : Total) !=
TIME_TYPE_DEFAULT)
settings.setValue(TIME_TYPE_SETTING, _movingTimeAction->isChecked()
? Moving : Total);
if ((_imperialUnitsAction->isChecked() ? Imperial : Metric) !=
UNITS_DEFAULT)
settings.setValue(UNITS_SETTING, _imperialUnitsAction->isChecked()
@ -1455,6 +1482,14 @@ void GUI::readSettings()
settings.endGroup();
settings.beginGroup(SETTINGS_SETTINGS_GROUP);
if (settings.value(TIME_TYPE_SETTING, TIME_TYPE_DEFAULT).toInt()
== Moving) {
setTimeType(Moving);
_movingTimeAction->setChecked(true);
} else {
setTimeType(Total);
_totalTimeAction->setChecked(true);
}
if (settings.value(UNITS_SETTING, UNITS_DEFAULT).toInt() == Imperial) {
setUnits(Imperial);
_imperialUnitsAction->setChecked(true);

View File

@ -7,6 +7,7 @@
#include <QDate>
#include <QPrinter>
#include "units.h"
#include "timetype.h"
#include "graph.h"
#include "poi.h"
#include "exportdialog.h"
@ -18,7 +19,6 @@ class QTabWidget;
class QActionGroup;
class QAction;
class QLabel;
class FlipLabel;
class QSignalMapper;
class QPrinter;
class FileBrowser;
@ -68,6 +68,8 @@ private slots:
void last();
void first();
void setTotalTime() {setTimeType(Total);}
void setMovingTime() {setTimeType(Moving);}
void setMetricUnits() {setUnits(Metric);}
void setImperialUnits() {setUnits(Imperial);}
void setDistanceGraph() {setGraphType(Distance);}
@ -103,7 +105,9 @@ private:
void updateGraphTabs();
void updatePathView();
TimeType timeType() const;
Units units() const;
void setTimeType(TimeType type);
void setUnits(Units units);
void setGraphType(GraphType type);
@ -157,6 +161,8 @@ private:
QAction *_firstAction;
QAction *_metricUnitsAction;
QAction *_imperialUnitsAction;
QAction *_totalTimeAction;
QAction *_movingTimeAction;
QAction *_nextMapAction;
QAction *_prevMapAction;
QAction *_showTracksAction;
@ -172,7 +178,7 @@ private:
QLabel *_fileNameLabel;
QLabel *_distanceLabel;
FlipLabel *_timeLabel;
QLabel *_timeLabel;
PathView *_pathView;
QTabWidget *_graphTabWidget;

View File

@ -13,9 +13,7 @@ public:
QString label() const {return tr("Heart rate");}
void loadData(const Data &data, const QList<PathItem *> &paths);
void clear();
void setUnits(enum Units) {}
void showTracks(bool show);
void showRoutes(bool show) {Q_UNUSED(show);}
private:
qreal avg() const;

View File

@ -152,7 +152,7 @@ QWidget *OptionsDialog::createExportPage()
_distance->setChecked(_options->printDistance);
_time = new QCheckBox(tr("Time"));
_time->setChecked(_options->printTime);
_movingTime = new QCheckBox(tr("Moving Time"));
_movingTime = new QCheckBox(tr("Moving time"));
_movingTime->setChecked(_options->printMovingTime);
_itemCount = new QCheckBox(tr("Item count (>1)"));
_itemCount->setChecked(_options->printItemCount);

View File

@ -13,9 +13,7 @@ public:
QString label() const {return tr("Power");}
void loadData(const Data &data, const QList<PathItem *> &paths);
void clear();
void setUnits(enum Units) {}
void showTracks(bool show);
void showRoutes(bool show) {Q_UNUSED(show);}
private:
qreal avg() const;

View File

@ -11,6 +11,8 @@
#define WINDOW_POS_DEFAULT QPoint(10, 10)
#define SETTINGS_SETTINGS_GROUP "Settings"
#define TIME_TYPE_SETTING "timeType"
#define TIME_TYPE_DEFAULT Total
#define UNITS_SETTING "units"
#define UNITS_DEFAULT (IMPERIAL_UNITS() ? Imperial : Metric)
#define SHOW_TOOLBARS_SETTING "toolbar"

View File

@ -36,6 +36,8 @@ void SpeedGraph::loadData(const Data &data, const QList<PathItem *> &paths)
_avg.append(QPointF(data.tracks().at(i)->distance(),
data.tracks().at(i)->distance() / data.tracks().at(i)->time()));
_avgM.append(QPointF(data.tracks().at(i)->distance(),
data.tracks().at(i)->distance() / data.tracks().at(i)->movingTime()));
GraphView::loadGraph(graph, paths.at(i));
}
@ -52,8 +54,9 @@ qreal SpeedGraph::avg() const
{
qreal sum = 0, w = 0;
QList<QPointF>::const_iterator it;
const QList<QPointF> &list = (_timeType == Moving) ? _avgM : _avg;
for (it = _avg.begin(); it != _avg.end(); it++) {
for (it = list.begin(); it != list.end(); it++) {
sum += it->y() * it->x();
w += it->x();
}
@ -64,6 +67,7 @@ qreal SpeedGraph::avg() const
void SpeedGraph::clear()
{
_avg.clear();
_avgM.clear();
GraphView::clear();
}
@ -90,6 +94,14 @@ void SpeedGraph::setUnits(enum Units units)
redraw();
}
void SpeedGraph::setTimeType(enum TimeType type)
{
_timeType = type;
setInfo();
redraw();
}
void SpeedGraph::showTracks(bool show)
{
_showTracks = show;

View File

@ -15,8 +15,8 @@ public:
void loadData(const Data &data, const QList<PathItem *> &paths);
void clear();
void setUnits(enum Units units);
void setTimeType(enum TimeType type);
void showTracks(bool show);
void showRoutes(bool show) {Q_UNUSED(show);}
private:
qreal avg() const;
@ -25,8 +25,10 @@ private:
void setInfo();
QList<QPointF> _avg;
QList<QPointF> _avgM;
enum Units _units;
enum TimeType _timeType;
bool _showTracks;
};

View File

@ -15,7 +15,6 @@ public:
void clear();
void setUnits(enum Units units);
void showTracks(bool show);
void showRoutes(bool show) {Q_UNUSED(show);}
private:
qreal avg() const;

9
src/timetype.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef TIMETYPE_H
#define TIMETYPE_H
enum TimeType {
Total,
Moving
};
#endif // TIMETYPE_H

View File

@ -14,9 +14,9 @@ QString TrackItem::toolTip()
tt.insert(tr("Description"), _desc);
tt.insert(tr("Distance"), Format::distance(_distance.last(), _units));
if (_time > 0)
tt.insert(tr("Time"), Format::timeSpan(_time));
tt.insert(tr("Total time"), Format::timeSpan(_time));
if (_movingTime > 0)
tt.insert(tr("Moving Time"), Format::timeSpan(_movingTime));
tt.insert(tr("Moving time"), Format::timeSpan(_movingTime));
if (!_date.isNull())
tt.insert(tr("Date"), _date.toString(Qt::SystemLocaleShortDate));