aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Editors/ISupportEditingOperations.cs
blob: 40c7461158831e10f80c7608ae0322278c65ae18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;

namespace Tango.Editors
{
    /// <summary>
    /// Represents a component which support Cut, Copy and Paste operations.
    /// </summary>
    public interface ISupportEditingOperations
    {
        /// <summary>
        /// Gets or sets a value indicating whether to enable editing operations using the keyboard.
        /// </summary>
        bool EnableKeyboardEditingOperations { get; set; }

        /// <summary>
        /// Copies and deletes the selected objects.
        /// </summary>
        void Cut();

        /// <summary>
        /// Copies the selected objects.
        /// </summary>
        void Copy();

        /// <summary>
        /// Pastes the last copied objects.
        /// </summary>
        void Paste();

        /// <summary>
        /// Invokes the <see cref="Cut"/> method.
        /// </summary>
        RelayCommand CutCommand { get; set; }

        /// <summary>
        /// Invokes the <see cref="Copy"/> method.
        /// </summary>
        RelayCommand CopyCommand { get; set; }

        /// <summary>
        /// Invokes the <see cref="Paste"/> method.
        /// </summary>
        RelayCommand PasteCommand { get; set; }
    }
}