ALBA
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Alba_Release
Source
Core
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
//----------------------------------------------------------------------------
24
class
albaOp
;
25
struct
albaOpContext;
26
//----------------------------------------------------------------------------
27
// albaOpContextStack :
28
//----------------------------------------------------------------------------
32
class
ALBA_EXPORT
albaOpContextStack
33
{
34
public
:
35
albaOpContextStack
();
36
virtual
~albaOpContextStack
();
37
38
albaOp
*
Caller
();
39
void
Clear
();
40
void
Push
(
albaOp
*caller);
41
void
Pop
();
42
43
void
Undo_Push
(
albaOp
* op);
44
albaOp
*
Undo_Pop
();
45
void
Undo_Clear
();
46
bool
Undo_IsEmpty
();
47
48
void
Redo_Push
(
albaOp
* op);
49
albaOp
*
Redo_Pop
();
50
void
Redo_Clear
();
51
bool
Redo_IsEmpty
();
52
53
protected
:
54
albaOpContext *
m_Context
;
55
};
56
#endif
albaDefines.h
albaOpContextStack
albaOpContextStack represents the stack used for implementing Undo and Redo mechanism
Definition:
albaOpContextStack.h:33
albaOpContextStack::Undo_Pop
albaOp * Undo_Pop()
albaOpContextStack::Pop
void Pop()
albaOpContextStack::albaOpContextStack
albaOpContextStack()
albaOpContextStack::Undo_Clear
void Undo_Clear()
albaOpContextStack::Caller
albaOp * Caller()
albaOpContextStack::Undo_IsEmpty
bool Undo_IsEmpty()
albaOpContextStack::Clear
void Clear()
albaOpContextStack::Redo_Clear
void Redo_Clear()
albaOpContextStack::Redo_Pop
albaOp * Redo_Pop()
albaOpContextStack::Push
void Push(albaOp *caller)
albaOpContextStack::Undo_Push
void Undo_Push(albaOp *op)
albaOpContextStack::~albaOpContextStack
virtual ~albaOpContextStack()
albaOpContextStack::Redo_Push
void Redo_Push(albaOp *op)
albaOpContextStack::m_Context
albaOpContext * m_Context
Definition:
albaOpContextStack.h:54
albaOpContextStack::Redo_IsEmpty
bool Redo_IsEmpty()
albaOp
Definition:
albaOp.h:51
Generated by
1.9.5