undo.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // "$Id$"
  3. //
  4. // FLUID undo definitions for the Fast Light Tool Kit (FLTK).
  5. //
  6. // Copyright 1998-2010 by Bill Spitzak and others.
  7. //
  8. // This library is free software. Distribution and use rights are outlined in
  9. // the file "COPYING" which should have been included with this file. If this
  10. // file is missing or damaged, see the license at:
  11. //
  12. // http://www.fltk.org/COPYING.php
  13. //
  14. // Please report all bugs and problems on the following page:
  15. //
  16. // http://www.fltk.org/str.php
  17. //
  18. #ifndef undo_h
  19. # define undo_h
  20. extern int undo_current; // Current undo level in buffer
  21. extern int undo_last; // Last undo level in buffer
  22. extern int undo_save; // Last undo level that was saved
  23. void redo_cb(Fl_Widget *, void *); // Redo menu callback
  24. void undo_cb(Fl_Widget *, void *); // Undo menu callback
  25. void undo_checkpoint(); // Save current file to undo buffer
  26. void undo_clear(); // Clear undo buffer
  27. void undo_resume(); // Resume undo checkpoints
  28. void undo_suspend(); // Suspend undo checkpoints
  29. #endif // !undo_h
  30. //
  31. // End of "$Id$".
  32. //