|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
27 #include <QPainterPath>
47 Q_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 *);
void setOrientation(Qt::Orientation orientation)
Definition: RRuler.h:55
RVector cursorPosition
Definition: RRulerQt.h:79
QPainter * painter
Definition: RRulerQt.h:74
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
virtual void updatePalette()
This method is called whenever the current palette has changed.
Definition: RRulerQt.h:65
virtual void paintTick(int pos, bool major, const QString &label)=0
virtual void updateCoordinate(RDocumentInterface *documentInterface)=0
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RPaletteListener.h:33
virtual void updateViewport()=0
Graphics view.
Definition: RGraphicsView.h:58
Q_DECLARE_METATYPE(RMath *)
Abstract base class for widgets that display a ruler, usually shown at the top and left of a graphics...
Definition: RRuler.h:37
bool viewportChanged
Definition: RRulerQt.h:77
QPainterPath cursorArrow
Definition: RRulerQt.h:78
Widget that displays the current mouse position.
Definition: RRulerQt.h:44
#define QCADGUI_EXPORT
Definition: gui_global.h:10
QImage buffer
Definition: RRulerQt.h:75
virtual QFont getFont() const =0
int darkGuiBackground
Definition: RRulerQt.h:80
QSize lastSize
Definition: RRulerQt.h:76
QSize hint
Definition: RRulerQt.h:81
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
Abstract base class for classes that are interested in the current coordinate of the mouse cursor.
Definition: RCoordinateListener.h:38