diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/Editors/SetupEditor.cs b/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/Editors/SetupEditor.cs new file mode 100644 index 00000000..2ccb5f28 --- /dev/null +++ b/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/Editors/SetupEditor.cs @@ -0,0 +1,78 @@ +// +// SetupEditor.cs +// +// Author: +// beckermj <> +// +// Copyright (c) 2023 ${CopyrightHolder} +// +// 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 UniversalEditor.UserInterface; + +namespace UniversalEditor.Plugins.Setup.UserInterface.Editors +{ + public class SetupEditor : Editor + { + public override void UpdateSelections() + { + throw new NotImplementedException(); + } + + protected override Selection CreateSelectionInternal(object content) + { + throw new NotImplementedException(); + } + + private class SetupObjectModel : ObjectModel + { + public override void Clear() + { + //throw new NotImplementedException(); + } + public override void CopyTo(ObjectModel where) + { + //throw new NotImplementedException(); + } + } + + private static EditorReference _er = null; + public override EditorReference MakeReference() + { + if (_er == null) + { + _er = new EditorReference(typeof(SetupEditor)); + _er.SupportedObjectModels.Add(typeof(SetupObjectModel)); + } + return _er; + } + + protected override void OnObjectModelChanged(EventArgs e) + { + DocumentExplorer.Nodes.Clear(); + + base.OnObjectModelChanged(e); + + EditorDocumentExplorerNode dnProjectDefinition = new EditorDocumentExplorerNode("Project Definition", MBS.Framework.StockType.Folder); + DocumentExplorer.Nodes.Add(dnProjectDefinition); + + EditorDocumentExplorerNode dnInstallationDetails = new EditorDocumentExplorerNode("Installation Details", MBS.Framework.StockType.Folder); + DocumentExplorer.Nodes.Add(dnInstallationDetails); + + EditorDocumentExplorerNode dnSetupAppearance = new EditorDocumentExplorerNode("Setup Appearance", MBS.Framework.StockType.Folder); + DocumentExplorer.Nodes.Add(dnSetupAppearance); + } + } +} diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/UniversalEditor.Plugins.Setup.UserInterface.csproj b/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/UniversalEditor.Plugins.Setup.UserInterface.csproj index ee14d259..7b0d5450 100644 --- a/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/UniversalEditor.Plugins.Setup.UserInterface.csproj +++ b/Plugins.UserInterface/UniversalEditor.Plugins.Setup.UserInterface/UniversalEditor.Plugins.Setup.UserInterface.csproj @@ -33,6 +33,7 @@ +