Rename Options to Settings (for whatever reason)

This commit is contained in:
Michael Becker 2019-07-29 10:24:08 -04:00
parent 6cff72c1f4
commit 8b42934529
12 changed files with 232 additions and 232 deletions

View File

@ -1,57 +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 UniversalWidgetToolkit;
namespace UniversalEditor.Editors.FileSystem
{
public class FileSystemEditorOptionProvider : OptionProvider
{
public FileSystemEditorOptionProvider ()
{
OptionGroups.Add (new OptionGroup ("Editors:File System:Views", new Option[]
{
new BooleanOption ("Sort _folders before files"),
new BooleanOption ("Allow folders to be _expanded")
}));
OptionGroups.Add (new OptionGroup ("Editors:File System:Behavior", new Option[]
{
new BooleanOption ("_Single-click to open items"),
new BooleanOption ("Show action to create symbolic _links"),
new ChoiceOption<int> ("Default option for _executable text files", null, new ChoiceOption<int>.ChoiceOptionValue[]
{
new ChoiceOption<int>.ChoiceOptionValue ("Display them in text editor", 1),
new ChoiceOption<int>.ChoiceOptionValue ("Run them as executable", 2),
new ChoiceOption<int>.ChoiceOptionValue ("Ask me what to do", 3)
}),
new BooleanOption ("Ask before _emptying the Trash/Recycle Bin"),
new BooleanOption ("Show action to _permanently delete files and folders")
}));
OptionGroups.Add (new OptionGroup ("Editors:File System:List Columns", new Option[]
{
}));
OptionGroups.Add (new OptionGroup ("Editors:File System:Search and Preview", new Option[]
{
}));
}
}
}

View File

