Kstars
calendarwidget.cpp
80 QTime tmp_rTime = thesun.riseSetTime(KStarsDateTime(kdt.djd() + 1.0), skycal->get_geo(), true, true);
203 p->drawText(0, -38, pixRect().width(), pixRect().height(), Qt::AlignHCenter | Qt::AlignTop | Qt::TextDontClip,
206 p->drawText(0, 0, pixRect().width(), pixRect().height() + 35, Qt::AlignHCenter | Qt::AlignBottom | Qt::TextDontClip,
211 p->drawText(0, 0, pixRect().height(), leftPadding() - 5, Qt::AlignHCenter | Qt::AlignBottom | Qt::TextDontClip,
215 p->drawText(0, 0, pixRect().height(), leftPadding() - 5, Qt::AlignHCenter | Qt::AlignBottom | Qt::TextDontClip,
244 QRectF r(pBottomTick.x() - BIGTICKSIZE, pBottomTick.y() + 0.5 * BIGTICKSIZE, 2 * BIGTICKSIZE, BIGTICKSIZE);
279 p->drawText(rMonth, Qt::AlignRight | Qt::AlignVCenter | Qt::TextDontClip, locale.monthName(imonth - 1, QLocale::ShortFormat));
282 rMonth = QRectF(mapToWidget(QPointF(0.0, doy)), mapToWidget(QPointF(dataRect().left() - 0.1, 0.0)));
283 p->drawText(rMonth, Qt::AlignRight | Qt::AlignVCenter | Qt::TextDontClip, locale.monthName(imonth, QLocale::ShortFormat));
302 kdt = kdt.addDays(skycal->scUI->spinBox_Interval->value() > 7 ? skycal->scUI->spinBox_Interval->value() : 7))
333 p->drawLine(mapToWidget(QPointF(dataRect().left(), doy)), mapToWidget(QPointF(dataRect().right(), doy)));
void draw(QPainter *p, KPlotWidget *pw)
QList< KPlotObject * > plotObjects() const
void setPixRect()
int leftPadding() const
QColor foregroundColor() const
QRectF dataRect() const
int topPadding() const
QPointF mapToWidget(const QPointF &p) const
void setLimits(double x1, double x2, double y1, double y2)
QRect pixRect() const
QColor backgroundColor() const
bool antialiasing() const
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Definition kstarsdatetime.h:36
Draws Rise/Set/Transit curves for major solar system planets for any calendar year.
Definition skycalendar.h:30
dms transitAltitude(const KStarsDateTime &dt, const GeoLocation *geo) const
Definition skyobject.cpp:244
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
QString i18n(const char *text, const TYPE &arg...)
void setAlpha(int alpha)
QDate addDays(qint64 ndays) const const
QDate currentDate()
int dayOfYear() const const
int daysInYear() const const
QString toString(QStringView format, QCalendar cal) const const
QDate date() const const
int pointSize() const const
frameRect
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
void clear()
T & first()
T & last()
qsizetype size() const const
ShortFormat
QString toString(QDate date, FormatType format) const const
Antialiasing
bool begin(QPaintDevice *device)
void drawLine(const QLine &line)
void drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fillRule)
void drawRect(const QRect &rectangle)
void drawText(const QPoint &position, const QString &text)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QFont & font() const const
const QPen & pen() const const
void restore()
void rotate(qreal angle)
void save()
void setBrush(Qt::BrushStyle style)
void setClipRect(const QRect &rectangle, Qt::ClipOperation operation)
void setClipping(bool enable)
void setFont(const QFont &font)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
void translate(const QPoint &offset)
QColor color() const const
qreal x() const const
qreal y() const const
AlignHCenter
NoBrush
darkGreen
TextDontClip
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
bool isValid(int h, int m, int s, int ms)
int secsTo(QTime t) const const
QWidget * topLevelWidget() const const
height
locale
rect
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:44 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:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.