~ubuntu-branches/ubuntu/wily/gnome-do/wily

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-09-14 10:09:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080914100940-aakng2140941ze9f
Tags: 0.6.0.0-0ubuntu1
* New upstream version, packaging based on the soon-to-be uploaded Debian
  package in pkg-cli-apps svn.  FFe is LP: #267020
* New upstream version fixes erratic positioning bug (LP: #204372)
* debian/control
  + Update build-depends for new version
  + Update standards version to 3.8.0, adding README.Source
* debian/gnome-do-autostart.desktop
* debian/gnome-do.install
  + Delete our desktop file, install upstream's translated desktop file
    to /etc/xdg/autostart instead.
* debian/gnome-do.preinst
  + Remove old autostart file on upgrade (if unmodified).  Otherwise 
    GNOME Do will appear twice in the autostart list.
* debian/gnome-do.1
  + Manpage updated for new version
* debian/rules:
  + Fix get-orig-source target to run properly from any directory; now should
  be policy compliant.
* debian/copyright:
  + Refresh for new upstream version
  + Update to more recent CopyrightFormat proposal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//  ProxyItem.cs
 
1
//  DoProxyItem.cs
2
2
//
3
3
//  GNOME Do is the legal property of its developers, whose names are too numerous
4
4
//  to list here.  Please refer to the COPYRIGHT file distributed with this
21
21
 
22
22
using Do.Core;
23
23
 
24
 
namespace Do.Universe
25
 
{
26
 
        public class ProxyItem: DoItem
27
 
        {
 
24
namespace Do.Universe {
 
25
        
 
26
        public interface IProxyItem : IItem {
 
27
                IObject Inner {
 
28
                        get;
 
29
                }
 
30
        }
 
31
        
 
32
        public class DoProxyItem : DoItem, IProxyItem {
 
33
                
28
34
                string name, description, icon;
29
35
                
30
 
                public ProxyItem ():
 
36
                public DoProxyItem ():
31
37
                        this (new EmptyItem ())
32
38
                {
33
39
                }
34
40
                        
35
 
                public ProxyItem (IItem item):
 
41
                public DoProxyItem (IItem item):
36
42
                        this (null, null, null, item)
37
43
                {
38
44
                }
39
45
                
40
 
                public ProxyItem (string name):
 
46
                public DoProxyItem (string name):
41
47
                        this (name, new EmptyItem ())
42
48
                {
43
49
                }
44
50
                
45
 
                public ProxyItem (string name, IItem item):
 
51
                public DoProxyItem (string name, IItem item):
46
52
                        this (name, null, null, item)
47
53
                {
48
54
                }
49
55
                
50
 
                public ProxyItem (string name, string description):
 
56
                public DoProxyItem (string name, string description):
51
57
                        this (name, description, new EmptyItem ())
52
58
                {
53
59
                }
54
60
                
55
 
                public ProxyItem (string name, string description, IItem item):
 
61
                public DoProxyItem (string name, string description, IItem item):
56
62
                        this (name, description, null, item)
57
63
                {
58
64
                }
59
65
                
60
 
                public ProxyItem (string name, string description, string icon):
 
66
                public DoProxyItem (string name, string description, string icon):
61
67
                        this (name, description, icon, new EmptyItem ())
62
68
                {
63
69
                }
64
70
                
65
 
                public ProxyItem (string name, string description, string icon, IItem item):
 
71
                public DoProxyItem (string name, string description, string icon, IItem item):
66
72
                        base (item)
67
73
                {
68
74
                        this.name = name;
81
87
                public override string Icon {
82
88
                        get { return icon ?? base.Icon; }
83
89
                }
84
 
 
 
90
                
85
91
                public override string UID {
86
 
                        get { return string.Format ("{0}{1}{2}", GetType (), Name, Description); }
 
92
                        get { return base.Inner.GetType ().ToString ()+Name+Description; }
87
93
                }
 
94
 
88
95
        }
89
96
}