diff --git a/lang/gpxsee_cs.ts b/lang/gpxsee_cs.ts
index 19739463..2b8140d9 100644
--- a/lang/gpxsee_cs.ts
+++ b/lang/gpxsee_cs.ts
@@ -15,13 +15,13 @@
-
+
km
km
-
+
m
m
@@ -41,12 +41,12 @@
Minimum
-
+
mi
mi
-
+
ft
ft
@@ -59,351 +59,351 @@
GUI
-
+
About Qt
O Qt
-
+
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
-
+
Save as
Uložit jako
-
+
Open POI file
Otevřít POI soubor
-
+
Open
Otevřít
-
+
Quit
Ukončit
-
-
+
+
Keyboard controls
Ovládací klávesy
-
+
Save
Uložit
-
+
Close
Zavřít
-
+
Reload
Znovu načíst
-
+
Show
Zobrazit
-
-
+
+
File
Soubor
-
-
+
+
Data sources
Zdroje dat
-
+
Load POI file
Nahrát POI soubor
-
+
Close POI files
Zavřit soubory POI
-
+
Show POIs
Zobrazit POI
-
+
Show map
Zobrazit mapu
-
+
Show graphs
Zobrazovat grafy
-
+
Show toolbars
Zobrazovat nástrojové lišty
-
+
Metric
Metrické
-
+
Imperial
Imperiální
-
+
Next
Následující
-
+
Previous
Předchozí
-
+
Last
Poslední
-
+
First
První
-
+
Map
Mapa
-
+
POI
POI
-
+
POI files
POI soubory
-
+
Settings
Nastavení
-
+
Units
Jednotky
-
+
Help
Nápověda
-
+
Elevation
Výška
-
+
Speed
Rychlost
-
+
Heart rate
Tep
-
+
Next file
Následující soubor
-
+
Previous file
Předchozí soubor
-
+
First file
První soubor
-
+
Last file
Poslední soubor
-
+
Append modifier
Modifikátor nahradit/přidat
-
+
Map (tiles) source URLs are read on program startup from the following file:
URL mapových zdrojů (dlaždic) jsou načteny při startu programu z následujícího souboru:
-
+
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:
-
+
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:
-
+
GPX files (*.gpx);;All files (*)
soubory GPX (*.gpx);;všechny soubory (*)
-
-
+
+
Line: %1
Řádka: %1
-
+
GPX files (*.gpx);;CSV files (*.csv);;All files (*)
soubory GPX (*.gpx);;soubory CSV (*.csv);;všechny soubory (*)
-
-
+
+
mi
mi
-
-
-
-
+
+
+
+
ft
ft
-
-
+
+
Maximum
Maximum
-
-
+
+
Minimum
Minimum
-
-
+
+
About GPXSee
O aplikaci GPXSee
-
+
Navigation
Navigace
-
+
GPX viewer and analyzer
Prohlížeč a analyzátor GPX
-
+
Map sources
Mapové zdroje
-
+
POIs
POI body
-
-
+
+
Distance
Vzdálenost
-
-
+
+
Time
Čas
-
-
+
+
Ascent
Stoupání
-
-
-
-
+
+
+
+
m
m
-
-
+
+
Descent
Klesání
-
+
%1 tracks
Počet tras: %1
-
-
+
+
km
km
-
-
+
+
Error
Chyba
-
+
Error loading GPX file:
%1
Soubor GPX nelze otevřít:
%1
-
+
Error loading POI file:
%1
Soubor POI nelze otevřít:
@@ -424,7 +424,7 @@
-
+
km
km
@@ -444,7 +444,7 @@
Maximum
-
+
mi
mi
@@ -486,13 +486,13 @@
-
+
km
-
+
km/h
km/h
@@ -507,12 +507,12 @@
Maximum
-
+
mi
mi
-
+
mi/h
mi/h
diff --git a/src/gui.cpp b/src/gui.cpp
index 502c7b3d..217dde6a 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -80,6 +80,7 @@ GUI::GUI(QWidget *parent) : QMainWindow(parent)
_lastGraph = static_cast(_trackGraphs->currentWidget());
_lastSliderPos = _lastGraph->sliderPosition();
+ updateGraphTabs();
resize(600, 800);
}
@@ -346,6 +347,7 @@ void GUI::createToolBars()
void GUI::createTrackView()
{
_track = new TrackView(this);
+ _track->setEnabled(false);
if (_showMapAction->isChecked())
_track->setMap(_currentMap);
@@ -472,6 +474,7 @@ bool GUI::openFile(const QString &fileName)
_fileActionGroup->setEnabled(true);
_navigationActionGroup->setEnabled(true);
updateNavigationActions();
+ updateGraphTabs();
return true;
} else {
updateNavigationActions();
@@ -497,6 +500,7 @@ bool GUI::loadFile(const QString &fileName)
}
_trackCount += gpx.trackCount();
+ _track->setEnabled(true);
return true;
} else {
@@ -660,8 +664,10 @@ void GUI::closeFile()
_files.clear();
+ _track->setEnabled(false);
_fileActionGroup->setEnabled(false);
updateStatusBarInfo();
+ updateGraphTabs();
}
void GUI::showPOI(bool checked)
@@ -768,6 +774,15 @@ void GUI::updateNavigationActions()
}
}
+void GUI::updateGraphTabs()
+{
+ GraphView *gv;
+ for (int i = 0; i < _trackGraphs->count(); i++) {
+ gv = static_cast(_trackGraphs->widget(i));
+ _trackGraphs->setTabEnabled(i, gv->count());
+ }
+}
+
void GUI::setMetricUnits()
{
_track->setUnits(Metric);
diff --git a/src/gui.h b/src/gui.h
index 9e4c3e4c..0ff7f2d4 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -76,6 +76,7 @@ private:
void saveFile(const QString &fileName);
void updateStatusBarInfo();
void updateNavigationActions();
+ void updateGraphTabs();
void keyPressEvent(QKeyEvent * event);