marble
MapScaleFloatItem.cpp
Go to the documentation of this file.
199 //round ratio to 3 most significant digits, assume that ratio >= 1, otherwise it may display "1 : 0"
307 int leftRatioIndent = m_leftBarMargin + (m_scaleBarWidth - QFontMetrics( font() ).width(m_ratioString) ) / 2;
308 painter->drawText( leftRatioIndent, fontHeight + 3 + m_scaleBarHeight + fontHeight + 5, m_ratioString );
text
void setProjection(const ViewportParams *viewport)
Definition: MapScaleFloatItem.cpp:128
int ascent() const
MarbleLocale::MeasurementSystem measurementSystem() const
Definition: MarbleLocale.cpp:45
void setRenderHint(RenderHint hint, bool on)
void setChecked(bool)
QList< PluginAuthor > pluginAuthors() const
Definition: MapScaleFloatItem.cpp:105
This file contains the headers for MarbleModel.
QStringList backendTypes() const
Returns the name(s) of the backend that the plugin can render This method should return the name of t...
Definition: MapScaleFloatItem.cpp:70
Definition: PluginInterface.h:28
QSizeF contentSize() const
Returns the size of the content of the MarbleGraphicsItem.
Definition: FrameGraphicsItem.cpp:180
QPoint mapToGlobal(const QPoint &pos) const
void save()
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
QString name() const
Returns the user-visible name of the plugin.
Definition: MapScaleFloatItem.cpp:75
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
void drawLine(const QLineF &line)
QString copyrightYears() const
Definition: MapScaleFloatItem.cpp:100
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.
QDialog * configDialog()
Returns a pointer to the configuration dialog of the plugin.
Definition: MapScaleFloatItem.cpp:357
int width() const
QString guiString() const
String that should be displayed in GUI.
Definition: MapScaleFloatItem.cpp:80
void drawRect(const QRectF &rectangle)
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
~MapScaleFloatItem()
Definition: MapScaleFloatItem.cpp:66
virtual void toolTipEvent(QHelpEvent *e)
Definition: MapScaleFloatItem.cpp:403
MapScaleFloatItem(const MarbleModel *marbleModel=0)
Definition: MapScaleFloatItem.cpp:36
void setPen(const QColor &color)
void settingsChanged(QString nameId)
This signal is emitted if the settings of the RenderPlugin changed.
const QPoint & globalPos() const
The abstract class for float item plugins.
Definition: AbstractFloatItem.h:45
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:134
bool isInitialized() const
Definition: MapScaleFloatItem.cpp:123
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
virtual GeoDataCoordinates center() const
returns the center of this box
Definition: GeoDataLatLonAltBox.cpp:151
int width(const QString &text, int len) const
This file contains the headers for ViewportParams.
void setCheckable(bool)
void restore()
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
int width() const
virtual void contextMenuEvent(QWidget *w, QContextMenuEvent *e)
Definition: MapScaleFloatItem.cpp:379
QString description() const
Returns a user description of the plugin.
Definition: MapScaleFloatItem.cpp:95
QString & setNum(short n, int base)
void setPosition(const QPointF &position)
Set the position of the ScreenGraphicsItem.
Definition: ScreenGraphicsItem.cpp:44
void removeAction(QAction *action)
void paintContent(QPainter *painter)
Here the items paint their content.
Definition: MapScaleFloatItem.cpp:187
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QList< QAction * > actions() const
void setContentSize(const QSizeF &size)
Sets the size of the content of the item.
Definition: FrameGraphicsItem.cpp:200
qreal width() const
virtual void setProjection(const ViewportParams *viewport)
Definition: MarbleGraphicsItem.cpp:272
virtual SurfaceType surfaceType() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.