~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IWorkbenchWindow.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
using System;
29
29
using System.ComponentModel;
 
30
using System.Collections.Generic;
 
31
using Mono.Addins;
30
32
 
31
33
namespace MonoDevelop.Ide.Gui
32
34
{
33
35
        public interface IWorkbenchWindow
34
36
        {
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; }
41
 
 
42
 
        void AttachViewContent (IAttachableViewContent subViewContent);
43
 
        void SwitchView (int index);
44
 
 
45
 
        bool CloseWindow (bool force, bool fromMenu, int pageNum);
46
 
        void SelectWindow ();
47
 
 
48
 
        event WorkbenchWindowEventHandler Closed;
49
 
        event WorkbenchWindowEventHandler Closing;
50
 
        event ActiveViewContentEventHandler ActiveViewContentChanged;
51
 
 
52
 
        }
53
 
 
54
 
    public delegate void WorkbenchWindowEventHandler (object o, WorkbenchWindowEventArgs e);
55
 
    public class WorkbenchWindowEventArgs : CancelEventArgs
56
 
    {
57
 
        private bool forced;
58
 
        public bool Forced
59
 
        {
60
 
            get { return forced; }
61
 
        }
62
 
 
63
 
        private bool wasActive;
64
 
        public bool WasActive
65
 
        {
66
 
            get { return wasActive; }
67
 
        }
68
 
 
69
 
        public WorkbenchWindowEventArgs (bool forced, bool wasActive)
70
 
        {
71
 
            this.forced = forced;
72
 
            this.wasActive = wasActive;
73
 
        }
74
 
    }
75
 
 
76
 
    public delegate void ActiveViewContentEventHandler (object o, ActiveViewContentEventArgs e);
77
 
    public class ActiveViewContentEventArgs: EventArgs
78
 
    {
79
 
        private IBaseViewContent content = null;
80
 
        public IBaseViewContent Content
81
 
        {
82
 
            get { return content; }
83
 
        }
84
 
 
85
 
        public ActiveViewContentEventArgs (IBaseViewContent content)
86
 
        {
87
 
            this.content = content;
88
 
        }
89
 
    }
 
37
                IViewContent ViewContent { get; }
 
38
                IBaseViewContent ActiveViewContent { get; set; }
 
39
 
 
40
                IEnumerable<IAttachableViewContent> SubViewContents { get; }
 
41
 
 
42
                Document Document { get; set; }
 
43
                string DocumentType { get; set; }
 
44
                string Title { get; set; }
 
45
                bool ShowNotification { get; set; }
 
46
                ExtensionContext ExtensionContext { get; }
 
47
 
 
48
                void AttachViewContent (IAttachableViewContent subViewContent);
 
49
                void SwitchView (int index);
 
50
                void SwitchView (IAttachableViewContent subViewContent);
 
51
                int FindView (Type viewType);
 
52
                
 
53
                bool CloseWindow (bool force, bool fromMenu, int pageNum);
 
54
                void SelectWindow ();
 
55
                
 
56
                event EventHandler DocumentChanged;
 
57
                event WorkbenchWindowEventHandler Closed;
 
58
                event WorkbenchWindowEventHandler Closing;
 
59
                event ActiveViewContentEventHandler ActiveViewContentChanged;
 
60
                
 
61
        }
 
62
 
 
63
        public delegate void WorkbenchWindowEventHandler (object o, WorkbenchWindowEventArgs e);
 
64
        public class WorkbenchWindowEventArgs : CancelEventArgs
 
65
        {
 
66
                private bool forced;
 
67
                public bool Forced {
 
68
                        get { return forced; }
 
69
                }
 
70
 
 
71
                private bool wasActive;
 
72
                public bool WasActive {
 
73
                        get { return wasActive; }
 
74
                }
 
75
 
 
76
                public WorkbenchWindowEventArgs (bool forced, bool wasActive)
 
77
                {
 
78
                        this.forced = forced;
 
79
                        this.wasActive = wasActive;
 
80
                }
 
81
        }
 
82
 
 
83
        public delegate void ActiveViewContentEventHandler (object o, ActiveViewContentEventArgs e);
 
84
        public class ActiveViewContentEventArgs : EventArgs
 
85
        {
 
86
                private IBaseViewContent content = null;
 
87
                public IBaseViewContent Content {
 
88
                        get { return content; }
 
89
                }
 
90
 
 
91
                public ActiveViewContentEventArgs (IBaseViewContent content)
 
92
                {
 
93
                        this.content = content;
 
94
                }
 
95
        }
90
96
}