QGIS API Documentation  2.9.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Signals | Public Member Functions | Protected Member Functions | List of all members
QgsComposerRuler Class Reference

A class to show paper scale and the current cursor position. More...

#include <qgscomposerruler.h>

Public Types

enum  Direction { Horizontal = 0, Vertical }

Signals

void cursorPosChanged (QPointF)
 Is emitted when mouse cursor coordinates change.

Public Member Functions

 QgsComposerRuler (QgsComposerRuler::Direction d)
 ~QgsComposerRuler ()
QgsCompositioncomposition ()
QSize minimumSizeHint () const override
int rulerSize ()
void setComposition (QgsComposition *c)
void setSceneTransform (const QTransform &transform)
void updateMarker (const QPointF &pos)

Protected Member Functions

void mouseMoveEvent (QMouseEvent *event) override
void mousePressEvent (QMouseEvent *event) override
void mouseReleaseEvent (QMouseEvent *event) override
void paintEvent (QPaintEvent *event) override

Detailed Description

A class to show paper scale and the current cursor position.

Definition at line 10 of file qgscomposerruler.h.

Member Enumeration Documentation

Enumerator:
Horizontal 
Vertical 

Definition at line 15 of file qgscomposerruler.h.

Constructor & Destructor Documentation

QgsComposerRuler::QgsComposerRuler ( QgsComposerRuler::Direction  d)

Definition at line 15 of file qgscomposerruler.cpp.

QgsComposerRuler::~QgsComposerRuler ( )

Definition at line 45 of file qgscomposerruler.cpp.

Member Function Documentation

QgsComposition* QgsComposerRuler::composition ( )
inline

Definition at line 30 of file qgscomposerruler.h.

void QgsComposerRuler::cursorPosChanged ( QPointF  )
signal

Is emitted when mouse cursor coordinates change.

QSize QgsComposerRuler::minimumSizeHint ( ) const
override

Definition at line 51 of file qgscomposerruler.cpp.

void QgsComposerRuler::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 369 of file qgscomposerruler.cpp.

void QgsComposerRuler::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 414 of file qgscomposerruler.cpp.

void QgsComposerRuler::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 390 of file qgscomposerruler.cpp.

void QgsComposerRuler::paintEvent ( QPaintEvent *  event)
overrideprotected

Definition at line 56 of file qgscomposerruler.cpp.

int QgsComposerRuler::rulerSize ( )
inline

Definition at line 32 of file qgscomposerruler.h.

void QgsComposerRuler::setComposition ( QgsComposition c)
inline

Definition at line 29 of file qgscomposerruler.h.

void QgsComposerRuler::setSceneTransform ( const QTransform &  transform)

Definition at line 361 of file qgscomposerruler.cpp.

void QgsComposerRuler::updateMarker ( const QPointF &  pos)
inline

Definition at line 27 of file qgscomposerruler.h.


The documentation for this class was generated from the following files: