27#include <QPainterPath>
47Q_PROPERTY(Qt::Orientation orientation READ getOrientation WRITE setOrientation);
55 virtual QSize sizeHint()
const;
57 virtual void paintTick(
int pos,
bool major,
const QString& label);
66 lastSize = QSize(0,0);
67 darkGuiBackground = -1;
71 void paintEvent(QPaintEvent *);
Q_DECLARE_METATYPE(RMath *)
Abstract base class for classes that are interested in the current coordinate of the mouse cursor.
Definition RCoordinateListener.h:38
virtual void updateCoordinate(RDocumentInterface *documentInterface)=0
Interface for interaction between a graphics document and a user.
Definition RDocumentInterface.h:97
Graphics view.
Definition RGraphicsView.h:67
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPaletteListener.h:33
Abstract base class for widgets that display a ruler, usually shown at the top and left of a graphics...
Definition RRuler.h:37
virtual void paintTick(int pos, bool major, const QString &label)=0
virtual QFont getFont() const =0
virtual void updateViewport()=0
void setOrientation(Qt::Orientation orientation)
Definition RRuler.cpp:12
Widget that displays the current mouse position.
Definition RRulerQt.h:44
int darkGuiBackground
Definition RRulerQt.h:81
QPainterPath cursorArrowV
Definition RRulerQt.h:79
virtual void updatePalette()
This method is called whenever the current palette has changed.
Definition RRulerQt.h:65
QImage buffer
Definition RRulerQt.h:75
QSize lastSize
Definition RRulerQt.h:76
QSize hint
Definition RRulerQt.h:82
RVector cursorPosition
Definition RRulerQt.h:80
bool viewportChanged
Definition RRulerQt.h:77
QPainter * painter
Definition RRulerQt.h:74
QPainterPath cursorArrowH
Definition RRulerQt.h:78
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADGUI_EXPORT
Definition gui_global.h:10