Kstars
kstars.cpp
86 this); // NOTE the weird case convention, which cannot be changed as the file is generated by the moc.
90 QString vlcPlugins = QDir(QCoreApplication::applicationDirPath() + "/../PlugIns/vlc").absolutePath();
98 env.insert("PATH", "/usr/bin:/usr/local/bin:\"" + QCoreApplication::applicationDirPath() + "\":" + path);
103 QString pluginsDir = QDir(QCoreApplication::applicationDirPath() + "/../PlugIns").absolutePath();
214 connect(m_KStarsData, SIGNAL(progressText(QString)), m_KStarsData, SLOT(slotConsoleMessage(QString)));
254 qDebug() << Q_FUNC_INFO << "Spent " << SkyPoint::cpuTime_EqToHz << " seconds in " << SkyPoint::eqToHzCalls
260 qDebug() << Q_FUNC_INFO << "Constructed " << dms::dms_constructor_calls << " dms objects, of which " <<
264 qDebug() << Q_FUNC_INFO << "Of the " << dms::trig_function_calls << " calls to sin/cos/sincos on dms objects, "
266 << ((float(dms::redundant_trig_function_calls) / float(dms::trig_function_calls)) * 100.) << "%";
267 qDebug() << Q_FUNC_INFO << "We had " << CachingDms::cachingdms_bad_uses << " bad uses of CachingDms in all, compared to "
337 actionCollection()->action("show_constellationart")->setChecked(Options::showConstellationArt());
349 actionCollection()->action("erect_observer_correction_off")->setChecked(Options::erectObserverCorrection() == 0);
350 actionCollection()->action("erect_observer_correction_left")->setChecked(Options::erectObserverCorrection() == 1);
351 actionCollection()->action("erect_observer_correction_right")->setChecked(Options::erectObserverCorrection() == 2);
359 //Note: This uses style sheets to set the dark colors, this should be cross platform. Palettes have a different behavior on OS X and Windows as opposed to Linux.
360 //It might be a good idea to use stylesheets in the future instead of palettes but this will work for now for OS X.
517 zoom(map()->width() / (3 * std::max(currentFov->sizeX(), currentFov->sizeY()) * dms::DegToRad / 60.0));
554 zoom(map()->width() / (3 * std::max(currentFov->sizeX(), currentFov->sizeY()) * dms::DegToRad / 60.0));
635 QSharedPointer<FITSViewer> newFITSViewer(new FITSViewer(Options::independentWindowFITS() ? nullptr : KStars::Instance()),
641 m_FITSViewers.erase(std::remove_if(m_FITSViewers.begin(), m_FITSViewers.end(), [rawPointer](auto & viewer)
654 m_GenericFITSViewer.reset(new FITSViewer(Options::independentWindowFITS() ? nullptr : this), &QObject::deleteLater);
Q_INVOKABLE QAction * action(const QString &name) const
KToolBar * toolBar(const QString &name=QString())
static void SyncFilterRules()
SyncFilterRules Sync QtLogging filter rules from Options.
Definition ksutils.cpp:1035
void updateTime(GeoLocation *geo, const bool automaticDSTchange=true)
Update the Simulation Clock.
Definition kstarsdata.cpp:250
void syncFOV()
Synchronize list of visible FOVs and list of selected FOVs in Options.
Definition kstarsdata.cpp:1503
void setLocationFromOptions()
Set the GeoLocation according to the values stored in the configuration file.
Definition kstarsdata.cpp:412
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
void applyConfig(bool doApplyFocus=true)
Apply config options throughout the program.
Definition kstars.cpp:311
static KStars * createInstance(bool doSplash, bool clockrunning=true, const QString &startDateString=QString())
Create an instance of this class.
Definition kstars.cpp:239
void clearCachedFindDialog()
Delete FindDialog because ObjNames list has changed in KStarsData due to reloading star data.
Definition kstars.cpp:293
void slotWISettings()
action slot: open What's Interesting settings window
Definition kstarsactions.cpp:567
void updateTime(const bool automaticDSTchange=true)
Update time-dependent data and (possibly) repaint the sky map.
Definition kstars.cpp:592
void applySettings(const KConfigGroup &cg)
virtual KActionCollection * actionCollection() const
virtual QAction * action(const QDomElement &element) const
bool event(QEvent *event) override
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
bool isManualMode() const
Manual Mode is a new (04/2002) addition to the SimClock.
Definition simclock.h:69
void setClickedPoint(const SkyPoint *f)
Set the ClickedPoint to the skypoint given as an argument.
Definition skymap.cpp:1021
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition skymap.cpp:366
void slotDisplayFadingText(const QString &text)
Render a fading text label on the screen to flash information.
Definition skymap.cpp:1386
Provides all necessary information about an object in the sky: its coordinates, name(s),...
Definition skyobject.h:42
static constexpr double DegToRad
DegToRad is a const static member equal to the number of radians in one degree (dms::PI/180....
Definition dms.h:390
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
char * toString(const EngineQuery &query)
GeoCoordinates geo(const QVariant &location)
QString path(const QString &relativePath)
Trigger
void setChecked(bool)
void setIcon(const QIcon &icon)
void setText(const QString &text)
QList< QAction * > actions() const const
QAction * checkedAction() const const
void setEnabled(bool)
QString applicationDirPath()
bool isValid() const const
bool registerObject(const QString &path, QObject *object, RegisterOptions options)
bool registerService(const QString &serviceName)
QDBusConnection sessionBus()
QString absolutePath() const const
QIcon fromTheme(const QString &name)
ReadOnly
const_reference at(qsizetype i) const const
qsizetype count() const const
pointer data()
T & first()
qsizetype indexOf(const AT &value, qsizetype from) const const
T & last()
QStatusBar * statusBar() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
void setProcessEnvironment(const QProcessEnvironment &environment)
void start(OpenMode mode)
bool waitForFinished(int msecs)
void insert(const QProcessEnvironment &e)
QProcessEnvironment systemEnvironment()
QString value(const QString &name, const QString &defaultValue) const const
void removeDatabase(const QString &connectionName)
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
QString mid(qsizetype position, qsizetype n) const const
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
QByteArray toLatin1() const const
QString buildAbi()
QString currentCpuArchitecture()
QString kernelType()
QString kernelVersion()
QString productType()
RightToLeft
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QThreadPool * globalInstance()
void setStackSize(uint stackSize)
singleShot
QList< QAction * > actions() const const
virtual void closeEvent(QCloseEvent *event)
focus
void setLayoutDirection(Qt::LayoutDirection direction)
void show()
void update()
virtual void setVisible(bool visible)
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:53:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.