marble
tools/routing-instructions/main.cpp
Go to the documentation of this file.
82 console << "\t--dense\t\t\tReplicate the gosmore output format and only exchange road names with driving instructions\n";
88 console << " where $lang is a two-letter ISO 639 language code, optionally suffixed by an underscore";
89 console << " and an uppercase two-letter ISO 3166 country code, e.g. nl or de_DE. Such files are searched for";
90 console << " in /usr/share/marble/translations, the translations subdir of the applications installation";
93 console << "export QUERY_STRING=\"flat=49.0&flon=8.3&tlat=49.0&tlon=8.35&fastest=1&v=motorcar\"\n";
void setCodec(QTextCodec *codec)
void setAutoDetectUnicode(bool enabled)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const T & at(int i) const
void setLineSeparator(const QString &separator)
The line separator used in the stream passed to parse.
Definition: WaypointParser.cpp:44
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QString currentPath()
RoutingWaypoints parse(QTextStream &stream) const
Parses the given stream and returns the extracted waypoint list.
Definition: WaypointParser.cpp:59
void addJunctionTypeMapping(const QString &key, RoutingWaypoint::JunctionType value)
Associate the given string key with the given junction type.
Definition: WaypointParser.cpp:54
int size() const
QLocale system()
static RoutingInstructions process(const RoutingWaypoints &waypoints)
Transforms waypoints and metadata into driving directions.
Definition: InstructionTransformation.cpp:18
void setFieldIndex(Field field, int index)
Associate the zero-based field no index with the given semantic type.
Definition: WaypointParser.cpp:39
QString adjustGosmoreVersion(QTextStream &stream, WaypointParser &parser)
Definition: tools/routing-instructions/main.cpp:26
void loadTranslations(QCoreApplication &app, QTranslator &translator)
Definition: tools/routing-instructions/main.cpp:41
QString absoluteFilePath() const
QString name() const
QCoreApplication * instance()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void setFieldSeparator(const QChar &separator)
The field separator.
Definition: WaypointParser.cpp:49
bool exists() const
bool load(const QString &filename, const QString &directory, const QString &search_delimiters, const QString &suffix)
void installTranslator(QTranslator *translationFile)
Definition: WaypointParser.h:25
QString left(int n) const
QStringList arguments()
QString applicationDirPath()
int size() const
QString readAll()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.