RRulerQt
Class in GUI Module
Header: #include <src/gui/RRulerQt.h>
Inherits: QFrame, RRuler, RCoordinateListener, RPaletteListener
Description
Section titled “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.
Public Functions
Section titled “Public Functions”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() |
Protected Functions
Section titled “Protected Functions”| void | paintEvent(QPaintEvent *) |
Private Attributes
Section titled “Private Attributes”| QImage | buffer |
| QPainterPath | cursorArrowH |
| QPainterPath | cursorArrowV |
| RVector | cursorPosition |
| int | darkGuiBackground |
| QSize | hint |
| QSize | lastSize |
| QPainter * | painter |
| bool | viewportChanged |
Properties
Section titled “Properties”| Qt::Orientation | orientation |
Member Documentation
Section titled “Member Documentation”RRulerQt
Section titled “RRulerQt”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
~RRulerQt
Section titled “~RRulerQt”virtual RRulerQt::~RRulerQt()virtual
Destructor.
getFont
Section titled “getFont”virtual QFont RRulerQt::getFont() constvirtual const
Reimplemented from getFont.
paintTick
Section titled “paintTick”virtual void RRulerQt::paintTick(int pos, bool major, const QString &label)virtual
Reimplemented from paintTick.
setOrientation
Section titled “setOrientation”virtual void RRulerQt::setOrientation(Qt::Orientation orientation)virtual
sizeHint
Section titled “sizeHint”virtual QSize RRulerQt::sizeHint() constvirtual const
updateCoordinate
Section titled “updateCoordinate”virtual void RRulerQt::updateCoordinate(RDocumentInterface *documentInterface)virtual
Reimplemented from updateCoordinate.
updatePalette
Section titled “updatePalette”virtual void RRulerQt::updatePalette()virtual inline
This method is called whenever the current palette has changed.
Reimplemented from updatePalette.
updateViewport
Section titled “updateViewport”virtual void RRulerQt::updateViewport()virtual
Reimplemented from updateViewport.
paintEvent
Section titled “paintEvent”void RRulerQt::paintEvent(QPaintEvent *)protected
buffer
Section titled “buffer”QImage RRulerQt::bufferprivate
cursorArrowH
Section titled “cursorArrowH”QPainterPath RRulerQt::cursorArrowHprivate
cursorArrowV
Section titled “cursorArrowV”QPainterPath RRulerQt::cursorArrowVprivate
cursorPosition
Section titled “cursorPosition”RVector RRulerQt::cursorPositionprivate
darkGuiBackground
Section titled “darkGuiBackground”int RRulerQt::darkGuiBackgroundprivate
QSize RRulerQt::hintprivate
lastSize
Section titled “lastSize”QSize RRulerQt::lastSizeprivate
painter
Section titled “painter”QPainter* RRulerQt::painterprivate
viewportChanged
Section titled “viewportChanged”bool RRulerQt::viewportChangedprivate
orientation
Section titled “orientation”Qt::Orientation RRulerQt::orientation