marble
AbstractFloatItem.cpp
Go to the documentation of this file.
55 AbstractFloatItem::AbstractFloatItem( const MarbleModel *marbleModel, const QPointF &point, const QSizeF &size )
83 const QStringList coordinates = settings.value( "position" ).toString().split( QLatin1Char(',') );
231 QAction *lockAction = d->m_contextMenu->addAction( QIcon(":/icons/unlock.png"), tr( "&Lock" ) );
241 DialogConfigurationInterface *configInterface = qobject_cast<DialogConfigurationInterface *>( this );
246 QAction *configAction = d->m_contextMenu->addAction( QIcon(":/icons/settings-configure.png"), tr( "&Configure..." ) );
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: AbstractFloatItem.cpp:72
Definition: FrameGraphicsItem.h:25
Type type() const
This interface allows a plugin to provide a QWidget-based configuration dialog which is accessible wi...
Definition: DialogConfigurationInterface.h:31
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
void setChecked(bool)
const T & at(int i) const
virtual QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: AbstractFloatItem.cpp:125
virtual bool eventFilter(QObject *object, QEvent *e)
Definition: AbstractFloatItem.cpp:163
QPoint mapToGlobal(const QPoint &pos) const
virtual QString renderPolicy() const
Return how the plugin settings should be used.
Definition: AbstractFloatItem.cpp:120
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: AbstractFloatItem.cpp:79
const QPoint & pos() const
QString tr(const char *sourceText, const char *disambiguation, int n)
GraphicsItemFlags flags() const
Returns the flags of the item.
Definition: ScreenGraphicsItem.cpp:59
virtual RenderType renderType() const
Render type of the plugin.
Definition: AbstractFloatItem.cpp:93
virtual ~AbstractFloatItem()
Definition: AbstractFloatItem.cpp:67
bool contains(const QPointF &point) const
Returns true if the Item contains point in parent coordinates.
Definition: MarbleGraphicsItem.cpp:110
bool render(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos="FLOAT_ITEM", GeoSceneLayer *layer=0)
Renders the content provided by the layer on the viewport.
Definition: AbstractFloatItem.cpp:204
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
void setFlags(GraphicsItemFlags flags)
Sets the flags to flags.
Definition: ScreenGraphicsItem.cpp:64
void setCheckable(bool)
AbstractFloatItem(const MarbleModel *marbleModel, const QPointF &point=QPointF(10.0, 10.0), const QSizeF &size=QSizeF(150.0, 50.0))
Definition: AbstractFloatItem.cpp:55
virtual bool eventFilter(QObject *, QEvent *)
Definition: ScreenGraphicsItem.cpp:69
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
void setCacheMode(CacheMode mode)
Set the cache mode of the item.
Definition: MarbleGraphicsItem.cpp:159
void setPosition(const QPointF &position)
Set the position of the ScreenGraphicsItem.
Definition: ScreenGraphicsItem.cpp:44
void setFont(const QFont &font)
setting current font for rendering
Definition: AbstractFloatItem.cpp:114
QPointF position() const
Return the position of the ScreenGraphicsItem.
Definition: ScreenGraphicsItem.cpp:39
bool paintEvent(QPainter *painter, const ViewportParams *viewport)
Paints the item on the screen in view coordinates.
Definition: MarbleGraphicsItem.cpp:38
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setContentSize(const QSizeF &size)
Sets the size of the content of the item.
Definition: FrameGraphicsItem.cpp:200
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:185
virtual void contextMenuEvent(QWidget *w, QContextMenuEvent *e)
Definition: AbstractFloatItem.cpp:194
virtual void toolTipEvent(QHelpEvent *e)
Definition: AbstractFloatItem.cpp:199
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: RenderPlugin.cpp:195
virtual QDialog * configDialog()=0
Returns a pointer to the configuration dialog of the plugin.
void setVisible(bool visible)
Set visibility of the float item.
Definition: AbstractFloatItem.cpp:130
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.