Kstars
xplanetimageviewer.cpp
96 m_Pix = QPixmap::fromImage(m_Image.scaled(event->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
101 m_Pix = QPixmap::fromImage(m_Image.scaled(size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
209 m_ObjectNames << i18n("Jupiter") << i18n("Ganymede") << i18n("Io") << i18n("Callisto") << i18n("Europa");
211 m_ObjectNames << i18n("Saturn") << i18n("Titan") << i18n("Mimas") << i18n("Enceladus") << i18n("Tethys") << i18n("Dione") << i18n("Rhea") << i18n("Hyperion") << i18n("Iapetus") << i18n("Phoebe");
212 m_objectDefaultFOVs << 0.02 << 0.0003 << 0.00002 << 0.00003 << 0.00007 << 0.00007 << 0.0001 << 0.00002 << 0.0001 << 0.00002;
213 m_ObjectNames << i18n("Uranus") << i18n("Umbriel") << i18n("Ariel") << i18n("Miranda") << i18n("Titania") << i18n("Oberon");
226 objectSelector->setToolTip(i18n("This allows you to select a new object/target for XPlanet to view"));
229 connect(objectSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(updateXPlanetObject(int)));
240 connect(m_OriginSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(updateXPlanetOrigin(int)));
249 m_PositionDisplay->setToolTip(i18n("XPlanet Latitude, Longitude, and object radius in %. This is only valid when viewing the object from the same object"));
259 resetXPlanetLocation->setToolTip(i18n("Reset XPlanet Location to the location specified in the XPlanet Options"));
269 m_FreeRotate->setToolTip(i18n("Hover over target and freely rotate view with mouse in XPlanet Viewer"));
305 m_FOVEdit->setToolTip(i18n("Sets the FOV to the Specified value. Note: has no effect if hovering over object."));
321 m_KStarsFOV->setToolTip(i18n("Zoom to the current KStars FOV. Note: has no effect if hovering over object."));
330 m_setFOV->setToolTip(i18n("Zoom to a specific FOV. This has no effect when hovering over an object"));
339 m_NoFOV->setToolTip(i18n("Optimum FOV for the target, FOV parameter not specified. Note: has no effect if hovering over object."));
388 invertB->setToolTip(i18n("Reverse colors of the image. This is useful to enhance contrast at times. This affects "
405 setTime->setToolTip(i18n("Allows you to set the XPlanet time to a different date/time from KStars"));
422 m_XPlanetTimeDisplay->setText(i18n("%1, %2", m_XPlanetTime.date().toString(), m_XPlanetTime.time().toString()));
429 m_TimeSlider->setToolTip(i18n("This sets the time step from the current XPlanet time, good for viewing events"));
449 m_TimeUnitsSelect->setToolTip(i18n("Lets you change the units for the timestep in the animation"));
450 connect(m_TimeUnitsSelect, SIGNAL(currentIndexChanged(int)), this, SLOT(updateXPlanetTimeUnits(int)));
471 resetTime->setToolTip(i18n("Resets the animation to 0 timesteps from the current XPlanet Time"));
550 KSNotification::error(i18n("The configured Xplanet binary does not exist or is not executable."));
570 args << "-geometry" << QString::number(Options::xplanetWidth()) + 'x' + QString::number(Options::xplanetHeight());
631 args << "-latitude" << QString::number(m_lat) << "-longitude" << QString::number(m_lon) << "-radius" << QString::number(m_Radius);
639 args << "-center" << "+" + QString::number(Options::xplanetWidth() / 2 + center.x()) + "+" + QString::number(Options::xplanetHeight() / 2 + center.y());
712 QString searchDir = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kstars", QStandardPaths::LocateDirectory) + QDir::separator() + "xplanet";
754 m_Caption->setText(i18n("XPlanet View: %1 from %2 on %3", m_ObjectName, m_OriginName, m_DateText));
756 m_Caption->setText(i18n("XPlanet View: %1 from %2 on %3 at FOV: %4 deg", m_ObjectName, m_OriginName, m_DateText, m_FOV));
775 KStars::Instance()->statusBar()->showMessage(i18n("XPlanet failed to generate the image for object %1 before the timeout expired.", m_ObjectName));
790 QDir kstarsTempDir(KSPaths::writableLocation(QStandardPaths::TempLocation) + QDir::separator() + qAppName());
792 m_File.setFileName(kstarsTempDir.filePath(QString("xplanetfifo%1.png").arg(QUuid::createUuid().toString().mid(1, 8)).toLatin1()));
795 KSNotification::error(i18n("Error making FIFO file %1: %2.", m_File.fileName(), strerror(errno)));
802 //If the user is using windows or has not selected to use FIFO, it uses files in the KStars data directory.
803 QDir xPlanetDirPath(KSPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + QDir::separator() + "xplanet");
846 m_PositionDisplay->setText(i18n("%1, %2, %3", QString::number(m_lat), QString::number(m_lon), QString::number(m_Radius)));
881 m_DateText = i18n("%1, %2", shiftedXPlanetTime.date().toString(), shiftedXPlanetTime.time().toString());
1038 QPointer<TimeDialog> timedialog = new TimeDialog(m_XPlanetTime, KStarsData::Instance()->geo(), this);
1042 m_XPlanetTimeDisplay->setText(i18n("%1, %2", m_XPlanetTime.date().toString(), m_XPlanetTime.time().toString()));
1055 m_XPlanetTimeDisplay->setText(i18n("%1, %2", m_XPlanetTime.date().toString(), m_XPlanetTime.time().toString()));
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
KStarsDateTime addDays(int nd) const
Modify the Date/Time by adding a number of days.
Definition kstarsdatetime.h:110
XPlanet Image viewer QFrame for the KPlanetImageViewer for KStars.
Definition xplanetimageviewer.h:44
XPlanetImageViewer(const QString &obj, QWidget *parent=nullptr)
Create xplanet image viewer from Object.
Definition xplanetimageviewer.cpp:176
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
char * toString(const EngineQuery &query)
GeoCoordinates geo(const QVariant &location)
KGuiItem ok()
void setCheckable(bool)
bool isChecked() const const
void setIcon(const QIcon &icon)
maximum
void setMinimum(int)
void setRange(int min, int max)
bool isSliderDown() const const
void setTracking(bool enable)
void stepDown()
void stepUp()
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
virtual void setSpacing(int spacing) override
void addItem(const QIcon &icon, const QString &text, const QVariant &userData)
void addItems(const QStringList &texts)
void setCurrentIndex(int index)
QString applicationDirPath()
QString toString(QStringView format, QCalendar cal) const const
QDate date() const const
QTime time() const const
QString toString(QStringView format, QCalendar cal) const const
Accepted
void finished(int result)
void setModal(bool modal)
QString homePath()
QChar separator()
void setDecimals(int prec)
void setValue(double val)
Gesture
void accept()
bool exists(const QString &fileName)
virtual QString fileName() const const override
void setFileName(const QString &name)
AcceptSave
Plain
StyledPanel
virtual bool event(QEvent *e) override
void setFrameShape(Shape)
void cancel()
void setFuture(const QFuture< T > &future)
primaryScreen
void restoreOverrideCursor()
QIcon fromTheme(const QString &name)
int height() const const
void invertPixels(InvertMode mode)
bool load(QIODevice *device, const char *format)
bool save(QIODevice *device, const char *format, int quality) const const
QImage scaled(const QSize &size, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const const
int width() const const
QString getItem(QWidget *parent, const QString &title, const QString &label, const QStringList &items, int current, bool editable, bool *ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints)
void setText(const QString &)
void setContentsMargins(const QMargins &margins)
const_reference at(qsizetype i) const const
QList< T > mid(qsizetype pos, qsizetype length) const const
QStatusBar * statusBar() const const
iterator insert(const Key &key, const T &value)
QList< Key > keys() const const
QPoint globalPos() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
QList< T > findChildren(Qt::FindChildOptions options) const const
bool begin(QPaintDevice *device)
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
bool end()
Window
void setColor(ColorGroup group, ColorRole role, const QColor &color)
totalScaleFactor
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
QSize size() const const
int width() const const
void setX(int x)
void setY(int y)
int x() const const
int y() const const
void kill()
void start(OpenMode mode)
bool waitForFinished(int msecs)
int height() const const
int width() const const
Qt::MouseButtons buttons() const const
Preferred
maximum
void setRange(int minimum, int maximum)
void setSingleStep(int val)
void setValue(int val)
LocateDirectory
GenericDataLocation
QString locate(StandardLocation type, const QString &fileName, LocateOptions options)
void showMessage(const QString &message, int timeout)
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QString first(qsizetype n) const const
bool isEmpty() const const
QString number(double n, char format, int precision)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
QByteArray toLatin1() const const
QString toLower() const const
qsizetype indexOf(const QRegularExpression &re, qsizetype from) const const
KeepAspectRatio
ISODate
PinchGesture
RightButton
MouseEventSynthesizedBySystem
Horizontal
SmoothTransformation
WA_DeleteOnClose
Tool
QFuture< T > run(Function function,...)
QString toString(QStringView format) const const
void setInterval(int msec)
bool isActive() const const
void setSingleShot(bool singleShot)
void start()
void stop()
QUuid createUuid()
Qt::MouseEventSource source() const const
QPoint angleDelta() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
void setAutoFillBackground(bool enabled)
height
void setMaximumSize(const QSize &)
void setMaximumWidth(int maxw)
void setMinimumSize(const QSize &)
palette
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setDisabled(bool disable)
void setLayout(QLayout *layout)
void show()
size
void setToolTip(const QString &)
void update()
bool isVisible() const const
virtual void wheelEvent(QWheelEvent *event)
width
void setWindowFlags(Qt::WindowFlags type)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 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:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.