doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions | Variables
Undo.cpp File Reference
#include "../../idlib/precompiled.h"
#include "qe3.h"
#include "Radiant.h"

Go to the source code of this file.

Classes

struct  undo_s
 

Typedefs

typedef struct undo_s undo_t
 

Functions

int Undo_MemorySize (void)
 
void Undo_ClearRedo (void)
 
void Undo_Clear (void)
 
void Undo_SetMaxSize (int size)
 
int Undo_GetMaxSize (void)
 
void Undo_SetMaxMemorySize (int size)
 
int Undo_GetMaxMemorySize (void)
 
void Undo_FreeFirstUndo (void)
 
void Undo_GeneralStart (char *operation)
 
int Undo_BrushInUndo (undo_t *undo, brush_t *brush)
 
int Undo_EntityInUndo (undo_t *undo, entity_t *ent)
 
void Undo_Start (char *operation)
 
void Undo_AddBrush (brush_t *pBrush)
 
void Undo_AddBrushList (brush_t *brushlist)
 
void Undo_EndBrush (brush_t *pBrush)
 
void Undo_EndBrushList (brush_t *brushlist)
 
void Undo_AddEntity (entity_t *entity)
 
void Undo_EndEntity (entity_t *entity)
 
void Undo_End (void)
 
void Undo_Undo (void)
 
void Undo_Redo (void)
 
int Undo_RedoAvailable (void)
 
int Undo_UndoAvailable (void)
 

Variables

undo_tg_undolist
 
undo_tg_lastundo
 
undo_tg_redolist
 
undo_tg_lastredo
 
int g_undoMaxSize = 64
 
int g_undoSize = 0
 
int g_undoMaxMemorySize = 2*1024*1024
 
int g_undoMemorySize = 0
 
int g_undoId = 1
 
int g_redoId = 1
 

Typedef Documentation

typedef struct undo_s undo_t

Function Documentation

void Undo_AddBrush ( brush_t *  pBrush)

Definition at line 373 of file Undo.cpp.

void Undo_AddBrushList ( brush_t *  brushlist)

Definition at line 408 of file Undo.cpp.

void Undo_AddEntity ( entity_t entity)

Definition at line 493 of file Undo.cpp.

int Undo_BrushInUndo ( undo_t undo,
brush_t *  brush 
)

Definition at line 330 of file Undo.cpp.

void Undo_Clear ( void  )

Definition at line 144 of file Undo.cpp.

void Undo_ClearRedo ( void  )

Definition at line 111 of file Undo.cpp.

void Undo_End ( void  )

Definition at line 552 of file Undo.cpp.

void Undo_EndBrush ( brush_t *  pBrush)

Definition at line 450 of file Undo.cpp.

void Undo_EndBrushList ( brush_t *  brushlist)

Definition at line 470 of file Undo.cpp.

void Undo_EndEntity ( entity_t entity)

Definition at line 525 of file Undo.cpp.

int Undo_EntityInUndo ( undo_t undo,
entity_t ent 
)

Definition at line 346 of file Undo.cpp.

void Undo_FreeFirstUndo ( void  )

Definition at line 225 of file Undo.cpp.

void Undo_GeneralStart ( char *  operation)

Definition at line 258 of file Undo.cpp.

int Undo_GetMaxMemorySize ( void  )

Definition at line 215 of file Undo.cpp.

int Undo_GetMaxSize ( void  )

Definition at line 193 of file Undo.cpp.

int Undo_MemorySize ( void  )

Definition at line 80 of file Undo.cpp.

void Undo_Redo ( void  )

Definition at line 764 of file Undo.cpp.

int Undo_RedoAvailable ( void  )

Definition at line 890 of file Undo.cpp.

void Undo_SetMaxMemorySize ( int  size)

Definition at line 203 of file Undo.cpp.

void Undo_SetMaxSize ( int  size)

Definition at line 181 of file Undo.cpp.

void Undo_Start ( char *  operation)

Definition at line 362 of file Undo.cpp.

void Undo_Undo ( void  )

Definition at line 582 of file Undo.cpp.

int Undo_UndoAvailable ( void  )

Definition at line 901 of file Undo.cpp.

Variable Documentation

undo_t* g_lastredo

Definition at line 66 of file Undo.cpp.

undo_t* g_lastundo

Definition at line 64 of file Undo.cpp.

int g_redoId = 1

Definition at line 72 of file Undo.cpp.

undo_t* g_redolist

Definition at line 65 of file Undo.cpp.

int g_undoId = 1

Definition at line 71 of file Undo.cpp.

undo_t* g_undolist

Definition at line 63 of file Undo.cpp.

int g_undoMaxMemorySize = 2*1024*1024

Definition at line 69 of file Undo.cpp.

int g_undoMaxSize = 64

Definition at line 67 of file Undo.cpp.

int g_undoMemorySize = 0

Definition at line 70 of file Undo.cpp.

int g_undoSize = 0

Definition at line 68 of file Undo.cpp.