QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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>

Inheritance diagram for QgsComposerRuler:
Inheritance graph
[legend]

Public Types

enum  Direction { Horizontal = 0, Vertical }
 

Signals

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

Public Member Functions

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

Protected Member Functions

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

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

Definition at line 51 of file qgscomposerruler.cpp.

void QgsComposerRuler::mouseMoveEvent ( QMouseEvent *  event)
protected

Definition at line 366 of file qgscomposerruler.cpp.

void QgsComposerRuler::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 411 of file qgscomposerruler.cpp.

void QgsComposerRuler::mouseReleaseEvent ( QMouseEvent *  event)
protected

Definition at line 387 of file qgscomposerruler.cpp.

void QgsComposerRuler::paintEvent ( QPaintEvent *  event)
protected

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 358 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: