1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 03:42:09 +01:00

Added map background color setting.

Redesigned appearance settings tab.
This commit is contained in:
Martin Tůma 2017-09-10 00:09:39 +02:00
parent 84bcf07bd4
commit 47683e5447
9 changed files with 281 additions and 250 deletions

View File

@ -391,7 +391,7 @@
</message>
<message>
<location filename="../src/gui.cpp" line="443"/>
<location filename="../src/gui.cpp" line="1010"/>
<location filename="../src/gui.cpp" line="1012"/>
<source>Moving time</source>
<translation>Čistý čas</translation>
</message>
@ -536,33 +536,33 @@
<translation>Offline mapy jsou načítány při startu aplikace z následujícího adresáře:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1203"/>
<location filename="../src/gui.cpp" line="1205"/>
<source>Open map file</source>
<translation>Otevřít mapový soubor</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1239"/>
<location filename="../src/gui.cpp" line="1241"/>
<source>No files loaded</source>
<translation>Nejsou načteny žádné soubory</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="996"/>
<location filename="../src/gui.cpp" line="999"/>
<location filename="../src/gui.cpp" line="998"/>
<location filename="../src/gui.cpp" line="1001"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="988"/>
<location filename="../src/gui.cpp" line="990"/>
<source>Routes</source>
<translation>Trasy</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1224"/>
<location filename="../src/gui.cpp" line="1226"/>
<source>Error loading map:</source>
<translation>Mapu nelze načíst:</translation>
</message>
<message numerus="yes">
<location filename="../src/gui.cpp" line="1243"/>
<location filename="../src/gui.cpp" line="1245"/>
<source>%n files</source>
<translation>
<numerusform>%n soubor</numerusform>
@ -591,7 +591,7 @@
<translation>Exportovat do PDF...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="990"/>
<location filename="../src/gui.cpp" line="992"/>
<source>Waypoints</source>
<translation>Navigační body</translation>
</message>
@ -651,12 +651,12 @@
<translation>Soubor POI nelze načíst:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="982"/>
<location filename="../src/gui.cpp" line="984"/>
<source>Name</source>
<translation>Název</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="986"/>
<location filename="../src/gui.cpp" line="988"/>
<source>Tracks</source>
<translation>Cesty</translation>
</message>
@ -678,14 +678,14 @@
</message>
<message>
<location filename="../src/gui.cpp" line="412"/>
<location filename="../src/gui.cpp" line="1006"/>
<location filename="../src/gui.cpp" line="1008"/>
<source>Distance</source>
<translation>Vzdálenost</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="419"/>
<location filename="../src/gui.cpp" line="543"/>
<location filename="../src/gui.cpp" line="1008"/>
<location filename="../src/gui.cpp" line="1010"/>
<source>Time</source>
<translation>Čas</translation>
</message>
@ -789,282 +789,286 @@
<translation>Posun palety:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="76"/>
<location filename="../src/optionsdialog.cpp" line="50"/>
<source>Track width:</source>
<translation>Šířka cest:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="77"/>
<location filename="../src/optionsdialog.cpp" line="51"/>
<source>Track style:</source>
<translation>Styl cest:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="79"/>
<location filename="../src/optionsdialog.cpp" line="53"/>
<source>Tracks</source>
<translation>Cesty</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="89"/>
<location filename="../src/optionsdialog.cpp" line="63"/>
<source>Route width:</source>
<translation>Šířka tras:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="90"/>
<location filename="../src/optionsdialog.cpp" line="64"/>
<source>Route style:</source>
<translation>Styl tras:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="92"/>
<location filename="../src/optionsdialog.cpp" line="66"/>
<source>Routes</source>
<translation>Trasy</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="96"/>
<location filename="../src/optionsdialog.cpp" line="129"/>
<location filename="../src/optionsdialog.cpp" line="70"/>
<location filename="../src/optionsdialog.cpp" line="109"/>
<source>Use anti-aliasing</source>
<translation>Vyhlazovat hrany</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="127"/>
<location filename="../src/optionsdialog.cpp" line="107"/>
<source>Line width:</source>
<translation>Šířka čar:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="143"/>
<location filename="../src/optionsdialog.cpp" line="40"/>
<source>Colors</source>
<translation>Barvy</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="40"/>
<location filename="../src/optionsdialog.cpp" line="144"/>
<location filename="../src/optionsdialog.cpp" line="128"/>
<source>Background color:</source>
<translation>Barva pozadí:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="141"/>
<source>Paths</source>
<translation>Trasy</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="47"/>
<location filename="../src/optionsdialog.cpp" line="129"/>
<source>Map opacity:</source>
<translation>Neprůhlednost mapy:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="49"/>
<location filename="../src/optionsdialog.cpp" line="143"/>
<source>Map</source>
<translation>Mapa</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="145"/>
<location filename="../src/optionsdialog.cpp" line="336"/>
<location filename="../src/optionsdialog.cpp" line="142"/>
<location filename="../src/optionsdialog.cpp" line="334"/>
<source>Graphs</source>
<translation>Grafy</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="152"/>
<location filename="../src/optionsdialog.cpp" line="150"/>
<source>Moving average window size</source>
<translation>Velikost okna klouzavého průměru</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="171"/>
<location filename="../src/optionsdialog.cpp" line="169"/>
<source>Elevation:</source>
<translation>Výška:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="172"/>
<location filename="../src/optionsdialog.cpp" line="170"/>
<source>Speed:</source>
<translation>Rychlost:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="173"/>
<location filename="../src/optionsdialog.cpp" line="171"/>
<source>Heart rate:</source>
<translation>Tep:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="174"/>
<location filename="../src/optionsdialog.cpp" line="172"/>
<source>Cadence:</source>
<translation>Kadence:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="175"/>
<location filename="../src/optionsdialog.cpp" line="173"/>
<source>Power:</source>
<translation>Výkon:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="177"/>
<location filename="../src/optionsdialog.cpp" line="175"/>
<source>Smoothing</source>
<translation>Vyhlazování</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="181"/>
<location filename="../src/optionsdialog.cpp" line="179"/>
<source>Eliminate GPS outliers</source>
<translation>Odstarnit odlehlé GPS záznamy</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="187"/>
<location filename="../src/optionsdialog.cpp" line="185"/>
<source>Outlier elimination</source>
<translation>Odstranění odlehlých hodnot</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="194"/>
<location filename="../src/optionsdialog.cpp" line="192"/>
<source>Smoothing:</source>
<translation>Vyhlazování:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="217"/>
<location filename="../src/optionsdialog.cpp" line="215"/>
<source>mi/h</source>
<translation>mi/h</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="220"/>
<location filename="../src/optionsdialog.cpp" line="218"/>
<source>km/h</source>
<translation>km/h</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="224"/>
<location filename="../src/optionsdialog.cpp" line="222"/>
<source>s</source>
<translation>s</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="228"/>
<location filename="../src/optionsdialog.cpp" line="226"/>
<source>Minimal speed:</source>
<translation>Minimální rychlost:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="229"/>
<location filename="../src/optionsdialog.cpp" line="227"/>
<source>Minimal duration:</source>
<translation>Minimální doba trvání:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="236"/>
<location filename="../src/optionsdialog.cpp" line="234"/>
<source>Filtering</source>
<translation>Filtrování</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="237"/>
<location filename="../src/optionsdialog.cpp" line="235"/>
<source>Pause detection</source>
<translation>Detekce přestávek</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="249"/>
<location filename="../src/optionsdialog.cpp" line="247"/>
<source>mi</source>
<translation>mi</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="252"/>
<location filename="../src/optionsdialog.cpp" line="250"/>
<source>km</source>
<translation>km</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="256"/>
<location filename="../src/optionsdialog.cpp" line="254"/>
<source>POI radius:</source>
<translation>POI radius:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="262"/>
<location filename="../src/optionsdialog.cpp" line="392"/>
<location filename="../src/optionsdialog.cpp" line="260"/>
<location filename="../src/optionsdialog.cpp" line="390"/>
<source>POI</source>
<translation>POI</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="269"/>
<location filename="../src/optionsdialog.cpp" line="267"/>
<source>WYSIWYG</source>
<translation>WYSIWYG</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="270"/>
<location filename="../src/optionsdialog.cpp" line="268"/>
<source>High-Resolution</source>
<translation>Vysoké rozlišení</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="275"/>
<location filename="../src/optionsdialog.cpp" line="273"/>
<source>The printed area is approximately the display area. The map zoom level does not change.</source>
<translation>Oblast tisku přibližně odpovídá zobrazované oblasti. Přiblížení mapy se nemění.</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="277"/>
<location filename="../src/optionsdialog.cpp" line="275"/>
<source>The zoom level will be changed so that the whole content (tracks/waypoints) fits to the printed area and the map resolution is as close as possible to the print resolution.</source>
<translation>Přiblížení mapy bude upraveno tak, aby se celý obsah (trasy/body) vešel do oblasti tisku a rozlišení mapy bylo co nejblíže rozlišení tisku.</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="299"/>
<location filename="../src/optionsdialog.cpp" line="297"/>
<source>Name</source>
<translation>Název</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="301"/>
<location filename="../src/optionsdialog.cpp" line="299"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="303"/>
<location filename="../src/optionsdialog.cpp" line="301"/>
<source>Distance</source>
<translation>Vzdálenost</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="305"/>
<location filename="../src/optionsdialog.cpp" line="303"/>
<source>Time</source>
<translation>Čas</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="307"/>
<location filename="../src/optionsdialog.cpp" line="305"/>
<source>Moving time</source>
<translation>Čistý čas</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="309"/>
<location filename="../src/optionsdialog.cpp" line="307"/>
<source>Item count (&gt;1)</source>
<translation>Počet objektů (&gt;1)</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="324"/>
<location filename="../src/optionsdialog.cpp" line="322"/>
<source>Separate graph page</source>
<translation>Samostatná stránka s grafy</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="334"/>
<location filename="../src/optionsdialog.cpp" line="332"/>
<source>Print mode</source>
<translation>Režim tisku</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="335"/>
<location filename="../src/optionsdialog.cpp" line="333"/>
<source>Header</source>
<translation>Záhlaví</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="343"/>
<location filename="../src/optionsdialog.cpp" line="341"/>
<source>Use OpenGL</source>
<translation>Používat OpenGL</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="355"/>
<location filename="../src/optionsdialog.cpp" line="353"/>
<source>MB</source>
<translation>MB</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="359"/>
<location filename="../src/optionsdialog.cpp" line="357"/>
<source>Image cache size:</source>
<translation>Mezipaměť obrázků:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="372"/>
<location filename="../src/optionsdialog.cpp" line="395"/>
<location filename="../src/optionsdialog.cpp" line="370"/>
<location filename="../src/optionsdialog.cpp" line="393"/>
<source>System</source>
<translation>Systém</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="389"/>
<location filename="../src/optionsdialog.cpp" line="387"/>
<source>Appearance</source>
<translation>Vzhled</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="391"/>
<location filename="../src/optionsdialog.cpp" line="389"/>
<source>Data</source>
<translation>Data</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="393"/>
<location filename="../src/optionsdialog.cpp" line="391"/>
<source>Print &amp; Export</source>
<translation>Tisk a export</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="422"/>
<location filename="../src/optionsdialog.cpp" line="420"/>
<source>Options</source>
<translation>Nastavení</translation>
</message>

