12#include <QtCore/qobject.h>
68 QPointF constainPosition(
const QPointF& _pos)
const;
69 QString modeString(
void);
70 void createPreviewItem(
void);
Definition GraphicsItemDesignerDrawHandler.h:18
ot::UID generateUid(void)
Generates the next available UID.
Definition GraphicsItemDesignerDrawHandler.h:58
void positionSelected(const QPointF &_pos)
Definition GraphicsItemDesignerDrawHandler.cpp:112
GraphicsItemDesignerDrawHandler(GraphicsItemDesignerView *_view)
Definition GraphicsItemDesignerDrawHandler.cpp:28
DrawMode
Definition GraphicsItemDesignerDrawHandler.h:21
@ Rect
Definition GraphicsItemDesignerDrawHandler.h:25
@ Polygon
Definition GraphicsItemDesignerDrawHandler.h:30
@ Shape
Definition GraphicsItemDesignerDrawHandler.h:31
@ Triangle
Definition GraphicsItemDesignerDrawHandler.h:29
@ Text
Definition GraphicsItemDesignerDrawHandler.h:32
@ Ellipse
Definition GraphicsItemDesignerDrawHandler.h:27
@ Arc
Definition GraphicsItemDesignerDrawHandler.h:28
@ Line
Definition GraphicsItemDesignerDrawHandler.h:23
@ Circle
Definition GraphicsItemDesignerDrawHandler.h:26
@ Square
Definition GraphicsItemDesignerDrawHandler.h:24
@ NoMode
Definition GraphicsItemDesignerDrawHandler.h:22
void cancelDraw(void)
Cancels the current draw. The item will be removed.
Definition GraphicsItemDesignerDrawHandler.cpp:50
void resetUid(void)
Resets the UID to the initial state.
Definition GraphicsItemDesignerDrawHandler.h:61
GraphicsItemDesignerItemBase * stopDraw(void)
Stops the current draw and returns the drawn item if valid. The current preview item will be returned...
Definition GraphicsItemDesignerDrawHandler.cpp:62
void startDraw(DrawMode _mode)
Definition GraphicsItemDesignerDrawHandler.cpp:38
void updatePosition(const QPointF &_pos)
Definition GraphicsItemDesignerDrawHandler.cpp:101
virtual ~GraphicsItemDesignerDrawHandler()
Definition GraphicsItemDesignerDrawHandler.cpp:34
void checkStopDraw(void)
Will check if the current draw is valid and emits drawCompleted if valid otherwise removes the item....
Definition GraphicsItemDesignerDrawHandler.cpp:86
Definition GraphicsItemDesignerInfoOverlay.h:17
Definition GraphicsItemDesignerItemBase.h:25
Definition GraphicsItemDesignerView.h:17
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27