~ubuntu-branches/ubuntu/precise/gnome-do/precise-proposed

« back to all changes in this revision

Viewing changes to Do/src/Do.Universe/InternalItemSource.cs

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-09-14 10:09:40 UTC
  • mto: (0.1.8 sid)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20080914100940-kyghudg7py14bu2z
Tags: upstream-0.6.0.0
ImportĀ upstreamĀ versionĀ 0.6.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
using System;
22
22
using System.Collections.Generic;
23
 
 
24
 
using Do.Core;
25
 
 
26
 
namespace Do.Universe
27
 
{
28
 
        public class InternalItemSource : IItemSource
29
 
        {
30
 
                public static readonly ProxyItem LastItem = new ProxyItem ("Last Item",
31
 
                                                                           "The last item used in a command.",
32
 
                                                                           "undo");
33
 
                private List<IItem> items;
34
 
                
35
 
                public InternalItemSource ()
36
 
                {
37
 
                        items = new List<IItem> ();
38
 
                        items.Add (LastItem);
39
 
                        items.Add (new SelectedTextItem ());
40
 
                }
41
 
                
42
 
                public Type[] SupportedItemTypes
43
 
                {
 
23
using Mono.Unix;
 
24
 
 
25
namespace Do.Universe {
 
26
        
 
27
        public class InternalItemSource : IItemSource {
 
28
                
 
29
                public Type[] SupportedItemTypes {
 
30
                        get { return null; }
 
31
                }
 
32
                
 
33
                public string Name {
 
34
                        get { return Catalog.GetString ("Internal GNOME Do Items"); }
 
35
                }
 
36
                
 
37
                public string Description {
 
38
                        get { return Catalog.GetString ("Special items relevant to the inner-workings of GNOME Do."); }
 
39
                }
 
40
                
 
41
                public string Icon {
 
42
                        get { return "gnome-system"; }
 
43
                }
 
44
                
 
45
                public void UpdateItems ()
 
46
                {
 
47
                }
 
48
                
 
49
                public ICollection<IItem> Items {
44
50
                        get {
45
 
                                return new Type[] {
 
51
                                return new IItem[] {
 
52
                                        new SelectedTextItem (),
 
53
                                        new PreferencesItem (),
 
54
                                        new DoQuitItem (),
46
55
                                };
47
56
                        }
48
57
                }
49
58
                
50
 
                public string Name
51
 
                {
52
 
                        get { return "Internal GNOME Do Items"; }
53
 
                }
54
 
                
55
 
                public string Description
56
 
                {
57
 
                        get { return "Special items relevant to the inner-workings of GNOME Do."; }
58
 
                }
59
 
                
60
 
                public string Icon
61
 
                {
62
 
                        get { return "gnome-system"; }
63
 
                }
64
 
                
65
 
                
66
 
                public void UpdateItems ()
67
 
                {
68
 
                }
69
 
                
70
 
                public ICollection<IItem> Items
71
 
                {
72
 
                        get { return items; }
73
 
                }
74
 
                
75
59
                public ICollection<IItem> ChildrenOfItem (IItem item)
76
60
                {
77
61
                        return null;
78
 
                }
 
62
                }               
79
63
        }
80
 
}
 
64
}
 
 
b'\\ No newline at end of file'