View File

@ -391,7 +391,7 @@
</message>
<message>
<location filename="../src/gui.cpp" line="443"/>
<location filename="../src/gui.cpp" line="1010"/>
<location filename="../src/gui.cpp" line="1012"/>
<source>Moving time</source>
<translation>Bewegungszeit</translation>
</message>
@ -541,22 +541,22 @@
<translation>Offlinekarten werden zu Programmstart aus dem folgenden Verzeichnis geladen:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1203"/>
<location filename="../src/gui.cpp" line="1205"/>
<source>Open map file</source>
<translation>Karte Datei öffnen</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1224"/>
<location filename="../src/gui.cpp" line="1226"/>
<source>Error loading map:</source>
<translation>Fehler beim Laden der Karte-Datei:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1239"/>
<location filename="../src/gui.cpp" line="1241"/>
<source>No files loaded</source>
<translation>Keine Dateien geladen</translation>
</message>
<message numerus="yes">
<location filename="../src/gui.cpp" line="1243"/>
<location filename="../src/gui.cpp" line="1245"/>
<source>%n files</source>
<translation>
<numerusform>%n Datei</numerusform>
@ -564,13 +564,13 @@
</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="996"/>
<location filename="../src/gui.cpp" line="999"/>
<location filename="../src/gui.cpp" line="998"/>
<location filename="../src/gui.cpp" line="1001"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="988"/>
<location filename="../src/gui.cpp" line="990"/>
<source>Routes</source>
<translation>Routen</translation>
</message>
@ -595,7 +595,7 @@
<translation>Als PDF exportieren...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="990"/>
<location filename="../src/gui.cpp" line="992"/>
<source>Waypoints</source>
<translation>Wegpunkte</translation>
</message>
@ -650,12 +650,12 @@
<translation>Fehler beim Laden der POI-Datei:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="982"/>
<location filename="../src/gui.cpp" line="984"/>
<source>Name</source>
<translation>Name</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="986"/>
<location filename="../src/gui.cpp" line="988"/>
<source>Tracks</source>
<translation>Strecken</translation>
</message>
@ -677,14 +677,14 @@
</message>
<message>
<location filename="../src/gui.cpp" line="412"/>
<location filename="../src/gui.cpp" line="1006"/>
<location filename="../src/gui.cpp" line="1008"/>
<source>Distance</source>
<translation>Distanz</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="419"/>
<location filename="../src/gui.cpp" line="543"/>
<location filename="../src/gui.cpp" line="1008"/>
<location filename="../src/gui.cpp" line="1010"/>
<source>Time</source>
<translation>Zeit</translation>
</message>
@ -788,282 +788,286 @@
<translation>Palettenverschiebung:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="76"/>
<location filename="../src/optionsdialog.cpp" line="50"/>
<source>Track width:</source>
<translation>Streckenbreite:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="77"/>
<location filename="../src/optionsdialog.cpp" line="51"/>
<source>Track style:</source>
<translation>Streckenstil:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="79"/>
<location filename="../src/optionsdialog.cpp" line="53"/>
<source>Tracks</source>
<translation>Strecken</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="89"/>
<location filename="../src/optionsdialog.cpp" line="63"/>
<source>Route width:</source>
<translation>Routenbreite:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="90"/>
<location filename="../src/optionsdialog.cpp" line="64"/>
<source>Route style:</source>
<translation>Routenstil:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="92"/>
<location filename="../src/optionsdialog.cpp" line="66"/>
<source>Routes</source>
<translation>Routen</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="96"/>
<location filename="../src/optionsdialog.cpp" line="129"/>
<location filename="../src/optionsdialog.cpp" line="70"/>
<location filename="../src/optionsdialog.cpp" line="109"/>
<source>Use anti-aliasing</source>
<translation>Anti-Aliasing verwenden</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="127"/>
<location filename="../src/optionsdialog.cpp" line="107"/>
<source>Line width:</source>
<translation>Linienbreite:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="143"/>
<location filename="../src/optionsdialog.cpp" line="40"/>
<source>Colors</source>
<translation>Farben</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="40"/>
<location filename="../src/optionsdialog.cpp" line="144"/>
<location filename="../src/optionsdialog.cpp" line="128"/>
<source>Background color:</source>
<translation>Hintergrundfarbe:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="141"/>
<source>Paths</source>
<translation>Pfade</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="47"/>
<location filename="../src/optionsdialog.cpp" line="129"/>
<source>Map opacity:</source>
<translation>Karte Deckkraft:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="49"/>
<location filename="../src/optionsdialog.cpp" line="143"/>
<source>Map</source>
<translation>Karte</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="145"/>
<location filename="../src/optionsdialog.cpp" line="336"/>
<location filename="../src/optionsdialog.cpp" line="142"/>
<location filename="../src/optionsdialog.cpp" line="334"/>
<source>Graphs</source>
<translation>Graphen</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="152"/>
<location filename="../src/optionsdialog.cpp" line="150"/>
<source>Moving average window size</source>
<translation>Fensterbreite des gleitenden Mittelwerts</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="171"/>
<location filename="../src/optionsdialog.cpp" line="169"/>
<source>Elevation:</source>
<translation>Höhe:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="172"/>
<location filename="../src/optionsdialog.cpp" line="170"/>
<source>Speed:</source>
<translation>Geschwindigkeit:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="173"/>
<location filename="../src/optionsdialog.cpp" line="171"/>
<source>Heart rate:</source>
<translation>Herzfrequenz:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="174"/>
<location filename="../src/optionsdialog.cpp" line="172"/>
<source>Cadence:</source>
<translation>Frequenz:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="175"/>
<location filename="../src/optionsdialog.cpp" line="173"/>
<source>Power:</source>
<translation>Leistung:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="177"/>
<location filename="../src/optionsdialog.cpp" line="175"/>
<source>Smoothing</source>
<translation>Glätten</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="181"/>
<location filename="../src/optionsdialog.cpp" line="179"/>
<source>Eliminate GPS outliers</source>
<translation>GPS Ausreißer entfernen</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="187"/>
<location filename="../src/optionsdialog.cpp" line="185"/>
<source>Outlier elimination</source>
<translation>Ausreißer Entfernung</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="194"/>
<location filename="../src/optionsdialog.cpp" line="192"/>
<source>Smoothing:</source>
<translation>Glätten:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="217"/>
<location filename="../src/optionsdialog.cpp" line="215"/>
<source>mi/h</source>
<translation>mi/h</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="220"/>
<location filename="../src/optionsdialog.cpp" line="218"/>
<source>km/h</source>
<translation>km/h</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="224"/>
<location filename="../src/optionsdialog.cpp" line="222"/>
<source>s</source>
<translation>sek</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="228"/>
<location filename="../src/optionsdialog.cpp" line="226"/>
<source>Minimal speed:</source>
<translation>Minimale Geschwindigkeit:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="229"/>
<location filename="../src/optionsdialog.cpp" line="227"/>
<source>Minimal duration:</source>
<translation>Minimale Dauer:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="236"/>
<location filename="../src/optionsdialog.cpp" line="234"/>
<source>Filtering</source>
<translation>Datenfilterung</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="237"/>
<location filename="../src/optionsdialog.cpp" line="235"/>
<source>Pause detection</source>
<translation>Pausenerkennung</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="249"/>
<location filename="../src/optionsdialog.cpp" line="247"/>
<source>mi</source>
<translation>mi</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="252"/>
<location filename="../src/optionsdialog.cpp" line="250"/>
<source>km</source>
<translation>km</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="256"/>
<location filename="../src/optionsdialog.cpp" line="254"/>
<source>POI radius:</source>
<translation>POI-Radius:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="262"/>
<location filename="../src/optionsdialog.cpp" line="392"/>
<location filename="../src/optionsdialog.cpp" line="260"/>
<location filename="../src/optionsdialog.cpp" line="390"/>
<source>POI</source>
<translation>POI</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="269"/>
<location filename="../src/optionsdialog.cpp" line="267"/>
<source>WYSIWYG</source>
<translation>WYSIWYG</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="270"/>
<location filename="../src/optionsdialog.cpp" line="268"/>
<source>High-Resolution</source>
<translation>Hohe Auflösung</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="275"/>
<location filename="../src/optionsdialog.cpp" line="273"/>
<source>The printed area is approximately the display area. The map zoom level does not change.</source>
<translation>Der Druckbereich ist circa der Anzeigebereich. Das Karten-Zoom ändert sich nicht.</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="277"/>
<location filename="../src/optionsdialog.cpp" line="275"/>
<source>The zoom level will be changed so that the whole content (tracks/waypoints) fits to the printed area and the map resolution is as close as possible to the print resolution.</source>
<translation>Das Karten-Zoom ändert sich so, dass der ganze Inhalt (Strecken/Wegpunkte) in den Druckbereich passen und die Kartenauflösung so nah wie möglich an der Druckauflösung ist.</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="299"/>
<location filename="../src/optionsdialog.cpp" line="297"/>
<source>Name</source>
<translation>Name</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="301"/>
<location filename="../src/optionsdialog.cpp" line="299"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="303"/>
<location filename="../src/optionsdialog.cpp" line="301"/>
<source>Distance</source>
<translation>Distanz</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="305"/>
<location filename="../src/optionsdialog.cpp" line="303"/>
<source>Time</source>
<translation>Zeit</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="307"/>
<location filename="../src/optionsdialog.cpp" line="305"/>
<source>Moving time</source>
<translation>Bewegungszeit</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="309"/>
<location filename="../src/optionsdialog.cpp" line="307"/>
<source>Item count (&gt;1)</source>
<translation>Elementanzahl (&gt;1)</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="324"/>
<location filename="../src/optionsdialog.cpp" line="322"/>
<source>Separate graph page</source>
<translation>Separate Seite für Graphen</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="334"/>
<location filename="../src/optionsdialog.cpp" line="332"/>
<source>Print mode</source>
<translation>Druckmodus</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="335"/>
<location filename="../src/optionsdialog.cpp" line="333"/>
<source>Header</source>
<translation>Kopfzeile</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="343"/>
<location filename="../src/optionsdialog.cpp" line="341"/>
<source>Use OpenGL</source>
<translation>OpenGL verwenden</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="355"/>
<location filename="../src/optionsdialog.cpp" line="353"/>
<source>MB</source>
<translation>MB</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="359"/>
<location filename="../src/optionsdialog.cpp" line="357"/>
<source>Image cache size:</source>
<translation>Bild-Cache größe:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="372"/>
<location filename="../src/optionsdialog.cpp" line="395"/>
<location filename="../src/optionsdialog.cpp" line="370"/>
<location filename="../src/optionsdialog.cpp" line="393"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="389"/>
<location filename="../src/optionsdialog.cpp" line="387"/>
<source>Appearance</source>
<translation>Erscheinungsbild</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="391"/>
<location filename="../src/optionsdialog.cpp" line="389"/>
<source>Data</source>
<translation>Daten</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="393"/>
<location filename="../src/optionsdialog.cpp" line="391"/>
<source>Print &amp; Export</source>
<translation>Druck &amp; Export</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="422"/>
<location filename="../src/optionsdialog.cpp" line="420"/>
<source>Options</source>
<translation>Einstellungen</translation>
</message>

