3
//GNOME Do is the legal property of its developers. Please refer to the
4
//COPYRIGHT file distributed with this
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 2 of the License, or
10
// (at your option) any later version.
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.
17
// You should have received a copy of the GNU General Public License
18
// along with this program; if not, write to the Free Software
19
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
using System.Collections.Generic;
29
namespace WindowManager
31
public class WindowItemSource : IItemSource
37
return "Generic Window Items";
41
public string Description {
43
return "Useful Generically Understood Window Items";
49
return "gnome-window-manager";
53
public Type[] SupportedItemTypes {
56
typeof (GenericWindowItem)};
60
public ICollection<IItem> Items {
66
public WindowItemSource ()
68
items = new List<IItem> ();
70
items.Add (new GenericWindowItem ("Current Window",
71
"The Currently Active Window",
72
"gnome-window-manager"));
75
public ICollection<IItem> ChildrenOfItem (IItem item)
80
public void UpdateItems ()
88
public class ScreenItemSource : IItemSource
94
return "Window Screen Items";
98
public string Description {
100
return "Actions you can do to your screens.";
106
return "desktop"; //fixme
110
public Type[] SupportedItemTypes {
113
typeof (IScreenItem) };
117
public ICollection<IItem> Items {
119
items.Add (new ScreenItem ("Current Desktop",
120
"Everything on the Current Desktop",
128
public ScreenItemSource()
130
items = new List<IItem> ();
133
public ICollection<IItem> ChildrenOfItem (IItem item)
138
public void UpdateItems ()