diff --git a/Content/UniversalEditor.Content.PlatformIndependent/Editors/Documentation/DocumentationEditor.glade b/Content/UniversalEditor.Content.PlatformIndependent/Editors/Documentation/DocumentationEditor.glade new file mode 100644 index 00000000..581ffe6b --- /dev/null +++ b/Content/UniversalEditor.Content.PlatformIndependent/Editors/Documentation/DocumentationEditor.glade @@ -0,0 +1,24 @@ + + + + + + False + + + + + + True + True + in + + + True + True + + + + + + diff --git a/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj b/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj index 2d7e6aa9..047622d3 100644 --- a/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj +++ b/Content/UniversalEditor.Content.PlatformIndependent/UniversalEditor.Content.PlatformIndependent.csproj @@ -579,6 +579,7 @@ + diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/Editors/Documentation/DocumentationEditor.cs b/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/Editors/Documentation/DocumentationEditor.cs new file mode 100644 index 00000000..500752e4 --- /dev/null +++ b/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/Editors/Documentation/DocumentationEditor.cs @@ -0,0 +1,79 @@ +// +// DocumentationEditor.cs - provides a UWT-based Editor for manipulating documentation files +// +// Author: +// Michael Becker +// +// Copyright (c) 2020 Mike Becker's Software +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +using System; +using System.Collections.Generic; + +using MBS.Framework.UserInterface; +using MBS.Framework.UserInterface.Controls; + +using UniversalEditor.ObjectModels.Database; +using UniversalEditor.ObjectModels.Help.Compiled; +using UniversalEditor.UserInterface; + +namespace UniversalEditor.Editors.Documentation +{ + /// + /// Provides a UWT-based for manipulating database files. + /// + [ContainerLayout("~/Editors/Documentation/DocumentationEditor.glade")] + public class DocumentationEditor : Editor + { + private TextBox txt; + + private static EditorReference _er = null; + public override EditorReference MakeReference() + { + if (_er == null) + { + _er = base.MakeReference(); + _er.SupportedObjectModels.Add(typeof(CompiledHelpObjectModel)); + } + return _er; + } + + public override void UpdateSelections() + { + throw new NotImplementedException(); + } + + protected override EditorSelection CreateSelectionInternal(object content) + { + throw new NotImplementedException(); + } + + protected override void OnCreated(EventArgs e) + { + base.OnCreated(e); + OnObjectModelChanged(EventArgs.Empty); + } + + protected override void OnObjectModelChanged(EventArgs e) + { + base.OnObjectModelChanged(e); + + if (!IsCreated) return; + + CompiledHelpObjectModel help = (ObjectModel as CompiledHelpObjectModel); + + } + } +} diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/Properties/AssemblyInfo.cs b/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..5c1aee44 --- /dev/null +++ b/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/Properties/AssemblyInfo.cs @@ -0,0 +1,46 @@ +// +// AssemblyInfo.cs +// +// Author: +// Michael Becker +// +// Copyright (c) 2020 Mike Becker's Software +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("UniversalEditor.Plugins.Documentation.UserInterface")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Mike Becker's Software")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("Mike Becker's Software")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface.csproj b/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface.csproj new file mode 100644 index 00000000..a6b7ede9 --- /dev/null +++ b/Plugins.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface/UniversalEditor.Plugins.Documentation.UserInterface.csproj @@ -0,0 +1,63 @@ + + + + Debug + AnyCPU + {2EAA8C7E-F8EE-4567-9B5D-481D6FB18268} + Library + UniversalEditor.Plugins.Documentation.UserInterface + UniversalEditor.Plugins.Documentation.UserInterface + 4.0.2019.12 + + + true + full + false + ..\..\Output\Debug\Plugins + DEBUG; + prompt + 4 + true + + + true + ..\..\Output\Release\Plugins + prompt + 4 + true + + + + + + + + + + + {8622EBC4-8E20-476E-B284-33D472081F5C} + UniversalEditor.UserInterface + + + {2D4737E6-6D95-408A-90DB-8DFF38147E85} + UniversalEditor.Core + + + {30467E5C-05BC-4856-AADC-13906EF4CADD} + UniversalEditor.Essential + + + {4698BC3F-EC29-42EB-9AED-3D8F9983A108} + UniversalEditor.Plugins.Microsoft + + + {29E1C1BB-3EA5-4062-B62F-85EEC703FE07} + MBS.Framework.UserInterface + + + + + + + + \ No newline at end of file diff --git a/UniversalEditor.sln b/UniversalEditor.sln index 56193e0c..e2e08d16 100644 --- a/UniversalEditor.sln +++ b/UniversalEditor.sln @@ -177,6 +177,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Off EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Office.UserInterface", "Plugins.UserInterface\UniversalEditor.Plugins.Office.UserInterface\UniversalEditor.Plugins.Office.UserInterface.csproj", "{317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Documentation.UserInterface", "Plugins.UserInterface\UniversalEditor.Plugins.Documentation.UserInterface\UniversalEditor.Plugins.Documentation.UserInterface.csproj", "{2EAA8C7E-F8EE-4567-9B5D-481D6FB18268}" +EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Setup.UserInterface", "Plugins.UserInterface\UniversalEditor.Plugins.Setup.UserInterface\UniversalEditor.Plugins.Setup.UserInterface.csproj", "{047F47EF-2A68-45A6-9F81-4EB499D9FB06}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions", "Extensions", "{5E4765D1-3959-4433-8E9C-992E26D7BE62}" @@ -523,6 +525,10 @@ Global {317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}.Debug|Any CPU.Build.0 = Debug|Any CPU {317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}.Release|Any CPU.ActiveCfg = Release|Any CPU {317CDFBC-9B41-4157-B2C0-D37E2BCEB42B}.Release|Any CPU.Build.0 = Release|Any CPU + {2EAA8C7E-F8EE-4567-9B5D-481D6FB18268}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2EAA8C7E-F8EE-4567-9B5D-481D6FB18268}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2EAA8C7E-F8EE-4567-9B5D-481D6FB18268}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2EAA8C7E-F8EE-4567-9B5D-481D6FB18268}.Release|Any CPU.Build.0 = Release|Any CPU {047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Debug|Any CPU.Build.0 = Debug|Any CPU {047F47EF-2A68-45A6-9F81-4EB499D9FB06}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -622,6 +628,7 @@ Global {03B0D6C8-1C3C-4972-B102-3350FB628C5D} = {7B535D74-5496-4802-B809-89ED88274A91} {5D62192C-EB3E-4E73-A440-C53579B6EB47} = {2ED32D16-6C06-4450-909A-40D32DA67FB4} {317CDFBC-9B41-4157-B2C0-D37E2BCEB42B} = {7B535D74-5496-4802-B809-89ED88274A91} + {2EAA8C7E-F8EE-4567-9B5D-481D6FB18268} = {7B535D74-5496-4802-B809-89ED88274A91} {047F47EF-2A68-45A6-9F81-4EB499D9FB06} = {7B535D74-5496-4802-B809-89ED88274A91} {8A0618F6-4FE6-4BA2-81DE-87C222235FBE} = {5E4765D1-3959-4433-8E9C-992E26D7BE62} {676D52A3-F285-4F58-B7A8-7BF415E3F733} = {0399182F-AF56-4E86-B229-EAB38C2EE6AF}