mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Replaced data sources info with bare paths info
This commit is contained in:
parent
84d860e2a2
commit
98dd8c264c
@ -200,8 +200,8 @@ void GUI::createActions()
|
|||||||
addAction(_exitAction);
|
addAction(_exitAction);
|
||||||
|
|
||||||
// Help & About
|
// Help & About
|
||||||
_dataSourcesAction = new QAction(tr("Data sources"), this);
|
_pathsAction = new QAction(tr("Paths"), this);
|
||||||
connect(_dataSourcesAction, SIGNAL(triggered()), this, SLOT(dataSources()));
|
connect(_pathsAction, SIGNAL(triggered()), this, SLOT(paths()));
|
||||||
_keysAction = new QAction(tr("Keyboard controls"), this);
|
_keysAction = new QAction(tr("Keyboard controls"), this);
|
||||||
connect(_keysAction, SIGNAL(triggered()), this, SLOT(keys()));
|
connect(_keysAction, SIGNAL(triggered()), this, SLOT(keys()));
|
||||||
_aboutAction = new QAction(QIcon(QPixmap(APP_ICON)),
|
_aboutAction = new QAction(QIcon(QPixmap(APP_ICON)),
|
||||||
@ -470,7 +470,7 @@ void GUI::createMenus()
|
|||||||
settingsMenu->addAction(_openOptionsAction);
|
settingsMenu->addAction(_openOptionsAction);
|
||||||
|
|
||||||
QMenu *helpMenu = menuBar()->addMenu(tr("Help"));
|
QMenu *helpMenu = menuBar()->addMenu(tr("Help"));
|
||||||
helpMenu->addAction(_dataSourcesAction);
|
helpMenu->addAction(_pathsAction);
|
||||||
helpMenu->addAction(_keysAction);
|
helpMenu->addAction(_keysAction);
|
||||||
helpMenu->addSeparator();
|
helpMenu->addSeparator();
|
||||||
helpMenu->addAction(_aboutAction);
|
helpMenu->addAction(_aboutAction);
|
||||||
@ -606,34 +606,24 @@ void GUI::keys()
|
|||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::dataSources()
|
void GUI::paths()
|
||||||
{
|
{
|
||||||
QMessageBox msgBox(this);
|
QMessageBox msgBox(this);
|
||||||
|
|
||||||
msgBox.setWindowTitle(tr("Data sources"));
|
msgBox.setWindowTitle(tr("Paths"));
|
||||||
msgBox.setText("<h3>" + tr("Maps") + "</h3>");
|
msgBox.setText("<h3>" + tr("Paths") + "</h3>");
|
||||||
msgBox.setInformativeText(
|
msgBox.setInformativeText(
|
||||||
+ "<p>" + tr("Maps are loaded on program startup from the following "
|
"<style>td {white-space: pre; padding-right: 1.5em;}</style>"
|
||||||
"directory:")
|
"<div><table><tr><td>" + tr("Map directory") + "</td><td><code>"
|
||||||
+ "</p><p><code>" + USER_MAP_DIR + "</code></p>"
|
+ GLOBAL_MAP_DIR + "</code></td></tr><tr><td>" + tr("POI directory")
|
||||||
|
+ "</td><td><code>" + GLOBAL_POI_DIR + "</code></td></tr><tr><td>"
|
||||||
+ "<h4>" + tr("Online maps") + "</h4><p>"
|
+ tr("GCS file") + "</td><td><code>" + GLOBAL_GCS_FILE
|
||||||
+ tr("The online map list file format is one map entry per line, "
|
+ "</code></td></tr><tr><td>" + tr("PCS file") + "</td><td><code>"
|
||||||
"consisting of the map name, tiles URL and an optional maximal zoom "
|
+ GLOBAL_PCS_FILE + "</code></td></tr><tr><td>" + tr("Ellipsoids file")
|
||||||
"level delimited by a TAB character. The tile X and Y coordinates are "
|
+ "</td><td><code>" + GLOBAL_ELLIPSOID_FILE
|
||||||
"replaced with $x and $y in the URL and the zoom level is replaced "
|
+ "</code></td></tr>" + "<tr><td></td><td></td></tr><tr><td>"
|
||||||
"with $z. An example online map list file could look like:")
|
+ tr("User directory") + "</td><td><code>" + USER_DIR
|
||||||
+ "</p><p><code>Map1 http://tile.server.com/map/$z/$x/$y.png 15"
|
+ "</td></tr></table></div>"
|
||||||
"<br/>Map2 http://mapserver.org/map/$z-$x-$y</code></p>"
|
|
||||||
|
|
||||||
+ "<h4>" + tr("Offline maps") + "</h4><p>"
|
|
||||||
" Supported map formats are OziExplorer maps, TrekBuddy maps/atlases "
|
|
||||||
" (tared and non-tared) and GeoTIFF images." + "</p>"
|
|
||||||
|
|
||||||
+ "<h3>" + tr("POIs") + "</h3><p>"
|
|
||||||
+ tr("To make GPXSee load a POI file automatically on startup, add "
|
|
||||||
"the file to the following directory:")
|
|
||||||
+ "</p><p><code>" + USER_POI_DIR + "</code></p>"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
private slots:
|
private slots:
|
||||||
void about();
|
void about();
|
||||||
void keys();
|
void keys();
|
||||||
void dataSources();
|
void paths();
|
||||||
void printFile();
|
void printFile();
|
||||||
void exportFile();
|
void exportFile();
|
||||||
void openFile();
|
void openFile();
|
||||||
@ -136,7 +136,7 @@ private:
|
|||||||
QActionGroup *_mapsActionGroup;
|
QActionGroup *_mapsActionGroup;
|
||||||
QAction *_exitAction;
|
QAction *_exitAction;
|
||||||
QAction *_keysAction;
|
QAction *_keysAction;
|
||||||
QAction *_dataSourcesAction;
|
QAction *_pathsAction;
|
||||||
QAction *_aboutAction;
|
QAction *_aboutAction;
|
||||||
QAction *_aboutQtAction;
|
QAction *_aboutQtAction;
|
||||||
QAction *_printFileAction;
|
QAction *_printFileAction;
|
||||||
|
Loading…
Reference in New Issue
Block a user