Ejemplo n.º 1
0
 private void OnTextDeleted(object o, TextDeletedArgs args)
 {
     if (args.StartPos != args.EndPos)
     {
         undo_manager.AddUndoAction(new EditableEraseAction(editable, args.StartPos, args.EndPos));
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
        public void vixenpreviewControl_PreviewItemsAlignNew(object sender, PreviewItemMoveEventArgs e)
        {
            var action = new PreviewItemsMoveUndoAction(previewForm.Preview, e.PreviousMove);

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