Skip to content

RRulerQt

Class in GUI Module
Header: #include <src/gui/RRulerQt.h>
Inherits: QFrame, RRuler, RCoordinateListener, RPaletteListener

Widget that displays the current mouse position.

Usually shown in the status bar of an application.

Scriptable: This class is available in script environments.

RRulerQt(QWidget *parent=0)
virtual ~RRulerQt()
Destructor.
virtual QFont getFont() const
virtual void paintTick(int pos, bool major, const QString &label)
virtual void setOrientation(Qt::Orientation orientation)
virtual QSize sizeHint() const
virtual void updateCoordinate(RDocumentInterface *documentInterface)
virtual void updatePalette()
This method is called whenever the current palette has changed.
virtual void updateViewport()
void paintEvent(QPaintEvent *)
QImage buffer
QPainterPath cursorArrowH
QPainterPath cursorArrowV
RVector cursorPosition
int darkGuiBackground
QSize hint
QSize lastSize
QPainter * painter
bool viewportChanged
Qt::Orientation orientation

RRulerQt::RRulerQt(QWidget *parent=0)

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

virtual RRulerQt::~RRulerQt()

virtual

Destructor.

virtual QFont RRulerQt::getFont() const

virtual const

Reimplemented from getFont.

virtual void RRulerQt::paintTick(int pos, bool major, const QString &label)

virtual

Reimplemented from paintTick.

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

virtual

virtual QSize RRulerQt::sizeHint() const

virtual const

virtual void RRulerQt::updateCoordinate(RDocumentInterface *documentInterface)

virtual

Reimplemented from updateCoordinate.

virtual void RRulerQt::updatePalette()

virtual inline

This method is called whenever the current palette has changed.

Reimplemented from updatePalette.

virtual void RRulerQt::updateViewport()

virtual

Reimplemented from updateViewport.

void RRulerQt::paintEvent(QPaintEvent *)

protected

QImage RRulerQt::buffer

private

QPainterPath RRulerQt::cursorArrowH

private

QPainterPath RRulerQt::cursorArrowV

private

RVector RRulerQt::cursorPosition

private

int RRulerQt::darkGuiBackground

private

QSize RRulerQt::hint

private

QSize RRulerQt::lastSize

private

QPainter* RRulerQt::painter

private

bool RRulerQt::viewportChanged

private

Qt::Orientation RRulerQt::orientation