From: Jean-Philippe Bruyère Date: Mon, 21 Jul 2025 07:18:17 +0000 (+0200) Subject: net9 -> net6, wip X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=da07b0f6bdf3f7c13cfe8727bcad511a58c04c66;p=jp%2Fcrowedit.git net9 -> net6, wip --- da07b0f6bdf3f7c13cfe8727bcad511a58c04c66 diff --cc CrowEditBase/ui/DockWinTitleBarIconMenu.template index 29864d4,29864d4..b77e076 --- a/CrowEditBase/ui/DockWinTitleBarIconMenu.template +++ b/CrowEditBase/ui/DockWinTitleBarIconMenu.template @@@ -1,2 -1,2 +1,2 @@@  -- ++ diff --cc plugins/CECrowPlugin/src/DebugInterfaceWidget.cs index 7fbaf5b,559b6c3..7fd9a0d --- a/plugins/CECrowPlugin/src/DebugInterfaceWidget.cs +++ b/plugins/CECrowPlugin/src/DebugInterfaceWidget.cs @@@ -164,7 -168,16 +168,16 @@@ namespace CECrowPlugi imlSource = tmp.ToString (); - crowIFaceService?.LoadIML (imlSource); - /*if (crowIFaceService.EncloseInTemplatedControl && !string.IsNullOrEmpty(crowIFaceService.TemplateContainerSource)) { ++ if (document.EncloseInTemplatedControl && !string.IsNullOrEmpty(document.TemplateContainerSource)) { + if (!string.IsNullOrEmpty(imlSource) && imlSource.StartsWith("'); + if (pos > 0) + src = imlSource.Substring(pos + 1); + } - string tmpCloseTag = crowIFaceService.TemplateContainerSource.Split (' ', StringSplitOptions.RemoveEmptyEntries)[0].Replace ("<","").TrimEnd('/','>'); - crowIFaceService?.LoadIML ($"{crowIFaceService.TemplateContainerSource.TrimEnd('/','>')}>"); - } else*/ ++ string tmpCloseTag = document.TemplateContainerSource.Split (' ', StringSplitOptions.RemoveEmptyEntries)[0].Replace ("<","").TrimEnd('/','>'); ++ crowIFaceService?.LoadIML ($"{document.TemplateContainerSource.TrimEnd('/','>')}>"); ++ } else + crowIFaceService?.LoadIML (imlSource); RegisterForRedraw (); } diff --cc plugins/CECrowPlugin/src/Parsing/IML/ImlDocument.cs index 34a684f,031f0cf..4406053 --- a/plugins/CECrowPlugin/src/Parsing/IML/ImlDocument.cs +++ b/plugins/CECrowPlugin/src/Parsing/IML/ImlDocument.cs @@@ -16,6 -16,6 +16,7 @@@ using static CrowEditBase.CrowEditBase using CrowEdit.Xml; using Drawing2D; using System.Diagnostics; ++using System.IO; namespace CECrowPlugin { @@@ -29,14 -29,44 +30,46 @@@ public static bool Is(this Token tok, ImlTokenType type) => (ImlTokenType)tok.Type == type; } public class ImlDocument : XmlDocument { ++ Configuration conf; public ImlDocument (string fullPath, string editorPath) : base (fullPath, editorPath) { App.GetService ()?.Start (); ++ conf = new Configuration(Path.Combine(Configuration.AppConfigPath, "editor", this.FileName + ".conf")); /*if (project is MSBuildProject msbp) { if (msbp.IsCrowProject) }*/ } + CrowService crowService; + public CrowService CrowService { + get => crowService; + set { + if (crowService == value) + return; + crowService = value; + NotifyValueChanged (crowService); + } + } + public bool EncloseInTemplatedControl { - get => Configuration.Global.Get (nameof(EncloseInTemplatedControl), false); ++ get => conf.Get (nameof(EncloseInTemplatedControl), false); + set { + if (EncloseInTemplatedControl == value) + return; - Configuration.Global.Set (nameof(EncloseInTemplatedControl), value); ++ conf.Set (nameof(EncloseInTemplatedControl), value); + NotifyValueChanged (value); + + } + } + public string TemplateContainerSource { - get => Configuration.Global.Get (nameof(TemplateContainerSource), "