33 class TestOperation :
public Operation
71 for (
int i = 0; i < 2; i++)
76 myUndoController->SetOperationEvent(operationEvent);
86 myUndoController->Undo();
89 for (
int i = 0; i < 2; i++)
94 myUndoController->SetOperationEvent(operationEvent);
104 myUndoController->Undo();
105 myUndoController->ClearRedoList();
111 myUndoController->Clear();
115 for (
int i = 0; i < 2; i++)
120 myUndoController->SetOperationEvent(operationEvent);
127 delete myUndoController;
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
DataCollection - Class to facilitate loading/accessing structured data.
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
int mitkVerboseLimitedLinearUndoTest(int, char *[])
Test of the LimitedLinearUndo object.
Constants for most interaction classes, due to the generic StateMachines.
static void IncCurrObjectEventId()
Increases the current ObjectEventId For example if a button click generates operations the ObjectEven...
Represents a pair of operations: undo and the according redo.