AuboStudio SDK 0.6.3

Public 成员函数 | Private 成员函数 | Private 属性 | 友元 | 所有成员列表
arcs::aubo_scope::UndoRedoManager类 参考

`#include <undo_redo_manager.h>`

## Public 成员函数
| UndoRedoManager (UndoRedoManager &f)
| UndoRedoManager (UndoRedoManager &&f)
virtual | ~UndoRedoManager ()
void | recordChanges (const std::string &text, std::function< void()> undoableChanges)

## Private 成员函数
| UndoRedoManager ()

## Private 属性
void * | d_ { nullptr }

## 友元
class | DataSwitch

## 详细描述

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.

在文件 undo_redo_manager.h 第 27 行定义.

## 构造及析构函数说明

## ◆ UndoRedoManager() [1/3]

arcs::aubo_scope::UndoRedoManager::UndoRedoManager | ( | UndoRedoManager & | f | ) |

## ◆ UndoRedoManager() [2/3]

arcs::aubo_scope::UndoRedoManager::UndoRedoManager | ( | UndoRedoManager && | f | ) |

## ◆ ~UndoRedoManager()

virtual arcs::aubo_scope::UndoRedoManager::~UndoRedoManager | ( |  | ) |
| virtual

## ◆ UndoRedoManager() [3/3]

arcs::aubo_scope::UndoRedoManager::UndoRedoManager | ( |  | ) |
| private

## 成员函数说明

## ◆ recordChanges()

void arcs::aubo_scope::UndoRedoManager::recordChanges | ( | const std::string & | text,
|  | std::function< void()> | undoableChanges
| ) |  |

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.

## 友元及相关函数文档

## ◆ DataSwitch

friend class DataSwitch
| friend

在文件 undo_redo_manager.h 第 50 行定义.

## 类成员变量说明

## ◆ d_

void* arcs::aubo_scope::UndoRedoManager::d_ { nullptr }
| private

在文件 undo_redo_manager.h 第 52 行定义.

该类的文档由以下文件生成:

- include/aubo_caps/domain/undoredo/undo_redo_manager.h