1 #ifndef ARENACONTROLLER_H 2 #define ARENACONTROLLER_H 19 void startInsertion(
const QString &elementType,
const QPointF &pos);
23 void startDrag(QList<ArenaSceneElement *> sceneElements);
25 void dragTo(
const QPointF &to);
26 void dragBy(
const QPointF &by);
37 void draw(QPainter *painter,
const QRectF &rect);
56 #endif // ARENACONTROLLER_H
QMap< ArenaSceneElement *, QPointF > m_origPositions
bool operationInProgress() const
void draw(QPainter *painter, const QRectF &rect)
void dragTo(const QPointF &to)
void setSnapToGrid(bool snap)
void dragBy(const QPointF &by)
ArenaController(Arena *arena, ArenaScene *scene)
void startInsertion(const QString &elementType, const QPointF &pos)
QPointF m_totalMouseOffset
QList< ArenaSceneElement * > m_activeElements
SceneElement currently being manipulated through this controller.
bool m_lastDragFinished
True iff. endDrag() has been called after last startDrag()
void startDrag(ArenaSceneElement *sceneElement)
void setAutoRotateWalls(bool autoRotate)