diff --git a/lang/gpxsee_cs.ts b/lang/gpxsee_cs.ts index b2ccf91c..bd3d9ed7 100644 --- a/lang/gpxsee_cs.ts +++ b/lang/gpxsee_cs.ts @@ -190,367 +190,362 @@ GUI - + GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at 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 - + Open file Otevřít soubor - + Open POI file Otevřít POI soubor - + Open Otevřít - + Quit Ukončit - - + + Keyboard controls Ovládací klávesy - + Close Zavřít - + Reload Znovu načíst - + Show Zobrazit - - + + File Soubor - + FIT files (*.fit) Soubory FIT (*.fit) - + IGC files (*.igc) Soubory IGC (*.igc) - + NMEA files (*.nmea) Soubory NMEA (*.nmea) - - + + Data sources Zdroje dat - + Load POI file Nahrát POI soubor - + Close POI files Zavřit POI soubory - + Overlap POIs Překrývat POI - + Show POI labels Zobrazit názvy POI - + Show POIs Zobrazit POI - + Show map Zobrazit mapu - - + + Load map Nahrát mapu - + Clear tile cache Vymazat mezipaměť dlaždic - - - + + + Next map Následující mapa - + Show tracks Zobrazit cesty - + Show routes Zobrazit trasy - + Show waypoints Zobrazit navigační body - + Waypoint labels Názvy navigačních bodů - + Show graphs Zobrazit grafy - + Show grid Zobrazit mřížku - + Show toolbars Zobrazovat nástrojové lišty - + Total time Celkový čas - - + + Moving time Čistý čas - + Metric Metrické - + Imperial Imperiální - + Fullscreen mode Celoobrazovkový režim - + Options... Nastavení... - + Next Následující - + Previous Předchozí - + Last Poslední - + First První - + Map Mapa - + Graph Graf - + POI POI - + POI files POI soubory - + Data Data - + Display Zobrazit - + Settings Nastavení - + Units Jednotky - + Help Nápověda - + Append file Přidat soubor - + Next/Previous Následující/Předchozí - + Previous map Předchozí mapa - + Zoom in Přiblížit - + Zoom out Oddálit - + Digital zoom Digitální zoom - + Zoom Zoom - + Online maps Online mapy - + Online map URLs are read on program startup from the following file: URL online map jsou načteny při startu programu z následujícího souboru: - + Offline maps are loaded on program startup from the following directory: Offline mapy jsou načítány při startu aplikace z následujícího adresáře: - - The expected structure is one map/atlas in a separate subdirectory. Supported map formats are OziExplorer image-based maps and tiled TrekBuddy maps/atlases (tared and non-tared). - Očekávaná struktura je jedna mapa/atlas v samostatném podadresáři. Podporované mapové formáty jsou OziExplorer mapy a TrekBuddy mapy/atlasy (včetně tar varianty). - - - + No files loaded Nejsou načteny žádné soubory - + GPX files (*.gpx) Soubory GPX (*.gpx) - + TCX files (*.tcx) Soubory TCX (*.tcx) - + KML files (*.kml) Soubory KML (*.kml) - + CSV files (*.csv) Soubory CSV (*.csv) - + All files (*) Všechny soubory (*) - + Date Datum - + Routes Trasy - + Map files (*.map *.tba *.tar) Mapové soubory (*.map *.tba *.tar) - + Error loading map: Mapu nelze načíst: - + %n files %n soubor @@ -559,122 +554,127 @@ - + Next file Následující soubor - + Version Verze - + Print... Tisknout... - + Export to PDF... Exportovat do PDF... - + Waypoints Navigační body - + Previous file Předchozí soubor - + Supported files (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx) Podporované soubory (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx) - + Route waypoints Body tras - + First file První soubor - + Last file Poslední soubor - + 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: 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: - + Offline maps Offline mapy - + + The expected structure is one map/atlas in a separate subdirectory. Supported map formats are OziExplorer maps and TrekBuddy maps/atlases (tared and non-tared). + Očekávaná struktura je jedna mapa/atlas v samostatném podadresáři. Podporované mapové formáty jsou OziExplorer mapy a TrekBuddy mapy/atlasy (včetně tar varianty). + + + To make GPXSee load a POI file automatically on startup, add the file to the following directory: POI soubory, které se mají automaticky nahrát při startu programu jsou načítány z následujícího adresáře: - + Error loading data file: Datový soubor nelze načíst: - - + + Line: %1 Řádka: %1 - + Error loading POI file: Soubor POI nelze načíst: - + Name Název - + Tracks Cesty - - + + About GPXSee O aplikaci GPXSee - + Navigation Navigace - + POIs POI body - - + + Distance Vzdálenost - - - + + + Time Čas @@ -838,7 +838,7 @@ - + POI POI @@ -887,24 +887,34 @@ Use OpenGL Používat OpenGL + + + MB + MB + - + Image cache size: + Mezipamět obrázků: + + + + System Systém - + Appearance Vzhled - + Print & Export Tisk a export - + Options Nastavení @@ -954,22 +964,22 @@ ScaleItem - + mi mi - + ft ft - + km km - + m m @@ -1073,27 +1083,27 @@ WaypointItem - + Name Název - + Coordinates Souřadnice - + Elevation Výška - + Date Datum - + Description Popis diff --git a/lang/gpxsee_de.ts b/lang/gpxsee_de.ts index d38c8e10..779a41cb 100644 --- a/lang/gpxsee_de.ts +++ b/lang/gpxsee_de.ts @@ -190,336 +190,331 @@ GUI - + GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at GPXSee wird unter der GNU General Public License version 3 vertrieben. Mehr Informationen zu GPXSee auf der Homepage - + Open file Datei öffnen - + Open POI file POI Datei öffnen - + Open Öffnen - + Quit Beenden - - + + Keyboard controls Tastaturkürzel - + Close Schließen - + Reload Neu Laden - + Show Ansicht - - + + File Datei - + FIT files (*.fit) FIT-Dateien (*.fit) - + IGC files (*.igc) IGC-Dateien (*.igc) - + NMEA files (*.nmea) NMEA-Dateien (*.nmea) - - + + Data sources Datenquellen - + Load POI file POI-Datei laden - + Close POI files POI-Datei schließen - + Overlap POIs POI überlappen - + Show POI labels POI-Labels anzeigen - + Show POIs POIs anzeigen - + Show map Karte anzeigen - - + + Load map Karte laden - + Clear tile cache Tile-Cache bereinigen - - - + + + Next map Nächste Karte - + Show tracks Strecken anzeigen - + Show routes Routen anzeigen - + Show waypoints Wegpunkte anzeigen - + Waypoint labels Wegpunkt Labels - + Show graphs Graphen anzeigen - + Show grid Gitter anzeigen - + Show toolbars Toolbars anzeigen - + Total time Gesamtzeit - - + + Moving time Bewegungszeit - + Metric Metrisch - + Imperial Imperial - + Fullscreen mode Vollbildmodus - + Options... Einstellungen... - + Next Nächste - + Previous Vorherige - + Last Letzte - + First Erste - + Map Karte - + Graph Graph - + POI POI - + POI files POI-Dateien - + Data Daten - + Display Anzeige - + Settings Einstellungen - + Units Einheiten - + Help Hilfe - + Append file An Datei anhängen - + Next/Previous Nächste/Vorherige - + Previous map Vorherige Karte - + Zoom in Hineinzoomen - + Zoom out Herauszoomen - + Digital zoom Digitaler Zoom - + Zoom Zoom - + Online maps Onlinekarten - + Online map URLs are read on program startup from the following file: Onlinekarten URLs werden zu Programmstart aus der folgenden Datei gelesen: - + Offline maps Offlinekarten - + Offline maps are loaded on program startup from the following directory: Offlinekarten werden zu Programmstart aus dem folgenden Verzeichnis geladen: - - The expected structure is one map/atlas in a separate subdirectory. Supported map formats are OziExplorer image-based maps and tiled TrekBuddy maps/atlases (tared and non-tared). - Die erwartete Struktur ist eine Karte/ein Atlas pro Unterverzeichnis. Unterstützte Kartenformate sind bildbasierte OziExplorer Karten und tile-basierte TrekBuddy Karten/Atlanten (mit oder ohne tar Kompression). - - - + Map files (*.map *.tba *.tar) Karten-Dateien (*.map *.tba *.tar) - + Error loading map: Fehler beim Laden der Karte-Datei: - + No files loaded Keine Dateien geladen - + %n files %n Datei @@ -527,153 +522,158 @@ - + GPX files (*.gpx) GPX-Dateien (*.gpx) - + TCX files (*.tcx) TCX-Dateien (*.tcx) - + KML files (*.kml) KML-Dateien (*.kml) - + CSV files (*.csv) CSV-Dateien (*.csv) - + All files (*) Alle Dateien (*) - + Date Datum - + Routes Routen - + Next file Nächste Datei - + Version Version - + Print... Drucken... - + Export to PDF... Als PDF exportieren... - + Waypoints Wegpunkte - + Previous file Vorherige Datei - + Supported files (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx) Unterstütze Dateien (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx) - + Route waypoints Routen Wegpunkte - + First file Erste Datei - + Last file Letzte Datei - + 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: Das Dateiformat ist eine Karte pro Linie. Jede Linie besteht aus dem Kartenname und die durch ein TAB Zeichen getrennte Tiles URL. X und Y Koordinate einer Tile werden in der URL durch $x und $y ersetzt und das Zoomlevel durch $z. Ein Beispiel einer Kartendatei könnte so aussehen: - + + The expected structure is one map/atlas in a separate subdirectory. Supported map formats are OziExplorer maps and TrekBuddy maps/atlases (tared and non-tared). + Die erwartete Struktur ist eine Karte/ein Atlas pro Unterverzeichnis. Unterstützte Kartenformate sind OziExplorer Karten und TrekBuddy Karten/Atlanten (mit oder ohne tar Kompression). + + + To make GPXSee load a POI file automatically on startup, add the file to the following directory: Damit GPXSee zu Programmstart automatisch eine POI-Datei lädt, fügen Sie diese zu folgendem Verzeichnis hinzu: - + Error loading data file: Fehler beim Laden der Datei: - - + + Line: %1 Linie: %1 - + Error loading POI file: Fehler beim Laden der POI-Datei: - + Name Name - + Tracks Strecken - - + + About GPXSee Über GPXSee - + Navigation Navigation - + POIs POIs - - + + Distance Distanz - - - + + + Time Zeit @@ -837,7 +837,7 @@ - + POI POI @@ -886,24 +886,34 @@ Use OpenGL OpenGL verwenden + + + MB + MB + - + Image cache size: + Bild-Cache größe: + + + + System System - + Appearance Erscheinungsbild - + Print & Export Druck & Export - + Options Einstellungen @@ -953,22 +963,22 @@ ScaleItem - + mi mi - + ft ft - + km km - + m m @@ -1072,27 +1082,27 @@ WaypointItem - + Name Name - + Coordinates Koordinaten - + Elevation Höhe - + Date Datum - + Description Beschreibung diff --git a/lang/gpxsee_sv.ts b/lang/gpxsee_sv.ts index fd3c4d01..d43f3350 100644 --- a/lang/gpxsee_sv.ts +++ b/lang/gpxsee_sv.ts @@ -190,336 +190,331 @@ GUI - + GPXSee is distributed under the terms of the GNU General Public License version 3. For more info about GPXSee visit the project homepage at GPXSee distribueras under vilkoren för GNU General Public License version 3. För mer info om GPXSee, besök hemsidan på - + Open file Öppna fil - + Open POI file Öppna POI-fil - + Open Öppna - + Quit Avsluta - - + + Keyboard controls Snabbtangenter - + Close Stäng - + Reload Uppdatera - + Show Visa - - + + File Arkiv - + FIT files (*.fit) FIT-filer (*.fit) - + IGC files (*.igc) IGC-filer (*.igc) - + NMEA files (*.nmea) NMEA-filer (*.nmea) - - + + Data sources Datakällor - + Load POI file Läs in POI-fil - + Close POI files Stäng POI-filer - + Overlap POIs Överlappa POI:er - + Show POI labels Visa POI-namn - + Show POIs Visa POI:er - + Show map Visa karta - - + + Load map - + Clear tile cache Rensa kart-cache - - - + + + Next map Nästa karta - + Show tracks Visa spår - + Show routes Visa rutter - + Show waypoints Visa vägpunkter - + Waypoint labels Vägpunktsnamn - + Show graphs Visa diagram - + Show grid Visa stödlinjer - + Show toolbars Visa verktygsfält - + Total time Total tid - - + + Moving time Förflyttningstid - + Metric Meter - + Imperial Imperial - + Fullscreen mode Helskärmsläge - + Options... Alternativ... - + Next Nästa - + Previous Föregående - + Last Sista - + First Första - + Map Karta - + Graph Diagram - + POI POI - + POI files POI-filer - + Data Data - + Display Visa - + Settings Inställningar - + Units Enhet - + Help Hjälp - + Append file Lägg till fil - + Next/Previous Nästa/Föregående - + Previous map Föregående karta - + Zoom in Zooma in - + Zoom out Zooma ut - + Digital zoom Digital zoom - + Zoom Zoom - + Online maps Online-kartor - + Online map URLs are read on program startup from the following file: Online-kartors URL:er, läses från följande fil vid programstart: - + Offline maps Offline-kartor - + Offline maps are loaded on program startup from the following directory: Offline-kartor läses in från följande mapp vid programstart: - - The expected structure is one map/atlas in a separate subdirectory. Supported map formats are OziExplorer image-based maps and tiled TrekBuddy maps/atlases (tared and non-tared). - Den förväntade strukturen är en karta/atlas i en separat undermapp. Kartformat som stöds är OziExplorer bildbaserade kartor och rutindelade TrekBuddy-kartor/-kartsamlingar (tarerade och icke tarerade). - - - + Map files (*.map *.tba *.tar) - + Error loading map: - + No files loaded Inga filer inlästa - + %n files %n filer @@ -527,153 +522,158 @@ - + GPX files (*.gpx) GPX-filer (*.gpx) - + TCX files (*.tcx) TCX-filer (*.tcx) - + KML files (*.kml) KML-filer (*.kml) - + CSV files (*.csv) CSV-filer (*.csv) - + All files (*) Alla filer (*) - + Date Datum - + Routes Rutter - + Next file Nästa fil - + Version Version - + Print... Skriv ut... - + Export to PDF... Exportera till PDF... - + Waypoints Vägpunkter - + Previous file Föregående fil - + Supported files (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx) Filer som stöds (*.csv *.fit *.gpx *.igc *.kml *.nmea *.tcx) - + Route waypoints Ruttvägpunkter - + First file Första filen - + Last file Sista filen - + 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: 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 på en kartfil kan se ut så här: - + + The expected structure is one map/atlas in a separate subdirectory. Supported map formats are OziExplorer maps and TrekBuddy maps/atlases (tared and non-tared). + Den förväntade strukturen är en karta/atlas i en separat undermapp. Kartformat som stöds är OziExplorer kartor och TrekBuddy-kartor/-kartsamlingar (tarerade och icke tarerade). + + + To make GPXSee load a POI file automatically on startup, add the file to the following directory: För att GPXSee skall läsa in en POI-fil automatiskt vid programstart, läggs filen i följande mapp: - + Error loading data file: Fel vid inläsning av datafil: - - + + Line: %1 Rad: %1 - + Error loading POI file: Fel vid inläsning av POI-fil: - + Name Namn - + Tracks Spår - - + + About GPXSee Om GPXSee - + Navigation Navigation - + POIs POI:er - - + + Distance Avstånd - - - + + + Time Tid @@ -837,7 +837,7 @@ - + POI POI @@ -886,24 +886,34 @@ Use OpenGL Använd OpenGL + + + MB + + - + Image cache size: + + + + + System System - + Appearance Utseende - + Print & Export Utskrift & Export - + Options Alternativ @@ -953,22 +963,22 @@ ScaleItem - + mi mi - + ft ft - + km km - + m m @@ -1072,27 +1082,27 @@ WaypointItem - + Name Namn - + Coordinates Koordinater - + Elevation Höjd - + Date Datum - + Description Beskrivning diff --git a/src/app.cpp b/src/app.cpp index ed014355..534e8a4d 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -3,7 +3,6 @@ #include #include #include -#include #include "opengl.h" #include "gui.h" #include "onlinemap.h" @@ -24,7 +23,6 @@ App::App(int &argc, char **argv) : QApplication(argc, argv), #endif // Q_OS_MAC QNetworkProxyFactory::setUseSystemConfiguration(true); - QPixmapCache::setCacheLimit(65536); OnlineMap::setDownloader(new Downloader(this)); OPENGL_SET_SAMPLES(4); diff --git a/src/gui.cpp b/src/gui.cpp index f4555d54..3df93f16 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include "config.h" #include "icons.h" #include "keys.h" @@ -714,8 +715,8 @@ void GUI::dataSources() "directory:") + "

