3
// Copyright (C) 2009 GNOME Do
5
// This program is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
15
// You should have received a copy of the GNU General Public License
16
// along with this program. If not, see <http://www.gnu.org/licenses/>.
25
namespace Docky.Interface
29
public class DoInteropService : IDoInteropService
32
IDoController controller;
34
public void SignalSummon ()
37
Summoned (this, EventArgs.Empty);
40
public void SignalVanish ()
43
Vanished (this, EventArgs.Empty);
46
public void SignalReset ()
49
Reset (this, EventArgs.Empty);
52
public void SignalResultsGrow ()
54
if (ResultsGrow != null)
55
ResultsGrow (this, EventArgs.Empty);
58
public void SignalResultsShrink ()
60
if (ResultsShrink != null)
61
ResultsShrink (this, EventArgs.Empty);
64
#region IDoInteropService implementation
66
public event EventHandler Summoned;
68
public event EventHandler Vanished;
70
public event EventHandler Reset;
72
public event EventHandler ResultsGrow;
74
public event EventHandler ResultsShrink;
76
public void RequestClickOff ()
78
controller.ButtonPressOffWindow ();
83
public DoInteropService (IDoController controller)
85
this.controller = controller;
88
#region IDisposable implementation
90
public void Dispose ()
92
DockServices.UnregisterService (this);