QGIS API Documentation  2.5.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 ()
QSize minimumSizeHint () const
void setSceneTransform (const QTransform &transform)
void updateMarker (const QPointF &pos)
void setComposition (QgsComposition *c)
QgsCompositioncomposition ()
int rulerSize ()

Protected Member Functions

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

Detailed Description

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

Member Enumeration Documentation

Enumerator:
Horizontal 
Vertical 

Constructor & Destructor Documentation

QgsComposerRuler::QgsComposerRuler ( QgsComposerRuler::Direction  d)
QgsComposerRuler::~QgsComposerRuler ( )

Member Function Documentation

QgsComposition* QgsComposerRuler::composition ( )
inline
void QgsComposerRuler::cursorPosChanged ( QPointF  )
signal

Is emitted when mouse cursor coordinates change.

QSize QgsComposerRuler::minimumSizeHint ( ) const
void QgsComposerRuler::mouseMoveEvent ( QMouseEvent *  event)
protected
void QgsComposerRuler::mousePressEvent ( QMouseEvent *  event)
protected
void QgsComposerRuler::mouseReleaseEvent ( QMouseEvent *  event)
protected
void QgsComposerRuler::paintEvent ( QPaintEvent *  event)
protected
int QgsComposerRuler::rulerSize ( )
inline
void QgsComposerRuler::setComposition ( QgsComposition c)
inline
void QgsComposerRuler::setSceneTransform ( const QTransform &  transform)
void QgsComposerRuler::updateMarker ( const QPointF &  pos)
inline

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