View File

@ -391,7 +391,7 @@
</message>
<message>
<location filename="../src/gui.cpp" line="443"/>
<location filename="../src/gui.cpp" line="1010"/>
<location filename="../src/gui.cpp" line="1012"/>
<source>Moving time</source>
<translation>Förflyttningstid</translation>
</message>
@ -541,22 +541,22 @@
<translation>Offline-kartor läses in från följande mapp vid programstart:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1203"/>
<location filename="../src/gui.cpp" line="1205"/>
<source>Open map file</source>
<translation>Öppna kartfil</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1224"/>
<location filename="../src/gui.cpp" line="1226"/>
<source>Error loading map:</source>
<translation>Fel vid inläsning av karta:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="1239"/>
<location filename="../src/gui.cpp" line="1241"/>
<source>No files loaded</source>
<translation>Inga filer inlästa</translation>
</message>
<message numerus="yes">
<location filename="../src/gui.cpp" line="1243"/>
<location filename="../src/gui.cpp" line="1245"/>
<source>%n files</source>
<translation>
<numerusform>%n filer</numerusform>
@ -564,13 +564,13 @@
</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="996"/>
<location filename="../src/gui.cpp" line="999"/>
<location filename="../src/gui.cpp" line="998"/>
<location filename="../src/gui.cpp" line="1001"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="988"/>
<location filename="../src/gui.cpp" line="990"/>
<source>Routes</source>
<translation>Rutter</translation>
</message>
@ -595,7 +595,7 @@
<translation>Exportera till PDF...</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="990"/>
<location filename="../src/gui.cpp" line="992"/>
<source>Waypoints</source>
<translation>Vägpunkter</translation>
</message>
@ -650,12 +650,12 @@
<translation>Fel vid inläsning av POI-fil:</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="982"/>
<location filename="../src/gui.cpp" line="984"/>
<source>Name</source>
<translation>Namn</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="986"/>
<location filename="../src/gui.cpp" line="988"/>
<source>Tracks</source>
<translation>Spår</translation>
</message>
@ -677,14 +677,14 @@
</message>
<message>
<location filename="../src/gui.cpp" line="412"/>
<location filename="../src/gui.cpp" line="1006"/>
<location filename="../src/gui.cpp" line="1008"/>
<source>Distance</source>
<translation>Avstånd</translation>
</message>
<message>
<location filename="../src/gui.cpp" line="419"/>
<location filename="../src/gui.cpp" line="543"/>
<location filename="../src/gui.cpp" line="1008"/>
<location filename="../src/gui.cpp" line="1010"/>
<source>Time</source>
<translation>Tid</translation>
</message>
@ -788,282 +788,286 @@
<translation>Palettskiftning:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="76"/>
<location filename="../src/optionsdialog.cpp" line="50"/>
<source>Track width:</source>
<translation>Spårtjocklek:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="77"/>
<location filename="../src/optionsdialog.cpp" line="51"/>
<source>Track style:</source>
<translation>Spårstil:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="79"/>
<location filename="../src/optionsdialog.cpp" line="53"/>
<source>Tracks</source>
<translation>Spår</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="89"/>
<location filename="../src/optionsdialog.cpp" line="63"/>
<source>Route width:</source>
<translation>Ruttjocklek:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="90"/>
<location filename="../src/optionsdialog.cpp" line="64"/>
<source>Route style:</source>
<translation>Ruttstil:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="92"/>
<location filename="../src/optionsdialog.cpp" line="66"/>
<source>Routes</source>
<translation>Rutter</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="96"/>
<location filename="../src/optionsdialog.cpp" line="129"/>
<location filename="../src/optionsdialog.cpp" line="70"/>
<location filename="../src/optionsdialog.cpp" line="109"/>
<source>Use anti-aliasing</source>
<translation>Använd kantutjämning</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="127"/>
<location filename="../src/optionsdialog.cpp" line="107"/>
<source>Line width:</source>
<translation>Linjetjocklek:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="143"/>
<location filename="../src/optionsdialog.cpp" line="40"/>
<source>Colors</source>
<translation>Färger</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="40"/>
<location filename="../src/optionsdialog.cpp" line="144"/>
<location filename="../src/optionsdialog.cpp" line="128"/>
<source>Background color:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="141"/>
<source>Paths</source>
<translation>Sökvägar</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="47"/>
<location filename="../src/optionsdialog.cpp" line="129"/>
<source>Map opacity:</source>
<translation>Kartopacitet</translation>
<translation>Kartopacitet:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="49"/>
<location filename="../src/optionsdialog.cpp" line="143"/>
<source>Map</source>
<translation>Karta</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="145"/>
<location filename="../src/optionsdialog.cpp" line="336"/>
<location filename="../src/optionsdialog.cpp" line="142"/>
<location filename="../src/optionsdialog.cpp" line="334"/>
<source>Graphs</source>
<translation>Diagram</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="152"/>
<location filename="../src/optionsdialog.cpp" line="150"/>
<source>Moving average window size</source>
<translation>Flyttar vanlig fönsterstorlek</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="171"/>
<location filename="../src/optionsdialog.cpp" line="169"/>
<source>Elevation:</source>
<translation>Höjd:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="172"/>
<location filename="../src/optionsdialog.cpp" line="170"/>
<source>Speed:</source>
<translation>Hastighet:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="173"/>
<location filename="../src/optionsdialog.cpp" line="171"/>
<source>Heart rate:</source>
<translation>Hjärtfrekvens:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="174"/>
<location filename="../src/optionsdialog.cpp" line="172"/>
<source>Cadence:</source>
<translation>Stegfrekvens:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="175"/>
<location filename="../src/optionsdialog.cpp" line="173"/>
<source>Power:</source>
<translation>Kraft:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="177"/>
<location filename="../src/optionsdialog.cpp" line="175"/>
<source>Smoothing</source>
<translation>Utjämning</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="181"/>
<location filename="../src/optionsdialog.cpp" line="179"/>
<source>Eliminate GPS outliers</source>
<translation>Eliminera GPS-extremvärden</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="187"/>
<location filename="../src/optionsdialog.cpp" line="185"/>
<source>Outlier elimination</source>
<translation>Extremvärdeseliminering</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="194"/>
<location filename="../src/optionsdialog.cpp" line="192"/>
<source>Smoothing:</source>
<translation>Utjämning:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="217"/>
<location filename="../src/optionsdialog.cpp" line="215"/>
<source>mi/h</source>
<translation>mi/h</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="220"/>
<location filename="../src/optionsdialog.cpp" line="218"/>
<source>km/h</source>
<translation>km/h</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="224"/>
<location filename="../src/optionsdialog.cpp" line="222"/>
<source>s</source>
<translation>sek</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="228"/>
<location filename="../src/optionsdialog.cpp" line="226"/>
<source>Minimal speed:</source>
<translation>Minsta hastighet:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="229"/>
<location filename="../src/optionsdialog.cpp" line="227"/>
<source>Minimal duration:</source>
<translation>Kortast varaktighet:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="236"/>
<location filename="../src/optionsdialog.cpp" line="234"/>
<source>Filtering</source>
<translation>Filtrerar</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="237"/>
<location filename="../src/optionsdialog.cpp" line="235"/>
<source>Pause detection</source>
<translation>Pausa identifiering</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="249"/>
<location filename="../src/optionsdialog.cpp" line="247"/>
<source>mi</source>
<translation>mi</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="252"/>
<location filename="../src/optionsdialog.cpp" line="250"/>
<source>km</source>
<translation>km</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="256"/>
<location filename="../src/optionsdialog.cpp" line="254"/>
<source>POI radius:</source>
<translation>POI-radie:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="262"/>
<location filename="../src/optionsdialog.cpp" line="392"/>
<location filename="../src/optionsdialog.cpp" line="260"/>
<location filename="../src/optionsdialog.cpp" line="390"/>
<source>POI</source>
<translation>POI</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="269"/>
<location filename="../src/optionsdialog.cpp" line="267"/>
<source>WYSIWYG</source>
<translation>WYSIWYG</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="270"/>
<location filename="../src/optionsdialog.cpp" line="268"/>
<source>High-Resolution</source>
<translation>Högupplösning</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="275"/>
<location filename="../src/optionsdialog.cpp" line="273"/>
<source>The printed area is approximately the display area. The map zoom level does not change.</source>
<translation>Det utskrivna området är ungefär detsamma som synligt område skärmen. Kartans zoomnivå ändras inte.</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="277"/>
<location filename="../src/optionsdialog.cpp" line="275"/>
<source>The zoom level will be changed so that the whole content (tracks/waypoints) fits to the printed area and the map resolution is as close as possible to the print resolution.</source>
<translation>Zoomnivån kommer att ändras att hela innehållet (spår/vägpunkter) passar utskriftsområdet och kartresolutionen är nära som möjligt till utskriftsupplösningen.</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="299"/>
<location filename="../src/optionsdialog.cpp" line="297"/>
<source>Name</source>
<translation>Namn</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="301"/>
<location filename="../src/optionsdialog.cpp" line="299"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="303"/>
<location filename="../src/optionsdialog.cpp" line="301"/>
<source>Distance</source>
<translation>Avstånd</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="305"/>
<location filename="../src/optionsdialog.cpp" line="303"/>
<source>Time</source>
<translation>Tid</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="307"/>
<location filename="../src/optionsdialog.cpp" line="305"/>
<source>Moving time</source>
<translation>Förflyttningstid</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="309"/>
<location filename="../src/optionsdialog.cpp" line="307"/>
<source>Item count (&gt;1)</source>
<translation>Objektantal (&gt;1)</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="324"/>
<location filename="../src/optionsdialog.cpp" line="322"/>
<source>Separate graph page</source>
<translation>Separat diagramsida</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="334"/>
<location filename="../src/optionsdialog.cpp" line="332"/>
<source>Print mode</source>
<translation>Utskriftsläge</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="335"/>
<location filename="../src/optionsdialog.cpp" line="333"/>
<source>Header</source>
<translation></translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="343"/>
<location filename="../src/optionsdialog.cpp" line="341"/>
<source>Use OpenGL</source>
<translation>Använd OpenGL</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="355"/>
<location filename="../src/optionsdialog.cpp" line="353"/>
<source>MB</source>
<translation>MB</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="359"/>
<location filename="../src/optionsdialog.cpp" line="357"/>
<source>Image cache size:</source>
<translation>Cashe-storlek för bilder:</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="372"/>
<location filename="../src/optionsdialog.cpp" line="395"/>
<location filename="../src/optionsdialog.cpp" line="370"/>
<location filename="../src/optionsdialog.cpp" line="393"/>
<source>System</source>
<translation>System</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="389"/>
<location filename="../src/optionsdialog.cpp" line="387"/>
<source>Appearance</source>
<translation>Utseende</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="391"/>
<location filename="../src/optionsdialog.cpp" line="389"/>
<source>Data</source>
<translation>Data</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="393"/>
<location filename="../src/optionsdialog.cpp" line="391"/>
<source>Print &amp; Export</source>
<translation>Utskrift &amp; Export</translation>
</message>
<message>
<location filename="../src/optionsdialog.cpp" line="422"/>
<location filename="../src/optionsdialog.cpp" line="420"/>
<source>Options</source>
<translation>Alternativ</translation>
</message>

View File

@ -871,6 +871,8 @@ void GUI::openOptions()
}
if (options.mapOpacity != _options.mapOpacity)
_pathView->setMapOpacity(options.mapOpacity);
if (options.blendColor != _options.blendColor)
_pathView->setBlendColor(options.blendColor);
if (options.trackWidth != _options.trackWidth)
_pathView->setTrackWidth(options.trackWidth);
if (options.routeWidth != _options.routeWidth)
@ -1608,6 +1610,8 @@ void GUI::writeSettings()
settings.setValue(PALETTE_SHIFT_SETTING, _options.palette.shift());
if (_options.mapOpacity != MAP_OPACITY_DEFAULT)
settings.setValue(MAP_OPACITY_SETTING, _options.mapOpacity);
if (_options.blendColor != BLEND_COLOR_DEFAULT)
settings.setValue(BLEND_COLOR_SETTING, _options.blendColor);
if (_options.trackWidth != TRACK_WIDTH_DEFAULT)
settings.setValue(TRACK_WIDTH_SETTING, _options.trackWidth);
if (_options.routeWidth != ROUTE_WIDTH_DEFAULT)
@ -1809,6 +1813,8 @@ void GUI::readSettings()
_options.palette = Palette(pc, ps);
_options.mapOpacity = settings.value(MAP_OPACITY_SETTING,
MAP_OPACITY_DEFAULT).toInt();
_options.blendColor = settings.value(BLEND_COLOR_SETTING,
BLEND_COLOR_DEFAULT).value<QColor>();
_options.trackWidth = settings.value(TRACK_WIDTH_SETTING,
TRACK_WIDTH_DEFAULT).toInt();
_options.routeWidth = settings.value(ROUTE_WIDTH_SETTING,
@ -1864,6 +1870,7 @@ void GUI::readSettings()
_pathView->setPalette(_options.palette);
_pathView->setMapOpacity(_options.mapOpacity);
_pathView->setBlendColor(_options.blendColor);
_pathView->setTrackWidth(_options.trackWidth);
_pathView->setRouteWidth(_options.routeWidth);
_pathView->setTrackStyle(_options.trackStyle);

View File

@ -37,36 +37,10 @@ QWidget *OptionsDialog::createAppearancePage()
paletteLayout->addRow(tr("Base color:"), _baseColor);
paletteLayout->addRow(tr("Palette shift:"), _colorOffset);
#ifndef Q_OS_MAC
QGroupBox *pathsBox = new QGroupBox(tr("Paths"));
pathsBox->setLayout(paletteLayout);
QGroupBox *colorBox = new QGroupBox(tr("Colors"));
colorBox->setLayout(paletteLayout);
#endif
_mapOpacity = new PercentSlider();
_mapOpacity->setValue(_options->mapOpacity);
QFormLayout *mapLayout = new QFormLayout();
mapLayout->addRow(tr("Map opacity:"), _mapOpacity);
#ifndef Q_OS_MAC
QGroupBox *mapBox = new QGroupBox(tr("Map"));
mapBox->setLayout(mapLayout);
#endif
QWidget *colorTab = new QWidget();
QVBoxLayout *colorTabLayout = new QVBoxLayout();
#ifdef Q_OS_MAC
QFrame *l0 = new QFrame();
l0->setFrameShape(QFrame::HLine);
l0->setFrameShadow(QFrame::Sunken);
colorTabLayout->addLayout(paletteLayout);
colorTabLayout->addWidget(l0);
colorTabLayout->addLayout(mapLayout);
#else // Q_OS_MAC
colorTabLayout->addWidget(pathsBox);
colorTabLayout->addWidget(mapBox);
#endif // O_OS_MAC
colorTabLayout->addStretch();
colorTab->setLayout(colorTabLayout);
_trackWidth = new QSpinBox();
_trackWidth->setValue(_options->trackWidth);
_trackWidth->setMinimum(1);
@ -101,6 +75,9 @@ QWidget *OptionsDialog::createAppearancePage()
QWidget *pathTab = new QWidget();
QVBoxLayout *pathTabLayout = new QVBoxLayout();
#ifdef Q_OS_MAC
QFrame *l0 = new QFrame();
l0->setFrameShape(QFrame::HLine);
l0->setFrameShadow(QFrame::Sunken);
QFrame *l1 = new QFrame();
l1->setFrameShape(QFrame::HLine);
l1->setFrameShadow(QFrame::Sunken);
@ -108,11 +85,14 @@ QWidget *OptionsDialog::createAppearancePage()
l2->setFrameShape(QFrame::HLine);
l2->setFrameShadow(QFrame::Sunken);
pathTabLayout->addLayout(paletteLayout);
pathTabLayout->addWidget(l0);
pathTabLayout->addLayout(trackLayout);
pathTabLayout->addWidget(l1);
pathTabLayout->addLayout(routeLayout);
pathTabLayout->addWidget(l2);
#else // Q_OS_MAC
pathTabLayout->addWidget(colorBox);
pathTabLayout->addWidget(trackBox);
pathTabLayout->addWidget(routeBox);
#endif // Q_OS_MAC
@ -139,10 +119,28 @@ QWidget *OptionsDialog::createAppearancePage()
graphTabLayout->addStretch();
graphTab->setLayout(graphTabLayout);
_mapOpacity = new PercentSlider();
_mapOpacity->setValue(_options->mapOpacity);
_blendColor = new ColorBox();
_blendColor->setColor(_options->blendColor);
QFormLayout *mapLayout = new QFormLayout();
mapLayout->addRow(tr("Background color:"), _blendColor);
mapLayout->addRow(tr("Map opacity:"), _mapOpacity);
QWidget *mapTab = new QWidget();
QVBoxLayout *mapTabLayout = new QVBoxLayout();
mapTabLayout->addLayout(mapLayout);
mapTabLayout->addStretch();
mapTab->setLayout(mapTabLayout);
QTabWidget *appearancePage = new QTabWidget();
appearancePage->addTab(colorTab, tr("Colors"));
appearancePage->addTab(pathTab, tr("Paths"));
appearancePage->addTab(graphTab, tr("Graphs"));
appearancePage->addTab(mapTab, tr("Map"));
return appearancePage;
}
@ -428,6 +426,7 @@ void OptionsDialog::accept()
_options->palette.setColor(_baseColor->color());
_options->palette.setShift(_colorOffset->value());
_options->mapOpacity = _mapOpacity->value();
_options->blendColor = _blendColor->color();
_options->trackWidth = _trackWidth->value();
_options->trackStyle = (Qt::PenStyle) _trackStyle->itemData(
_trackStyle->currentIndex()).toInt();

