1:   // IEditAction.cs
2:   // Copyright (C) 2001 Mike Krueger
3:   //
4:   // This program is free software; you can redistribute it and/or modify
5:   // it under the terms of the GNU General Public License as published by
6:   // the Free Software Foundation; either version 2 of the License, or
7:   // (at your option) any later version.
8:   // 
9:   // This program is distributed in the hope that it will be useful,
10:   // but WITHOUT ANY WARRANTY; without even the implied warranty of
11:   // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12:   // GNU General Public License for more details.
13:   //
14:   // You should have received a copy of the GNU General Public License
15:   // along with this program; if not, write to the Free Software
16:   // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17:  
18:   using System;
19:   using System.Windows.Forms;
20:  
21:   using SharpDevelop.Gui;
22:   using SharpDevelop.DefaultEditor.Gui.Editor;
23:   using SharpDevelop.DefaultEditor.Text;
24:  
25:   namespace SharpDevelop.DefaultEditor.Actions {
26:       
27:       /// <summary>
28:       /// To define a new key for the textarea, you must write a class which
29:       /// implements this interface.
30:       /// </summary>
31:       public interface IEditAction
32:       {
33:           Keys[] Keys {
34:               get;
35:               set;
36:           }
37:           
38:           /// <summary>
39:           /// When the key which is defined per XML is pressed, this method will be launched.
40:           /// </summary>
41:           void Execute(IEditActionServices services);
42:       }
43:       
44:       /// <summary>
45:       /// To define a new key for the textarea, you must write a class which
46:       /// implements this interface.
47:       /// </summary>
48:       public abstract class AbstractEditAction : IEditAction
49:       {
50:           Keys[] keys null;
51:           
52:           public Keys[] Keys {
53:               get {
54:                   return keys;
55:               }
56:               set {
57:                   keys value;
58:               }
59:           }
60:           
61:           public abstract void Execute(IEditActionServices services);
62:       }
63:           
64:   }

This page was automatically generated by SharpDevelop.