This class implements an undo stack
Esempio n. 1
0
		/// <summary>
		/// </summary>
		public UndoQueue(UndoStack stack, int numops)
		{
			if (stack == null)  {
				throw new ArgumentNullException("stack");
			}
			
			Debug.Assert(numops > 0 , "ICSharpCode.TextEditor.Undo.UndoQueue : numops should be > 0");
			
			for (int i = 0; i < numops; ++i) {
				if (stack._UndoStack.Count > 0) {
					undolist.Add(stack._UndoStack.Pop());
				}
			}
		}
Esempio n. 2
0
 public UndoableSetCaretPosition(UndoStack stack, Point pos)
 {
     this.stack = stack;
     this.pos   = pos;
 }
Esempio n. 3
0
 public UndoableSetCaretPosition(UndoStack stack, TextLocation pos)
 {
     this.stack = stack;
     this.pos = pos;
 }
Esempio n. 4
0
 public UndoableSetCaretPosition(UndoStack stack, TextLocation pos)
 {
     this.stack = stack;
     this.pos   = pos;
 }
Esempio n. 5
0
			public UndoableSetCaretPosition(UndoStack stack, Point pos)
			{
				this.stack = stack;
				this.pos = pos;
			}