~cszikszoy/do-plugins/pastebin

39.1.34 by David Siegel
Spring cleaning. God Monodevelop is a luxury.
1
//  TomboySearchNotesCommand.cs
67 by Richard Harding
+ added the Tomboy plugin to the do-plugins branch with make file
2
//
3
//  GNOME Do is the legal property of its developers, whose names are too numerous
4
//  to list here.  Please refer to the COPYRIGHT file distributed with this
5
//  source distribution.
6
//
7
//  This program is free software: you can redistribute it and/or modify
8
//  it under the terms of the GNU General Public License as published by
9
//  the Free Software Foundation, either version 3 of the License, or
10
//  (at your option) any later version.
11
//
12
//  This program is distributed in the hope that it will be useful,
13
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
//  GNU General Public License for more details.
16
//
17
//  You should have received a copy of the GNU General Public License
18
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20
using System;
21
using System.Diagnostics;
22
23
using Do.Universe;
24
39.1.34 by David Siegel
Spring cleaning. God Monodevelop is a luxury.
25
namespace Tomboy
67 by Richard Harding
+ added the Tomboy plugin to the do-plugins branch with make file
26
{
39.1.37 by David Siegel
* Cleanup Tomboy.
27
	public class SearchNotesAction : AbstractAction
39.1.34 by David Siegel
Spring cleaning. God Monodevelop is a luxury.
28
	{			
29
		public override string Name {
67 by Richard Harding
+ added the Tomboy plugin to the do-plugins branch with make file
30
			get { return "Search Tomboy Notes"; }
31
		}
32
		
39.1.34 by David Siegel
Spring cleaning. God Monodevelop is a luxury.
33
		public override string Description {
34
			get { return "Searches contents of Tomboy notes"; }
35
		}
36
		
37
		public override string Icon {
38
			get { return "gtk-find"; }
39
		}
40
		
41
		public override Type[] SupportedItemTypes {
67 by Richard Harding
+ added the Tomboy plugin to the do-plugins branch with make file
42
			get {
43
				return new Type[] {
44
					typeof (ITextItem),
45
				};
46
			}
47
		}
48
		
39.1.34 by David Siegel
Spring cleaning. God Monodevelop is a luxury.
49
		public override IItem[] Perform (IItem[] items, IItem[] modifierItems)
67 by Richard Harding
+ added the Tomboy plugin to the do-plugins branch with make file
50
		{
39.1.34 by David Siegel
Spring cleaning. God Monodevelop is a luxury.
51
			TomboyDBus tb = new TomboyDBus ();
52
			tb.SearchNotes ((items [0] as ITextItem).Text);
67 by Richard Harding
+ added the Tomboy plugin to the do-plugins branch with make file
53
			return null;
54
		}
55
	}
56
}