" + USER_MAP_DIR + "

" + tr("The expected structure is one map/atlas in a separate subdirectory." - " Supported map formats are OziExplorer image-based maps and tiled" - " TrekBuddy maps/atlases (tared and non-tared).") + "

" + " Supported map formats are OziExplorer maps and TrekBuddy maps/atlases" + " (tared and non-tared).") + "

" + "

" + tr("POIs") + "

" + tr("To make GPXSee load a POI file automatically on startup, add " @@ -910,6 +911,8 @@ void GUI::openOptions() for (int i = 0; i < _tabs.count(); i++) _tabs.at(i)->useOpenGL(options.useOpenGL); } + if (options.pixmapCache != _options.pixmapCache) + QPixmapCache::setCacheLimit(options.pixmapCache); _options = options; } @@ -1581,6 +1584,8 @@ void GUI::writeSettings() settings.setValue(POI_RADIUS_SETTING, _options.poiRadius); if (_options.useOpenGL != USE_OPENGL_DEFAULT) settings.setValue(USE_OPENGL_SETTING, _options.useOpenGL); + if (_options.pixmapCache != PIXMAP_CACHE_DEFAULT) + settings.setValue(PIXMAP_CACHE_SETTING, _options.pixmapCache); if (_options.printName != PRINT_NAME_DEFAULT) settings.setValue(PRINT_NAME_SETTING, _options.printName); if (_options.printDate != PRINT_DATE_DEFAULT) @@ -1758,6 +1763,8 @@ void GUI::readSettings() .toInt(); _options.useOpenGL = settings.value(USE_OPENGL_SETTING, USE_OPENGL_DEFAULT) .toBool(); + _options.pixmapCache = settings.value(PIXMAP_CACHE_SETTING, + PIXMAP_CACHE_DEFAULT).toInt(); _options.printName = settings.value(PRINT_NAME_SETTING, PRINT_NAME_DEFAULT) .toBool(); _options.printDate = settings.value(PRINT_DATE_SETTING, PRINT_DATE_DEFAULT) @@ -1793,6 +1800,8 @@ void GUI::readSettings() _poi->setRadius(_options.poiRadius); + QPixmapCache::setCacheLimit(_options.pixmapCache * 1024); + settings.endGroup(); } diff --git a/src/optionsdialog.cpp b/src/optionsdialog.cpp index 88ca0b5f..c9800027 100644 --- a/src/optionsdialog.cpp +++ b/src/optionsdialog.cpp @@ -196,11 +196,24 @@ QWidget *OptionsDialog::createSystemPage() #endif // Q_OS_WIN32 _useOpenGL->setChecked(_options->useOpenGL); - QFormLayout *systemLayout = new QFormLayout(); - systemLayout->addWidget(_useOpenGL); + _pixmapCache = new QSpinBox(); + _pixmapCache->setMinimum(16); + _pixmapCache->setMaximum(1024); + _pixmapCache->setSuffix(UNIT_SPACE + tr("MB")); + _pixmapCache->setValue(_options->pixmapCache); + + QFormLayout *cacheLayout = new QFormLayout(); + cacheLayout->addRow(tr("Image cache size:"), _pixmapCache); + + QFormLayout *openGLLayout = new QFormLayout(); + openGLLayout->addWidget(_useOpenGL); QWidget *systemTab = new QWidget(); - systemTab->setLayout(systemLayout); + QVBoxLayout *systemTabLayout = new QVBoxLayout(); + systemTabLayout->addLayout(cacheLayout); + systemTabLayout->addLayout(openGLLayout); + systemTabLayout->addStretch(); + systemTab->setLayout(systemTabLayout); QTabWidget *systemPage = new QTabWidget(); systemPage->addTab(systemTab, tr("System")); @@ -275,6 +288,7 @@ void OptionsDialog::accept() _options->poiRadius = _poiRadius->value() * KMINM; _options->useOpenGL = _useOpenGL->isChecked(); + _options->pixmapCache = _pixmapCache->value(); _options->printName = _name->isChecked(); _options->printDate = _date->isChecked(); diff --git a/src/optionsdialog.h b/src/optionsdialog.h index e57aefbd..7319e5b4 100644 --- a/src/optionsdialog.h +++ b/src/optionsdialog.h @@ -26,6 +26,7 @@ struct Options { int poiRadius; // System bool useOpenGL; + int pixmapCache; // Print/Export bool printName; bool printDate; @@ -66,6 +67,7 @@ private: QSpinBox *_graphWidth; QCheckBox *_graphAA; QDoubleSpinBox *_poiRadius; + QSpinBox *_pixmapCache; QCheckBox *_useOpenGL; QCheckBox *_name; QCheckBox *_date; diff --git a/src/settings.h b/src/settings.h index a23fdc94..c26cc8f7 100644 --- a/src/settings.h +++ b/src/settings.h @@ -94,6 +94,8 @@ #define POI_RADIUS_DEFAULT (IMPERIAL_UNITS() ? MIINM : KMINM) #define USE_OPENGL_SETTING "useOpenGL" #define USE_OPENGL_DEFAULT false +#define PIXMAP_CACHE_SETTING "pixmapCache" +#define PIXMAP_CACHE_DEFAULT 64 #define PRINT_NAME_SETTING "printName" #define PRINT_NAME_DEFAULT true #define PRINT_DATE_SETTING "printDate"