~do-win/do/test-paths

« back to all changes in this revision

Viewing changes to Do.Interface.Windows/src/Do.Interface/Do.Interface.Widgets/DefaultItems.cs

  • Committer: Hardeep S
  • Date: 2009-06-23 03:53:12 UTC
  • Revision ID: ootz0rz@gmail.com-20090623035312-it8tb5wkha6nf31p
Added Do.Interface.Windows, and a bunch of cleanup with old MonoDevelop files elsewhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// DefaultItems.cs
 
2
//
 
3
//  Copyright (C) 2008 Jason Smith
 
4
//
 
5
// This program is free software; you can redistribute it and/or modify
 
6
// it under the terms of the GNU General Public License as published by
 
7
// the Free Software Foundation; either version 2 of the License, or
 
8
// (at your option) any later version.
 
9
//
 
10
// This program is distributed in the hope that it will be useful,
 
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
13
// GNU General Public License for more details.
 
14
// 
 
15
// You should have received a copy of the GNU General Public License
 
16
// along with this program; if not, write to the Free Software
 
17
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
18
//
 
19
//
 
20
 
 
21
using System;
 
22
using Mono.Unix;
 
23
 
 
24
using Do.Universe;
 
25
 
 
26
namespace Do.Interface.Widgets
 
27
{
 
28
        
 
29
        public class NoResultsFoundItem : Item
 
30
        {
 
31
                string query;
 
32
                
 
33
                public NoResultsFoundItem (string query)
 
34
                {
 
35
                        this.query = query;
 
36
                }
 
37
 
 
38
                public override string Icon { get { return "gtk-dialog-question"; } }
 
39
                public override string Name { get { return Catalog.GetString (string.Format("No results for {0}", query)); } }
 
40
                public override string Description {
 
41
                        get {
 
42
                                return string.Format (Catalog.GetString (string.Format("No results found for {0}", query)));
 
43
                        }
 
44
                }
 
45
        }
 
46
        
 
47
        public class DefaultIconBoxItem : Item
 
48
        {
 
49
                public override string Icon { get { return "search"; } }
 
50
                public override string Name { get { return ""; } }
 
51
                public override string Description { get { return ""; } }
 
52
        }
 
53
        
 
54
        public class DefaultLabelBoxItem : Item
 
55
        {
 
56
                public override string Icon { get { return "search"; } }
 
57
                public override string Name { get { return Catalog.GetString ("Type to begin searching"); } }
 
58
                public override string Description { get { return Catalog.GetString ("Type to start searching."); } }
 
59
        }
 
60
}