class EE::UI::Doc::UndoStack

#include <undostack.hpp>

class UndoStack {
public:
    // construction

    UndoStack(TextDocument* owner, const Uint32& maxStackSize = 10000);
    ~UndoStack();

    // methods

    void clear();
    void clearUndoStack();
    void clearRedoStack();
    void undo();
    void redo();
    bool hasUndo() const;
    bool hasRedo() const;
    const Uint32& getMaxStackSize() const;
    const Time& getMergeTimeout() const;
    void setMergeTimeout(const Time& mergeTimeout);
    Uint64 getCurrentChangeId() const;
};