ALBA
albaOpContextStack.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaOpContextStack
5 Authors: Silvano Imboden
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16#ifndef __albaOpContextStack_H__
17#define __albaOpContextStack_H__
18
19#include "albaDefines.h"
20
21//----------------------------------------------------------------------------
22// forward references :
23//----------------------------------------------------------------------------
24class albaOp;
25struct albaOpContext;
26//----------------------------------------------------------------------------
27// albaOpContextStack :
28//----------------------------------------------------------------------------
32class ALBA_EXPORT albaOpContextStack
33{
34public:
37
39 void Clear();
40 void Push(albaOp *caller);
41 void Pop();
42
43 void Undo_Push(albaOp* op);
45 void Undo_Clear();
47
48 void Redo_Push(albaOp* op);
50 void Redo_Clear();
52
53protected:
54 albaOpContext *m_Context;
55};
56#endif
albaOpContextStack represents the stack used for implementing Undo and Redo mechanism
albaOp * Undo_Pop()
albaOp * Redo_Pop()
void Push(albaOp *caller)
void Undo_Push(albaOp *op)
virtual ~albaOpContextStack()
void Redo_Push(albaOp *op)
albaOpContext * m_Context
Definition: albaOp.h:51