Kstars
kstarslite.cpp
44 // Unlike KStars class we set pinstance at the beginning because SkyMapLite needs access to ClientManagerLite
63 qmlRegisterUncreatableType<Projector>("KStarsLiteEnums", 1, 0, "Projection", "Provides Projection enum");
87 /*SkyMapLite has to be loaded before KStarsData is initialized because SkyComponents derived classes
117 aboutDialog->setProperty("teamText", QString("2001-" + QString::number(QDate::currentDate().year()) + i18n("(c), The KStars Team")));
137 connect(qApp, SIGNAL(applicationStateChanged(Qt::ApplicationState)), SLOT(handleStateChange(Qt::ApplicationState)));
156 connect(m_KStarsData, SIGNAL(progressText(QString)), m_KStarsData, SLOT(slotConsoleMessage(QString)));
217KStarsLite *KStarsLite::createInstance(bool doSplash, bool clockrunning, const QString &startDateString)
384 data()->clock()->setClockScale(-1.0 * data()->clock()->scale()); //temporarily need negative time step
386 data()->clock()->setClockScale(-1.0 * data()->clock()->scale()); //reset original sign of time step
395 QGuiApplication::setPalette(m_KStarsData->colorScheme()->useDarkPalette() ? DarkPalette : OriginalPalette);
Definition clientmanagerlite.h:41
bool load(const QString &filename)
Load a color scheme from a *.colors file filename the filename of the color scheme to be loaded.
Definition colorscheme.cpp:129
Backend for "Find Object" dialog in QML The way we are searching for the object is as follows: Each S...
Definition finddialoglite.h:32
This class makes it possible to use QImages from C++ in QML.
Definition imageprovider.h:18
void changeDateTime(const KStarsDateTime &newDate)
Change the current simulation date/time to the KStarsDateTime argument.
Definition kstarsdata.cpp:337
void setFullTimeUpdate()
The Sky is updated more frequently than the moon, which is updated more frequently than the planets.
Definition kstarsdata.cpp:323
void updateTime(GeoLocation *geo, const bool automaticDSTchange=true)
Update the Simulation Clock.
Definition kstarsdata.cpp:244
void setLocationFromOptions()
Set the GeoLocation according to the values stored in the configuration file.
Definition kstarsdata.cpp:406
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
static KStarsDateTime fromString(const QString &s)
Definition kstarsdatetime.cpp:91
static KStarsDateTime currentDateTimeUtc()
Definition kstarsdatetime.cpp:82
This class loads QML files and connects SkyMapLite and KStarsData Unlike KStars class it is not a mai...
Definition kstarslite.h:47
void slotToggleTimer()
action slot: toggle whether kstars clock is running or not
Definition kstarslite.cpp:352
void setRunTutorial(bool runTutorial)
set whether tutorial should be shown on next startup
Definition kstarslite.cpp:508
Q_INVOKABLE void applyConfig(bool doApplyFocus=true)
currently sets color scheme from config
Definition kstarslite.cpp:390
void updateTime(const bool automaticDSTchange=true)
Update time-dependent data and (possibly) repaint the sky map.
Definition kstarslite.cpp:234
static KStarsLite * createInstance(bool doSplash, bool clockrunning=true, const QString &startDateString=QString())
Create an instance of this class.
Definition kstarslite.cpp:217
void slotTrack()
start tracking clickedPoint or stop tracking if we are already tracking some object
Definition kstarslite.cpp:185
Q_INVOKABLE void fullUpdate()
used from QML to update positions of sky objects and update SkyMapLite
Definition kstarslite.cpp:226
void slotSetTime(QDateTime time)
sets time and date according to parameter time
Definition kstarslite.cpp:326
Q_INVOKABLE bool isActive()
Whether the clock is active or not is a bit complicated by the introduction of "manual mode".
Definition simclock.cpp:128
void setManualMode(bool on=true)
Sets Manual Mode on/off according to the bool argument.
Definition simclock.cpp:66
Q_SCRIPTABLE Q_NOREPLY void setClockScale(double scale)
DBUS function to set scale of simclock.
Definition simclock.cpp:210
bool isManualMode() const
Manual Mode is a new (04/2002) addition to the SimClock.
Definition simclock.h:69
void manualTick(bool force=false, bool backward=false)
Equivalent of tick() for manual mode.
Definition simclock.cpp:112
static SkyMapLite * createInstance()
Creates instance of SkyMapLite (delete the old one if any)
Definition skymaplite.cpp:215
SkyPoint * focus()
Retrieve the Focus point; the position on the sky at the center of the skymap.
Definition skymaplite.h:125
void forceUpdate()
Recalculates the positions of objects in the sky, and then repaints the sky map.
Definition skymaplite.cpp:639
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition skymaplite.cpp:312
void initStarImages()
Initializes images of Stars and puts them in cache (copied from SkyQPainter)
Definition skymaplite.cpp:996
void setFocusPoint(SkyPoint *f)
set the FocusPoint; the position that is to be the next Destination.
Definition skymaplite.h:204
void setClickedPoint(SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition skymaplite.cpp:306
void initialize(QQuickItem *parent)
Bind size to parent's size and initialize star images.
Definition skymaplite.cpp:222
void setFocusObject(SkyObject *o)
Set the FocusObject pointer to the argument.
Definition skymaplite.cpp:318
SkyObject * focusObject() const
Retrieve the object which is centered in the sky map.
Definition skymaplite.h:252
void EquatorialToHorizontal(const CachingDms *LST, const CachingDms *lat)
Determine the (Altitude, Azimuth) coordinates of the SkyPoint from its (RA, Dec) coordinates,...
Definition skypoint.cpp:77
void HorizontalToEquatorial(const dms *LST, const dms *lat)
Determine the (RA, Dec) coordinates of the SkyPoint from its (Altitude, Azimuth) coordinates,...
Definition skypoint.cpp:143
Q_INVOKABLE void toggleObjects(ObjectsToToggle toToggle, bool toggle)
toggles on/off objects of group toToggle
Definition kstarslite.cpp:415
Q_INVOKABLE bool isToggled(ObjectsToToggle toToggle)
Definition kstarslite.cpp:471
Q_INVOKABLE QColor getColor(QString name)
returns color with key name from current color scheme
Definition kstarslite.cpp:405
Q_INVOKABLE void setProjection(uint proj)
setProjection calls Options::setProjection(proj) and updates SkyMapLite
Definition kstarslite.cpp:398
QString i18n(const char *text, const TYPE &arg...)
GeoCoordinates geo(const QVariant &location)
void setOrganizationName(const QString &orgName)
QDate currentDate()
bool isValid() const const
QPalette palette()
void setPalette(const QPalette &pal)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T findChild(const QString &name, Qt::FindChildOptions options) const const
bool setProperty(const char *name, QVariant &&value)
Normal
Base
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void load(const QString &filePath)
QList< QObject * > rootObjects() const const
void setContextObject(QObject *object)
void setContextProperty(const QString &name, QObject *value)
void addImageProvider(const QString &providerId, QQmlImageProviderBase *provider)
QQmlContext * rootContext() const const
void setStyle(const QString &style)
AppDataLocation
bool isEmpty() const const
QString number(double n, char format, int precision)
TripleBuffer
void setSamples(int numSamples)
void setSwapBehavior(SwapBehavior behavior)
ApplicationState
singleShot
virtual QSurfaceFormat format() const const override
void setFormat(const QSurfaceFormat &format)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.