QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RRulerQt Class Reference

Widget that displays the current mouse position. More...

#include <RRulerQt.h>

Inheritance diagram for RRulerQt:
RRuler RCoordinateListener

List of all members.

Public Member Functions

virtual QFont getFont () const
virtual void paintTick (int pos, bool major, const QString &label)
 RRulerQt (QWidget *parent=0)
 Constructor.
virtual void setOrientation (Qt::Orientation orientation)
virtual QSize sizeHint () const
virtual void updateCoordinate (RDocumentInterface *documentInterface)
void updateViewport ()
virtual ~RRulerQt ()
 Destructor.
- Public Member Functions inherited from RRuler
Qt::Orientation getOrientation () const
 RRuler ()
void setGraphicsView (RGraphicsView *view)
virtual ~RRuler ()
- Public Member Functions inherited from RCoordinateListener
virtual ~RCoordinateListener ()

Protected Member Functions

void paintEvent (QPaintEvent *)

Properties

Qt::Orientation orientation

Private Attributes

QImage buffer
QPainterPath cursorArrow
RVector cursorPosition
QSize hint
QSize lastSize
QPainter * painter
bool viewportChanged

Additional Inherited Members

- Protected Attributes inherited from RRuler
RGraphicsViewview

Detailed Description

Widget that displays the current mouse position.

Usually shown in the status bar of an application.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

RRulerQt::RRulerQt ( QWidget *  parent = 0)

Constructor.

RRulerQt::~RRulerQt ( )
virtual

Destructor.


Member Function Documentation

QFont RRulerQt::getFont ( ) const
virtual

Implements RRuler.

void RRulerQt::paintEvent ( QPaintEvent *  e)
protected
void RRulerQt::paintTick ( int  pos,
bool  major,
const QString &  label 
)
virtual

Implements RRuler.

void RRulerQt::setOrientation ( Qt::Orientation  orientation)
virtual

Reimplemented from RRuler.

QSize RRulerQt::sizeHint ( ) const
virtual
void RRulerQt::updateCoordinate ( RDocumentInterface documentInterface)
virtual

Implements RCoordinateListener.

void RRulerQt::updateViewport ( )

Member Data Documentation

QImage RRulerQt::buffer
private
QPainterPath RRulerQt::cursorArrow
private
RVector RRulerQt::cursorPosition
private
QSize RRulerQt::hint
mutableprivate
QSize RRulerQt::lastSize
private
QPainter* RRulerQt::painter
private
bool RRulerQt::viewportChanged
private

Property Documentation

Qt::Orientation RRulerQt::orientation
readwrite

Reimplemented from RRuler.


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