From af3a87ef16e2f4df9fa01a89fd709125c91188d6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sat, 24 Feb 2018 11:51:12 +0100 Subject: change namespace of CrowIDE to Crow.Coding, move editor source inside, crowIde wip --- CrowIDE/src/DesignInterface.cs | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'CrowIDE/src/DesignInterface.cs') 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; -- cgit v1.3.1-4-g156e