From 7d926d93acc38d6188a2f138474a6ed3cac8649e Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 25 Sep 2020 16:07:39 -0400 Subject: [PATCH] deprecate code-based SettingsProviders in favor of XML-based definitions (uwt:b4624f3) --- .../FileSystemEditorSettingsProvider.cs | 56 ----------- .../FileSystemEditorSettingsProvider.xml | 52 ++++++++++ .../Plain/PlainTextEditorSettingsProvider.cs | 50 ---------- .../Plain/PlainTextEditorSettingsProvider.xml | 30 ++++++ .../UniversalEditor.UserInterface/Engine.cs | 13 --- .../DefaultSettingsProvider.xml | 40 ++++++++ .../UniversalEditor.UserInterface.csproj | 8 +- .../SettingsProviders/Default.xml | 98 +++++++++++++++++++ .../SingingStyleDefaultsSettingsProvider.cs | 88 ----------------- ...or.Plugins.Multimedia.UserInterface.csproj | 4 +- .../IcarusSettingsProvider.cs | 53 ---------- .../IcarusSettingsProvider.xml | 39 ++++++++ ...Plugins.RavenSoftware.UserInterface.csproj | 4 +- .../SettingsProviders/Default.xml | 50 ++++++++++ .../SyntaxEditorSettingsProvider.cs | 70 ------------- ...s.SoftwareDevelopment.UserInterface.csproj | 4 +- 16 files changed, 324 insertions(+), 335 deletions(-) delete mode 100644 Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.cs create mode 100644 Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.xml delete mode 100644 Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.cs create mode 100644 Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.xml create mode 100644 Libraries/UniversalEditor.UserInterface/SettingsProviders/DefaultSettingsProvider.xml create mode 100644 Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/SettingsProviders/Default.xml delete mode 100644 Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/SettingsProviders/SingingStyleDefaultsSettingsProvider.cs delete mode 100644 Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.cs create mode 100644 Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.xml create mode 100644 Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/Default.xml delete mode 100644 Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/SyntaxEditorSettingsProvider.cs diff --git a/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.cs b/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.cs deleted file mode 100644 index 60fcd4d3..00000000 --- a/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// FileSystemEditorOptionProvider.cs -// -// Author: -// Mike Becker -// -// Copyright (c) 2019 Mike Becker -// -// 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 MBS.Framework.UserInterface; - -namespace UniversalEditor.Editors.FileSystem -{ - public class FileSystemEditorSettingsProvider : ApplicationSettingsProvider - { - public FileSystemEditorSettingsProvider() - { - SettingsGroups.Add(new SettingsGroup("Editors:File System:Views", new Setting[] - { - new BooleanSetting("SortFoldersBeforeFiles", "Sort _folders before files"), - new BooleanSetting("AllowExpandFolders", "Allow folders to be _expanded") - })); - SettingsGroups.Add(new SettingsGroup("Editors:File System:Behavior", new Setting[] - { - new BooleanSetting("SingleClickToOpenItems", "_Single-click to open items"), - new BooleanSetting("EnableCreateSymbolicLinks", "Show action to create symbolic _links"), - new ChoiceSetting("DefaultExecutableTextOption", "Default option for _executable text files", null, new ChoiceSetting.ChoiceSettingValue[] - { - new ChoiceSetting.ChoiceSettingValue("Display", "Display them in text editor", 1), - new ChoiceSetting.ChoiceSettingValue("Run", "Run them as executable", 2), - new ChoiceSetting.ChoiceSettingValue("Ask", "Ask me what to do", 3) - }), - new BooleanSetting("AskBeforeEmptyingTrash", "Ask before _emptying the Trash/Recycle Bin"), - new BooleanSetting("EnablePermanentDeletion", "Show action to _permanently delete files and folders") - })); - SettingsGroups.Add(new SettingsGroup("Editors:File System:List Columns", new Setting[] - { - })); - SettingsGroups.Add(new SettingsGroup("Editors:File System:Search and Preview", new Setting[] - { - })); - } - } -} diff --git a/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.xml b/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.xml new file mode 100644 index 00000000..04925168 --- /dev/null +++ b/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditorSettingsProvider.xml @@ -0,0 +1,52 @@ + + + + + + + Editors + File System + Views + + + + + + + + + Editors + File System + Behavior + + + + + + + + + + + + + + + + + + Editors + File System + List Columns + + + + + Editors + File System + Search and Preview + + + + + diff --git a/Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.cs b/Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.cs deleted file mode 100644 index d8677f49..00000000 --- a/Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// PlainTextEditorOptionProvider.cs -// -// Author: -// Mike Becker -// -// Copyright (c) 2019 Mike Becker -// -// 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 MBS.Framework.UserInterface; - -namespace UniversalEditor.Editors.Text.Plain -{ - public class PlainTextEditorSettingsProvider : ApplicationSettingsProvider - { - public PlainTextEditorSettingsProvider() - { - SettingsGroups.Add(new SettingsGroup("Editors:Plain Text Editor", new Setting[] - { - new BooleanSetting("DisplayLineNumbers", "_Display line numbers"), - new BooleanSetting("DisplayRightMargin", "_Display right margin"), - new TextSetting("RightMarginColumn", "Right margin at _column"), - new BooleanSetting("DisplayOverviewMap", "Display _overview map"), - - new BooleanSetting("EnableTextWrapping", "Enable text _wrapping"), - new BooleanSetting("DoNotSplitWordsOverTwoLines", "Do not s_plit words over two lines"), - - new BooleanSetting("HighlightCurrentLine", "Highlight current _line"), - new BooleanSetting("HighlightMatchingBrackets", "Highlight matching _brackets"), - - new RangeSetting("TabWidth", "_Tab width", 8, 1, 24), - new BooleanSetting("InsertSpacesInsteadOfTabs", "Insert _spaces instead of tabs"), - new BooleanSetting("EnableAutomaticIndentation", "_Enable automatic indentation", true) - })); - } - } -} - diff --git a/Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.xml b/Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.xml new file mode 100644 index 00000000..f1b272ae --- /dev/null +++ b/Libraries/UniversalEditor.UserInterface/Editors/Text/Plain/PlainTextEditorSettingsProvider.xml @@ -0,0 +1,30 @@ + + + + + + + Editors + Text + Plain + + + + + + + + + + + + + + + + + + + + + diff --git a/Libraries/UniversalEditor.UserInterface/Engine.cs b/Libraries/UniversalEditor.UserInterface/Engine.cs index fe581f4b..6a813afa 100644 --- a/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -50,19 +50,6 @@ namespace UniversalEditor.UserInterface Application.UniqueName = "net.alcetech.UniversalEditor"; Application.ShortName = "universal-editor"; - Application.DefaultSettingsProvider.SettingsGroups.Add ("Application:Author Information", new Setting[] { - new TextSetting("Name", "_Name"), - new TextSetting("EmailAddress", "_E-mail address") - }); - Application.DefaultSettingsProvider.SettingsGroups.Add ("Application:Documents", new Setting[] { - }); - Application.DefaultSettingsProvider.SettingsGroups.Add("Application:Projects and Solutions", new Setting[] - { - }); - Application.DefaultSettingsProvider.SettingsGroups.Add("Source Control", new Setting[] - { - }); - // Application.EnableVisualStyles(); // Application.SetCompatibleTextRenderingDefault(false); diff --git a/Libraries/UniversalEditor.UserInterface/SettingsProviders/DefaultSettingsProvider.xml b/Libraries/UniversalEditor.UserInterface/SettingsProviders/DefaultSettingsProvider.xml new file mode 100644 index 00000000..971fd27a --- /dev/null +++ b/Libraries/UniversalEditor.UserInterface/SettingsProviders/DefaultSettingsProvider.xml @@ -0,0 +1,40 @@ + + + + + + Application + Author Information + + + + + + + + + + Application + Documents + + + + + + + Application + Projects and Solutions + + + + + + + Source Control + + + + + + + diff --git a/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj b/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj index 976d9c2e..744ec7c4 100644 --- a/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj +++ b/Libraries/UniversalEditor.UserInterface/UniversalEditor.UserInterface.csproj @@ -98,8 +98,6 @@ - - @@ -195,6 +193,12 @@ + + + + + + + + + Editors + Synthesized Audio + External Programs + + + + + + + + + + + + Editors + Synthesized Audio + External Programs + + + + + + + + + + + + + + + + Editors + Synthesized Audio + Phoneme Dictionary + + + + + + + Editors + Synthesized Audio + Synthesizers + + + + + + + Editors + Synthesized Audio + Singing Style Defaults + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/SettingsProviders/SingingStyleDefaultsSettingsProvider.cs b/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/SettingsProviders/SingingStyleDefaultsSettingsProvider.cs deleted file mode 100644 index 4aff4ca5..00000000 --- a/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/SettingsProviders/SingingStyleDefaultsSettingsProvider.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// SingingStyleDefaultsOptionProvider.cs - provides a SettingsProvider for managing singing style defaults for SynthesizedAudioEditor -// -// Author: -// Michael Becker -// -// Copyright (c) 2019-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 MBS.Framework.UserInterface; - -namespace UniversalEditor.Plugins.Multimedia.UserInterface.SettingsProviders -{ - /// - /// Provides a for managing singing style defaults for SynthesizedAudioEditor. - /// - public class SingingStyleDefaultsSettingsProvider : ApplicationSettingsProvider - { - public SingingStyleDefaultsSettingsProvider() - { - SettingsGroups.Add("Editors:Synthesized Audio:External Programs", new Setting[] - { - new BooleanSetting("ExternalWavefileManipulationToolEnabled", "Use external _wavefile manipulation tool"), - new TextSetting("ExternalWavefileManipulationToolFileName", "Path"), - new BooleanSetting("ExternalResamplingToolEnabled", "Use external _resampling tool"), - new TextSetting("ExternalResamplingToolFileName", "Path"), - new TextSetting("VoicebankDirectory", "Voicebank _directory") - }); - SettingsGroups.Add("Editors:Synthesized Audio:MIDI Settings", new Setting[] - { - new GroupSetting("MIDIDevices", "MIDI Devices", new Setting[] - { - new ChoiceSetting("MIDIInputDeviceName", "_Input device"), - new ChoiceSetting("MIDIOutputDeviceName", "_Output device") - }), - new BooleanSetting("MIDIPlayOnSelection", "Play notes through MIDI output upon _selection"), - new BooleanSetting("MIDIProgramChangeEnabled", "Send _Program Change for the following program before continuing"), - new ChoiceSetting("MIDIProgramChangeProgram", String.Empty) - }); - SettingsGroups.Add("Editors:Synthesized Audio:Phoneme Dictionary", new Setting[] - { - }); - SettingsGroups.Add("Editors:Synthesized Audio:Synthesizers", new Setting[] - { - }); - SettingsGroups.Add("Editors:Synthesized Audio:Singing Style Defaults", new Setting[] - { - // new CommandOption("_Load settings from VOCALOID2"), - // 2q22wnew CommandOption("_Save settings from VOCALOID2"), - new ChoiceSetting("Template", "_Template", null, new ChoiceSetting.ChoiceSettingValue[] - { - new ChoiceSetting.ChoiceSettingValue("custom", "(Custom)", "custom"), - new ChoiceSetting.ChoiceSettingValue("normal", "Normal", "normal"), - new ChoiceSetting.ChoiceSettingValue("accent", "Accent", "accent"), - new ChoiceSetting.ChoiceSettingValue("strongaccent", "Strong Accent", "strongaccent"), - new ChoiceSetting.ChoiceSettingValue("legato", "Legato", "legato"), - new ChoiceSetting.ChoiceSettingValue("slowlegato", "Slow Legato", "slowlegato"), - }), - new GroupSetting("PitchControl", "Pitch control", new Setting[] - { - new RangeSetting("BendDepth", "_Bend depth", 8, 0, 100), - new RangeSetting("BendLength", "Bend _length", 0, 0, 100), - new BooleanSetting("AddPortamentoRising", "Add portamento in _rising movement"), - new BooleanSetting("AddPortamentoFalling", "Add portamento in _falling movement") - }), - new GroupSetting("DynamicsControl", "Dynamics control", new Setting[] - { - new RangeSetting("Decay", "_Decay", 50, 0, 100), - new RangeSetting("Accent", "_Accent", 50, 0, 100) - }) - }); - } - } -} - diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface.csproj b/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface.csproj index 01abcf34..c04db7ad 100644 --- a/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface.csproj +++ b/Plugins.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface/UniversalEditor.Plugins.Multimedia.UserInterface.csproj @@ -34,7 +34,6 @@ - @@ -109,5 +108,8 @@ MBS.Framework.UserInterface + + + \ No newline at end of file diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.cs b/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.cs deleted file mode 100644 index 95642801..00000000 --- a/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// SingingStyleDefaultsOptionProvider.cs - provides a SettingsProvider for managing singing style defaults for SynthesizedAudioEditor -// -// Author: -// Michael Becker -// -// Copyright (c) 2019-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 MBS.Framework.UserInterface; - -namespace UniversalEditor.Plugins.RavenSoftware.UserInterface.SettingsProviders -{ - /// - /// Provides a for managing Icarus settings. - /// - public class IcarusSettingsProvider : ApplicationSettingsProvider - { - public IcarusSettingsProvider() - { - SettingsGroups.Add("Editors:Raven Software:ICARUS Scripting:General", new Setting[] - { - new BooleanSetting("ReopenLastFileAtStartup", "Re-open last file at startup"), // UE Platform Setting - new BooleanSetting("AlphabeticallySortEditPulldowns", "_Alphabetically-sort edit pulldowns"), - new BooleanSetting("EnableSourceSafeFunctions", "Enable _SourceSafe functions"), - new BooleanSetting("WarnBeforeOpeningIncompatibleScript", "_Warn before opening BehavEd-incompatible ICARUS script"), - }); - SettingsGroups.Add("Editors:Raven Software:ICARUS Scripting:Directories", new Setting[] - { - new TextSetting("ScriptPath", "Script path"), - new TextSetting("SourceSafeScriptPath", "SourceSafe script path"), - new TextSetting("SourceSafeConfigurationLocation", "SourceSafe configuration location"), - new TextSetting("IcarusCompilerPath", "Location of ICARUS compiler (IBIZE)"), - new TextSetting("CommandDescriptionFile", "Command description file (BehavEd.bhc)"), - new TextSetting("SourceFilesPath", "Source files path"), - }); - } - } -} - diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.xml b/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.xml new file mode 100644 index 00000000..9b6dbd4d --- /dev/null +++ b/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/SettingsProviders/IcarusSettingsProvider.xml @@ -0,0 +1,39 @@ + + + + + + + Editors + Raven Software + ICARUS Scripting + General + + + + + + + + + + + + Editors + Raven Software + ICARUS Scripting + Directories + + + + + + + + + + + + + + diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface.csproj b/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface.csproj index ed1b5e9e..09795179 100644 --- a/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface.csproj +++ b/Plugins.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface/UniversalEditor.Plugins.RavenSoftware.UserInterface.csproj @@ -37,7 +37,6 @@ - @@ -83,5 +82,8 @@ UniversalEditor.Plugins.Multimedia3D + + + \ No newline at end of file diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/Default.xml b/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/Default.xml new file mode 100644 index 00000000..afab6f50 --- /dev/null +++ b/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/Default.xml @@ -0,0 +1,50 @@ + + + + + + + Editors + Syntax + + + + + + + + + + + + + + Editors + Syntax + Languages + + + + + + + + + Editors + Syntax + Languages + Basic + General + + + + + + + + + + + + + diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/SyntaxEditorSettingsProvider.cs b/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/SyntaxEditorSettingsProvider.cs deleted file mode 100644 index 0c35d72c..00000000 --- a/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/SettingsProviders/SyntaxEditorSettingsProvider.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// SyntaxEditorSettingsProvider.cs - provides a SettingsProvider containing settings for a SyntaxEditor -// -// Author: -// Michael Becker -// -// Copyright (c) 2019-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 MBS.Framework.UserInterface; - -namespace UniversalEditor.SettingsProviders -{ - /// - /// Provides a containing settings for a . - /// - public class SyntaxEditorSettingsProvider : ApplicationSettingsProvider - { - public SyntaxEditorSettingsProvider() - { - SettingsGroups.Add(new SettingsGroup("Editors:Syntax", new Setting[] - { - new BooleanSetting("DragDropTextEditing", "D_rag and drop text editing"), - new BooleanSetting("AutomaticDelimiterHighlighting", "A_utomatic delimiter highlighting"), - new BooleanSetting("TrackChanges", "_Track changes"), - new BooleanSetting("AutoDetectUTF8Encoding", "Auto-_detect UTF-8 encoding without signature"), - new BooleanSetting("DisplaySelectionMargin", "Display _selection margin"), - new BooleanSetting("DisplayIndicatorMargin", "Display indicator _margin"), - new BooleanSetting("HighlightCurrentLine", "Highlight _current line") - })); - - SettingsGroups.Add(new SettingsGroup("Editors:Syntax:Languages", new Setting[] - { - new BooleanSetting("MapExtensionlessFilesDefault", "_Map extensionless files to"), - new ChoiceSetting("DefaultLanguage", "Default language"), - })); - - // for each language... - System.Collections.Generic.Dictionary languageOptions = new System.Collections.Generic.Dictionary(); - languageOptions.Add("Basic:General", new Setting[] - { - new BooleanSetting("AutoListMembers", "Auto list _members"), - new BooleanSetting("HideAdvancedMembers", "_Hide advanced members"), - new BooleanSetting("ParameterInformation", "_Parameter information"), - new BooleanSetting("EnableVirtualSpace", "Enable _virtual space"), - new BooleanSetting("WordWrap", "_Word wrap"), - new BooleanSetting("ShowVisualGlyphsForWordWrap", "_Show visual glyphs for word wrap"), - - }); - - foreach (System.Collections.Generic.KeyValuePair kvp in languageOptions) - { - SettingsGroups.Add(new SettingsGroup("Editors:Syntax:Languages:" + kvp.Key, kvp.Value)); - } - } - } -} - diff --git a/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface.csproj b/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface.csproj index 9fd1e868..35fdcd10 100644 --- a/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface.csproj +++ b/Plugins.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface/UniversalEditor.Plugins.SoftwareDevelopment.UserInterface.csproj @@ -33,7 +33,6 @@ - @@ -68,4 +67,7 @@ MBS.Framework.UserInterface + + + \ No newline at end of file