View File

@ -19,6 +19,7 @@ struct Options {
// Appearance
Palette palette;
int mapOpacity;
QColor blendColor;
int trackWidth;
int routeWidth;
Qt::PenStyle trackStyle;
@ -76,6 +77,7 @@ private:
ColorBox *_baseColor;
QDoubleSpinBox *_colorOffset;
PercentSlider *_mapOpacity;
ColorBox *_blendColor;
QSpinBox *_trackWidth;
StyleComboBox *_trackStyle;
QSpinBox *_routeWidth;

View File

@ -47,6 +47,7 @@ PathView::PathView(Map *map, POI *poi, QWidget *parent)
_units = Metric;
_opacity = 1.0;
_blendColor = Qt::white;
_showMap = true;
_showTracks = true;
@ -685,11 +686,17 @@ void PathView::setMapOpacity(int opacity)
resetCachedContent();
}
void PathView::setBlendColor(const QColor &color)
{
_blendColor = color;
resetCachedContent();
}
void PathView::drawBackground(QPainter *painter, const QRectF &rect)
{
if (_showMap) {
if (_opacity < 1.0) {
painter->fillRect(rect, Qt::white);
painter->fillRect(rect, _blendColor);
painter->setOpacity(_opacity);
}
_map->draw(painter, rect);

View File

@ -64,6 +64,7 @@ public slots:
void setTrackStyle(Qt::PenStyle style);
void setRouteStyle(Qt::PenStyle style);
void setMapOpacity(int opacity);
void setBlendColor(const QColor &color);
private slots:
void updatePOI();
@ -108,6 +109,7 @@ private:
Palette _palette;
Units _units;
qreal _opacity;
QColor _blendColor;
bool _showMap;
bool _showTracks;

View File

@ -80,6 +80,8 @@
#define PALETTE_SHIFT_DEFAULT 0.62
#define MAP_OPACITY_SETTING "mapOpacity"
#define MAP_OPACITY_DEFAULT 100
#define BLEND_COLOR_SETTING "blendColor"
#define BLEND_COLOR_DEFAULT QColor(Qt::white)
#define TRACK_WIDTH_SETTING "trackWidth"
#define TRACK_WIDTH_DEFAULT 3
#define ROUTE_WIDTH_SETTING "routeWidth"