|
|
| DAWorkFlowGraphicsView (QWidget *parent=0) |
| |
|
| DAWorkFlowGraphicsView (QGraphicsScene *scene, QWidget *parent=0) |
| |
| void | setWorkFlow (DAWorkFlow *wf) |
| | DAWorkFlowGraphicsView不负责workflow的所有权
|
| |
| DAWorkFlow * | getWorkflow () |
| | DAWorkFlowGraphicsView::workflow
|
| |
|
void | setUndoStackActive () |
| |
|
QUndoStack * | getUndoStack () |
| |
| DAWorkFlowGraphicsScene * | getWorkFlowGraphicsScene () |
| | 获取DAWorkFlowGraphicsScene
|
| |
| QPointF | getViewCenterMapToScene () const |
| | 获取当前view视图下的scene中心
|
| |
| void | moveItemToViewCenter (QGraphicsItem *item) |
| | 把item移动到屏幕中心
|
| |
| bool | copySelectItems () |
| | 复制选中条目,如果没有选中返回false
|
| |
|
void | copyItems (const QList< DAGraphicsItem * > &its, bool isCopy=true) |
| |
|
void | cutSelectItems () |
| | 剪切
|
| |
| QList< QGraphicsItem * > | paste () |
| |
|
void | pasteToViewCenter () |
| |
|
void | pasteByOffset (const QPointF &offset) |
| |
| void | setSelectionState (const QList< QGraphicsItem * > &items, bool isSelect) |
| | 设置item的选中状态
|
| |
|
void | clearSelection () |
| | 取消选中
|
| |
|
void | selectAll () |
| | 全选
|
| |
| void | offsetItems (const QList< QGraphicsItem * > &its, const QPointF &offset) |
| | 所有item偏移一个距离,连接线不进行偏移
|
| |
| DAAbstractNodeGraphicsItem * | createNode (const DANodeMetaData &md, const QPoint &pos) |
| | 创建节点(不带回退功能)
|
| |
|
DAAbstractNodeGraphicsItem * | createNode_ (const DANodeMetaData &md, const QPoint &pos) |
| |
|
| DAGraphicsView (QWidget *parent=0) |
| | DAGraphicsView
|
| |
|
| DAGraphicsView (QGraphicsScene *scene, QWidget *parent=0) |
| |
|
void | setScaleRange (qreal min, qreal max) |
| |
|
qreal | getScaleMaxFactor () const |
| |
|
qreal | getScaleMinFactor () const |
| |
|
bool | isEnaleWheelZoom () const |
| |
|
void | setEnaleWheelZoom (bool enaleWheelZoom=true, ZoomFlags zf=ZoomUseWheelAndCtrl) |
| |
| QPointF | getMouseScenePos () const |
| | 获取鼠标对应的scence的位置坐标
|
| |
| void | setZoomFrags (ZoomFlags zf) |
| | 设置zoomflags
|
| |
| ZoomFlags | getZoomFlags () const |
| | 获取zoomflags
|
| |
| bool | isPadding () const |
| | 判断是否在拖动
|
| |
| void | setPaddingFrags (PadFlags pf) |
| | 设置拖动属性
|
| |
| PadFlags | getPaddingFrags () const |
| | 获取拖动属性
|
| |
| QList< DAGraphicsItem * > | selectedDAItems () const |
| | 选中的item
|
| |
| bool | isSpacebarPressed () const |
| | 是否空格被按下
|
| |
| void | setupViewAction (DAAbstractGraphicsViewAction *act) |
| | 激活一个动作,DA::DAAbstractGraphicsViewAction 的内存归view管理,此函数发射viewActionActived
|
| |
|
void | clearViewAction () |
| | 清除视图action,此操作会把当前维护的视图action清除.
|
| |
| void | markPoint (const QPointF &scenePoint, const QPen &pen=QPen(Qt::blue)) |
| | 标记一个点,让这个点显示出来
|
| |
| bool | isEnableMarker () const |
| | marker是否生效
|
| |
| DAGraphicsViewOverlayMouseMarker::MarkerStyle | getCurrentMarkerStyle () const |
| | 获取当前的markerstyle,如果没生效,返回DAGraphicsViewOverlayMouseMarker::NoMarkerStyle
|
| |
| DAGraphicsViewOverlayMouseMarker * | getMarker () const |
| | 获取marker指针
|
| |
|
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| |
| virtual void | mouseReleaseEvent (QMouseEvent *event) override |
| |
| virtual void | keyPressEvent (QKeyEvent *event) override |
| |
| virtual void | keyReleaseEvent (QKeyEvent *event) override |
| |
|
virtual void | dragEnterEvent (QDragEnterEvent *event) override |
| |
|
virtual void | dragMoveEvent (QDragMoveEvent *event) override |
| |
|
virtual void | dragLeaveEvent (QDragLeaveEvent *event) override |
| |
|
virtual void | dropEvent (QDropEvent *event) override |
| |
| virtual void | wheelEvent (QWheelEvent *event) override |
| | 中键滚动
|
| |
|
virtual void | resizeEvent (QResizeEvent *event) override |
| |
| void | wheelZoom (QWheelEvent *event) |
| | 滚轮事件的缩放
|
| |
| void | startPad (QMouseEvent *event) |
| | 开始拖动
|
| |
| void | endPad () |
| | 结束拖动
|
| |
| virtual DAGraphicsViewOverlayMouseMarker * | createMarker () |
| | 创建鼠标标记,如果重载了DAGraphicsViewOverlayMouseMarker,需要重载此函数返回自己的MouseMarker
|
| |