Public Types |
enum | PointShape { CircleShape,
RectangleShape
} |
enum | LockType { LockToLeft = 0x01,
LockToRight = 0x02,
LockToTop = 0x04,
LockToBottom = 0x08
} |
enum | SortType { NoSort,
XSort,
YSort
} |
enum | ConnectionType { NoConnection,
LineConnection,
CurveConnection
} |
Public Slots |
void | setEnabled (bool enabled) |
void | setDisabled (bool disabled) |
void | setCurrentColor (const QColor &color) |
Signals |
void | pointsChanged (const QPolygonF &points) |
void | selectionChanged (const QColor &color) |
Public Member Functions |
| HoverPoints (QWidget *widget, PointShape shape) |
bool | eventFilter (QObject *object, QEvent *event) |
void | paintPoints () |
QRectF | boundingRect () const |
void | setBoundingRect (const QRectF &boundingRect) |
QPolygonF | points () const |
void | setPoints (const QPolygonF &points, const QVector< QColor > &colors) |
QSizeF | pointSize () const |
void | setPointSize (const QSizeF &size) |
SortType | sortType () const |
void | setSortType (SortType sortType) |
ConnectionType | connectionType () const |
void | setConnectionType (ConnectionType connectionType) |
void | setConnectionPen (const QPen &pen) |
void | setShapePen (const QPen &pen) |
void | setShapeBrush (const QBrush &brush) |
void | setPointLock (int pos, LockType lock) |
void | setEditable (bool editable) |
bool | editable () const |
QVector< QColor > | Colors () const |
QColor | CurrentColor () const |
void | firePointChange () |
Private Member Functions |
QRectF | pointBoundingRect (int i) const |
void | movePoint (int i, const QPointF &newPos, bool emitChange=true) |
Private Attributes |
QWidget * | m_widget |
QPolygonF | m_points |
QVector< QColor > | m_colors |
QRectF | m_bounds |
PointShape | m_shape |
SortType | m_sortType |
ConnectionType | m_connectionType |
QVector< uint > | m_locks |
QSizeF | m_pointSize |
int | m_currentIndex |
int | m_currentColorIndex |
bool | m_editable |
bool | m_enabled |
QHash< int, int > | m_fingerPointMapping |
QColor | m_currentColor |
QPen | m_pointPen |
QBrush | m_pointBrush |
QPen | m_connectionPen |
QPen | m_selectedPointPen |
Definition at line 50 of file hoverpoints.h.