QCAD
Open Source 2D CAD
RRulerQt Class Reference

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

#include <RRulerQt.h>

Inheritance diagram for RRulerQt:
RRuler RCoordinateListener

Public Member Functions

virtual QFont getFont () const
 
virtual void paintTick (int pos, bool major, const QString &label)
 
 RRulerQt (QWidget *parent=0)
 Copyright (c) 2011-2015 by Andrew Mustun. More...
 
virtual void setOrientation (Qt::Orientation orientation)
 
virtual QSize sizeHint () const
 
virtual void updateCoordinate (RDocumentInterface *documentInterface)
 
void updateViewport ()
 
virtual ~RRulerQt ()
 Destructor. More...
 
- Public Member Functions inherited from RRuler
Qt::Orientation getOrientation () const
 
 RRuler ()
 
void setGraphicsView (RGraphicsView *view)
 
void setOrientation (Qt::Orientation orientation)
 
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
Qt::Orientation orientation
 
RGraphicsViewview
 

Detailed Description

Widget that displays the current mouse position.

Usually shown in the status bar of an application.

Scriptable:
This class is available in script environments.

Constructor & Destructor Documentation

RRulerQt::RRulerQt ( QWidget *  parent = 0)

Copyright (c) 2011-2015 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. 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
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

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