deprecate code-based SettingsProviders in favor of XML-based definitions (uwt:b4624f3)
This commit is contained in:
parent
618438fd2d
commit
7d926d93ac
@ -1,56 +0,0 @@
|
||||
//
|
||||
// FileSystemEditorOptionProvider.cs
|
||||
//
|
||||
// Author:
|
||||
// Mike Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// 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 <http://www.gnu.org/licenses/>.
|
||||
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[]
|
||||
{
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
<ApplicationFramework>
|
||||
<SettingsProviders>
|
||||
<SettingsProvider ID="{0F45E06D-6FE2-41C4-B519-3DCBAE890E46}">
|
||||
<!-- Singing Style Defaults -->
|
||||
<SettingsGroup ID="{3E3688E7-9D8C-46BB-BCBB-40A2002436FA}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>File System</Part>
|
||||
<Part>Views</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{7E78DDF7-EB2D-409D-B3A5-703CF33105AB}" Name="SortFoldersBeforeFiles" Title="Sort _folders before files" />
|
||||
<BooleanSetting ID="{FA8A5FE3-5EC2-4EC3-98E6-6548380EC846}" Name="AllowExpandFolders" Title="Allow folders to be _expanded" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{FCE129B2-6752-430E-A267-1144EAA38259}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>File System</Part>
|
||||
<Part>Behavior</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{409C4308-BA99-489F-BD33-4122E430709D}" Name="SingleClickToOpenItems" Title="_Single-click to open items" />
|
||||
<BooleanSetting ID="{2944051F-9529-421C-A88B-F600E0B7FC48}" Name="EnableCreateSymbolicLinks" Title="Show action to create symbolic _links" />
|
||||
<ChoiceSetting ID="{C4C23FC3-FC9B-49D5-99BD-559F22D20679}" Name="DefaultExecutableTextOption" Title="Default option for _executable text files">
|
||||
<Choices>
|
||||
<Choice ID="{FFCEABC8-04C8-4BE3-AF59-086BCE32E014}" Name="Display" Title="Display them in text editor" Value="1" />
|
||||
<Choice ID="{17F69A2B-A6C3-4BB9-958A-E686A075F114}" Name="Run" Title="Run them as executable" Value="2" />
|
||||
<Choice ID="{CB70E212-620F-481C-87CA-AF08B2367BA9}" Name="Ask" Title="Ask me what to do" Value="3" />
|
||||
</Choices>
|
||||
</ChoiceSetting>
|
||||
<BooleanSetting ID="{AE95F2D3-A073-489E-8CB3-0375E53D6C50}" Name="AskBeforeEmptyingTrash" Title="Ask before _emptying the Trash/Recycle Bin" />
|
||||
<BooleanSetting ID="{E4FF6B98-C062-4021-ADB1-E7BDC5943017}" Name="EnablePermanentDeletion" Title="Show action to _permanently delete files and folders" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{28F23410-FC5D-4DCF-BD8D-1CF733C94038}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>File System</Part>
|
||||
<Part>List Columns</Part>
|
||||
</Path>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{03F211DF-0852-49EC-B405-5A7D983D93EC}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>File System</Part>
|
||||
<Part>Search and Preview</Part>
|
||||
</Path>
|
||||
</SettingsGroup>
|
||||
</SettingsProvider>
|
||||
</SettingsProviders>
|
||||
</ApplicationFramework>
|
||||
@ -1,50 +0,0 @@
|
||||
//
|
||||
// PlainTextEditorOptionProvider.cs
|
||||
//
|
||||
// Author:
|
||||
// Mike Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// 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 <http://www.gnu.org/licenses/>.
|
||||
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)
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
<ApplicationFramework>
|
||||
<SettingsProviders>
|
||||
<SettingsProvider ID="{63E95EE0-1D15-44B3-B1C2-0F72E4869526}">
|
||||
<!-- Plain Text Editor -->
|
||||
<SettingsGroup ID="{7AEB0AD3-5A1F-4DE1-BD1C-20C948363A16}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Text</Part>
|
||||
<Part>Plain</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{5BDCD5E1-140A-494C-A024-6199F60CBE89}" Name="DisplayLineNumbers" Title="_Display line numbers" />
|
||||
<BooleanSetting ID="{873DDB03-0562-4ADE-B053-5E3EB8234E26}" Name="DisplayRightMargin" Title="_Display right margin" />
|
||||
<TextSetting ID="{C27BA051-DF0A-4BDE-927E-339543CAD203}" Name="RightMarginColumn" Title="Right margin at _column" />
|
||||
<BooleanSetting ID="{9F9436F1-04F2-40D7-B7AC-63DAEDE89A93}" Name="DisplayOverviewMap" Title="Display _overview map" />
|
||||
|
||||
<BooleanSetting ID="{C5BDEB15-0196-43BF-B356-617FF5E03AF4}" Name="EnableTextWrapping" Title="Enable text _wrapping" />
|
||||
<BooleanSetting ID="{63064236-FECA-45EA-BCDF-ED05CA329424}" Name="DoNotSplitWordsOverTwoLines" Title="Do not s_plit words over two lines" />
|
||||
|
||||
<BooleanSetting ID="{093C9BE7-B91E-4FEC-A033-A74217F5C76C}" Name="HighlightCurrentLine" Title="Highlight current _line" />
|
||||
<BooleanSetting ID="{5C3060CA-990E-4C2E-8FF9-4BE066D509AB}" Name="HighlightMatchingBrackets" Title="Highlight matching _brackets" />
|
||||
|
||||
<RangeSetting ID="{059F9424-53A0-4749-B680-F848A60FA678}" Name="TabWidth" Title="_Tab width" DefaultValue="8" MinimumValue="1" MaximumValue="24" />
|
||||
<BooleanSetting ID="{32A52388-E9B6-46ED-96E8-A70E1584D6AC}" Name="InsertSpacesInsteadOfTabs" Title="Insert _spaces instead of tabs" />
|
||||
<BooleanSetting ID="{75F0AC35-C634-4499-BB2F-192574D8D7BF}" Name="EnableAutomaticIndentation" Title="_Enable automatic indentation" DefaultValue="True" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
</SettingsProvider>
|
||||
</SettingsProviders>
|
||||
</ApplicationFramework>
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -0,0 +1,40 @@
|
||||
<ApplicationFramework>
|
||||
<SettingsProviders>
|
||||
<SettingsProvider ID="{82F60386-C0A4-4ECA-96B2-D5D3C36743D1}">
|
||||
<SettingsGroup ID="{A94E2585-C2EA-48B7-9E97-0CE2B9200182}">
|
||||
<Path>
|
||||
<Part>Application</Part>
|
||||
<Part>Author Information</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<TextSetting ID="{5E09C88D-E52B-41FA-94DB-A98BED29B08F}" Name="Name" Title="_Name" />
|
||||
<TextSetting ID="{E45C0422-5870-4C40-B459-3669EC6AE621}" Name="EmailAddress" Title="_E-mail address" />
|
||||
<!-- magic to keep from loading "emailaddress" setting twice -->
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{B49CAF6B-51F5-4925-B4AA-4DEF655E8627}">
|
||||
<Path>
|
||||
<Part>Application</Part>
|
||||
<Part>Documents</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{07870863-C0E0-4835-B584-84FC87F1C68B}">
|
||||
<Path>
|
||||
<Part>Application</Part>
|
||||
<Part>Projects and Solutions</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{2F0B1AC3-7F75-47C0-8BF7-FDD7C33215D9}">
|
||||
<Path>
|
||||
<Part>Source Control</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
</SettingsProvider>
|
||||
</SettingsProviders>
|
||||
</ApplicationFramework>
|
||||
@ -98,8 +98,6 @@
|
||||
<Compile Include="Dialogs\GenericBrowserPopup.cs" />
|
||||
<Compile Include="Dialogs\GenericBrowserPopup.Designer.cs" />
|
||||
<Compile Include="Panels\StartPagePanel.cs" />
|
||||
<Compile Include="Editors\FileSystem\FileSystemEditorSettingsProvider.cs" />
|
||||
<Compile Include="Editors\Text\Plain\PlainTextEditorSettingsProvider.cs" />
|
||||
<Compile Include="Dialogs\DocumentPropertiesDialogMode.cs" />
|
||||
<Compile Include="Dialogs\DocumentPropertiesDialogV2.cs" />
|
||||
<Compile Include="Controls\UniversalEditorFileBrowserControl.cs" />
|
||||
@ -195,6 +193,12 @@
|
||||
<Folder Include="Editors\Markup\" />
|
||||
<Folder Include="Editors\Database\Views\" />
|
||||
<Folder Include="PrintHandlers\" />
|
||||
<Folder Include="SettingsProviders\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="SettingsProviders\DefaultSettingsProvider.xml" />
|
||||
<EmbeddedResource Include="Editors\FileSystem\FileSystemEditorSettingsProvider.xml" />
|
||||
<EmbeddedResource Include="Editors\Text\Plain\PlainTextEditorSettingsProvider.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
@ -0,0 +1,98 @@
|
||||
<ApplicationFramework>
|
||||
<SettingsProviders>
|
||||
<SettingsProvider ID="{1A6C7465-5ED3-46EE-880C-C79DE62219EF}">
|
||||
<!-- Singing Style Defaults -->
|
||||
<SettingsGroup ID="{F7CB5F45-DB74-4664-89A9-3C3D4C54947E}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Synthesized Audio</Part>
|
||||
<Part>External Programs</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{0E6E0470-FE8C-48C4-B092-EC55ADE95AAC}" Name="ExternalWavefileManipulationToolEnabled" Title="Use external _wavefile manipulation tool" />
|
||||
<FileSetting ID="{EFD6B334-F276-4BCF-A8E3-2AFDDB75C6CD}" Name="ExternalWavefileManipulationToolFileName" Title="Path" />
|
||||
<BooleanSetting ID="{CD1B5854-9268-4917-86AD-C0F973D4C620}" Name="ExternalResamplingToolEnabled" Title="Use external _resampling tool" />
|
||||
<FileSetting ID="{430494FA-1832-4F79-8764-7BB1AAA14DDE}" Name="ExternalResamplingToolFileName" Title="Path" />
|
||||
<FileSetting ID="{3A5733FF-036D-4334-9551-85C2770B5B16}" Name="VoicebankDirectory" Title="Voicebank _directory" Mode="SelectFolder" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{F7CB5F45-DB74-4664-89A9-3C3D4C54947E}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Synthesized Audio</Part>
|
||||
<Part>External Programs</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<GroupSetting ID="{A64C4A48-DAE3-4119-BB33-BDC24C5F246E}" Name="MIDIDevices" Title="MIDI Devices">
|
||||
<Settings>
|
||||
<ChoiceSetting ID="{38DA2418-635C-40AB-8FBD-4679667480F8}" Name="MIDIInputDeviceName" Title="_Input device" />
|
||||
<ChoiceSetting ID="{97DC1AA6-4D78-4668-A9FA-9820C1EA9385}" Name="MIDIOutputDeviceName" Title="_Output device" />
|
||||
</Settings>
|
||||
</GroupSetting>
|
||||
<BooleanSetting ID="{1D72CC22-E6D0-4BD2-9BE1-802FA5B7097F}" Name="MIDIPlayOnSelection" Title="Play notes through MIDI output upon _selection" />
|
||||
<BooleanSetting ID="{915F6E98-E6A8-4EE8-BDCD-361A331D80D9}" Name="MIDIProgramChangeEnabled" Title="Send _Program Change for the following program before continuing" />
|
||||
<ChoiceSetting ID="{63BBFB3C-8FEE-4542-A8DB-5436A16881D7}" Name="MIDIProgramChangeProgram" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{86C0825D-EAA1-4EA8-B78A-17A7AC89687A}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Synthesized Audio</Part>
|
||||
<Part>Phoneme Dictionary</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{EC475943-DBB4-4861-8F65-BF21EE12B86C}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Synthesized Audio</Part>
|
||||
<Part>Synthesizers</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{E6FFDE4E-3B5E-4468-935F-09593D7A8D4F}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Synthesized Audio</Part>
|
||||
<Part>Singing Style Defaults</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<!--
|
||||
<GroupSetting ID="{4C560594-7398-4DC1-98D7-95B52A0867F2}" Title="VOCALOID2 Import/Export">
|
||||
<Settings>
|
||||
<CommandSetting ID="{7F27CF86-A8A4-4509-B03F-055FA435093E}" Name="LoadVOCALOID2" Title="_Load settings from VOCALOID2" CommandID="SynthesizedAudioEditor_LoadVOCALOID2" />
|
||||
<CommandSetting ID="{1D010F84-1BA6-4508-89A8-72C5C88B8CA7}" Name="SaveVOCALOID2" Title="_Save settings to VOCALOID2" CommandID="SynthesizedAudioEditor_SaveToVOCALOID2" />
|
||||
</Settings>
|
||||
</GroupSetting>
|
||||
-->
|
||||
<ChoiceSetting ID="{D4554BD6-AAB1-498A-A8DC-0CE6B6E8AC41}" Name="Template" Title="_Template">
|
||||
<Choices>
|
||||
<Choice ID="{825DBD39-CAA4-480A-AF59-CEE32AAE00B7}" Name="custom" Title="(Custom)" Value="custom" />
|
||||
<Choice ID="{683A9F34-26E1-4CC1-AC65-FE50F0EF4628}" Name="normal" Title="Normal" Value="normal" />
|
||||
<Choice ID="{69B523F8-CBA1-43CC-A9D8-3D5EDB8300A2}" Name="accent" Title="Accent" Value="accent" />
|
||||
<Choice ID="{4E2679CD-D3C8-4508-8031-5D09F81F5544}" Name="strongaccent" Title="Strong accent" Value="strongaccent" />
|
||||
<Choice ID="{67083E27-F127-4C17-8626-06B04CB36E93}" Name="legato" Title="Legato" Value="legato" />
|
||||
<Choice ID="{E0FC85DE-B884-475B-81C3-077340CFA6DA}" Name="slowlegato" Title="Slow legato" Value="slowlegato" />
|
||||
</Choices>
|
||||
</ChoiceSetting>
|
||||
<GroupSetting ID="{137C1431-0126-4FE2-9213-D6529801E8E9}" Name="PitchControl" Title="Pitch control">
|
||||
<Settings>
|
||||
<RangeSetting ID="{70710DD3-3BC6-402C-BB6B-4BF92BC71AD4}" Name="BendDepth" Title="_Bend depth" DefaultValue="8" MinimumValue="0" MaximumValue="100" />
|
||||
<RangeSetting ID="{1E54DB49-8623-41D2-846C-3D6E92BEFD36}" Name="BendLength" Title="Bend _length" DefaultValue="0" MinimumValue="0" MaximumValue="100" />
|
||||
<BooleanSetting ID="{9D76702B-4473-4B11-B1F5-99FBAA50F227}" Name="AddPortamentoRising" Title="Add portamento in _rising movement" />
|
||||
<BooleanSetting ID="{332A85E4-B2BD-4F98-ABCA-6F2C1F4E3630}" Name="AddPortamentoFalling" Title="Add portamento in _falling movement" />
|
||||
</Settings>
|
||||
</GroupSetting>
|
||||
<GroupSetting ID="{ADA885EF-7E01-49F8-AB54-21D88ED0B7CE}" Name="DynamicsControl" Title="Dynamics control">
|
||||
<Settings>
|
||||
<RangeSetting ID="{0808ACB6-04AF-4EFA-A2F3-35367D9E088E}" Name="Decay" Title="_Decay" DefaultValue="50" MinimumValue="0" MaximumValue="100" />
|
||||
<RangeSetting ID="{81DB43F9-AB5E-4675-B8C8-497057E01639}" Name="Accent" Title="_Accent" DefaultValue="50" MinimumValue="0" MaximumValue="100" />
|
||||
</Settings>
|
||||
</GroupSetting>
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
</SettingsProvider>
|
||||
</SettingsProviders>
|
||||
</ApplicationFramework>
|
||||
@ -1,88 +0,0 @@
|
||||
//
|
||||
// SingingStyleDefaultsOptionProvider.cs - provides a SettingsProvider for managing singing style defaults for SynthesizedAudioEditor
|
||||
//
|
||||
// Author:
|
||||
// Michael Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using MBS.Framework.UserInterface;
|
||||
|
||||
namespace UniversalEditor.Plugins.Multimedia.UserInterface.SettingsProviders
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a <see cref="SettingsProvider" /> for managing singing style defaults for SynthesizedAudioEditor.
|
||||
/// </summary>
|
||||
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)
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,7 +34,6 @@
|
||||
<Compile Include="Editors\Multimedia\Picture\PictureEditor.cs" />
|
||||
<Compile Include="Editors\Multimedia\Picture\PictureEditor.Designer.cs" />
|
||||
<Compile Include="Controls\DrawingArea\DrawingAreaControl.cs" />
|
||||
<Compile Include="SettingsProviders\SingingStyleDefaultsSettingsProvider.cs" />
|
||||
<Compile Include="PictureObjectModelExtensions.cs" />
|
||||
<Compile Include="Editors\Multimedia\Palette\PaletteEditor.cs" />
|
||||
<Compile Include="Editors\Multimedia\Palette\PaletteEditor.Designer.cs" />
|
||||
@ -109,5 +108,8 @@
|
||||
<Name>MBS.Framework.UserInterface</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="SettingsProviders\Default.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@ -1,53 +0,0 @@
|
||||
//
|
||||
// SingingStyleDefaultsOptionProvider.cs - provides a SettingsProvider for managing singing style defaults for SynthesizedAudioEditor
|
||||
//
|
||||
// Author:
|
||||
// Michael Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using MBS.Framework.UserInterface;
|
||||
|
||||
namespace UniversalEditor.Plugins.RavenSoftware.UserInterface.SettingsProviders
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a <see cref="IcarusSettingsProvider" /> for managing Icarus settings.
|
||||
/// </summary>
|
||||
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"),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,39 @@
|
||||
<ApplicationFramework>
|
||||
<SettingsProviders>
|
||||
<SettingsProvider ID="{3B72848B-7DA4-4697-8053-3C6BA41663D9}">
|
||||
<!-- IcarusSettingsProvider -->
|
||||
<SettingsGroup ID="{A99E9350-0609-4C64-80C8-BB0DC1246701}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Raven Software</Part>
|
||||
<Part>ICARUS Scripting</Part>
|
||||
<Part>General</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<!-- this should be a UE Platform setting -->
|
||||
<BooleanSetting ID="{D97197D3-2797-4644-859F-759AC9011407}" Name="ReopenLastFileAtStartup" Title="Re-open last file at startup" />
|
||||
<BooleanSetting ID="{1DC9D3AC-5B8E-4D28-AAD5-91281818120D}" Name="AlphabeticallySortEditPulldowns" Title="_Alphabetically-sort edit pulldowns" />
|
||||
<BooleanSetting ID="{80816F37-33DC-4779-8503-28D6E49B82E3}" Name="EnableSourceSafeFunctions" Title="Enable _SourceSafe functions" />
|
||||
<BooleanSetting ID="{C450ADFB-8ED0-45F6-8DE7-6ECB822CDE6A}" Name="WarnBeforeOpeningIncompatibleScript" Title="_Warn before opening BehavEd-incompatible ICARUS script" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{A99E9350-0609-4C64-80C8-BB0DC1246701}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Raven Software</Part>
|
||||
<Part>ICARUS Scripting</Part>
|
||||
<Part>Directories</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<!-- this should be a UE Platform setting -->
|
||||
<TextSetting ID="{4CE2424F-44E5-4F6D-8B8E-F3B30755D0B3}" Name="ScriptPath" Title="Sc_ript path" />
|
||||
<TextSetting ID="{7DC347F3-BAC0-4E9B-B863-DB40E68D91A6}" Name="SourceSafeScriptPath" Title="SourceSa_fe script path" />
|
||||
<TextSetting ID="{16B50546-7AE5-43EA-8AAC-F94671861B3C}" Name="SourceSafeConfigurationLocation" Title="SourceSafe _configuration location" />
|
||||
<TextSetting ID="{B4F76E28-1468-44F6-B05E-C9BC2FAB0D02}" Name="IcarusCompilerPath" Title="Location of _ICARUS compiler (IBIZE)" />
|
||||
<TextSetting ID="{11A8BAD2-C793-4BCB-B1B4-1B86EA6D9960}" Name="CommandDescriptionFile" Title="Command _description file (BehavEd.bhc)" />
|
||||
<TextSetting ID="{B5EB988C-5F88-4343-9D27-3C8021CF03BE}" Name="SourceFilesPath" Title="_Source files path" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
</SettingsProvider>
|
||||
</SettingsProviders>
|
||||
</ApplicationFramework>
|
||||
@ -37,7 +37,6 @@
|
||||
<Compile Include="Editors\Icarus\IcarusScriptEditorEnumeration.cs" />
|
||||
<Compile Include="Editors\Icarus\IcarusScriptEditorConfiguration.cs" />
|
||||
<Compile Include="Editors\Icarus\IcarusScriptEditorCommand.cs" />
|
||||
<Compile Include="SettingsProviders\IcarusSettingsProvider.cs" />
|
||||
<Compile Include="Editors\Carcass\CarcassEditor.cs" />
|
||||
<Compile Include="Editors\Carcass\Dialogs\ModelReferencePropertiesDialog.cs" />
|
||||
</ItemGroup>
|
||||
@ -83,5 +82,8 @@
|
||||
<Name>UniversalEditor.Plugins.Multimedia3D</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="SettingsProviders\IcarusSettingsProvider.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@ -0,0 +1,50 @@
|
||||
<ApplicationFramework>
|
||||
<SettingsProviders>
|
||||
<SettingsProvider ID="{B2788699-0059-4F08-BB49-1A6A90F0632B}">
|
||||
<!-- Syntax Editor -->
|
||||
<SettingsGroup ID="{0652F438-4180-49E8-8D5D-645200770978}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Syntax</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{B816DB14-2FC5-47AF-A08B-7C4340A5647A}" Name="DragDropTextEditing" Title="D_rag and drop text editing" />
|
||||
<BooleanSetting ID="{F561C8D7-1A81-4931-8312-213D5E99ADB6}" Name="AutomaticDelimiterHighlighting" Title="A_utomatic delimiter highlighting" />
|
||||
<BooleanSetting ID="{EE8F2578-91E0-4817-9ACA-13428EE01115}" Name="TrackChanges" Title="_Track changes" />
|
||||
<BooleanSetting ID="{65936B34-27E5-406D-989A-E0276920D7A4}" Name="AutoDetectUTF8Encoding" Title="Auto-_detect UTF-8 encoding without signature" />
|
||||
<BooleanSetting ID="{C7343602-3B1A-455C-BA53-CF32EC511FCC}" Name="DisplaySelectionMargin" Title="Display _selection margin" />
|
||||
<BooleanSetting ID="{5BFA77B4-89A3-45E4-ADD3-12661253BB68}" Name="DisplayIndicatorMargin" Title="Display indicator _margin" />
|
||||
<BooleanSetting ID="{E47FACE6-EBA8-4C48-9610-96E67C112BA9}" Name="HighlightCurrentLine" Title="Highlight _current line" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{2F451BC3-11C5-41AC-BF47-8FC4EAF29D5A}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Syntax</Part>
|
||||
<Part>Languages</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{6F53CEF3-532E-41FA-B06D-C71AE1D833B2}" Name="MapExtensionlessFilesDefault" Title="_Map extensionless files to" />
|
||||
<ChoiceSetting ID="{50D1F8A7-19C8-41B3-A786-09CAE37A5C0A}" Name="DefaultLanguage" Title="Default language" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
<SettingsGroup ID="{3F31F5BF-36D6-46CD-9891-FC5542A9E82A}">
|
||||
<Path>
|
||||
<Part>Editors</Part>
|
||||
<Part>Syntax</Part>
|
||||
<Part>Languages</Part>
|
||||
<Part>Basic</Part>
|
||||
<Part>General</Part>
|
||||
</Path>
|
||||
<Settings>
|
||||
<BooleanSetting ID="{A2AF7ED3-5594-434B-BD6F-5680BA6DC4E4}" Name="AutoListMembers" Title="Auto list _members" />
|
||||
<BooleanSetting ID="{7C150D0F-589B-43DB-8095-6F38E8DDD3EF}" Name="HideAdvancedMembers" Title="_Hide advanced members" />
|
||||
<BooleanSetting ID="{14387D11-817E-4C72-B7B4-9EECB8C12692}" Name="ParameterInformation" Title="_Parameter information" />
|
||||
<BooleanSetting ID="{08F484B1-E611-47BC-A482-BA0A29836AE5}" Name="EnableVirtualSpace" Title="Enable _virtual space" />
|
||||
<BooleanSetting ID="{8A1B5564-6F2A-4B69-A0B3-76DD8557E136}" Name="WordWrap" Title="_Word wrap" />
|
||||
<BooleanSetting ID="{CEF2F7D1-2AE4-4BF2-A70D-ADF27D342B59}" Name="ShowVisualGlyphsForWordWrap" Title="_Show visual glyphs for word wrap" />
|
||||
</Settings>
|
||||
</SettingsGroup>
|
||||
</SettingsProvider>
|
||||
</SettingsProviders>
|
||||
</ApplicationFramework>
|
||||
@ -1,70 +0,0 @@
|
||||
//
|
||||
// SyntaxEditorSettingsProvider.cs - provides a SettingsProvider containing settings for a SyntaxEditor
|
||||
//
|
||||
// Author:
|
||||
// Michael Becker <alcexhim@gmail.com>
|
||||
//
|
||||
// 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
using MBS.Framework.UserInterface;
|
||||
|
||||
namespace UniversalEditor.SettingsProviders
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a <see cref="SettingsProvider" /> containing settings for a <see cref="Plugins.SoftwareDevelopment.UserInterface.Editors.Syntax.SyntaxEditor" />.
|
||||
/// </summary>
|
||||
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<string, Setting[]> languageOptions = new System.Collections.Generic.Dictionary<string, Setting[]>();
|
||||
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<string, Setting[]> kvp in languageOptions)
|
||||
{
|
||||
SettingsGroups.Add(new SettingsGroup("Editors:Syntax:Languages:" + kvp.Key, kvp.Value));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +33,6 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SettingsProviders\SyntaxEditorSettingsProvider.cs" />
|
||||
<Compile Include="Editors\Syntax\SyntaxEditor.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
@ -68,4 +67,7 @@
|
||||
<Name>MBS.Framework.UserInterface</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="SettingsProviders\Default.xml" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
Loading…
x
Reference in New Issue
Block a user