1#ifndef DAWORKFLOWEDITWIDGET_H
2#define DAWORKFLOWEDITWIDGET_H
6#include "DAGraphicsStandardTextItem.h"
7#include "DAWorkFlowGraphicsView.h"
8#include "DAWorkFlowGraphicsScene.h"
10#include "DAAbstractGraphicsSceneAction.h"
13class DAWorkFlowEditWidget;
21class DAWorkFlowGraphicsView;
22class DAAbstractNodeGraphicsItem;
44 void setUndoStackActive();
46 void setEnableShowGrid(
bool on);
48 QUndoStack* getUndoStack();
54 QFont getDefaultTextFont()
const;
55 void setDefaultTextFont(
const QFont& f);
57 QColor getDefaultTextColor()
const;
58 void setDefaultTextColor(
const QColor& c);
62 QPointF getViewCenterMapToScene()
const;
64 void moveItemToViewSceneCenter(QGraphicsItem* item);
66 static QRectF calcAllItemsSceneRange(
const QList< QGraphicsItem* >& its);
68 static QList< QGraphicsItem* > cast(
const QList< DAGraphicsItem* >& its);
71 void addBackgroundPixmap(
const QString& pixmapPath);
73 void setBackgroundPixmapLock(
bool on);
75 void setSelectTextToBold(
bool on);
77 void setSelectTextToItalic(
bool on);
79 void setSelectTextColor(
const QColor& color);
81 void setSelectTextFamily(
const QString& family);
83 void setSelectTextPointSize(
const int size);
85 void setSelectTextItemFont(
const QFont& f);
87 void setSelectShapeBackgroundBrush(
const QBrush& b);
89 void setSelectShapeBorderPen(
const QPen& v);
93 void clearSelection();
95 void copySelectItems();
97 void cutSelectItems();
99 void pasteToViewCenter();
101 void removeSelectItems();
141 QList< DAGraphicsStandardTextItem* > getSelectStandardTextItems();
142 QList< DAGraphicsTextItem* > getSelectTextItems();
144 QList< DAGraphicsItem* > getSelectDAItems();
147 void setSelectionState(
const QList< QGraphicsItem* >& items,
bool isSelect);
150 Ui::DAWorkFlowEditWidget* ui;
这是一个scene的动作,DAGraphicsScene支持持有一个动作,这个动作可以捕获scene的所有界面事件
Definition DAAbstractGraphicsSceneAction.h:22
这是节点的基类,workflow所有节点都继承此类 作为一个节点的QGraphicsItem,此item应该由DAAbstractNode创建
Definition DAAbstractNodeGraphicsItem.h:47
支持缩放编辑的图片item
Definition DAGraphicsPixmapItem.h:13
The DAWorkFlowGraphicsScene class
Definition DAWorkFlowGraphicsScene.h:18
SceneActionFlag
鼠标动作标记
Definition DAWorkFlowGraphicsScene.h:25
用于节点显示的GraphicsView
Definition DAWorkFlowGraphicsView.h:24
基本的工作流,这个也是总工厂,汇总了所有插件的工厂
Definition DAWorkFlow.h:21
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44