home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / Undo.h < prev    next >
Encoding:
Text File  |  2001-01-02  |  1.3 KB  |  44 lines

  1. //
  2. //
  3. // QERadiant Multilevel Undo/Redo
  4. //
  5. // 
  6.  
  7. //start operation
  8. void Undo_Start(char *operation);
  9. //end operation
  10. void Undo_End(void);
  11. //add brush to the undo
  12. void Undo_AddBrush(brush_t *pBrush);
  13. //add a list with brushes to the undo
  14. void Undo_AddBrushList(brush_t *brushlist);
  15. //end a brush after the operation is performed
  16. void Undo_EndBrush(brush_t *pBrush);
  17. //end a list with brushes after the operation is performed
  18. void Undo_EndBrushList(brush_t *brushlist);
  19. //add entity to undo
  20. void Undo_AddEntity(entity_t *entity);
  21. //end an entity after the operation is performed
  22. void Undo_EndEntity(entity_t *entity);
  23. //undo last operation
  24. void Undo_Undo(void);
  25. //redo last undone operation
  26. void Undo_Redo(void);
  27. //returns true if there is something to be undone available
  28. int  Undo_UndoAvailable(void);
  29. //returns true if there is something to redo available
  30. int  Undo_RedoAvailable(void);
  31. //clear the undo buffer
  32. void Undo_Clear(void);
  33. //set maximum undo size (default 64)
  34. void Undo_SetMaxSize(int size);
  35. //get maximum undo size
  36. int  Undo_GetMaxSize(void);
  37. //set maximum undo memory in bytes (default 2 MB)
  38. void Undo_SetMaxMemorySize(int size);
  39. //get maximum undo memory in bytes
  40. int  Undo_GetMaxMemorySize(void);
  41. //returns the amount of memory used by undo
  42. int  Undo_MemorySize(void);
  43.  
  44.