marble
OpenCachingItem.cpp
Go to the documentation of this file.
25 QPixmap OpenCachingItem::s_icon = QPixmap( "/usr/share/icons/oxygen/32x32/status/folder-open.png" );
28 : AbstractDataPluginItem( parent ), m_cache( cache ), m_infoDialog( 0), m_action( new QAction( this ) ), m_logIndex( 0 )
35 setCoordinate( GeoDataCoordinates( cache.longitude(), cache.latitude(), 0.0, GeoDataCoordinates::Degree ) );
77 m_ui->m_dateLastModified->setText( m_cache.dateCreated().toString( Qt::SystemLocaleShortDate ) );
172 painter->drawText( QPoint( (width - difficultyRect.width()) / 2, (height - difficultyRect.height()) / 2 + metrics.ascent() ), difficultyText );
186 html += tr( "<tr><td align=\"right\">Date hidden</td><td>" ) + m_cache.dateHidden().toString( Qt::SystemLocaleShortDate ) + "</td></tr>";
188 html += tr( "<tr><td align=\"right\">Difficulty</td><td>" ) + QString::number( m_cache.difficulty() ) + "</td></tr>";
210 m_ui->m_logCount->setText( QString::number( m_logIndex + 1 ) + " / " + QString::number( log.size() ) );
224 m_ui->m_logCount->setText( QString::number( m_logIndex + 1 ) + " / " + QString::number( log.size() ) );
void setText(const QString &text)
QString toString(Qt::DateFormat format) const
void setTarget(const QString &target)
Definition: AbstractDataPluginItem.cpp:66
int ascent() const
OpenCachingItem(const OpenCachingCache &cache, QObject *parent)
Definition: OpenCachingItem.cpp:27
int width() const
Contains all information about a cache, including logs and descriptions in all available languages...
Definition: OpenCachingCache.h:27
const QString & sizeString() const
Definition: OpenCachingCache.cpp:129
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void paint(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Definition: OpenCachingItem.cpp:128
void setId(const QString &id)
Definition: AbstractDataPluginItem.cpp:86
int size() const
void save()
const QHash< QString, OpenCachingCacheDescription > & description() const
Definition: OpenCachingCache.cpp:179
bool operator<(const AbstractDataPluginItem *other) const
Definition: OpenCachingItem.cpp:121
const QString & country() const
Definition: OpenCachingCache.cpp:119
void drawEllipse(const GeoDataCoordinates ¢erPosition, qreal width, qreal height, bool isGeoProjected=false)
Draws an ellipse at the given position. The ellipse is placed with its center located at the given ce...
Definition: GeoPainter.cpp:289
QString tr(const char *sourceText, const char *disambiguation, int n)
void setBold(bool enable)
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
QString number(int n, int base)
const QDateTime & dateHidden() const
Definition: OpenCachingCache.cpp:49
void setPen(const QColor &color)
const QDateTime & dateCreated() const
Definition: OpenCachingCache.cpp:59
bool isEmpty() const
void setBrush(const QBrush &brush)
T & first()
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QList< Key > keys() const
bool isNull() const
int height() const
This file contains the headers for ViewportParams.
const OpenCachingCacheLog & log() const
Definition: OpenCachingCache.cpp:189
void restore()
void drawText(const GeoDataCoordinates &position, const QString &text)
Draws the given text at a given geographic position. The text is drawn starting at the given position...
Definition: GeoPainter.cpp:264
const QString & cacheType() const
Definition: OpenCachingCache.cpp:99
void setWindowTitle(const QString &)
const QString & cacheName() const
Definition: OpenCachingCache.cpp:89
void show()
const QString & userName() const
Definition: OpenCachingCache.cpp:79
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setCoordinate(const GeoDataCoordinates &coordinates)
Definition: BillboardGraphicsItem.cpp:98
void setToolTip(const QString &toolTip)
Set the tool tip for the item.
Definition: AbstractDataPluginItem.cpp:76
void setColor(const QColor &color)
void drawPixmap(const GeoDataCoordinates ¢erPosition, const QPixmap &pixmap)
Draws a pixmap at the given position. The pixmap is placed with its center located at the given cente...
Definition: GeoPainter.cpp:452
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.