marble
CompassFloatItem.cpp
Go to the documentation of this file.
121 path.addEllipse( QRectF( QPointF( marginLeft() + padding() + ( contentRect.width() - compassLength ) / 2,
182 painter->drawPixmap( QPoint( static_cast<int>( compassRect.width() - compassLength ) / 2, fontheight + 5 ), m_compass );
226 if ( m_uiConfigWidget && m_themeIndex >= 0 && m_themeIndex < m_uiConfigWidget->m_themeList->count() ) {
void addEllipse(const QRectF &boundingRectangle)
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: AbstractFloatItem.cpp:72
QSize size() const
void setViewport(const QRect &rectangle)
iterator insert(const Key &key, const T &value)
int ascent() const
void setProjection(const ViewportParams *viewport)
Definition: CompassFloatItem.cpp:127
void fill(const QColor &color)
void render(QPainter *painter)
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: CompassFloatItem.cpp:187
Definition: PluginInterface.h:28
void save()
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: AbstractFloatItem.cpp:79
QPainterPath backgroundShape() const
Returns the shape of the background.
Definition: CompassFloatItem.cpp:114
void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: CompassFloatItem.cpp:215
void addText(const QPointF &point, const QFont &font, const QString &text)
QString tr(const char *sourceText, const char *disambiguation, int n)
QRect boundingRect(QChar ch) const
QString fromUtf8(const char *str, int size)
QBrush background() const
Returns the background brush of the item.
Definition: FrameGraphicsItem.cpp:156
void setPen(const QColor &color)
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
QString guiString() const
String that should be displayed in GUI.
Definition: CompassFloatItem.cpp:66
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
QString name() const
Returns the user-visible name of the plugin.
Definition: CompassFloatItem.cpp:61
QRectF contentRect() const
Returns the rect of the content in item coordinates.
Definition: FrameGraphicsItem.cpp:167
QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: CompassFloatItem.cpp:206
QString copyrightYears() const
Definition: CompassFloatItem.cpp:86
void setBrush(const QBrush &brush)
bool isInitialized() const
Definition: CompassFloatItem.cpp:109
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
const T value(const Key &key) const
bool isNull() const
This file contains the headers for ViewportParams.
void restore()
QString description() const
Returns a user description of the plugin.
Definition: CompassFloatItem.cpp:81
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
int width() const
qreal width() const
void drawPath(const QPainterPath &path)
void setWidth(int width)
QList< PluginAuthor > pluginAuthors() const
Definition: CompassFloatItem.cpp:91
qreal height() const
void paintContent(QPainter *painter)
Here the items paint their content.
Definition: CompassFloatItem.cpp:138
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QRect rect() const
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: CompassFloatItem.cpp:56
virtual void setProjection(const ViewportParams *viewport)
Definition: MarbleGraphicsItem.cpp:272
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.