示例#1
0
 private void OnTextDeleted(object o, TextDeletedArgs args)
 {
     if (args.StartPos != args.EndPos)
     {
         undo_manager.AddUndoAction(new EditableEraseAction(editable, args.StartPos, args.EndPos));
     }
 }
示例#2
0
 void Rotate(int degrees)
 {
     if (!(app.Window.Focus is Gtk.Entry))
     {
         var action = new RotateAction(app.Document, app.IconView.SelectedPages, degrees);
         action.Do();
         undo_manager.AddUndoAction(action);
     }
 }
示例#3
0
        public void vixenpreviewControl_PreviewItemsAlignNew(object sender, PreviewItemMoveEventArgs e)
        {
            var action = new PreviewItemsMoveUndoAction(previewForm.Preview, e.PreviousMove);

            _undoMgr.AddUndoAction(action);
        }
示例#4
0
 void OnTextInserted(object o, TextInsertedArgs args)
 {
     UndoManager.AddUndoAction(new EditableInsertAction(editable, args.Position, args.Text, args.Length));
 }