1#ifndef DAWORKFLOWOPERATEWIDGET_H
2#define DAWORKFLOWOPERATEWIDGET_H
6#include "DAAbstractOperateWidget.h"
7#include "DAGraphicsStandardTextItem.h"
8#include "DAWorkFlowGraphicsScene.h"
9#include "DAWorkFlowEditWidget.h"
12class DAWorkFlowOperateWidget;
20class DAWorkFlowGraphicsView;
21class DAAbstractNodeGraphicsItem;
72 int getCurrentWorkflowIndex()
const;
73 void setCurrentWorkflow(
int index);
78 void setCurrentWorkflowName(
const QString& name);
81 QList< DAWorkFlowEditWidget* > getAllWorkFlowWidgets()
const;
84 QList< DAWorkFlowGraphicsScene* > getAllWorkFlowScene()
const;
91 QString getWorkFlowWidgetName(
int index)
const;
93 void renameWorkFlowWidget(
int index,
const QString& name);
97 void removeWorkflow(
int index);
100 void setUndoStackActive();
102 bool isCurrentWorkflowShowGrid()
const;
104 QUndoStack* getUndoStack()
override;
110 QList< QString > getAllWorkflowNames()
const;
112 QFont getDefaultTextFont()
const;
113 void setDefaultTextFont(
const QFont& f);
115 QColor getDefaultTextColor()
const;
116 void setDefaultTextColor(
const QColor& c);
118 bool isOnlyOneWorkflow()
const;
119 void setOnlyOneWorkflow(
bool v);
121 QAction* getInnerAction(InnerActions act);
123 void iteratorScene(FpScenesOpt fp);
127 QActionGroup* getLineMarkerActionGroup()
const;
130 void addBackgroundPixmap(
const QString& pixmapPath);
132 void setBackgroundPixmapLock(
bool on);
134 void setSelectTextFont(
const QFont& f);
136 void setSelectTextColor(
const QColor& color);
138 void setSelectShapeBackgroundBrush(
const QBrush& b);
140 void setSelectShapeBorderPen(
const QPen& v);
142 void setCurrentWorkflowShowGrid(
bool on);
144 void setCurrentWorkflowReadOnly(
bool on);
146 void setCurrentWorkflowWholeView();
148 void setCurrentWorkflowZoomIn();
150 void setCurrentWorkflowZoomOut();
152 void setCurrentWorkflowSelectAll();
154 void runCurrentWorkFlow();
156 void terminateCurrentWorkFlow();
158 void copyCurrentSelectItems();
160 void cutCurrentSelectItems();
162 void pasteFromClipBoard();
164 void removeCurrentSelectItems();
166 void cancelCurrent();
168 void setEnableWorkflowLink(
bool on);
169 bool isEnableWorkflowLink()
const;
256 void onTabWidgetCurrentChanged(
int index);
258 void onTabWidgetTabCloseRequested(
int index);
260 void onSelectionChanged();
262 void onSceneItemsAdded(
const QList< QGraphicsItem* >& its);
263 void onSceneItemsRemoved(
const QList< QGraphicsItem* >& its);
265 void onActionGroupViewLineMarkersTriggered(QAction* act);
268 QList< DAGraphicsStandardTextItem* > getSelectTextItems();
272 void retranslateUi();
275 Ui::DAWorkFlowOperateWidget* ui;
这是一个scene的动作,DAGraphicsScene支持持有一个动作,这个动作可以捕获scene的所有界面事件
Definition DAAbstractGraphicsSceneAction.h:22
这是节点的基类,workflow所有节点都继承此类 作为一个节点的QGraphicsItem,此item应该由DAAbstractNode创建
Definition DAAbstractNodeGraphicsItem.h:47
这是带着undostack的GraphicsScene 此QGraphicsScene支持:
Definition DAGraphicsScene.h:30
MarkerStyle
标记样式
Definition DAGraphicsViewOverlayMouseMarker.h:25
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