marble
MapScaleFloatItem.cpp
Go to the documentation of this file.
104 << PluginAuthor(QStringLiteral("Torsten Rahn"), QStringLiteral("[email protected]"), tr("Original Developer"))
195 //round ratio to 3 most significant digits, assume that ratio >= 1, otherwise it may display "1 : 0"
304 int leftRatioIndent = m_leftBarMargin + (m_scaleBarWidth - QFontMetrics( font() ).width(m_ratioString) ) / 2;
305 painter->drawText( leftRatioIndent, fontHeight + 3 + m_scaleBarHeight + fontHeight + 5, m_ratioString );
void contextMenuEvent(QWidget *w, QContextMenuEvent *e) override
Definition: MapScaleFloatItem.cpp:376
int ascent() const
MarbleLocale::MeasurementSystem measurementSystem() const
Definition: MarbleLocale.cpp:48
QString copyrightYears() const override
Definition: MapScaleFloatItem.cpp:96
void setContentSize(const QSizeF &size) override
Sets the size of the content of the item.
Definition: FrameGraphicsItem.cpp:232
void setRenderHint(RenderHint hint, bool on)
QDialog * configDialog() override
Returns a pointer to the configuration dialog of the plugin.
Definition: MapScaleFloatItem.cpp:354
MapScaleFloatItem(const MarbleModel *marbleModel=nullptr)
Definition: MapScaleFloatItem.cpp:36
QString guiString() const override
Definition: MapScaleFloatItem.cpp:76
void setChecked(bool)
This file contains the headers for MarbleModel.
void initialize() override
Definition: MapScaleFloatItem.cpp:115
Definition: PluginInterface.h:29
void paintContent(QPainter *painter) override
Here the items paint their content.
Definition: MapScaleFloatItem.cpp:183
QPoint mapToGlobal(const QPoint &pos) const
void save()
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:354
void drawLine(const QLineF &line)
void showText(const QPoint &pos, const QString &text, QWidget *w)
QString tr(const char *sourceText, const char *disambiguation, int n)
This file contains the headers for AbstractProjection.
void toolTipEvent(QHelpEvent *e) override
Definition: MapScaleFloatItem.cpp:400
int width() const
void drawRect(const QRectF &rectangle)
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
void setProjection(const ViewportParams *viewport) override
Definition: MapScaleFloatItem.cpp:124
QSizeF contentSize() const override
Returns the size of the content of the MarbleGraphicsItem.
Definition: FrameGraphicsItem.cpp:210
void setPen(const QColor &color)
const QPoint & globalPos() const
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:44
GeoDataCoordinates center() const override
returns the center of this box
Definition: GeoDataLatLonAltBox.cpp:148
int widthMM() const
QPaintDevice * device() const
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
const AbstractProjection * currentProjection() const
Definition: ViewportParams.cpp:161
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:46
~MapScaleFloatItem() override
Definition: MapScaleFloatItem.cpp:62
int width(const QString &text, int len) const
This file contains the headers for ViewportParams.
QVector< PluginAuthor > pluginAuthors() const override
Definition: MapScaleFloatItem.cpp:101
void setCheckable(bool)
void restore()
QString name() const override
Returns the user-visible name of the plugin.
Definition: MapScaleFloatItem.cpp:71
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:91
int width() const
QString & setNum(short n, int base)
bool isInitialized() const override
Definition: MapScaleFloatItem.cpp:119
QString nameId() const override
Returns the unique name of the plugin.
Definition: MapScaleFloatItem.cpp:81
void removeAction(QAction *action)
QString description() const override
Returns a user description of the plugin.
Definition: MapScaleFloatItem.cpp:91
qreal latitude(GeoDataCoordinates::Unit unit) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:221
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
QString version() const override
Definition: MapScaleFloatItem.cpp:86
QStringList backendTypes() const override
Returns the name(s) of the backend that the plugin can render.
Definition: MapScaleFloatItem.cpp:66
qreal width() const
virtual void setProjection(const ViewportParams *viewport)
Definition: MarbleGraphicsItem.cpp:281
virtual SurfaceType surfaceType() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Tue Dec 10 2019 02:41:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Tue Dec 10 2019 02:41:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.