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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IPathedDocument.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
 
29
29
using System;
 
30
using MonoDevelop.Components;
30
31
 
31
32
namespace MonoDevelop.Ide.Gui.Content
32
33
{
33
 
        
34
 
        
35
34
        public interface IPathedDocument
36
35
        {
 
36
                PathEntry[] CurrentPath { get; }
 
37
                
 
38
                Gtk.Widget CreatePathWidget (int index);
 
39
                
37
40
                event EventHandler<DocumentPathChangedEventArgs> PathChanged;
38
 
                void SelectPath (int index);
39
 
                void SelectPathContents (int index);
40
 
                string[] CurrentPath { get; }
41
 
                int SelectedIndex { get; }
42
41
        }
43
42
        
44
43
        public class DocumentPathChangedEventArgs : EventArgs
45
44
        {
46
 
                string[] previousPath;
47
 
                int previousSelectedIndex;
48
 
                
49
 
                public DocumentPathChangedEventArgs (string[] previousPath, int previousSelectedIndex)  
 
45
                public DocumentPathChangedEventArgs (PathEntry[] previousPath)
50
46
                {
51
 
                        this.previousPath = previousPath;
52
 
                        this.previousSelectedIndex = previousSelectedIndex;
53
 
                }
54
 
                
55
 
                public string[] PreviousPath {
56
 
                        get { return previousPath; }    
57
 
                }
58
 
                
59
 
                public int PreviousSelectedIndex {
60
 
                        get { return previousSelectedIndex; }
 
47
                        this.PreviousPath = previousPath;
 
48
                }
 
49
                
 
50
                public PathEntry[] PreviousPath {
 
51
                        get;
 
52
                        private set;
61
53
                }
62
54
        }
63
55
}