~do-win/do/test-paths

« back to all changes in this revision

Viewing changes to Do/src/Do.Platform/WindowingService.cs

  • Committer: Hardeep S
  • Date: 2009-06-23 05:57:47 UTC
  • Revision ID: ootz0rz@gmail.com-20090623055747-3srobsuq3q8wbn81
initial adding of Do core stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// IWindowingService.cs
 
2
//
 
3
// GNOME Do is the legal property of its developers. Please refer to the
 
4
// COPYRIGHT file distributed with this source distribution.
 
5
//  
 
6
// This program is free software: you can redistribute it and/or modify it
 
7
// under the terms of the GNU General Public License as published by the Free
 
8
// Software Foundation, either version 3 of the License, or (at your option)
 
9
// any later version.
 
10
// 
 
11
// This program is distributed in the hope that it will be useful, but WITHOUT
 
12
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
13
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 
14
// more details.
 
15
// 
 
16
// You should have received a copy of the GNU General Public License along with
 
17
// this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
//
 
19
 
 
20
using System;
 
21
 
 
22
namespace Do.Platform
 
23
{
 
24
        
 
25
        internal class WindowingService : IWindowingService
 
26
        {
 
27
 
 
28
#region Windowing.Implementation
 
29
 
 
30
                public void ShowMainMenu (int x, int y)
 
31
                {
 
32
                        UI.MainMenu.Instance.PopupAtPosition (x, y);
 
33
                }
 
34
                
 
35
                public void ShowMainMenu (PositionMenu menuPositioner)
 
36
                {
 
37
                        UI.MainMenu.Instance.PopupWithPositioner (menuPositioner);
 
38
                }
 
39
                
 
40
                public void SummonMainWindow ()
 
41
                {
 
42
                        Do.Controller.Summon ();
 
43
                }
 
44
                
 
45
#endregion
 
46
 
 
47
        }
 
48
}