29
29
using System.ComponentModel;
30
using System.Collections.Generic;
31
33
namespace MonoDevelop.Ide.Gui
33
35
public interface IWorkbenchWindow
35
IViewContent ViewContent { get; }
36
IBaseViewContent ActiveViewContent { get; set; }
37
Document Document { get; set; }
38
string DocumentType { get; set; }
39
string Title { get; set; }
40
bool ShowNotification { get; set; }
42
void AttachViewContent (IAttachableViewContent subViewContent);
43
void SwitchView (int index);
45
bool CloseWindow (bool force, bool fromMenu, int pageNum);
48
event WorkbenchWindowEventHandler Closed;
49
event WorkbenchWindowEventHandler Closing;
50
event ActiveViewContentEventHandler ActiveViewContentChanged;
54
public delegate void WorkbenchWindowEventHandler (object o, WorkbenchWindowEventArgs e);
55
public class WorkbenchWindowEventArgs : CancelEventArgs
60
get { return forced; }
63
private bool wasActive;
66
get { return wasActive; }
69
public WorkbenchWindowEventArgs (bool forced, bool wasActive)
72
this.wasActive = wasActive;
76
public delegate void ActiveViewContentEventHandler (object o, ActiveViewContentEventArgs e);
77
public class ActiveViewContentEventArgs: EventArgs
79
private IBaseViewContent content = null;
80
public IBaseViewContent Content
82
get { return content; }
85
public ActiveViewContentEventArgs (IBaseViewContent content)
87
this.content = content;
37
IViewContent ViewContent { get; }
38
IBaseViewContent ActiveViewContent { get; set; }
40
IEnumerable<IAttachableViewContent> SubViewContents { get; }
42
Document Document { get; set; }
43
string DocumentType { get; set; }
44
string Title { get; set; }
45
bool ShowNotification { get; set; }
46
ExtensionContext ExtensionContext { get; }
48
void AttachViewContent (IAttachableViewContent subViewContent);
49
void SwitchView (int index);
50
void SwitchView (IAttachableViewContent subViewContent);
51
int FindView (Type viewType);
53
bool CloseWindow (bool force, bool fromMenu, int pageNum);
56
event EventHandler DocumentChanged;
57
event WorkbenchWindowEventHandler Closed;
58
event WorkbenchWindowEventHandler Closing;
59
event ActiveViewContentEventHandler ActiveViewContentChanged;
63
public delegate void WorkbenchWindowEventHandler (object o, WorkbenchWindowEventArgs e);
64
public class WorkbenchWindowEventArgs : CancelEventArgs
68
get { return forced; }
71
private bool wasActive;
72
public bool WasActive {
73
get { return wasActive; }
76
public WorkbenchWindowEventArgs (bool forced, bool wasActive)
79
this.wasActive = wasActive;
83
public delegate void ActiveViewContentEventHandler (object o, ActiveViewContentEventArgs e);
84
public class ActiveViewContentEventArgs : EventArgs
86
private IBaseViewContent content = null;
87
public IBaseViewContent Content {
88
get { return content; }
91
public ActiveViewContentEventArgs (IBaseViewContent content)
93
this.content = content;