|
AuboStudio SDK
0.6.3
|
|
|
|
|
\chinese 撤销/重做管理器 此接口用于记录终端用户在 AuboCap 程序节点贡献画面中触发的更改(例如,点击按钮时)。 应在 AuboCap 程序节点中使用,以支持 AuboScope 中的撤销/重做功能。 更多...
#include <undo_redo_manager.h>
Public 成员函数 | |
| UndoRedoManager (UndoRedoManager &f) | |
| UndoRedoManager (UndoRedoManager &&f) | |
| virtual | ~UndoRedoManager () |
| void | recordChanges (const std::string &text, std::function< void()> undoableChanges) |
| \chinese | |
Private 成员函数 | |
| UndoRedoManager () | |
Private 属性 | |
| void * | d_ { nullptr } |
友元 | |
| class | DataSwitch |
\chinese 撤销/重做管理器 此接口用于记录终端用户在 AuboCap 程序节点贡献画面中触发的更改(例如,点击按钮时)。 应在 AuboCap 程序节点中使用,以支持 AuboScope 中的撤销/重做功能。
注意:请勿对 AuboCap 安装节点使用此功能,因为它不受支持(且无效)。
注意:此功能不适用于具有基于 HTML 的用户界面的 AuboCap 程序节点,因为这些节点 已支持自动撤销。 \endchinese \english UndoRedoManager This interface is used to record changes triggered by an end user in the screen of a AuboCap program node contribution (e.g. when a button is clicked). It should be used in a AuboCap program node to support the Undo/Redo functionality in AuboScope.
NOTE: Do not use this functionality for AuboCap installation nodes, since it is not supported (and has no effect).
NOTE: This functionality is not relevant for AuboCap program nodes with a HTML-based user interface, since automatic undo is supported for these. \endenglish
在文件 undo_redo_manager.h 第 35 行定义.
| arcs::aubo_scope::UndoRedoManager::UndoRedoManager | ( | UndoRedoManager & | f | ) |
| arcs::aubo_scope::UndoRedoManager::UndoRedoManager | ( | UndoRedoManager && | f | ) |
|
virtual |
|
private |
| void arcs::aubo_scope::UndoRedoManager::recordChanges | ( | const std::string & | text, |
| std::function< void()> | undoableChanges ) |
\chinese
将一组变更归并为一个撤销/重做步骤。
目前撤销/重做支持程序树和数据模型的更改。
| undoableChanges | 被记录为一个撤销/重做步骤的代码块。在AuboScope中 按下"撤销"将撤销此代码块内对程序树和数据模型所做的所有更改。 \endchinese \english |
Group changes into one Undo/Redo step.
Currently Undo/Redo supports changes to the program tree and the data model.
| undoableChanges | Code to be recorded as one Undo/Redo step. Pressing Undo in AuboScope will undo all changes done to the program tree and the data model inside this block of code. \endenglish |
|
friend |
|
private |
在文件 undo_redo_manager.h 第 71 行定义.