PDF
AuboStudio SDK  0.6.3
arcs::aubo_scope::UndoRedoManager Class Reference

UndoRedoManager This interface is used to record changes triggered by an end user in the screen of a AuboCap program node contribution (e.g. More...

#include <undo_redo_manager.h>

Public Member Functions

 UndoRedoManager (UndoRedoManager &f)
 UndoRedoManager (UndoRedoManager &&f)
virtual ~UndoRedoManager ()
void recordChanges (const std::string &text, std::function< void()> undoableChanges)

Private Member Functions

 UndoRedoManager ()

Private Attributes

void * d_ { nullptr }

Friends

class DataSwitch

Detailed Description

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.

Definition at line 35 of file undo_redo_manager.h.

Constructor & Destructor Documentation

◆ UndoRedoManager() [1/3]

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

References UndoRedoManager().

Referenced by UndoRedoManager(), and UndoRedoManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UndoRedoManager() [2/3]

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

References UndoRedoManager().

Here is the call graph for this function:

◆ ~UndoRedoManager()

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

◆ UndoRedoManager() [3/3]

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

Member Function Documentation

◆ 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.

Parameters
undoableChangesCode 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

Definition at line 69 of file undo_redo_manager.h.

References DataSwitch.

Referenced by DataSwitch.

Member Data Documentation

◆ d_

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

Definition at line 71 of file undo_redo_manager.h.


The documentation for this class was generated from the following file: