marble
AbstractFloatItem.cpp
Go to the documentation of this file.
53 AbstractFloatItem::AbstractFloatItem( const MarbleModel *marbleModel, const QPointF &point, const QSizeF &size )
81 const QStringList coordinates = settings.value( "position" ).toString().split( QLatin1Char(',') );
236 QAction *lockAction = d->m_contextMenu->addAction( QIcon(":/icons/unlock.png"), tr( "&Lock" ) );
246 DialogConfigurationInterface *configInterface = qobject_cast<DialogConfigurationInterface *>( this );
251 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:70
Definition: FrameGraphicsItem.h:25
virtual void changeViewport(ViewportParams *viewport)
Definition: AbstractFloatItem.cpp:202
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
virtual QStringList renderPosition() const
Preferred level in the layer stack for the rendering.
Definition: AbstractFloatItem.cpp:123
virtual bool eventFilter(QObject *object, QEvent *e)
Definition: AbstractFloatItem.cpp:161
virtual QString renderPolicy() const
Return how the plugin settings should be used.
Definition: AbstractFloatItem.cpp:118
virtual void setSettings(const QHash< QString, QVariant > &settings)
Set the settings of the plugin.
Definition: AbstractFloatItem.cpp:77
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:91
virtual ~AbstractFloatItem()
Definition: AbstractFloatItem.cpp:65
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:207
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void setFlags(GraphicsItemFlags flags)
Sets the flags to flags.
Definition: ScreenGraphicsItem.cpp:64
AbstractFloatItem(const MarbleModel *marbleModel, const QPointF &point=QPointF(10.0, 10.0), const QSizeF &size=QSizeF(150.0, 50.0))
Definition: AbstractFloatItem.cpp:53
virtual bool eventFilter(QObject *, QEvent *)
Definition: ScreenGraphicsItem.cpp:69
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
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:112
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
void setContentSize(const QSizeF &size)
Sets the size of the content of the item.
Definition: FrameGraphicsItem.cpp:204
virtual QHash< QString, QVariant > settings() const
Settings of the plugin.
Definition: RenderPlugin.cpp:183
virtual void contextMenuEvent(QWidget *w, QContextMenuEvent *e)
Definition: AbstractFloatItem.cpp:192
virtual void toolTipEvent(QHelpEvent *e)
Definition: AbstractFloatItem.cpp:197
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:193
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:128
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.