Kstars
locationdialoglite.cpp
40 connect(nam, SIGNAL(finished(QNetworkReply*)), this, SLOT(processLocationNameData(QNetworkReply*)));
56 connect(nam, SIGNAL(finished(QNetworkReply*)), this, SLOT(processLocationNameData(QNetworkReply*)));
78 val.toArray()[0].toObject()["address_components"].toArray()[2].toObject()["long_name"].toString();
80 val.toArray()[0].toObject()["address_components"].toArray()[3].toObject()["long_name"].toString();
82 val.toArray()[0].toObject()["address_components"].toArray()[4].toObject()["long_name"].toString();
105 //Sort the list of Cities alphabetically...note that filteredCityList may now have a different ordering!
125void LocationDialogLite::filterCity(const QString &city, const QString &province, const QString &country)
153bool LocationDialogLite::addCity(const QString &city, const QString &province, const QString &country,
180 return editCity(fullName, city, province, country, latitude, longitude, TimeZoneString, TZRule);
199 add_query.prepare("INSERT INTO city(Name, Province, Country, Latitude, Longitude, TZ, TZRule) VALUES(:Name, "
215 g = new GeoLocation(lng, lat, City, Province, Country, TZ, &KStarsData::Instance()->Rulebook[TZRule]);
234 delete_query.prepare("DELETE FROM city WHERE Name = :Name AND Province = :Province AND Country = :Country");
254bool LocationDialogLite::editCity(const QString &fullName, const QString &city, const QString &province,
269 update_query.prepare("UPDATE city SET Name = :newName, Province = :newProvince, Country = :newCountry, "
390bool LocationDialogLite::isDuplicate(const QString &city, const QString &province, const QString &country)
403 if (sc.toLower() == city.toLower() && sp.toLower() == province.toLower() && ss.toLower() == country.toLower())
428 QString dbfile = QDir(KSPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("mycitydb.sqlite");
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
void setNextDSTChange(const KStarsDateTime &dt)
Set the NextDSTChange member.
Definition kstarsdata.h:112
void setLocation(const GeoLocation &l)
Set the GeoLocation according to the argument.
Definition kstarsdata.cpp:419
void setFullTimeUpdate()
The Sky is updated more frequently than the moon, which is updated more frequently than the planets.
Definition kstarsdata.cpp:329
bool isTimeRunningForward() const
Returns true if time is running forward else false.
Definition kstarsdata.h:121
const QMap< QString, TimeZoneRule > & getRulebook() const
Return map for daylight saving rules.
Definition kstarsdata.h:264
void setSnapNextFocus(bool b=true)
Disable or re-enable the slewing animation for the next Focus change.
Definition kstarsdata.h:285
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
This class loads QML files and connects SkyMapLite and KStarsData Unlike KStars class it is not a mai...
Definition kstarslite.h:47
void updateTime(const bool automaticDSTchange=true)
Update time-dependent data and (possibly) repaint the sky map.
Definition kstarslite.cpp:234
Q_INVOKABLE bool checkLongLat(const QString &longitude, const QString &latitude)
checkLongLat checks whether given longitude and latitude are valid
Definition locationdialoglite.cpp:460
dms createDms(const QString °ree, bool deg, bool *ok)
TODO - port dmsBox to QML.
Definition locationdialoglite.cpp:535
Q_INVOKABLE void getNameFromCoordinates(double latitude, double longitude)
Retrieve name of location by latitude and longitude.
Definition locationdialoglite.cpp:43
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition skymaplite.h:125
const QString toDMSString(const bool forceSign=false, const bool machineReadable=false, const bool highPrecision=false) const
Definition dms.cpp:287
QString fullName(const PartType &type)
char * toString(const EngineQuery &query)
KSERVICE_EXPORT KService::List query(FilterFunc filterFunc)
GeoCoordinates geo(const QVariant &location)
QString name(StandardAction id)
KI18NLOCALEDATA_EXPORT KCountry country(const char *ianaId)
Country
QString filePath(const QString &fileName) const const
bool exists() const const
void clear()
iterator insert(const Key &key, const T &value)
bool remove(const Key &key)
T value(const Key &key) const const
QByteArray readAll()
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
bool isObject() const const
QJsonObject object() const const
bool contains(QLatin1StringView key) const const
QJsonArray toArray() const const
void append(QList< T > &&value)
bool removeOne(const AT &t)
QList< Key > keys() const const
QNetworkReply * get(const QNetworkRequest &request)
NetworkError error() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
bool setProperty(const char *name, QVariant &&value)
void setContextProperty(const QString &name, QObject *value)
QQmlContext * rootContext() const const
void close()
bool commit()
QSqlDatabase database(const QString &connectionName, bool open)
bool isValid() const const
QSqlError lastError() const const
bool open()
void setDatabaseName(const QString &name)
AppDataLocation
bool isEmpty() const const
QString number(double n, char format, int precision)
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
double toDouble(bool *ok) const const
QString toLower() const const
QString trimmed() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
qsizetype indexOf(const QRegularExpression &re, qsizetype from) const const
void setStringList(const QStringList &strings)
virtual void sort(int column, Qt::SortOrder order) override
QStringList stringList() const const
QTextStream & endl(QTextStream &stream)
void setQuery(const QString &query, ParsingMode mode)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.