aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/DesignInterface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-24 11:51:12 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-24 11:51:12 +0100
commitaf3a87ef16e2f4df9fa01a89fd709125c91188d6 (patch)
tree506b54417e5e9f2ccb8e17b90642ad94060ccc91 /CrowIDE/src/DesignInterface.cs
parent1293bc896bdbc6819999d17bda8286a6e1a792b0 (diff)
change namespace of CrowIDE to Crow.Coding, move editor source inside, crowIde wip
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
-rw-r--r--CrowIDE/src/DesignInterface.cs28
1 files changed, 23 insertions, 5 deletions
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs
index 10ceffc5..0ac3e3ba 100644
--- a/CrowIDE/src/DesignInterface.cs
+++ b/CrowIDE/src/DesignInterface.cs
@@ -27,7 +27,7 @@ using System;
using Crow;
using System.Globalization;
-namespace CrowIDE
+namespace Crow.Coding
{
public class DesignInterface : Interface, IValueChange
{
@@ -48,17 +48,35 @@ namespace CrowIDE
ValueChanged.Raise(this, new ValueChangeEventArgs(MemberName, _value));
}
#endregion
+
public DesignInterface ()
{
- CurrentInterface = this;
- CultureInfo.DefaultThreadCurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
}
- protected override void loadStyling ()
+ public ProjectFile ProjFile;
+
+ public override GraphicObject Load (string path)
{
- base.loadStyling ();
+ ProjectFile pi;
+ if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi))
+ return CreateITorFromIMLFragment (pi.Source).CreateInstance();
+ return null;
+ }
+ public override Crow.IML.Instantiator GetInstantiator (string path)
+ {
+ System.Diagnostics.Debugger.Break ();
+ return null;
}
+ public override ItemTemplate GetItemTemplate (string path)
+ {
+ ProjectFile pi;
+
+ if (ProjFile.Project.solution.GetProjectFileFromPath (path, out pi))
+ return new ItemTemplate (this, pi.AbsolutePath);
+ System.Diagnostics.Debugger.Break ();
+ return null;
+ }
public override bool ProcessMouseMove (int x, int y)
{
int deltaX = x - Mouse.X;