Kstars
exporteyepieceview.cpp
25ExportEyepieceView::ExportEyepieceView(const SkyPoint *_sp, const KStarsDateTime &dt, const QPixmap *renderImage,
47 QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Save | QDialogButtonBox::Cancel);
90 m_tickWarningLabel->setText(i18n("Note: This overlay makes sense only if the view was generated in alt/az mode "
115 if (m_tickConfig != 0 && Options::useAltAz()) // FIXME: this is very skymap-state-heavy for my happiness --asimha
137 // FIXME: Code duplication : code duplicated from EyepieceField. This should really be a member of SkyPoint or something.
145 // Dobsonian: add additional CW rotation by altitude, but compensate for the fact that we've already rotated by alt0
154 p.drawText(QPointF(rEnd + 0.01 * baseWidth, 0), QString::asprintf("%02d:%02d", ct.hour(), ct.minute()));
174 QString fileName = QFileDialog::getSaveFileName(this, i18nc("@title:window", "Save Image as"), QString(),
ExportEyepieceView(const SkyPoint *_sp, const KStarsDateTime &dt, const QPixmap *renderImage, const QPixmap *renderChart, QWidget *parent=nullptr)
Constructor.
Definition exporteyepieceview.cpp:25
void slotOverlayTicks(int overlayType)
Change the tick overlay scheme.
Definition exporteyepieceview.cpp:84
void slotSaveImage()
Save the image (export), and then close the dialog by calling slotCloseDialog()
Definition exporteyepieceview.cpp:171
void slotCloseDialog()
Closes the dialog, and sets up deleteLater() so that the dialog is destructed.
Definition exporteyepieceview.cpp:183
static dms findNorthAngle(const SkyPoint *sp, const dms *lat)
Finds the angle between "up" (i.e.
Definition eyepiecefield.cpp:586
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
static SkyPoint timeTransformed(const SkyPoint *p, const KStarsDateTime &dt, const GeoLocation *geo, const double hour=0)
returns a time-transformed SkyPoint.
Definition skypoint.cpp:1121
const dms reduce() const
return the equivalent angle between 0 and 360 degrees.
Definition dms.cpp:251
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
GeoCoordinates geo(const QVariant &location)
void addLayout(QLayout *layout, int stretch)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
void addItem(const QIcon &icon, const QString &text, const QVariant &userData)
void accepted()
void rejected()
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, Options options)
void setPixelSize(int pixelSize)
Format_ARGB32
void fill(Qt::GlobalColor color)
bool save(QIODevice *device, const char *format, int quality) const const
void setPixmap(const QPixmap &)
void setScaledContents(bool)
void setText(const QString &)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
Base
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
Preferred
QString asprintf(const char *cformat,...)
bool isEmpty() const const
KeepAspectRatio
white
SmoothTransformation
Tool
QWidget(QWidget *parent, Qt::WindowFlags f)
font
height
void hide()
void setMinimumWidth(int minw)
void setBackgroundRole(QPalette::ColorRole role)
void setLayout(QLayout *layout)
void show()
void setSizePolicy(QSizePolicy)
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 Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.