~cszikszoy/do-plugins/pastebin

« back to all changes in this revision

Viewing changes to Templates/MyCommand.cs

  • Committer: David Siegel
  • Date: 2008-01-24 04:48:52 UTC
  • Revision ID: dave@ja7gggggggg9-20080124044852-9vnlo01h9kkyz12a
Added Epiphany plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
//  This is a simple command called MyCommand. If you're going to
4
4
//  create a Command addin, you can start by copying this code
5
5
//  to begin your own command class.
6
 
//
7
 
//  GNOME Do is the legal property of its developers, whose names are too numerous
8
 
//  to list here.  Please refer to the COPYRIGHT file distributed with this
9
 
//  source distribution.
10
 
//
11
 
//  This program is free software: you can redistribute it and/or modify
12
 
//  it under the terms of the GNU General Public License as published by
13
 
//  the Free Software Foundation, either version 3 of the License, or
14
 
//  (at your option) any later version.
15
 
//
16
 
//  This program is distributed in the hope that it will be useful,
17
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 
//  GNU General Public License for more details.
20
 
//
21
 
//  You should have received a copy of the GNU General Public License
22
 
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
 
 
24
6
 
25
7
using System;
26
8
using Do.Universe;
28
10
namespace MyAddinNamespace
29
11
{
30
12
 
31
 
        public class MyAction : IAction
 
13
        public class MyCommand : ICommand
32
14
        {
33
15
                
34
16
                public string Name {
35
17
                        get {
36
 
                                return "The name of the action.";
 
18
                                return "The name of the command.";
37
19
                        }
38
20
                }
39
21
                
40
22
                public string Description {
41
23
                        get {
42
 
                                return "A description of the action.";
 
24
                                return "A description of the command.";
43
25
                        }
44
26
                }
45
27
                
48
30
                                // Look in /usr/share/icons/Tango/* for some great icons
49
31
                                // to use. Just return the name of the icon, without the
50
32
                                // path or extension.
51
 
                                return "my-action-icon";
 
33
                                return "my-command-icon";
52
34
                        }
53
35
                }
54
36
                
106
88
                }
107
89
                
108
90
        }
109
 
}
 
91
}
 
 
b'\\ No newline at end of file'