@ -0,0 +1,57 @@
//
// 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 UniversalWidgetToolkit;
namespace UniversalEditor.Editors.FileSystem
{
public class FileSystemEditorSettingsProvider : SettingsProvider
{
public FileSystemEditorSettingsProvider ()
{
SettingsGroups.Add (new SettingsGroup ("Editors:File System:Views", new Setting[]
{
new BooleanSetting ("Sort _folders before files"),
new BooleanSetting ("Allow folders to be _expanded")
}));
SettingsGroups.Add (new SettingsGroup ("Editors:File System:Behavior", new Setting[]
{
new BooleanSetting ("_Single-click to open items"),
new BooleanSetting ("Show action to create symbolic _links"),
new ChoiceSetting<int> ("Default option for _executable text files", null, new ChoiceSetting<int>.ChoiceSettingValue[]
{
new ChoiceSetting<int>.ChoiceSettingValue ("Display them in text editor", 1),
new ChoiceSetting<int>.ChoiceSettingValue ("Run them as executable", 2),
new ChoiceSetting<int>.ChoiceSettingValue ("Ask me what to do", 3)
}),
new BooleanSetting ("Ask before _emptying the Trash/Recycle Bin"),
new BooleanSetting ("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[]
{
}));
}
}
}

View File

@ -23,26 +23,26 @@ using UniversalWidgetToolkit;
namespace UniversalEditor.Editors.Text.Plain
{
public class PlainTextEditorOptionProvider : OptionProvider
public class PlainTextEditorSettingsProvider : SettingsProvider
{
public PlainTextEditorOptionProvider()
public PlainTextEditorSettingsProvider()
{
OptionGroups.Add(new OptionGroup("Editors:Plain Text Editor", new Option[]
SettingsGroups.Add(new SettingsGroup("Editors:Plain Text Editor", new Setting[]
{
new BooleanOption("_Display line numbers"),
new BooleanOption("_Display right margin"),
new TextOption("Right margin at _column"),
new BooleanOption("Display _overview map"),
new BooleanSetting("_Display line numbers"),
new BooleanSetting("_Display right margin"),
new TextSetting("Right margin at _column"),
new BooleanSetting("Display _overview map"),
new BooleanOption("Enable text _wrapping"),
new BooleanOption("Do not _split words over two lines"),
new BooleanSetting("Enable text _wrapping"),
new BooleanSetting("Do not _split words over two lines"),
new BooleanOption("Highlight current _line"),
new BooleanOption("Highlight matching _brackets"),
new BooleanSetting("Highlight current _line"),
new BooleanSetting("Highlight matching _brackets"),
new RangeOption("_Tab width", 8, 1, 24),
new BooleanOption("Insert _spaces instead of tabs"),
new BooleanOption("_Enable automatic indentation", true)
new RangeSetting("_Tab width", 8, 1, 24),
new BooleanSetting("Insert _spaces instead of tabs"),
new BooleanSetting("_Enable automatic indentation", true)
}));
}
}

View File

@ -60,16 +60,16 @@ namespace UniversalEditor.UserInterface
protected void BeforeInitialization ()
{
Application.DefaultOptionProvider.OptionGroups.Add ("Application:Author Information", new Option[] {
new TextOption("_Name"),
new TextOption("_E-mail address")
Application.DefaultOptionProvider.SettingsGroups.Add ("Application:Author Information", new Setting[] {
new TextSetting("_Name"),
new TextSetting("_E-mail address")
});
Application.DefaultOptionProvider.OptionGroups.Add ("Application:Documents", new Option[] {
Application.DefaultOptionProvider.SettingsGroups.Add ("Application:Documents", new Setting[] {
});
Application.DefaultOptionProvider.OptionGroups.Add("Application:Projects and Solutions", new Option[]
Application.DefaultOptionProvider.SettingsGroups.Add("Application:Projects and Solutions", new Setting[]
{
});
Application.DefaultOptionProvider.OptionGroups.Add("Source Control", new Option[]
Application.DefaultOptionProvider.SettingsGroups.Add("Source Control", new Setting[]
{
});

View File

@ -594,7 +594,7 @@ namespace UniversalEditor.UserInterface
public bool ShowOptionsDialog()
{
OptionsDialog dlg = new OptionsDialog();
SettingsDialog dlg = new SettingsDialog();
if (dlg.ShowDialog() == DialogResult.OK)
{
return true;

View File

@ -108,8 +108,8 @@
<Compile Include="Dialogs\GenericBrowserPopup.Designer.cs" />
<Compile Include="Dialogs\CustomOptionsDialog.cs" />
<Compile Include="Panels\StartPagePanel.cs" />
<Compile Include="Editors\FileSystem\FileSystemEditorOptionProvider.cs" />
<Compile Include="Editors\Text\Plain\PlainTextEditorOptionProvider.cs" />
<Compile Include="Editors\FileSystem\FileSystemEditorSettingsProvider.cs" />
<Compile Include="Editors\Text\Plain\PlainTextEditorSettingsProvider.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">

View File

@ -1,84 +0,0 @@
//
// SingingStyleDefaultsOptionProvider.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 UniversalWidgetToolkit;
namespace UniversalEditor.Plugins.Multimedia.UserInterface.OptionProviders
{
public class SingingStyleDefaultsOptionProvider : OptionProvider
{
public SingingStyleDefaultsOptionProvider ()
{
OptionGroups.Add ("Editors:Synthesized Audio:External Programs", new Option[]
{
new BooleanOption("Use external _wavefile manipulation tool"),
new TextOption("Path"),
new BooleanOption("Use external _resampling tool"),
new TextOption("Path"),
new TextOption("Voicebank _directory")
});
OptionGroups.Add ("Editors:Synthesized Audio:MIDI Settings", new Option[]
{
new GroupOption("MIDI Devices", new Option[]
{
new ChoiceOption<int>("_Input device"),
new ChoiceOption<int>("_Output device")
}),
new BooleanOption("Play notes through MIDI output upon _selection"),
new BooleanOption("Send _Program Change for the following program before continuing"),
new ChoiceOption<int>(String.Empty)
});
OptionGroups.Add ("Editors:Synthesized Audio:Phoneme Dictionary", new Option[]
{
});
OptionGroups.Add ("Editors:Synthesized Audio:Synthesizers", new Option[]
{
});
OptionGroups.Add("Editors:Synthesized Audio:Singing Style Defaults", new Option[]
{
// new CommandOption("_Load settings from VOCALOID2"),
// 2q22wnew CommandOption("_Save settings from VOCALOID2"),
new ChoiceOption<string>("_Template", null, new ChoiceOption<string>.ChoiceOptionValue[]
{
new ChoiceOption<string>.ChoiceOptionValue("(Custom)", "custom"),
new ChoiceOption<string>.ChoiceOptionValue("Normal", "normal"),
new ChoiceOption<string>.ChoiceOptionValue("Accent", "accent"),
new ChoiceOption<string>.ChoiceOptionValue("Strong Accent", "strongaccent"),
new ChoiceOption<string>.ChoiceOptionValue("Legato", "legato"),
new ChoiceOption<string>.ChoiceOptionValue("Slow Legato", "slowlegato"),
}),
new GroupOption("Pitch control", new Option[]
{
new RangeOption("_Bend depth", 8, 0, 100),
new RangeOption("Bend _length", 0, 0, 100),
new BooleanOption("Add portamento in _rising movement"),
new BooleanOption("Add portamento in _falling movement")
}),
new GroupOption("Dynamics control", new Option[]
{
new RangeOption("_Decay", 50, 0, 100),
new RangeOption("_Accent", 50, 0, 100)
})
});
}
}
}

View File

@ -0,0 +1,84 @@
//
// SingingStyleDefaultsOptionProvider.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 UniversalWidgetToolkit;
namespace UniversalEditor.Plugins.Multimedia.UserInterface.SettingsProviders
{
public class SingingStyleDefaultsSettingsProvider : SettingsProvider
{
public SingingStyleDefaultsSettingsProvider ()
{
SettingsGroups.Add ("Editors:Synthesized Audio:External Programs", new Setting[]
{
new BooleanSetting("Use external _wavefile manipulation tool"),
new TextSetting("Path"),
new BooleanSetting("Use external _resampling tool"),
new TextSetting("Path"),
new TextSetting("Voicebank _directory")
});
SettingsGroups.Add ("Editors:Synthesized Audio:MIDI Settings", new Setting[]
{
new GroupSetting("MIDI Devices", new Setting[]
{
new ChoiceSetting<int>("_Input device"),
new ChoiceSetting<int>("_Output device")
}),
new BooleanSetting("Play notes through MIDI output upon _selection"),
new BooleanSetting("Send _Program Change for the following program before continuing"),
new ChoiceSetting<int>(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<string>("_Template", null, new ChoiceSetting<string>.ChoiceSettingValue[]
{
new ChoiceSetting<string>.ChoiceSettingValue("(Custom)", "custom"),
new ChoiceSetting<string>.ChoiceSettingValue("Normal", "normal"),
new ChoiceSetting<string>.ChoiceSettingValue("Accent", "accent"),
new ChoiceSetting<string>.ChoiceSettingValue("Strong Accent", "strongaccent"),
new ChoiceSetting<string>.ChoiceSettingValue("Legato", "legato"),
new ChoiceSetting<string>.ChoiceSettingValue("Slow Legato", "slowlegato"),
}),
new GroupSetting("Pitch control", new Setting[]
{
new RangeSetting("_Bend depth", 8, 0, 100),
new RangeSetting("Bend _length", 0, 0, 100),
new BooleanSetting("Add portamento in _rising movement"),
new BooleanSetting("Add portamento in _falling movement")
}),
new GroupSetting("Dynamics control", new Setting[]
{
new RangeSetting("_Decay", 50, 0, 100),
new RangeSetting("_Accent", 50, 0, 100)
})
});
}
}
}

View File

@ -33,7 +33,7 @@
<Compile Include="Editors\Multimedia\Picture\PictureEditor.cs" />
<Compile Include="Editors\Multimedia\Picture\PictureEditor.Designer.cs" />
<Compile Include="Controls\DrawingArea\DrawingAreaControl.cs" />
<Compile Include="OptionProviders\SingingStyleDefaultsOptionProvider.cs" />
<Compile Include="SettingsProviders\SingingStyleDefaultsSettingsProvider.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Editors\" />
@ -41,7 +41,7 @@
<Folder Include="Editors\Multimedia\Picture\" />
<Folder Include="Controls\" />
<Folder Include="Controls\DrawingArea\" />
<Folder Include="OptionProviders\" />
<Folder Include="SettingsProviders\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Libraries\UniversalEditor.Core\UniversalEditor.Core.csproj">

View File

@ -1,64 +0,0 @@
//
// MyClass.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 UniversalWidgetToolkit;
namespace UniversalEditor.OptionProviders
{
public class SyntaxEditorOptionProvider : OptionProvider
{
public SyntaxEditorOptionProvider ()
{
OptionGroups.Add(new OptionGroup("Editors:Syntax", new Option[]
{
new BooleanOption("D_rag and drop text editing"),
new BooleanOption("A_utomatic delimiter highlighting"),
new BooleanOption("_Track changes"),
new BooleanOption("Auto-_detect UTF-8 encoding without signature"),
new BooleanOption("Display _selection margin"),
new BooleanOption("Display indicator _margin"),
new BooleanOption("Highlight _current line")
}));
OptionGroups.Add(new OptionGroup("Editors:Syntax:Languages", new Option[]
{
new BooleanOption("_Map extensionless files to"),
new ChoiceOption<string>("Default language"),
}));
// for each language...
System.Collections.Generic.Dictionary<string, Option[]> languageOptions = new System.Collections.Generic.Dictionary<string, Option[]>();
languageOptions.Add ("Basic:General", new Option[] {
new BooleanOption("Auto list _members"),
new BooleanOption("_Hide advanced members"),
new BooleanOption("_Parameter information"),
new BooleanOption("Enable _virtual space"),
new BooleanOption("_Word wrap"),
new BooleanOption("_Show visual glyphs for word wrap"),
});
foreach (System.Collections.Generic.KeyValuePair<string, Option[]> kvp in languageOptions) {
OptionGroups.Add(new OptionGroup("Editors:Syntax:Languages:" + kvp.Key, kvp.Value));
}
}
}
}

View File

@ -0,0 +1,64 @@
//
// MyClass.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 UniversalWidgetToolkit;
namespace UniversalEditor.SettingsProviders
{
public class SyntaxEditorSettingsProvider : SettingsProvider
{
public SyntaxEditorSettingsProvider ()
{
SettingsGroups.Add(new SettingsGroup("Editors:Syntax", new Setting[]
{
new BooleanSetting("D_rag and drop text editing"),
new BooleanSetting("A_utomatic delimiter highlighting"),
new BooleanSetting("_Track changes"),
new BooleanSetting("Auto-_detect UTF-8 encoding without signature"),
new BooleanSetting("Display _selection margin"),
new BooleanSetting("Display indicator _margin"),
new BooleanSetting("Highlight _current line")
}));
SettingsGroups.Add(new SettingsGroup("Editors:Syntax:Languages", new Setting[]
{
new BooleanSetting("_Map extensionless files to"),
new ChoiceSetting<string>("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("Auto list _members"),
new BooleanSetting("_Hide advanced members"),
new BooleanSetting("_Parameter information"),
new BooleanSetting("Enable _virtual space"),
new BooleanSetting("_Word wrap"),
new BooleanSetting("_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));
}
}
}
}

View File

@ -32,11 +32,11 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="OptionProviders\SyntaxEditorOptionProvider.cs" />
<Compile Include="SettingsProviders\SyntaxEditorSettingsProvider.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Folder Include="OptionProviders\" />
<Folder Include="SettingsProviders\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Libraries\UniversalEditor.Essential\UniversalEditor.Essential.csproj">