Kstars
detaildialog.cpp
55 titlePalette.setColor(foregroundRole(), palette().color(QPalette::Active, QPalette::HighlightedText));
190 "The first arg is proper motion in right ascension and the second in the declination. The unit stands for milliarcsecond per year",
233 //The moon displays illumination fraction and updateMag is called to calculate moon's current magnitude
247 QLocale().toString( ((KSComet *)selectedObject)->getTotalMagnitudeParameter(), 'f', 2))); //show to hundredth place
557 QString sEpoch = QString::number(KStarsDateTime::jdToEpoch(selectedObject->getLastPrecessJD()), 'f', 1);
563 //qDebug() << Q_FUNC_INFO << selectedObject->ra().toHMSString() << selectedObject->dec().toDMSString();
586 if (!selectedObject->isSolarSystem() || selectedObject->type() == SkyObject::COMET || selectedObject->type() == SkyObject::ASTEROID)
701 connect(Links->InfoTitleList, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)), this,
707 connect(Links->ImageTitleList, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)), this,
712 connect(Links->InfoTitleList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(viewLink()));
713 connect(Links->ImageTitleList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(viewLink()));
761 connect(Adv->ADVTree, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)), this, SLOT(viewADVData()));
836 if (!Links->InfoTitleList->selectedItems().isEmpty() || !Links->ImageTitleList->selectedItems().isEmpty())
863 QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
986 temp = new QTreeWidgetItem(parent, QStringList(i18nc("Advanced URLs: description or category", item->Name.toLocal8Bit().data())));
1001 new QTreeWidgetItem(parent, QStringList(i18nc("Advanced URLs: description or category", item->Name.toLocal8Bit().data())));
1043 subLink = QString::asprintf("%02d%02d%02d", selectedObject->ra0().hour(), selectedObject->ra0().minute(),
1055 subLink = QString::asprintf("%03d%02d%02d", selectedObject->dec0().degree(), selectedObject->dec0().arcmin(),
1062 subLink = QString::asprintf("%02d%02d%02d", selectedObject->dec0().degree(), selectedObject->dec0().arcmin(),
1111 KSNotification::error(i18n("Mount %1 is offline. Please connect and retry again.", oneDevice->getDeviceName()));
1115 auto mount = dynamic_cast<ISD::Mount *>(oneDevice->getConcreteDevice(INDI::BaseDevice::TELESCOPE_INTERFACE));
1122 if (KMessageBox::warningContinueCancel(nullptr, i18n("Danger! Viewing the Sun without adequate solar filters is dangerous and will result in permanent eye damage!"))
void append(const T &value)
QString text() const const
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition: kstarsdatetime.h:35
KStarsDateTime addDays(int nd) const
Modify the Date/Time by adding a number of days.
Definition: kstarsdatetime.h:110
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString number(int n, int base)
virtual void reject()
ButtonCode warningContinueCancel(QWidget *parent, const QString &text, const QString &title=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
Base
std::pair< bool, QString > editUserData(const QString &name, const unsigned int index, const SkyObjectUserdata::LinkData &data)
Replace data in the user data at index for the object with name, both in memory and on disk.
Definition: kstarsdata.cpp:1646
void addLink()
Popup menu function: Add a custom Image or Information URL.
Definition: detaildialog.cpp:721
bool hasNext() const const
Definition: kstarsdata.h:70
bool isValid() const const
bool openUrl(const QUrl &url)
Dirs
QString next()
QListWidget * listWidget() const const
std::pair< bool, QString > deleteUserData(const QString &name, const unsigned int index, SkyObjectUserdata::Type type)
Remove data of type from the user data at index for the object with name, both in memory and on disk.
Definition: kstarsdata.cpp:1668
const SkyObjectUserdata::Data & getUserData(const QString &name)
Get a reference to the user data of an object with the name name.
Definition: kstarsdata.cpp:1755
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
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
const QString toHMSString(const bool machineReadable=false, const bool highPrecision=false) const
Definition: dms.cpp:370
Provides necessary information about the Moon. A subclass of SkyObject that provides information need...
Definition: ksmoon.h:25
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void updateLists()
Rebuild the Image and Info URL lists for this object.
Definition: detaildialog.cpp:819
Definition: supernova.h:33
void updateCoords(const KSNumbers *num, bool includePlanets=true, const CachingDms *lat=nullptr, const CachingDms *LST=nullptr, bool forceRecompute=false) override
Update position of the planet (reimplemented from SkyPoint)
Definition: ksplanetbase.cpp:86
Tool
KIOCORE_EXPORT CopyJob * link(const QList< QUrl > &src, const QUrl &destDir, JobFlags flags=DefaultFlags)
void rejected()
KeepAspectRatio
QString i18n(const char *text, const TYPE &arg...)
QString longname(void) const override
If star is unnamed return "star" otherwise return the longname.
Definition: starobject.h:133
const QString toDMSString(const bool forceSign=false, const bool machineReadable=false, const bool highPrecision=false) const
Definition: dms.cpp:279
Definition: indimount.h:26
void viewADVData()
Open the web browser to the selected online astronomy database, with a query to the object of this De...
Definition: detaildialog.cpp:1007
char * toString(const T &value)
dms riseSetTimeAz(const KStarsDateTime &dt, const GeoLocation *geo, bool rst) const
Definition: skyobject.cpp:190
static double jdToEpoch(long double jd, EpochType type=JULIAN)
Takes in a Julian Date and returns the corresponding epoch year in the given system.
Definition: kstarsdatetime.cpp:269
void setText(const QString &)
QTime riseSetTime(const KStarsDateTime &dt, const GeoLocation *geo, bool rst, bool exact=true) const
Determine the time at which the point will rise or set.
Definition: skyobject.cpp:93
bool isEmpty() const const
void setWindowTitle(const QString &)
bool mkpath(const QString &dirPath) const const
QString toString(qlonglong i) const const
virtual void accept()
void saveLogData()
Save the User's text in the Log Tab to the userlog.dat file.
Definition: detaildialog.cpp:1074
void setClickedObject(SkyObject *o)
Set the ClickedObject pointer to the argument.
Definition: skymap.cpp:331
void addPage(KPageWidgetItem *item)
void viewLink()
Slot for viewing the selected image or info URL in the web browser.
Definition: detaildialog.cpp:795
SkyPoint recomputeCoords(const KStarsDateTime &dt, const GeoLocation *geo=nullptr) const
The equatorial coordinates for the object on date dt are computed and returned, but the object's inte...
Definition: skyobject.cpp:295
std::pair< bool, QString > updateUserLog(const QString &name, const QString &newLog)
Update the user log of the object with the name to contain newLog (find and replace).
Definition: kstarsdata.cpp:1691
virtual int exec()
GeoCoordinates geo(const QVariant &location)
Accepted
QString join(const QString &separator) const const
std::pair< bool, QString > addToUserData(const QString &name, const SkyObjectUserdata::LinkData &data)
Adds a link data to the user data for the object with name, both in memory and on disk.
Definition: kstarsdata.cpp:1531
void setupUi(QWidget *widget)
DetailDialog(SkyObject *o, const KStarsDateTime &ut, GeoLocation *geo, QWidget *parent=nullptr)
Constructor.
Definition: detaildialog.cpp:41
int hour() const const
NoButton
QString & replace(int position, int n, QChar after)
QString & remove(int position, int n)
dms transitAltitude(const KStarsDateTime &dt, const GeoLocation *geo) const
Definition: skyobject.cpp:244
NoFrame
KGuiItem del()
void updateThumbnail()
Slot to update thumbnail image for the object, using the Thumbnail Picker tool.
Definition: detaildialog.cpp:1180
QString toLower() const const
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
void editLinkDialog()
Open a dialog to edit a URL in either the Images or Info lists, and update the user's *url....
Definition: detaildialog.cpp:846
AppLocalDataLocation
QString absoluteFilePath(const QString &fileName) const const
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
QString & insert(int position, QChar ch)
void setObjectName(const QString &name)
void showThumbnail()
Slot to display the thumbnail image for the object.
Definition: detaildialog.cpp:1136
QString filePath(const QString &fileName) const const
void setCurrentLink(QListWidgetItem *it)
Set the currently-selected URL resource.
Definition: detaildialog.cpp:790
void addToObservingList()
Slot to add this object to the observing list.
Definition: detaildialog.cpp:1083
QString i18nc(const char *context, const char *text, const TYPE &arg...)
int childCount() const const
QTime transitTime(const KStarsDateTime &dt, const GeoLocation *geo) const
The same iteration technique described in riseSetTime() is used here.
Definition: skyobject.cpp:239
void addLayout(QLayout *layout, int stretch)
Active
ReturnByValue
QString asprintf(const char *cformat,...)
void setLayout(QLayout *layout)
FastTransformation
void home(bool mark)
QString text(int column) const const
A simple container object to hold the minimum information for a Deeb Sky Object to be drawn on the sk...
Definition: catalogobject.h:40
void removeLinkDialog()
remove a URL entry from either the Images or Info lists, and update the user's *url....
Definition: detaildialog.cpp:932
QDialogButtonBox * buttonBox()
size
int minute() const const
QObject * parent() const const
const CatalogsDB::Catalog getCatalog() const
Get information about the catalog that this objects stems from.
Definition: catalogobject.cpp:104
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
void accepted()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Aug 17 2022 04:14:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Aug 17 2022 04:14:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.