~and471/+junk/do-with-docky

« back to all changes in this revision

Viewing changes to Do.Interface.Linux.Docky/src/Docky.Interface/Docky.Interface.Items/HotSeatProxyItem.cs

  • Committer: rugby471 at gmail
  • Date: 2010-10-15 16:08:38 UTC
  • Revision ID: rugby471@gmail.com-20101015160838-z9m3utbf7bxzb5ty
reverted to before docky removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  
 
2
//  Copyright (C) 2009 GNOME Do
 
3
// 
 
4
//  This program is free software: you can redistribute it and/or modify
 
5
//  it under the terms of the GNU General Public License as published by
 
6
//  the Free Software Foundation, either version 3 of the License, or
 
7
//  (at your option) any later version.
 
8
// 
 
9
//  This program is distributed in the hope that it will be useful,
 
10
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
//  GNU General Public License for more details.
 
13
// 
 
14
//  You should have received a copy of the GNU General Public License
 
15
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
// 
 
17
 
 
18
using System;
 
19
 
 
20
using Gdk;
 
21
using Cairo;
 
22
 
 
23
using Do.Interface;
 
24
using Do.Platform;
 
25
 
 
26
using Docky.Core;
 
27
using Docky.Utilities;
 
28
 
 
29
namespace Docky.Interface
 
30
{
 
31
        
 
32
        
 
33
        internal class HotSeatProxyItem : AbstractDockItem
 
34
        {
 
35
                AbstractDockItem inner;
 
36
                
 
37
                public override ClickAnimationType AnimationType {
 
38
                        get {
 
39
                                return inner.AnimationType;
 
40
                        }
 
41
                }
 
42
 
 
43
                public override DateTime DockAddItem {
 
44
                        get {
 
45
                                return inner.DockAddItem;
 
46
                        }
 
47
                        set {
 
48
                                inner.DockAddItem = value;
 
49
                        }
 
50
                }
 
51
 
 
52
                public override int Height {
 
53
                        get {
 
54
                                return inner.Height;
 
55
                        }
 
56
                }
 
57
 
 
58
                public override int Width {
 
59
                        get {
 
60
                                return inner.Width;
 
61
                        }
 
62
                }
 
63
 
 
64
                public override bool IsAcceptingDrops {
 
65
                        get {
 
66
                                return inner.IsAcceptingDrops;
 
67
                        }
 
68
                }
 
69
 
 
70
                public override DateTime LastClick {
 
71
                        get {
 
72
                                return inner.LastClick;
 
73
                        }
 
74
                }
 
75
 
 
76
                public override int WindowCount {
 
77
                        get {
 
78
                                return inner.WindowCount;
 
79
                        }
 
80
                }
 
81
 
 
82
                public override DateTime AttentionRequestStartTime {
 
83
                        get {
 
84
                                return inner.AttentionRequestStartTime;
 
85
                        }
 
86
                }
 
87
 
 
88
                public override ScalingType ScalingType {
 
89
                        get {
 
90
                                return inner.ScalingType;
 
91
                        }
 
92
                }
 
93
 
 
94
                public override bool NeedsAttention {
 
95
                        get {
 
96
                                return inner.NeedsAttention;
 
97
                        }
 
98
                }
 
99
 
 
100
                public override bool ReceiveItem (string item)
 
101
                {
 
102
                        return inner.ReceiveItem (item);
 
103
                }
 
104
 
 
105
                public override void SetIconRegion (Gdk.Rectangle region)
 
106
                {
 
107
                        inner.SetIconRegion (region);
 
108
                }
 
109
 
 
110
                
 
111
                public HotSeatProxyItem(AbstractDockItem inner) : base ()
 
112
                {
 
113
                        this.inner = inner;
 
114
                }
 
115
                
 
116
                public override Surface GetIconSurface (Cairo.Surface similar, int targetSize, out int actualSize)
 
117
                {
 
118
                        return inner.GetIconSurface (similar, targetSize, out actualSize);
 
119
                }
 
120
                
 
121
                public override Surface GetTextSurface (Cairo.Surface similar)
 
122
                {
 
123
                        return inner.GetTextSurface (similar);
 
124
                }
 
125
                
 
126
                public override void Clicked (uint button, Gdk.ModifierType state, PointD position)
 
127
                {
 
128
                        DockServices.ItemsService.ResetHotSeat (inner);
 
129
                        base.Clicked (button, state, position);
 
130
                }
 
131
        }
 
132
}