|
|
virtual DACommandsForGraphicsItemAdd * | createItemAdd (QGraphicsItem *item) |
| |
|
virtual DACommandsForGraphicsItemsAdd * | createItemsAdd (const QList< QGraphicsItem * > its) |
| |
|
virtual DACommandsForGraphicsItemRemove * | createItemRemove (QGraphicsItem *item, QUndoCommand *parent=nullptr) |
| |
|
virtual DACommandsForGraphicsItemsRemove * | createItemsRemove (const QList< QGraphicsItem * > its) |
| |
|
virtual DACommandsForGraphicsItemMoved * | createItemMoved (QGraphicsItem *item, const QPointF &start, const QPointF &end, bool skipfirst) |
| |
|
virtual DACommandsForGraphicsItemsMoved * | createItemsMoved (const QList< QGraphicsItem * > &items, const QList< QPointF > &starts, const QList< QPointF > &ends, bool skipfirst) |
| |
| virtual DACommandsForGraphicsItemsMoved * | createItemsMoved () |
| | 针对鼠标移动的移动命令
|
| |
|
virtual DACommandsForGraphicsItemResized * | createItemResized (DAGraphicsResizeableItem *item, const QPointF &oldpos, const QSizeF &oldSize, const QPointF &newpos, const QSizeF &newSize, bool skipfirst=true) |
| |
|
virtual DACommandsForGraphicsItemResized * | createItemResized (DAGraphicsResizeableItem *item, const QSizeF &oldSize, const QSizeF &newSize) |
| |
|
virtual DACommandsForGraphicsItemResizeWidth * | createItemResizeWidth (DAGraphicsResizeableItem *item, const qreal &oldWidth, const qreal &newWidth) |
| |
|
virtual DACommandsForGraphicsItemResizeHeight * | createItemResizeHeight (DAGraphicsResizeableItem *item, const qreal &oldHeight, const qreal &newHeight) |
| |
|
virtual DACommandsForGraphicsItemRotation * | createItemRotation (DAGraphicsResizeableItem *item, const qreal &oldRotation, const qreal &newRotation) |
| |
|
virtual DACommandsForGraphicsItemGrouping * | createItemGrouping (const QList< QGraphicsItem * > &groupingitems) |
| |
|
virtual DACommandsForGraphicsItemUngrouping * | createItemUngrouping (QGraphicsItemGroup *group) |
| |
|
DAGraphicsScene * | scene () const |
| |
|
| virtual void | sceneMousePressEvent (QGraphicsSceneMouseEvent *mouseEvent) |
| |
|
virtual void | sceneMouseMoveEvent (QGraphicsSceneMouseEvent *mouseEvent) |
| |
|
virtual void | sceneMouseReleaseEvent (QGraphicsSceneMouseEvent *mouseEvent) |
| |
| QPointF | sceneMousePressPos () const |
| | 记录场景鼠标左键按下的位置
|
| |
| const QList< std::pair< QGraphicsItem *, QPointF > > & | movingItemsStartPos () const |
| | 这是记录scene移动鼠标时记录的移动的item
|
| |
| const QList< std::pair< QGraphicsItem *, QPointF > > & | movingItemsEndPos () const |
| | 这是记录scene移动item时鼠标释放时记录的item信息
|
| |
| bool | isMouseMovementCycleComplete () const |
| | 标记是否完成了一个完整的鼠标移动元件周期,所谓完整的鼠标移动元件周期,是指鼠标按下并选择了元件,同时鼠标拖动让元件形成位移,最后再松开鼠标
|
| |
| bool | isBeginMovingItems () const |
| | 这个函数用来判断是否开始进入移动状态
|
| |
|
void | resetMouseMovementCycleState () |
| | 重置鼠标移动的循环状态,这个函数是重写sceneMouseReleaseEvent等函数时要重置状态用
|
| |
|
void | setScene (DAGraphicsScene *s) |
| |