584.1.2
by Jason Smith
Some rewrite work |
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 |
using System.Collections.Generic; |
|
20 |
using System.Linq; |
|
21 |
||
22 |
using Do.Universe; |
|
23 |
using Do.Interface.Wink; |
|
24 |
||
25 |
using Wnck; |
|
630
by Christopher James Halse Rogers
Fix translations for plugins. |
26 |
using Mono.Addins; |
584.1.2
by Jason Smith
Some rewrite work |
27 |
|
28 |
namespace WindowManager |
|
29 |
{
|
|
30 |
||
31 |
||
584.1.7
by Jason Smith
Simplify |
32 |
public class WindowMaximizeAction : WindowActionAction |
584.1.2
by Jason Smith
Some rewrite work |
33 |
{
|
34 |
public override string Name { |
|
630
by Christopher James Halse Rogers
Fix translations for plugins. |
35 |
get { return AddinManager.CurrentLocalizer.GetString ("Maximize"); } |
584.1.2
by Jason Smith
Some rewrite work |
36 |
}
|
37 |
||
38 |
public override string Description { |
|
630
by Christopher James Halse Rogers
Fix translations for plugins. |
39 |
get { return AddinManager.CurrentLocalizer.GetString ("Make a window consume the whole screen"); } |
584.1.2
by Jason Smith
Some rewrite work |
40 |
}
|
41 |
||
42 |
public override string Icon { |
|
43 |
get { return "up"; } |
|
44 |
}
|
|
45 |
||
584.1.7
by Jason Smith
Simplify |
46 |
public override void Action (IEnumerable<Window> windows) |
584.1.2
by Jason Smith
Some rewrite work |
47 |
{
|
48 |
if (!windows.Any ()) |
|
49 |
return; |
|
50 |
WindowControl.MaximizeWindow (windows.First ()); |
|
51 |
}
|
|
52 |
}
|
|
53 |
}
|