Inheritance: BaseHistoryItem
Ejemplo n.º 1
0
        private void HandlePintaCoreActionsLayersMoveLayerDownActivated(object sender, EventArgs e)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;

            PintaCore.Tools.Commit();

            SwapLayersHistoryItem hist = new SwapLayersHistoryItem("Menu.Layers.MoveLayerDown.png", Catalog.GetString("Move Layer Down"), doc.CurrentLayerIndex, doc.CurrentLayerIndex - 1);

            doc.MoveCurrentLayerDown();
            doc.History.PushNewItem(hist);
        }
Ejemplo n.º 2
0
        private void HandlePintaCoreActionsLayersMoveLayerDownActivated(object sender, EventArgs e)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;

            PintaCore.Tools.Commit();

            SwapLayersHistoryItem hist = new SwapLayersHistoryItem(Resources.Icons.LayerMoveDown, Translations.GetString("Move Layer Down"), doc.Layers.CurrentUserLayerIndex, doc.Layers.CurrentUserLayerIndex - 1);

            doc.Layers.MoveCurrentLayerDown();
            doc.History.PushNewItem(hist);
        }
Ejemplo n.º 3
0
        private void HandlePintaCoreActionsLayersMoveLayerUpActivated(object sender, EventArgs e)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;
            PintaCore.Tools.Commit ();

            SwapLayersHistoryItem hist = new SwapLayersHistoryItem ("Menu.Layers.MoveLayerUp.png", Catalog.GetString ("Move Layer Up"), doc.CurrentLayerIndex, doc.CurrentLayerIndex + 1);

            doc.MoveCurrentLayerUp ();
            doc.History.PushNewItem (hist);
        }
Ejemplo n.º 4
0
        private void HandlePintaCoreActionsLayersMoveLayerUpActivated(object sender, EventArgs e)
        {
            PintaCore.Layers.FinishSelection ();

            SwapLayersHistoryItem hist = new SwapLayersHistoryItem ("Menu.Layers.MoveLayerUp.png", Mono.Unix.Catalog.GetString ("Move Layer Up"), PintaCore.Layers.CurrentLayerIndex, PintaCore.Layers.CurrentLayerIndex + 1);

            PintaCore.Layers.MoveCurrentLayerUp ();
            PintaCore.History.PushNewItem (hist);
        }