-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SharpTreeView: Split into ILSpyX.TreeView and ILSpy.Controls.TreeView (…
…#3240) * Changes necessary for making SharpTreeNode cross platform by proxying System.Windows dependencies * Add ITreeNodeImagesProvider for node icons * Move InternalsVisibleTo to csproj (possible since net50) * Move view models and other xplat class for SharpTreeView to ILSpyX, Windows-dependent classes to ILSpy/Controls/TreeView * Move GetDoubleClickTime to NativeMethods
- Loading branch information
1 parent
2e7991e
commit d54ac41
Showing
61 changed files
with
308 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/IPlatformDataObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace ICSharpCode.ILSpyX.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformDataObject | ||
{ | ||
bool GetDataPresent(string format); | ||
object GetData(string format); | ||
|
||
void SetData(string format, object data); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/IPlatformDragDrop.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ICSharpCode.ILSpyX.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformDragDrop | ||
{ | ||
XPlatDragDropEffects DoDragDrop(object dragSource, object data, XPlatDragDropEffects allowedEffects); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/IPlatformDragEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace ICSharpCode.ILSpyX.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformDragEventArgs | ||
{ | ||
XPlatDragDropEffects Effects { get; set; } | ||
IPlatformDataObject Data { get; } | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/IPlatformRoutedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ICSharpCode.ILSpyX.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformRoutedEventArgs | ||
{ | ||
bool Handled { get; set; } | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/ITreeNodeImagesProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ICSharpCode.ILSpyX.TreeView.PlatformAbstractions | ||
{ | ||
public interface ITreeNodeImagesProvider | ||
{ | ||
object Assembly { get; } | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
ICSharpCode.ILSpyX/TreeView/PlatformAbstractions/XPlatDragDropEffects.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
|
||
namespace ICSharpCode.ILSpyX.TreeView.PlatformAbstractions | ||
{ | ||
// | ||
// Summary: | ||
// Specifies the effects of a drag-and-drop operation. | ||
[Flags] | ||
public enum XPlatDragDropEffects | ||
{ | ||
// | ||
// Summary: | ||
// Scrolling is about to start or is currently occurring in the drop target. | ||
Scroll = int.MinValue, | ||
// | ||
// Summary: | ||
// The data is copied, removed from the drag source, and scrolled in the drop target. | ||
All = -2147483645, | ||
// | ||
// Summary: | ||
// The drop target does not accept the data. | ||
None = 0, | ||
// | ||
// Summary: | ||
// The data is copied to the drop target. | ||
Copy = 1, | ||
// | ||
// Summary: | ||
// The data from the drag source is moved to the drop target. | ||
Move = 2, | ||
// | ||
// Summary: | ||
// The data from the drag source is linked to the drop target. | ||
Link = 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.