Home | History | Annotate | Download | only in content

Lines Matching defs:undo

28  * Top-level class for managing and interacting with the global undo state for
29 * a document or application. This class supports both undo and redo and has
33 * apps implement to define their undo/redo behavior. The UndoManager keeps
34 * a stack of undo states; each state can have one or more undo operations
48 * can provide undo semantics appropriate to the user's context: while within
50 * undo/redo them without needing to impact edits in other objects; while
52 * undo/redo them as a single stream.</p>
72 * Never merge with the last undo state.
77 * Allow merge with the last undo state only if it contains
83 * Always allow merge with the last undo state, if possible.
122 * Flatten the current undo state into a Parcelable object, which can later be restored
139 // number of undo states we write to not exceed X bytes.
170 * Restore an undo state previously created with {@link #saveInstanceState()}. This will
211 * Set the maximum number of undo states that will be retained.
221 * Return the current maximum number of undo states.
228 * Perform undo of last/top <var>count</var> undo states. The states impacted
231 * undo states will be visible and available for undo. If non-null, only those
233 * @param count Number of undo states to pop.
234 * @return Returns the number of undo states that were actually popped.
236 public int undo(UndoOwner[] owners, int count) {
253 state.undo();
265 * Perform redo of last/top <var>count</var> undo states in the transient redo stack.
268 * undo states will be visible and available for undo. If non-null, only those
270 * @param count Number of undo states to pop.
271 * @return Returns the number of undo states that were actually redone.
297 * Returns true if we are currently inside of an undo/redo operation. This is
298 * useful for editors to know whether they should be generating new undo state
342 * Return the number of undo states on the undo stack.
361 * Return the number of redo states on the undo stack.
380 * Return the user-visible label for the top undo state on the stack.
381 * @param owners If non-null, will select the top-most undo state containing an
391 * @param owners If non-null, will select the top-most undo state containing an
400 * Start creating a new undo state. Multiple calls to this function will nest until
402 * @param label Optional user-visible label for this new undo state.
406 throw new IllegalStateException("Can't being update while performing undo/redo");
433 * Forcibly set a new for the new undo state being built within a {@link #beginUpdate}.
444 * Set a new for the new undo state being built within a {@link #beginUpdate}, but
464 * undo state.
468 * @return Returns true if there is a matching operation in the current undo state.
546 "Given operation's owner is not in this undo manager.");
562 * Finish the creation of an undo state, matching a previous call to
586 // an undo.
600 * Commit the last finished undo state. This undo state can no longer be
603 * this will push any changes in the current update on to the undo stack
604 * and result with a fresh undo state, behaving as if {@link #endUpdate()}
608 * If this is non-null, the commit will only execute if the current top undo
610 * @return Returns an integer identifier for the committed undo state, which
634 * Attempt to undo a previous call to {@link #commitState}. This will work
635 * if the undo state at the top of the stack has the given id, and has not been
636 * involved in an undo operation. Otherwise false is returned.
907 void undo() {
909 mOperations.get(i).undo();