diff options
author | Mike Krüger <mkrueger@novell.com> | 2010-07-02 15:01:01 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2010-07-02 15:01:01 +0400 |
commit | d046a47d9c56f38643796d23daf2464a4f03c1bb (patch) | |
tree | 275f21bfeaca1f62f086b5c0c14aafe4f19f737d /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content | |
parent | a81523545ff98df0adadc7a3f8dc706e4d31d6cb (diff) |
* MonoDevelop.Ide.csproj:
* MonoDevelop.Components/PathBar.cs:
* MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs:
* MonoDevelop.Ide.Gui.Content/IPathedDocument.cs: Worked on pathed
document subsystem.
svn path=/trunk/monodevelop/; revision=159806
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IPathedDocument.cs | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IPathedDocument.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IPathedDocument.cs index 5caf5cd093..8491b1fd68 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IPathedDocument.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/IPathedDocument.cs @@ -27,37 +27,29 @@ // using System; +using MonoDevelop.Components; namespace MonoDevelop.Ide.Gui.Content { - - public interface IPathedDocument { + PathEntry[] CurrentPath { get; } + + Gtk.Widget CreatePathWidget (int index); + event EventHandler<DocumentPathChangedEventArgs> PathChanged; - void SelectPath (int index); - void SelectPathContents (int index); - string[] CurrentPath { get; } - int SelectedIndex { get; } } public class DocumentPathChangedEventArgs : EventArgs { - string[] previousPath; - int previousSelectedIndex; - - public DocumentPathChangedEventArgs (string[] previousPath, int previousSelectedIndex) + public DocumentPathChangedEventArgs (PathEntry[] previousPath) { - this.previousPath = previousPath; - this.previousSelectedIndex = previousSelectedIndex; - } - - public string[] PreviousPath { - get { return previousPath; } + this.PreviousPath = previousPath; } - public int PreviousSelectedIndex { - get { return previousSelectedIndex; } + public PathEntry[] PreviousPath { + get; + private set; } } } |