Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3568 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
149 changed files with 1179 additions and 7383 deletions
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System.Reflection; |
||||
|
||||
// Information about this assembly is defined by the following
|
||||
// attributes.
|
||||
//
|
||||
// change them to the information which is associated with the assembly
|
||||
// you compile.
|
||||
|
||||
[assembly: AssemblyTitle("HighlightingEditor")] |
||||
[assembly: AssemblyDescription("Editor for editor highlighting styles in #develop")] |
||||
[assembly: AssemblyConfiguration("")] |
||||
[assembly: AssemblyTrademark("")] |
||||
[assembly: AssemblyCulture("")] |
@ -1,21 +0,0 @@
@@ -1,21 +0,0 @@
|
||||
<AddIn name = "Highlighting Editor" |
||||
author = "Georg Brandl" |
||||
copyright = "prj:///doc/copyright.txt" |
||||
description = "Editor for syntax highlighting styles for the text editor"> |
||||
|
||||
<Manifest> |
||||
<Identity name = "ICSharpCode.HighlightingEditor"/> |
||||
</Manifest> |
||||
|
||||
<Runtime> |
||||
<Import assembly="HighlightingEditor.dll"/> |
||||
</Runtime> |
||||
|
||||
<Path name = "/SharpDevelop/Dialogs/OptionsDialog/TextEditorOptions"> |
||||
<DialogPanel id = "EditHighlighting" |
||||
label = "${res:Dialog.Options.TextEditorOptions.EditHighlighting.Title}" |
||||
insertafter = "Behavior" |
||||
class = "ICSharpCode.SharpDevelop.Gui.OptionPanels.EditHighlightingPanel"/> |
||||
</Path> |
||||
|
||||
</AddIn> |
@ -1,143 +0,0 @@
@@ -1,143 +0,0 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
<ProductVersion>8.0.50215</ProductVersion> |
||||
<SchemaVersion>2.0</SchemaVersion> |
||||
<ProjectGuid>{8A462940-E5E9-4E85-982D-D4C006EE31D4}</ProjectGuid> |
||||
<AssemblyName>HighlightingEditor</AssemblyName> |
||||
<OutputTarget>Library</OutputTarget> |
||||
<WarningLevel>0</WarningLevel> |
||||
<NoStdLib>False</NoStdLib> |
||||
<NoConfig>False</NoConfig> |
||||
<RunPostBuildEvent>OnSuccessfulBuild</RunPostBuildEvent> |
||||
<OutputType>Library</OutputType> |
||||
<RegisterForComInterop>False</RegisterForComInterop> |
||||
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies> |
||||
<BaseAddress>117964800</BaseAddress> |
||||
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
<FileAlignment>4096</FileAlignment> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
<DebugSymbols>true</DebugSymbols> |
||||
<Optimize>False</Optimize> |
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
||||
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> |
||||
<OutputPath>..\..\..\..\..\AddIns\AddIns\Misc\HighlightingEditor\</OutputPath> |
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> |
||||
<DefineConstants>DEBUG</DefineConstants> |
||||
<DebugType>Full</DebugType> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
<DebugSymbols>False</DebugSymbols> |
||||
<Optimize>True</Optimize> |
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
||||
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> |
||||
<OutputPath>..\..\..\..\..\AddIns\AddIns\Misc\HighlightingEditor\</OutputPath> |
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Drawing" /> |
||||
<Reference Include="System.Windows.Forms" /> |
||||
<Reference Include="System.XML" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="Configuration\AssemblyInfo.cs" /> |
||||
<EmbeddedResource Include="Resources\ColorDialog.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Digits.xfrm" /> |
||||
<EmbeddedResource Include="Resources\EditDialog.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Environment.xfrm" /> |
||||
<EmbeddedResource Include="Resources\KeywordList.xfrm" /> |
||||
<EmbeddedResource Include="Resources\KeywordLists.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Marker.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Markers.xfrm" /> |
||||
<EmbeddedResource Include="Resources\OptionPanel.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Properties.xfrm" /> |
||||
<EmbeddedResource Include="Resources\RuleSet.xfrm" /> |
||||
<EmbeddedResource Include="Resources\RuleSets.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Scheme.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Span.xfrm" /> |
||||
<EmbeddedResource Include="Resources\Spans.xfrm" /> |
||||
<Compile Include="Src\ColorButton.cs"> |
||||
<SubType>Component</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\ColorDialog.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\EditHighlightingColorDialog.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\EditHighlightingDialog.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\EditHighlightingPanel.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\EditorHighlightColor.cs" /> |
||||
<Compile Include="Src\Nodes\AbstractNode.cs" /> |
||||
<Compile Include="Src\Nodes\DigitsNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\EnvironmentNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\KeywordListNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\KeywordListsNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\MarkerNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\MarkersNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\NodeOptionPanel.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\PropertiesNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\RuleSetNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\RuleSetsNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\SchemeNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\SpanNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<Compile Include="Src\Nodes\SpansNode.cs"> |
||||
<SubType>UserControl</SubType> |
||||
</Compile> |
||||
<None Include="HighlightingEditor.addin"> |
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
</None> |
||||
<Compile Include="..\..\..\..\Main\GlobalAssemblyInfo.cs"> |
||||
<Link>Configuration\GlobalAssemblyInfo.cs</Link> |
||||
</Compile> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ProjectReference Include="..\..\..\..\Libraries\ICSharpCode.TextEditor\Project\ICSharpCode.TextEditor.csproj"> |
||||
<Project>{2D18BE89-D210-49EB-A9DD-2246FBB3DF6D}</Project> |
||||
<Name>ICSharpCode.TextEditor</Name> |
||||
<Private>False</Private> |
||||
</ProjectReference> |
||||
<ProjectReference Include="..\..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj"> |
||||
<Project>{2748AD25-9C63-4E12-877B-4DCE96FBED54}</Project> |
||||
<Name>ICSharpCode.SharpDevelop</Name> |
||||
<Private>False</Private> |
||||
</ProjectReference> |
||||
<ProjectReference Include="..\..\..\..\Main\Core\Project\ICSharpCode.Core.csproj"> |
||||
<Project>{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}</Project> |
||||
<Name>ICSharpCode.Core</Name> |
||||
<Private>False</Private> |
||||
</ProjectReference> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" /> |
||||
</Project> |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<LastOpenVersion>8.0.50215</LastOpenVersion> |
||||
<ProjectView>ShowAllFiles</ProjectView> |
||||
<ProjectTrust>0</ProjectTrust> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
<StartProgram>..\..\..\..\..\bin\SharpDevelop.exe</StartProgram> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
||||
<StartProgram>..\..\..\..\..\bin\SharpDevelop.exe</StartProgram> |
||||
</PropertyGroup> |
||||
</Project> |
@ -1,134 +0,0 @@
@@ -1,134 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.Form> |
||||
<Name value="InputBox" /> |
||||
<ShowInTaskbar value="False" /> |
||||
<FormBorderStyle value="FixedDialog" /> |
||||
<StartPosition value="CenterParent" /> |
||||
<ClientSize value="{Width=450, Height=288}" /> |
||||
<MinimizeBox value="False" /> |
||||
<DockPadding value="" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.Title}" /> |
||||
<AcceptButton value="acceptBtn [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<CancelButton value="cancelBtn [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" /> |
||||
<MaximizeBox value="False" /> |
||||
<Controls> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="backBox" /> |
||||
<TabIndex value="30" /> |
||||
<Location value="{X=232,Y=72}" /> |
||||
<ClientSize value="{Width=204, Height=174}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.Background}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="backUser" /> |
||||
<Location value="{X=9,Y=54}" /> |
||||
<ClientSize value="{Width=186, Height=18}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.UserDefined}" /> |
||||
<TabIndex value="9" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="backNo" /> |
||||
<Location value="{X=9,Y=18}" /> |
||||
<Checked value="True" /> |
||||
<ClientSize value="{Width=186, Height=30}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.NoColor}" /> |
||||
<TabStop value="True" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="backSys" /> |
||||
<Location value="{X=9,Y=114}" /> |
||||
<ClientSize value="{Width=186, Height=18}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.SystemColor}" /> |
||||
<TabIndex value="8" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="backList" /> |
||||
<TabIndex value="8" /> |
||||
<Location value="{X=30,Y=138}" /> |
||||
<ClientSize value="{Width=166, Height=21}" /> |
||||
<DropDownStyle value="DropDownList" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.GroupBox> |
||||
<Name value="foreBox" /> |
||||
<TabIndex value="29" /> |
||||
<Location value="{X=16,Y=72}" /> |
||||
<ClientSize value="{Width=204, Height=174}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.Foreground}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="foreList" /> |
||||
<TabIndex value="8" /> |
||||
<Location value="{X=30,Y=138}" /> |
||||
<ClientSize value="{Width=166, Height=21}" /> |
||||
<DropDownStyle value="DropDownList" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="foreUser" /> |
||||
<Location value="{X=12,Y=54}" /> |
||||
<ClientSize value="{Width=186, Height=18}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.UserDefined}" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="foreNo" /> |
||||
<Location value="{X=12,Y=18}" /> |
||||
<Checked value="True" /> |
||||
<ClientSize value="{Width=186, Height=30}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.NoColor}" /> |
||||
<TabStop value="True" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
<System.Windows.Forms.RadioButton> |
||||
<Name value="foreSys" /> |
||||
<Location value="{X=12,Y=114}" /> |
||||
<ClientSize value="{Width=186, Height=18}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.SystemColor}" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.RadioButton> |
||||
</Controls> |
||||
</System.Windows.Forms.GroupBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.Caption}" /> |
||||
<TabIndex value="28" /> |
||||
<ClientSize value="{Width=432, Height=23}" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="acceptBtn" /> |
||||
<Location value="{X=280,Y=256}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.OKButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="27" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="boldBox" /> |
||||
<Location value="{X=16,Y=40}" /> |
||||
<ClientSize value="{Width=136, Height=18}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.Bold}" /> |
||||
<TabIndex value="23" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="italicBox" /> |
||||
<Location value="{X=160,Y=40}" /> |
||||
<ClientSize value="{Width=102, Height=18}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.ColorDlg.Italic}" /> |
||||
<TabIndex value="24" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="cancelBtn" /> |
||||
<Location value="{X=360,Y=256}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.CancelButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="26" /> |
||||
<DialogResult value="Cancel" /> |
||||
<AccessibleDescription value="" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.Form> |
||||
</Components> |
@ -1,67 +0,0 @@
@@ -1,67 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=312}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="button" /> |
||||
<Location value="{X=224,Y=96}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Edit}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="sampleLabel" /> |
||||
<Text value="0 1 2 3 4 5 6 7 8 9" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=280, Height=40}" /> |
||||
<Location value="{X=16,Y=40}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Digits.Sample}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=144}" /> |
||||
<ClientSize value="{Width=312, Height=168}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Digits.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=144}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=304, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,80 +0,0 @@
@@ -1,80 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.Form> |
||||
<Name value="EditHighlightingDialog" /> |
||||
<ShowInTaskbar value="False" /> |
||||
<FormBorderStyle value="FixedDialog" /> |
||||
<StartPosition value="CenterParent" /> |
||||
<ClientSize value="{Width=634, Height=480}" /> |
||||
<MinimizeBox value="False" /> |
||||
<DockPadding value="" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.EditDlg.Title}" /> |
||||
<AcceptButton value="acceptBtn [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<CancelButton value="cancelBtn [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" /> |
||||
<MaximizeBox value="False" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<ClientSize value="{Width=618, Height=434}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="25" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="propPanel" /> |
||||
<Location value="{X=294,Y=0}" /> |
||||
<ClientSize value="{Width=324, Height=434}" /> |
||||
<DockPadding value="" /> |
||||
<TabIndex value="2" /> |
||||
<Dock value="Fill" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="optionPanel" /> |
||||
<Location value="{X=6,Y=42}" /> |
||||
<ClientSize value="{Width=312, Height=384}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.Splitter> |
||||
<Name value="splitter" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=6, Height=434}" /> |
||||
<Location value="{X=288,Y=0}" /> |
||||
</System.Windows.Forms.Splitter> |
||||
<System.Windows.Forms.TreeView> |
||||
<Name value="nodeTree" /> |
||||
<ImageIndex value="-1" /> |
||||
<Dock value="Left" /> |
||||
<TabIndex value="0" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
<SelectedImageIndex value="-1" /> |
||||
<ClientSize value="{Width=284, Height=430}" /> |
||||
<HideSelection value="False" /> |
||||
</System.Windows.Forms.TreeView> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="acceptBtn" /> |
||||
<Location value="{X=472,Y=448}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.OKButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="24" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="cancelBtn" /> |
||||
<Location value="{X=551,Y=448}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.CancelButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="23" /> |
||||
<DialogResult value="Cancel" /> |
||||
<AccessibleDescription value="" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.Form> |
||||
</Components> |
@ -1,93 +0,0 @@
@@ -1,93 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=408}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.ListView> |
||||
<Name value="listView" /> |
||||
<GridLines value="True" /> |
||||
<MultiSelect value="False" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<View value="Details" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=276, Height=212}" /> |
||||
<HeaderStyle value="None" /> |
||||
<HideSelection value="False" /> |
||||
<Columns> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Columns> |
||||
</System.Windows.Forms.ListView> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="button" /> |
||||
<Location value="{X=221,Y=256}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Edit}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Environment.Colors}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=296}" /> |
||||
<ClientSize value="{Width=312, Height=112}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Environment.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=88}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=304, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,168 +0,0 @@
@@ -1,168 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=320, Height=440}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="sampleLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.SampleText}" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="11" /> |
||||
<ClientSize value="{Width=176, Height=40}" /> |
||||
<Location value="{X=24,Y=280}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.ListBox> |
||||
<Name value="listBox" /> |
||||
<IntegralHeight value="False" /> |
||||
<ClientSize value="{Width=284, Height=140}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="10" /> |
||||
<Location value="{X=16,Y=64}" /> |
||||
<MultiColumn value="True" /> |
||||
</System.Windows.Forms.ListBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="nameBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="9" /> |
||||
<Location value="{X=128,Y=5}" /> |
||||
<ClientSize value="{Width=188, Height=17}" /> |
||||
<Text value="" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label5" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.KeywordList.ListName}" /> |
||||
<TabIndex value="8" /> |
||||
<ClientSize value="{Width=128, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addBtn" /> |
||||
<Location value="{X=141,Y=216}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Add}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="removeBtn" /> |
||||
<Location value="{X=229,Y=216}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Remove}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.KeywordList.Keywords}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=320, Height=16}" /> |
||||
<Location value="{X=0,Y=40}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=336}" /> |
||||
<ClientSize value="{Width=320, Height=104}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.KeywordList.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=288, Height=80}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=298, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=244, Height=0}" /> |
||||
<Location value="{X=64,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.KeywordList.ColorSample}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=320, Height=16}" /> |
||||
<Location value="{X=0,Y=256}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="chgBtn" /> |
||||
<Location value="{X=216,Y=288}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Change}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader7" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader6" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader5" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader9" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader10" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,139 +0,0 @@
@@ -1,139 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=408}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addBtn" /> |
||||
<Location value="{X=133,Y=240}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Add}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.ListView> |
||||
<Name value="listView" /> |
||||
<GridLines value="True" /> |
||||
<MultiSelect value="False" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<View value="Details" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=276, Height=196}" /> |
||||
<HeaderStyle value="None" /> |
||||
<HideSelection value="False" /> |
||||
<Columns> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Columns> |
||||
</System.Windows.Forms.ListView> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="removeBtn" /> |
||||
<Location value="{X=221,Y=240}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Remove}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.KeywordLists.Lists}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=280}" /> |
||||
<ClientSize value="{Width=312, Height=128}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.KeywordLists.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=104}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=294, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=240, Height=0}" /> |
||||
<Location value="{X=64,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader7" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader6" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader5" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader9" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,145 +0,0 @@
@@ -1,145 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=320, Height=440}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="checkBox" /> |
||||
<Location value="{X=0,Y=184}" /> |
||||
<ClientSize value="{Width=320, Height=16}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Marker.MarkMarker}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="12" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="sampleLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.SampleText}" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="11" /> |
||||
<ClientSize value="{Width=176, Height=40}" /> |
||||
<Location value="{X=24,Y=120}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="nameBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="9" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=284, Height=17}" /> |
||||
<Text value="" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label5" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Marker.KeyString}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="8" /> |
||||
<ClientSize value="{Width=320, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=224}" /> |
||||
<ClientSize value="{Width=320, Height=216}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Marker.ExplanationPrev}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=288, Height=192}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=294, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=240, Height=0}" /> |
||||
<Location value="{X=64,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Marker.SampleColor}" /> |
||||
<TextAlign value="BottomLeft" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=320, Height=32}" /> |
||||
<Location value="{X=0,Y=72}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="chgBtn" /> |
||||
<Location value="{X=216,Y=128}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Change}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader7" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader6" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader5" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader9" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader10" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,149 +0,0 @@
@@ -1,149 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=408}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addBtn" /> |
||||
<Location value="{X=133,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Add}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.ListView> |
||||
<Name value="listView" /> |
||||
<GridLines value="True" /> |
||||
<MultiSelect value="False" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<View value="Details" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=276, Height=140}" /> |
||||
<HeaderStyle value="Nonclickable" /> |
||||
<HideSelection value="False" /> |
||||
<Columns> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Markers.KeyString}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Columns> |
||||
</System.Windows.Forms.ListView> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="removeBtn" /> |
||||
<Location value="{X=221,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Remove}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Markers.Previous}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=232}" /> |
||||
<ClientSize value="{Width=312, Height=176}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Markers.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=152}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="labele" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=290, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=236, Height=0}" /> |
||||
<Location value="{X=64,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader7" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader6" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader5" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Markers.KeyString}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Markers.KeyString}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader9" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader10" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader11" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,80 +0,0 @@
@@ -1,80 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<ClientSize value="{Width=328, Height=288}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.DescLabel}" /> |
||||
<Anchor value="Bottom, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
<ClientSize value="{Width=312, Height=48}" /> |
||||
<Location value="{X=8,Y=232}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="copyButton" /> |
||||
<Location value="{X=8,Y=192}" /> |
||||
<ClientSize value="{Width=152, Height=24}" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.CopyButton}" /> |
||||
<Anchor value="Bottom, Left" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.ListBox> |
||||
<Name value="builtinList" /> |
||||
<IntegralHeight value="False" /> |
||||
<ClientSize value="{Width=148, Height=132}" /> |
||||
<Anchor value="Top, Bottom, Left" /> |
||||
<HorizontalScrollbar value="True" /> |
||||
<TabIndex value="2" /> |
||||
<Location value="{X=8,Y=48}" /> |
||||
</System.Windows.Forms.ListBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="builtinLabel" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.BuiltinLabel}" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=152, Height=16}" /> |
||||
<Location value="{X=8,Y=32}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="capLabel" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.CaptionLabel}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="userLabel" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.UserLabel}" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=152, Height=16}" /> |
||||
<Location value="{X=168,Y=32}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.ListBox> |
||||
<Name value="userList" /> |
||||
<IntegralHeight value="False" /> |
||||
<ClientSize value="{Width=148, Height=132}" /> |
||||
<Anchor value="Top, Bottom, Left" /> |
||||
<HorizontalScrollbar value="True" /> |
||||
<TabIndex value="2" /> |
||||
<Location value="{X=168,Y=48}" /> |
||||
</System.Windows.Forms.ListBox> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="deleteButton" /> |
||||
<Location value="{X=168,Y=192}" /> |
||||
<ClientSize value="{Width=72, Height=24}" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.DeleteButton}" /> |
||||
<Anchor value="Bottom, Left" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="modifyButton" /> |
||||
<Location value="{X=248,Y=192}" /> |
||||
<ClientSize value="{Width=72, Height=24}" /> |
||||
<Text value="${res:Dialog.Options.TextEditorOptions.EditHighlighting.ModifyButton}" /> |
||||
<Anchor value="Bottom, Left" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,119 +0,0 @@
@@ -1,119 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=408}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addBtn" /> |
||||
<Location value="{X=48,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Add}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="editBtn" /> |
||||
<Location value="{X=136,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Edit}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="6" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.ListView> |
||||
<Name value="listView" /> |
||||
<GridLines value="True" /> |
||||
<MultiSelect value="False" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<View value="Details" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=276, Height=140}" /> |
||||
<HeaderStyle value="Nonclickable" /> |
||||
<HideSelection value="False" /> |
||||
<Columns> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Columns> |
||||
</System.Windows.Forms.ListView> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="removeBtn" /> |
||||
<Location value="{X=221,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Remove}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Properties}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=232}" /> |
||||
<ClientSize value="{Width=312, Height=176}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=152}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=302, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,112 +0,0 @@
@@ -1,112 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<ClientSize value="{Width=312, Height=376}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="escCharTextBox" /> |
||||
<TabIndex value="7" /> |
||||
<MaxLength value="1" /> |
||||
<Size value="61, 20" /> |
||||
<Location value="146, 157" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label1" /> |
||||
<Location value="3, 157" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.EscChar}" /> |
||||
<Size value="137, 23" /> |
||||
<TabIndex value="6" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="igcaseBox" /> |
||||
<Location value="0, 128" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSet.IgnoreCase}" /> |
||||
<TabIndex value="5" /> |
||||
<Size value="312, 16" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="refBox" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="184, 20" /> |
||||
<Location value="128, 32" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3a" /> |
||||
<Location value="0, 35" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSet.Reference}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="nameBox" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="184, 20" /> |
||||
<Location value="128, 5" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3b" /> |
||||
<Location value="0, 8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSet.Name}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="0, 192" /> |
||||
<TabIndex value="0" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<Size value="312, 184" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Location value="16, 24" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSet.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<Size value="280, 160" /> |
||||
<TabIndex value="2" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Location value="0, 0" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<Size value="96, 16" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Location value="0, 8" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="306, 0" /> |
||||
<TabIndex value="1" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="delimBox" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="184, 20" /> |
||||
<Location value="128, 69" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3c" /> |
||||
<Location value="0, 72" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSet.Delimiters}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3d" /> |
||||
<Location value="16, 96" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSet.SpaceAndTab}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="280, 16" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,129 +0,0 @@
@@ -1,129 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=408}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addBtn" /> |
||||
<Location value="{X=133,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Add}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.ListView> |
||||
<Name value="listView" /> |
||||
<GridLines value="True" /> |
||||
<MultiSelect value="False" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<View value="Details" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=276, Height=140}" /> |
||||
<HeaderStyle value="None" /> |
||||
<HideSelection value="False" /> |
||||
<Columns> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Columns> |
||||
</System.Windows.Forms.ListView> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="removeBtn" /> |
||||
<Location value="{X=221,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Remove}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSets.NamedRuleSets}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=232}" /> |
||||
<ClientSize value="{Width=312, Height=176}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.RuleSets.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=152}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=298, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=244, Height=0}" /> |
||||
<Location value="{X=64,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader7" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader6" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader5" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,72 +0,0 @@
@@ -1,72 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=312}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="extBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="4" /> |
||||
<Location value="{X=128,Y=37}" /> |
||||
<ClientSize value="{Width=180, Height=17}" /> |
||||
<Text value="" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Scheme.Extensions}" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=128, Height=16}" /> |
||||
<Location value="{X=0,Y=40}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="nameBox" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<Location value="{X=128,Y=5}" /> |
||||
<ClientSize value="{Width=180, Height=17}" /> |
||||
<Text value="" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Scheme.Name}" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=128, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=88}" /> |
||||
<ClientSize value="{Width=312, Height=224}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Scheme.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=200}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=308, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,205 +0,0 @@
@@ -1,205 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<ClientSize value="{Width=312, Height=460}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="endSingleWordCheckBox" /> |
||||
<Cursor value="IBeam" /> |
||||
<CheckAlign value="MiddleRight" /> |
||||
<Location value="-1, 104" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.EndSingleWord}" /> |
||||
<TabIndex value="24" /> |
||||
<Size value="144, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="beginSingleWordCheckBox" /> |
||||
<CheckAlign value="MiddleRight" /> |
||||
<Location value="-1, 52" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.BeginSingleWord}" /> |
||||
<TabIndex value="23" /> |
||||
<Size value="144, 24" /> |
||||
<UseVisualStyleBackColor value="True" /> |
||||
<Cursor value="IBeam" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="escCharTextBox" /> |
||||
<TabIndex value="20" /> |
||||
<MaxLength value="1" /> |
||||
<Size value="100, 20" /> |
||||
<Location value="128, 320" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label1" /> |
||||
<Location value="0, 320" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.EscChar}" /> |
||||
<TextAlign value="MiddleLeft" /> |
||||
<Size value="128, 23" /> |
||||
<TabIndex value="19" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="chgCont" /> |
||||
<Location value="216, 261" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Change}" /> |
||||
<Size value="88, 23" /> |
||||
<TabIndex value="18" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="samCont" /> |
||||
<Location value="216, 197" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.ContCol}" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Size value="88, 40" /> |
||||
<TabIndex value="16" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="chgEnd" /> |
||||
<Location value="112, 261" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Change}" /> |
||||
<Size value="88, 23" /> |
||||
<TabIndex value="15" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useEnd" /> |
||||
<Location value="112, 237" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Use}" /> |
||||
<TabIndex value="14" /> |
||||
<Size value="88, 24" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="samEnd" /> |
||||
<Location value="112, 197" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.EndCol}" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Size value="88, 40" /> |
||||
<TabIndex value="13" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="chgBegin" /> |
||||
<Location value="8, 261" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Change}" /> |
||||
<Size value="88, 23" /> |
||||
<TabIndex value="12" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="useBegin" /> |
||||
<Location value="8, 237" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Use}" /> |
||||
<TabIndex value="11" /> |
||||
<Size value="88, 24" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="samBegin" /> |
||||
<Location value="8, 197" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.BeginCol}" /> |
||||
<TextAlign value="MiddleCenter" /> |
||||
<Size value="88, 40" /> |
||||
<TabIndex value="10" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label7" /> |
||||
<Location value="0, 165" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Colors}" /> |
||||
<Size value="280, 16" /> |
||||
<TabIndex value="9" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.ComboBox> |
||||
<Name value="ruleBox" /> |
||||
<Size value="184, 21" /> |
||||
<TabIndex value="8" /> |
||||
<Text value="comboBox" /> |
||||
<Location value="128, 130" /> |
||||
</System.Windows.Forms.ComboBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3wjej" /> |
||||
<Location value="0, 133" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Ruleset}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="6" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.CheckBox> |
||||
<Name value="stopEolBox" /> |
||||
<Location value="0, 301" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.StopEol}" /> |
||||
<TabIndex value="5" /> |
||||
<Size value="312, 16" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.CheckBox> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="beginBox" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="184, 20" /> |
||||
<Location value="128, 27" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3qgae" /> |
||||
<Location value="0, 30" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Begin}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="nameBox" /> |
||||
<TabIndex value="2" /> |
||||
<Size value="184, 20" /> |
||||
<Location value="128, 0" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3wr" /> |
||||
<Location value="0, 3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Name}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="0, 350" /> |
||||
<TabIndex value="0" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<Size value="312, 110" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Location value="16, 24" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<Size value="280, 76" /> |
||||
<TabIndex value="2" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Location value="0, 0" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<Size value="96, 16" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Location value="0, 8" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<Size value="302, 0" /> |
||||
<TabIndex value="1" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.TextBox> |
||||
<Name value="endBox" /> |
||||
<TabIndex value="4" /> |
||||
<Size value="184, 20" /> |
||||
<Location value="128, 78" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
</System.Windows.Forms.TextBox> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3b" /> |
||||
<Location value="0, 81" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Span.End}" /> |
||||
<Size value="128, 16" /> |
||||
<TabIndex value="3" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
</Components> |
@ -1,139 +0,0 @@
@@ -1,139 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.UserControl> |
||||
<Name value="highlightingOptionPanel" /> |
||||
<DockPadding value="" /> |
||||
<ClientSize value="{Width=312, Height=408}" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="addBtn" /> |
||||
<Location value="{X=133,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Add}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="7" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.ListView> |
||||
<Name value="listView" /> |
||||
<GridLines value="True" /> |
||||
<MultiSelect value="False" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="5" /> |
||||
<View value="Details" /> |
||||
<FullRowSelect value="True" /> |
||||
<Location value="{X=16,Y=32}" /> |
||||
<ClientSize value="{Width=276, Height=140}" /> |
||||
<HeaderStyle value="None" /> |
||||
<HideSelection value="False" /> |
||||
<Columns> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Columns> |
||||
</System.Windows.Forms.ListView> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="removeBtn" /> |
||||
<Location value="{X=221,Y=184}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Remove}" /> |
||||
<Anchor value="Top, Right" /> |
||||
<TabIndex value="4" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Spans.Spans}" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=312, Height=16}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=0,Y=232}" /> |
||||
<ClientSize value="{Width=312, Height=176}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="explLabel" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Spans.Explanation}" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="2" /> |
||||
<ClientSize value="{Width=280, Height=152}" /> |
||||
<Location value="{X=16,Y=24}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Explanation}" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=96, Height=16}" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label2" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=294, Height=0}" /> |
||||
<Location value="{X=0,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
<System.Windows.Forms.Label> |
||||
<Name value="label4" /> |
||||
<Anchor value="Top, Left, Right" /> |
||||
<TabIndex value="3" /> |
||||
<ClientSize value="{Width=240, Height=0}" /> |
||||
<Location value="{X=64,Y=8}" /> |
||||
<BorderStyle value="Fixed3D" /> |
||||
</System.Windows.Forms.Label> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.UserControl> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader3" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader2" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader7" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="150" /> |
||||
<Name value="columnHeader6" /> |
||||
<Text value="(Name)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="100" /> |
||||
<Name value="columnHeader5" /> |
||||
<Text value="(Sample)" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader4" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Value}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="130" /> |
||||
<Name value="columnHeader8" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
<System.Windows.Forms.ColumnHeader> |
||||
<Width value="250" /> |
||||
<Name value="columnHeader9" /> |
||||
<Text value="${res:Dialog.HighlightingEditor.Properties.Name}" /> |
||||
</System.Windows.Forms.ColumnHeader> |
||||
</Components> |
@ -1,117 +0,0 @@
@@ -1,117 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui |
||||
{ |
||||
|
||||
public class ColorButton : Button |
||||
{ |
||||
Color centerColor; |
||||
|
||||
public ColorButton() |
||||
{ |
||||
} |
||||
|
||||
public Color CenterColor |
||||
{ |
||||
get { return centerColor; } |
||||
set { centerColor = value; } |
||||
} |
||||
|
||||
protected override void OnMouseEnter(EventArgs e) |
||||
{ |
||||
base.OnMouseEnter(e); |
||||
Invalidate(); |
||||
} |
||||
|
||||
protected override void OnMouseLeave(EventArgs e) |
||||
{ |
||||
base.OnMouseLeave(e); |
||||
Invalidate(); |
||||
} |
||||
|
||||
protected override void OnMouseUp(MouseEventArgs e) |
||||
{ |
||||
base.OnMouseUp(e); |
||||
Invalidate(); |
||||
} |
||||
|
||||
protected override void OnEnabledChanged(EventArgs e) |
||||
{ |
||||
base.OnEnabledChanged(e); |
||||
Invalidate(); |
||||
} |
||||
|
||||
protected override void OnClick(EventArgs e) |
||||
{ |
||||
base.OnClick(e); |
||||
|
||||
Point p = new Point(0, Height); |
||||
p = PointToScreen(p); |
||||
|
||||
using (ColorPaletteDialog clDlg = new ColorPaletteDialog(p.X, p.Y)) { |
||||
clDlg.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window); |
||||
if (clDlg.DialogResult == DialogResult.OK) { |
||||
CenterColor = clDlg.Color; |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
protected override void OnPaint(PaintEventArgs e) |
||||
{ |
||||
base.OnPaint(e); |
||||
|
||||
Graphics g = e.Graphics; |
||||
|
||||
Rectangle r = ClientRectangle; |
||||
|
||||
byte border = 4; |
||||
byte right_border = 15; |
||||
|
||||
Rectangle rc = new Rectangle(r.Left + border, r.Top + border, |
||||
r.Width - border - right_border - 1, r.Height - border * 2 - 1); |
||||
|
||||
SolidBrush centerColorBrush = new SolidBrush( centerColor ); |
||||
g.FillRectangle(centerColorBrush, rc); |
||||
|
||||
Pen pen = Pens.Black; |
||||
g.DrawRectangle(pen, rc); |
||||
|
||||
Pen greyPen = new Pen(SystemColors.ControlDark); |
||||
|
||||
//draw the arrow
|
||||
Point p1 = new Point(r.Width - 9, r.Height / 2 - 1); |
||||
Point p2 = new Point(r.Width - 5, r.Height / 2 - 1); |
||||
g.DrawLine(Enabled ? pen : greyPen, p1, p2); |
||||
|
||||
p1 = new Point(r.Width - 8, r.Height / 2); |
||||
p2 = new Point(r.Width - 6, r.Height / 2); |
||||
g.DrawLine(Enabled ? pen : greyPen, p1, p2); |
||||
|
||||
p1 = new Point(r.Width - 7, r.Height / 2); |
||||
p2 = new Point(r.Width - 7, r.Height / 2 + 1); |
||||
g.DrawLine(Enabled ? pen : greyPen, p1, p2); |
||||
|
||||
//draw the divider line
|
||||
pen = new Pen(SystemColors.ControlDark); |
||||
p1 = new Point(r.Width - 12, 4); |
||||
p2 = new Point(r.Width - 12, r.Height - 5 ); |
||||
g.DrawLine(pen, p1, p2); |
||||
|
||||
pen = new Pen(SystemColors.ControlLightLight); |
||||
p1 = new Point(r.Width - 11, 4); |
||||
p2 = new Point(r.Width - 11, r.Height - 5 ); |
||||
g.DrawLine(pen, p1, p2); |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,211 +0,0 @@
@@ -1,211 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui |
||||
{ |
||||
|
||||
public class ColorPaletteDialog : Form |
||||
{ |
||||
byte max = 40; |
||||
ColorPanel[] panel = new ColorPanel[40]; |
||||
|
||||
Color[] color = new Color[40] |
||||
{ |
||||
//row 1
|
||||
Color.FromArgb(0,0,0), Color.FromArgb(153,51,0), Color.FromArgb(51,51,0), Color.FromArgb(0,51,0), |
||||
Color.FromArgb(0,51,102), Color.FromArgb(0,0,128), Color.FromArgb(51,51,153), Color.FromArgb(51,51,51), |
||||
|
||||
//row 2
|
||||
Color.FromArgb(128,0,0), Color.FromArgb(255,102,0), Color.FromArgb(128,128,0), Color.FromArgb(0,128,0), |
||||
Color.FromArgb(0,128,128), Color.FromArgb(0,0,255), Color.FromArgb(102,102,153), Color.FromArgb(128,128,128), |
||||
|
||||
//row 3
|
||||
Color.FromArgb(255,0,0), Color.FromArgb(255,153,0), Color.FromArgb(153,204,0), Color.FromArgb(51,153,102), |
||||
Color.FromArgb(51,204,204), Color.FromArgb(51,102,255), Color.FromArgb(128,0,128), Color.FromArgb(153,153,153), |
||||
|
||||
//row 4
|
||||
Color.FromArgb(255,0,255), Color.FromArgb(255,204,0), Color.FromArgb(255,255,0), Color.FromArgb(0,255,0), |
||||
Color.FromArgb(0,255,255), Color.FromArgb(0,204,255), Color.FromArgb(153,51,102), Color.FromArgb(192,192,192), |
||||
|
||||
//row 5
|
||||
Color.FromArgb(255,153,204), Color.FromArgb(255,204,153), Color.FromArgb(255,255,153), Color.FromArgb(204,255,204), |
||||
Color.FromArgb(204,255,255), Color.FromArgb(153,204,255), Color.FromArgb(204,153,255), Color.FromArgb(255,255,255) |
||||
}; |
||||
|
||||
string[] colorName = new string[40] |
||||
{ |
||||
"Black", "Brown", "Olive Green", "Dark Green", "Dark Teal", "Dark Blue", "Indigo", "Gray-80%", |
||||
"Dark Red", "Orange", "Dark Yellow", "Green", "Teal", "Blue", "Blue-Gray", "Gray-50%", |
||||
"Red", "Light Orange", "Lime", "Sea Green", "Aqua", "Light Blue", "Violet", "Gray-40%", |
||||
"Pink", "Gold", "Yellow", "Bright Green", "Turquoise", "Sky Blue", "Plum", "Gray-25%", |
||||
"Rose", "Tan", "Light Yellow", "Light Green", "Light Turquoise", "Pale Blue", "Lavender", "White" |
||||
}; |
||||
|
||||
Button moreColorsButton = new Button(); |
||||
Button cancelButton = new Button(); |
||||
Color selectedColor; |
||||
|
||||
public ColorPaletteDialog(int x, int y) |
||||
{ |
||||
Size = new Size(158, 158); |
||||
FormBorderStyle = FormBorderStyle.FixedDialog; |
||||
MinimizeBox = MaximizeBox = ControlBox = false; |
||||
ShowInTaskbar = false; |
||||
CenterToScreen(); |
||||
Location = new Point(x, y); |
||||
|
||||
BuildPalette(); |
||||
|
||||
moreColorsButton.Text = "More colors ..."; |
||||
moreColorsButton.Size = new Size(142, 22); |
||||
moreColorsButton.Location = new Point(5, 99); |
||||
moreColorsButton.Click += new EventHandler(moreColorsButton_Click); |
||||
moreColorsButton.FlatStyle = FlatStyle.Popup; |
||||
Controls.Add(moreColorsButton); |
||||
|
||||
//"invisible" button to cancel at Escape
|
||||
cancelButton.Text = "Cancel"; |
||||
cancelButton.Size = new Size(142, 22); |
||||
cancelButton.Location = new Point(5, 125); |
||||
cancelButton.FlatStyle = FlatStyle.Popup; |
||||
cancelButton.Click += new EventHandler(cancelButton_Click); |
||||
Controls.Add(cancelButton); |
||||
cancelButton.DialogResult = DialogResult.Cancel; |
||||
this.CancelButton = cancelButton; |
||||
|
||||
moreColorsButton.TabIndex = 0; |
||||
} |
||||
|
||||
public Color Color |
||||
{ |
||||
get { return selectedColor; } |
||||
} |
||||
|
||||
void BuildPalette() |
||||
{ |
||||
byte pwidth = 16; |
||||
byte pheight = 16; |
||||
byte pdistance = 2; |
||||
byte border = 5; |
||||
int x = border, y = border; |
||||
ToolTip toolTip = new ToolTip(); |
||||
|
||||
for(int i = 0; i < max; i++) |
||||
{ |
||||
panel[i] = new ColorPanel(); |
||||
panel[i].Height = pwidth; |
||||
panel[i].Width = pheight; |
||||
panel[i].Location = new Point(x, y); |
||||
toolTip.SetToolTip(panel[i], colorName[i]); |
||||
|
||||
this.Controls.Add(panel[i]); |
||||
|
||||
if(x < ( 7 * (pwidth + pdistance))) |
||||
x += pwidth + pdistance; |
||||
else |
||||
{ |
||||
x = border; |
||||
y += pheight + pdistance; |
||||
} |
||||
|
||||
panel[i].BackColor = color[i]; |
||||
panel[i].MouseUp += new MouseEventHandler(OnPanelMouseUp); |
||||
} |
||||
} |
||||
|
||||
void OnPanelMouseUp(object sender, MouseEventArgs e) |
||||
{ |
||||
Panel panel = (Panel)sender; |
||||
selectedColor = panel.BackColor; |
||||
DialogResult = DialogResult.OK; |
||||
Close(); |
||||
} |
||||
|
||||
void moreColorsButton_Click(object sender, System.EventArgs e) |
||||
{ |
||||
using (ColorDialog colDialog = new ColorDialog()) { |
||||
colDialog.FullOpen = true; |
||||
if (colDialog.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window) == DialogResult.OK) { |
||||
selectedColor = colDialog.Color; |
||||
DialogResult = DialogResult.OK; |
||||
} |
||||
} |
||||
|
||||
Close(); |
||||
} |
||||
|
||||
void cancelButton_Click(object sender, System.EventArgs e) |
||||
{ |
||||
Close(); |
||||
} |
||||
|
||||
internal class ColorPanel : Panel |
||||
{ |
||||
protected override void OnMouseEnter(EventArgs e) |
||||
{ |
||||
base.OnMouseEnter(e); |
||||
Draw(1, CreateGraphics()); |
||||
} |
||||
|
||||
protected override void OnMouseLeave(EventArgs e) |
||||
{ |
||||
base.OnMouseLeave(e); |
||||
Draw(0, CreateGraphics()); |
||||
} |
||||
|
||||
protected override void OnMouseDown(MouseEventArgs e) |
||||
{ |
||||
base.OnMouseDown(e); |
||||
Draw(2, CreateGraphics()); |
||||
} |
||||
|
||||
protected override void OnPaint(PaintEventArgs e) |
||||
{ |
||||
Draw(0, e.Graphics); |
||||
} |
||||
|
||||
void Draw(byte state, Graphics g) |
||||
{ |
||||
Pen pen1, pen2; |
||||
|
||||
if(state == 1) //mouse over
|
||||
{ |
||||
pen1 = new Pen( SystemColors.ControlLightLight ); |
||||
pen2 = new Pen( SystemColors. ControlDarkDark); |
||||
} |
||||
else if(state == 2) //clicked
|
||||
{ |
||||
pen1 = new Pen( SystemColors.ControlDarkDark ); |
||||
pen2 = new Pen( SystemColors.ControlLightLight ); |
||||
} |
||||
else //neutral
|
||||
{ |
||||
pen1 = new Pen( SystemColors.ControlDark ); |
||||
pen2 = new Pen( SystemColors.ControlDark ); |
||||
|
||||
} |
||||
|
||||
Rectangle r = ClientRectangle; |
||||
Point p1 = new Point( r.Left, r.Top ); //top left
|
||||
Point p2 = new Point( r.Right -1, r.Top ); //top right
|
||||
Point p3 = new Point( r.Left, r.Bottom -1 ); //bottom left
|
||||
Point p4 = new Point( r.Right -1, r.Bottom -1 ); //bottom right
|
||||
|
||||
g.DrawLine( pen1, p1, p2 ); |
||||
g.DrawLine( pen1, p1, p3 ); |
||||
g.DrawLine( pen2, p2, p4 ); |
||||
g.DrawLine( pen2, p3, p4 ); |
||||
} |
||||
|
||||
} |
||||
} |
||||
|
||||
} |
@ -1,172 +0,0 @@
@@ -1,172 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Reflection; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes; |
||||
using ICSharpCode.SharpDevelop.Gui.XmlForms; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui { |
||||
|
||||
public class EditHighlightingColorDialog : BaseSharpDevelopForm |
||||
{ |
||||
private System.Windows.Forms.RadioButton foreNo; |
||||
private System.Windows.Forms.RadioButton foreUser; |
||||
private ICSharpCode.SharpDevelop.Gui.ColorButton backBtn; |
||||
private System.Windows.Forms.RadioButton backSys; |
||||
private System.Windows.Forms.Button acceptBtn; |
||||
private ICSharpCode.SharpDevelop.Gui.ColorButton foreBtn; |
||||
private System.Windows.Forms.RadioButton backNo; |
||||
private System.Windows.Forms.ComboBox foreList; |
||||
private System.Windows.Forms.CheckBox italicBox; |
||||
private System.Windows.Forms.RadioButton foreSys; |
||||
private System.Windows.Forms.RadioButton backUser; |
||||
private System.Windows.Forms.CheckBox boldBox; |
||||
private System.Windows.Forms.ComboBox backList; |
||||
|
||||
public EditorHighlightColor Color; |
||||
|
||||
public EditHighlightingColorDialog(EditorHighlightColor color) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.ColorDialog.xfrm")); |
||||
|
||||
if (color == null) { |
||||
color = new EditorHighlightColor(true); |
||||
} |
||||
Color = color; |
||||
|
||||
boldBox = (CheckBox)ControlDictionary["boldBox"]; |
||||
italicBox = (CheckBox)ControlDictionary["italicBox"]; |
||||
|
||||
foreNo = (RadioButton)ControlDictionary["foreNo"]; |
||||
foreUser = (RadioButton)ControlDictionary["foreUser"]; |
||||
foreSys = (RadioButton)ControlDictionary["foreSys"]; |
||||
foreList = (ComboBox)ControlDictionary["foreList"]; |
||||
|
||||
backNo = (RadioButton)ControlDictionary["backNo"]; |
||||
backUser = (RadioButton)ControlDictionary["backUser"]; |
||||
backSys = (RadioButton)ControlDictionary["backSys"]; |
||||
backList = (ComboBox)ControlDictionary["backList"]; |
||||
|
||||
acceptBtn = (Button)ControlDictionary["acceptBtn"]; |
||||
|
||||
this.foreBtn = new ColorButton(); |
||||
this.foreBtn.CenterColor = System.Drawing.Color.Empty; |
||||
this.foreBtn.Enabled = false; |
||||
this.foreBtn.Location = new System.Drawing.Point(30, 78); |
||||
this.foreBtn.Name = "foreBtn"; |
||||
this.foreBtn.Size = new System.Drawing.Size(98, 24); |
||||
|
||||
this.ControlDictionary["foreBox"].Controls.Add(foreBtn); |
||||
|
||||
this.backBtn = new ColorButton(); |
||||
this.backBtn.CenterColor = System.Drawing.Color.Empty; |
||||
this.backBtn.Enabled = false; |
||||
this.backBtn.Location = new System.Drawing.Point(30, 78); |
||||
this.backBtn.Name = "backBtn"; |
||||
this.backBtn.Size = new System.Drawing.Size(98, 24); |
||||
|
||||
this.ControlDictionary["backBox"].Controls.Add(backBtn); |
||||
|
||||
this.acceptBtn.Click += new EventHandler(AcceptClick); |
||||
this.foreNo.CheckedChanged += new EventHandler(foreCheck); |
||||
this.foreSys.CheckedChanged += new EventHandler(foreCheck); |
||||
this.foreUser.CheckedChanged += new EventHandler(foreCheck); |
||||
this.backNo.CheckedChanged += new EventHandler(backCheck); |
||||
this.backSys.CheckedChanged += new EventHandler(backCheck); |
||||
this.backUser.CheckedChanged += new EventHandler(backCheck); |
||||
|
||||
PropertyInfo[] names = typeof(System.Drawing.SystemColors).GetProperties(BindingFlags.Static | BindingFlags.Public); |
||||
|
||||
foreach(PropertyInfo info in names) { |
||||
foreList.Items.Add(info.Name); |
||||
backList.Items.Add(info.Name); |
||||
} |
||||
foreList.SelectedIndex = backList.SelectedIndex = 0; |
||||
|
||||
if (color.SysForeColor) { |
||||
foreSys.Checked = true; |
||||
for (int i = 0; i < foreList.Items.Count; ++i) { |
||||
if ((string)foreList.Items[i] == color.SysForeColorName) foreList.SelectedIndex = i; |
||||
} |
||||
} else if (color.HasForeColor) { |
||||
foreUser.Checked = true; |
||||
foreBtn.CenterColor = color.ForeColor; |
||||
} else { |
||||
foreNo.Checked = true; |
||||
} |
||||
|
||||
if (color.SysBackColor) { |
||||
backSys.Checked = true; |
||||
for (int i = 0; i < backList.Items.Count; ++i) { |
||||
if ((string)backList.Items[i] == color.SysForeColorName) backList.SelectedIndex = i; |
||||
} |
||||
} else if (color.HasBackColor) { |
||||
backUser.Checked = true; |
||||
backBtn.CenterColor = color.BackColor; |
||||
} else { |
||||
backNo.Checked = true; |
||||
} |
||||
|
||||
boldBox.Checked = color.Bold; |
||||
italicBox.Checked = color.Italic; |
||||
} |
||||
|
||||
void foreCheck(object sender, EventArgs e) |
||||
{ |
||||
if (foreNo.Checked) { |
||||
foreBtn.Enabled = false; |
||||
foreList.Enabled = false; |
||||
} else if (foreUser.Checked) { |
||||
foreBtn.Enabled = true; |
||||
foreList.Enabled = false; |
||||
} else if (foreSys.Checked) { |
||||
foreBtn.Enabled = false; |
||||
foreList.Enabled = true; |
||||
} |
||||
} |
||||
|
||||
void backCheck(object sender, EventArgs e) |
||||
{ |
||||
if (backNo.Checked) { |
||||
backBtn.Enabled = false; |
||||
backList.Enabled = false; |
||||
} else if (backUser.Checked) { |
||||
backBtn.Enabled = true; |
||||
backList.Enabled = false; |
||||
} else if (backSys.Checked) { |
||||
backBtn.Enabled = false; |
||||
backList.Enabled = true; |
||||
} |
||||
} |
||||
|
||||
void AcceptClick(object sender, EventArgs e) |
||||
{ |
||||
object foreColor = null; |
||||
object backColor = null; |
||||
|
||||
if (foreUser.Checked) { |
||||
foreColor = (System.Drawing.Color)foreBtn.CenterColor; |
||||
} else if (foreSys.Checked) { |
||||
foreColor = (string)foreList.SelectedItem; |
||||
} |
||||
|
||||
if (backUser.Checked) { |
||||
backColor = (System.Drawing.Color)backBtn.CenterColor; |
||||
} else if (backSys.Checked) { |
||||
backColor = (string)backList.SelectedItem; |
||||
} |
||||
|
||||
Color = new EditorHighlightColor(foreColor, backColor, boldBox.Checked, italicBox.Checked); |
||||
|
||||
DialogResult = DialogResult.OK; |
||||
} |
||||
|
||||
} |
||||
} |
@ -1,145 +0,0 @@
@@ -1,145 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Drawing.Drawing2D; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes; |
||||
using ICSharpCode.SharpDevelop.Gui.XmlForms; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui |
||||
{ |
||||
public class EditHighlightingDialog : BaseSharpDevelopForm |
||||
{ |
||||
private System.Windows.Forms.Button acceptBtn; |
||||
private System.Windows.Forms.Panel propPanel; |
||||
private System.Windows.Forms.Panel optionPanel; |
||||
private System.Windows.Forms.TreeView nodeTree; |
||||
|
||||
private GradientLabel gradientLabel = new GradientLabel(); |
||||
private Label bottomLabel = new Label(); |
||||
|
||||
public EditHighlightingDialog(TreeNode topNode) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.EditDialog.xfrm")); |
||||
acceptBtn = (Button)ControlDictionary["acceptBtn"]; |
||||
nodeTree = (TreeView)ControlDictionary["nodeTree"]; |
||||
propPanel = (Panel)ControlDictionary["propPanel"]; |
||||
optionPanel = (Panel)ControlDictionary["optionPanel"]; |
||||
|
||||
// Form editor does not work properly with the custom control
|
||||
this.gradientLabel.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; |
||||
this.gradientLabel.BorderStyle = BorderStyle.Fixed3D; |
||||
this.gradientLabel.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); |
||||
this.gradientLabel.Location = new System.Drawing.Point(0, 0); |
||||
this.gradientLabel.Size = new System.Drawing.Size(propPanel.Width, 30); |
||||
this.gradientLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; |
||||
this.propPanel.Controls.Add(gradientLabel); |
||||
|
||||
this.bottomLabel.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; |
||||
this.bottomLabel.BorderStyle = BorderStyle.Fixed3D; |
||||
this.bottomLabel.Location = new System.Drawing.Point(0, propPanel.Height - 2); |
||||
this.bottomLabel.Size = new System.Drawing.Size(propPanel.Width, 2); |
||||
this.propPanel.Controls.Add(bottomLabel); |
||||
|
||||
this.ClientSize = new Size(660, 530); |
||||
this.acceptBtn.Click += new EventHandler(acceptClick); |
||||
ControlDictionary["cancelBtn"].Click += new EventHandler(cancelClick); |
||||
|
||||
this.nodeTree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.NodeTreeAfterSelect); |
||||
this.nodeTree.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.NodeTreeBeforeSelect); |
||||
|
||||
nodeTree.Nodes.Add(topNode); |
||||
nodeTree.ExpandAll(); |
||||
|
||||
nodeTree.SelectedNode = topNode; |
||||
} |
||||
|
||||
protected override void Dispose(bool disposing) |
||||
{ |
||||
if (disposing) { |
||||
nodeTree.Nodes.Clear(); |
||||
optionPanel.Controls.Clear(); |
||||
} |
||||
base.Dispose(disposing); |
||||
} |
||||
|
||||
void cancelClick(object sender, EventArgs e) |
||||
{ |
||||
if (currentPanel != null) { |
||||
currentPanel.ParentNode.UpdateNodeText(); |
||||
optionPanel.Controls.Clear(); |
||||
} |
||||
nodeTree.Nodes.Clear(); |
||||
DialogResult = DialogResult.Cancel; |
||||
} |
||||
|
||||
void acceptClick(object sender, EventArgs e) |
||||
{ |
||||
if (currentPanel != null) { |
||||
if (!currentPanel.ValidateSettings()) { |
||||
return; |
||||
} |
||||
currentPanel.StoreSettings(); |
||||
currentPanel.ParentNode.UpdateNodeText(); |
||||
optionPanel.Controls.Clear(); |
||||
} |
||||
nodeTree.Nodes.Clear(); |
||||
DialogResult = DialogResult.OK; |
||||
} |
||||
|
||||
public class GradientLabel : Label |
||||
{ |
||||
protected override void OnPaintBackground(PaintEventArgs pe) |
||||
{ |
||||
// base.OnPaintBackground(pe);
|
||||
Graphics g = pe.Graphics; |
||||
g.FillRectangle(new LinearGradientBrush(new Point(0, 0), new Point(Width, Height), |
||||
SystemColors.ControlLightLight, |
||||
SystemColors.Control), |
||||
new Rectangle(0, 0, Width, Height)); |
||||
} |
||||
|
||||
public GradientLabel() |
||||
{ |
||||
UseMnemonic = false; |
||||
} |
||||
} |
||||
|
||||
private NodeOptionPanel currentPanel; |
||||
|
||||
void NodeTreeBeforeSelect(object sender, TreeViewCancelEventArgs e) |
||||
{ |
||||
if (currentPanel != null) { |
||||
if (!currentPanel.ValidateSettings()) { |
||||
e.Cancel = true; |
||||
return; |
||||
} |
||||
} |
||||
} |
||||
|
||||
void NodeTreeAfterSelect(object sender, TreeViewEventArgs e) |
||||
{ |
||||
if (currentPanel != null) { |
||||
currentPanel.StoreSettings(); |
||||
currentPanel.ParentNode.UpdateNodeText(); |
||||
} |
||||
|
||||
optionPanel.Controls.Clear(); |
||||
NodeOptionPanel control = ((AbstractNode)e.Node).OptionPanel; |
||||
if (control != null) { |
||||
optionPanel.Controls.Add(control); |
||||
currentPanel = control; |
||||
currentPanel.LoadSettings(); |
||||
} |
||||
|
||||
gradientLabel.Text = " " + e.Node.Text; |
||||
} |
||||
} |
||||
} |
@ -1,316 +0,0 @@
@@ -1,316 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
using System.Xml.Schema; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes; |
||||
using ICSharpCode.TextEditor.Document; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui.OptionPanels |
||||
{ |
||||
class EditHighlightingPanel : AbstractOptionPanel { |
||||
Label builtinLabel; |
||||
ListBox builtinList; |
||||
Button copyButton; |
||||
Label userLabel; |
||||
ListBox userList; |
||||
Button deleteButton; |
||||
Button modifyButton; |
||||
|
||||
public override bool StorePanelContents() |
||||
{ |
||||
ICSharpCode.TextEditor.Document.HighlightingManager.Manager.ReloadSyntaxModes(); |
||||
return true; |
||||
} |
||||
|
||||
public EditHighlightingPanel() { |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.OptionPanel.xfrm")); |
||||
InitializeComponent(); |
||||
} |
||||
|
||||
public override void LoadPanelContents() |
||||
{ |
||||
FillLists(); |
||||
} |
||||
|
||||
void InitializeComponent() { |
||||
builtinLabel = (Label)ControlDictionary["builtinLabel"]; |
||||
builtinList = (ListBox)ControlDictionary["builtinList"]; |
||||
builtinList.SelectedIndexChanged += new EventHandler(BuiltinListSelectedIndexChanged); |
||||
|
||||
copyButton = (Button)ControlDictionary["copyButton"]; |
||||
copyButton.Click += new EventHandler(CopyButtonClick); |
||||
|
||||
userLabel = (Label)ControlDictionary["userLabel"]; |
||||
userList = (ListBox)ControlDictionary["userList"]; |
||||
|
||||
deleteButton = (Button)ControlDictionary["deleteButton"]; |
||||
deleteButton.Click += new EventHandler(DeleteButtonClick); |
||||
|
||||
modifyButton = (Button)ControlDictionary["modifyButton"]; |
||||
modifyButton.Click += new EventHandler(ModifyButtonClick); |
||||
|
||||
} |
||||
|
||||
void BuiltinListSelectedIndexChanged(object sender, EventArgs e) |
||||
{ |
||||
if (builtinList.SelectedIndex == -1) { |
||||
copyButton.Enabled = false; |
||||
return; |
||||
} |
||||
HighlightItem item = (HighlightItem)builtinList.SelectedItem; |
||||
string filename = item.FileName; |
||||
if (filename == null) { |
||||
filename = item.SyntaxMode.FileName; |
||||
} |
||||
|
||||
string newname = Path.GetFileName(filename); |
||||
foreach (HighlightItem item2 in userList.Items) { |
||||
if (Path.GetFileName(item2.FileName) == newname) { |
||||
copyButton.Enabled = false; |
||||
return; |
||||
} |
||||
} |
||||
copyButton.Enabled = true; |
||||
} |
||||
|
||||
protected override void OnResize(System.EventArgs ev) |
||||
{ |
||||
int halfWidth = (Width - 24) / 2; |
||||
|
||||
builtinLabel.Width = userLabel.Width = halfWidth; |
||||
builtinList.Width = userList.Width = halfWidth; |
||||
|
||||
userLabel.Left = userList.Left = halfWidth + 16; |
||||
deleteButton.Left = userList.Left; |
||||
modifyButton.Left = deleteButton.Left + 90; |
||||
|
||||
base.OnResize(ev); |
||||
} |
||||
|
||||
void FillLists() |
||||
{ |
||||
builtinList.Items.Clear(); |
||||
userList.Items.Clear(); |
||||
|
||||
string uPath = Path.Combine(PropertyService.ConfigDirectory, "modes"); |
||||
|
||||
List<string> uCol; |
||||
|
||||
if (Directory.Exists(uPath)) { |
||||
uCol = FileUtility.SearchDirectory(uPath, "*.xshd", true); |
||||
} else { |
||||
Directory.CreateDirectory(uPath); |
||||
uCol = new List<string>(); |
||||
} |
||||
|
||||
foreach(string str in uCol) { |
||||
SchemeNode node = LoadFile(new XmlTextReader(str), true, Path.GetFileNameWithoutExtension(str)); |
||||
if (node == null) continue; |
||||
userList.Items.Add(new HighlightItem(null, str, node)); |
||||
} |
||||
|
||||
ISyntaxModeFileProvider modeProvider; |
||||
modeProvider = new ResourceSyntaxModeProvider(); |
||||
|
||||
foreach(SyntaxMode mode in modeProvider.SyntaxModes) { |
||||
SchemeNode node = LoadFile(modeProvider.GetSyntaxModeFile(mode), false, mode.Name); |
||||
if (node == null) continue; |
||||
builtinList.Items.Add(new HighlightItem(mode, null, node)); |
||||
} |
||||
|
||||
modeProvider = new ICSharpCode.SharpDevelop.DefaultEditor.Codons.AddInTreeSyntaxModeProvider(); |
||||
|
||||
foreach(SyntaxMode mode in modeProvider.SyntaxModes) { |
||||
SchemeNode node = LoadFile(modeProvider.GetSyntaxModeFile(mode), false, mode.Name); |
||||
if (node == null) continue; |
||||
builtinList.Items.Add(new HighlightItem(mode, null, node)); |
||||
} |
||||
|
||||
if (builtinList.Items.Count > 0) |
||||
builtinList.SelectedIndex = 0; |
||||
|
||||
if (userList.Items.Count > 0) |
||||
userList.SelectedIndex = 0; |
||||
} |
||||
|
||||
void CopyButtonClick(object sender, EventArgs ev) |
||||
{ |
||||
if (builtinList.SelectedIndex == -1) return; |
||||
|
||||
try { |
||||
HighlightItem item = (HighlightItem)builtinList.SelectedItem; |
||||
|
||||
string filename = item.FileName; |
||||
if (filename == null) filename = item.SyntaxMode.FileName; |
||||
|
||||
string newname = Path.GetFileName(filename); |
||||
newname = Path.Combine(PropertyService.ConfigDirectory, "modes" + |
||||
Path.DirectorySeparatorChar + newname); |
||||
|
||||
using (StreamWriter fs = File.CreateText(newname)) { |
||||
fs.Write(item.Node.Content); |
||||
} |
||||
|
||||
SchemeNode newNode = LoadFile(new XmlTextReader(newname), true, Path.GetFileNameWithoutExtension(newname)); |
||||
if (newNode == null) throw new Exception(); |
||||
|
||||
userList.Items.Add(new HighlightItem(null, newname, newNode)); |
||||
} catch (Exception e) { |
||||
MessageService.ShowError(e, "${res:Dialog.Options.TextEditorOptions.EditHighlighting.CopyError}"); |
||||
} |
||||
BuiltinListSelectedIndexChanged(this, EventArgs.Empty); |
||||
} |
||||
|
||||
void ModifyButtonClick(object sender, EventArgs ev) |
||||
{ |
||||
if (userList.SelectedIndex == -1) { |
||||
return; |
||||
} |
||||
|
||||
HighlightItem item = (HighlightItem)userList.SelectedItem; |
||||
|
||||
using (EditHighlightingDialog dlg = new EditHighlightingDialog(item.Node)) { |
||||
DialogResult res = dlg.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window); |
||||
|
||||
if (res == DialogResult.OK) { |
||||
using (XmlTextWriter writer = new XmlTextWriter(item.FileName, Encoding.UTF8)) { |
||||
writer.Formatting = Formatting.Indented; |
||||
writer.IndentChar = '\t'; |
||||
writer.Indentation = 1; |
||||
writer.WriteStartDocument(); |
||||
item.Node.WriteXml(writer); |
||||
writer.WriteEndDocument(); |
||||
} |
||||
// refresh item text
|
||||
userList.Items.RemoveAt(userList.SelectedIndex); |
||||
userList.Items.Add(item); |
||||
} |
||||
|
||||
try { |
||||
item.Node.Remove(); |
||||
} catch {} |
||||
|
||||
} |
||||
} |
||||
|
||||
void DeleteButtonClick(object sender, EventArgs ev) |
||||
{ |
||||
if (userList.SelectedIndex == -1) return; |
||||
HighlightItem item = (HighlightItem)userList.SelectedItem; |
||||
|
||||
if (!MessageService.AskQuestion("${res:Dialog.Options.TextEditorOptions.EditHighlighting.DeleteConfirm}")) return; |
||||
|
||||
try { |
||||
File.Delete(item.FileName); |
||||
} catch (Exception e) { |
||||
MessageService.ShowError(e, "${res:Dialog.Options.TextEditorOptions.EditHighlighting.DeleteError}"); |
||||
} |
||||
userList.Items.RemoveAt(userList.SelectedIndex); |
||||
BuiltinListSelectedIndexChanged(this, EventArgs.Empty); |
||||
} |
||||
|
||||
List<ValidationEventArgs> errors = new List<ValidationEventArgs>(); |
||||
|
||||
private SchemeNode LoadFile(XmlTextReader reader, bool userList, string name) |
||||
{ |
||||
if (reader == null) |
||||
return null; |
||||
errors.Clear(); |
||||
try { |
||||
XmlValidatingReader validatingReader = new XmlValidatingReader(reader); |
||||
Stream schemaStream = typeof(SyntaxMode).Assembly.GetManifestResourceStream("ICSharpCode.TextEditor.Resources.Mode.xsd"); |
||||
validatingReader.Schemas.Add("", new XmlTextReader(schemaStream)); |
||||
validatingReader.ValidationType = ValidationType.Schema; |
||||
validatingReader.ValidationEventHandler += new ValidationEventHandler(ValidationHandler); |
||||
|
||||
XmlDocument doc = new XmlDocument(); |
||||
doc.Load(validatingReader); |
||||
|
||||
if (errors.Count != 0) { |
||||
ReportErrors(name); |
||||
return null; |
||||
} else { |
||||
return new SchemeNode(doc.DocumentElement, userList); |
||||
} |
||||
} catch (Exception e) { |
||||
|
||||
MessageService.ShowError(e, name + ": ${res:Dialog.Options.TextEditorOptions.EditHighlighting.LoadError}"); |
||||
return null; |
||||
} finally { |
||||
reader.Close(); |
||||
} |
||||
|
||||
} |
||||
|
||||
private void ValidationHandler(object sender, ValidationEventArgs args) |
||||
{ |
||||
errors.Add(args); |
||||
} |
||||
|
||||
private void ReportErrors(string name) |
||||
{ |
||||
StringBuilder msg = new StringBuilder(); |
||||
msg.Append(name); |
||||
msg.Append(": "); |
||||
msg.Append(ResourceService.GetString("Dialog.Options.TextEditorOptions.EditHighlighting.LoadError") + "\n\n"); |
||||
foreach(ValidationEventArgs args in errors) { |
||||
msg.AppendLine(args.Message); |
||||
} |
||||
|
||||
MessageService.ShowWarning(msg.ToString()); |
||||
} |
||||
|
||||
internal class HighlightItem |
||||
{ |
||||
string fileName; |
||||
SyntaxMode syntaxMode; |
||||
SchemeNode node; |
||||
|
||||
public HighlightItem(SyntaxMode mode, string filename, SchemeNode Node) |
||||
{ |
||||
syntaxMode = mode; |
||||
fileName = filename; |
||||
node = Node; |
||||
} |
||||
|
||||
public string FileName { |
||||
get { |
||||
return fileName; |
||||
} |
||||
} |
||||
|
||||
public SyntaxMode SyntaxMode { |
||||
get { |
||||
return syntaxMode; |
||||
} |
||||
} |
||||
|
||||
public SchemeNode Node { |
||||
get { |
||||
return node; |
||||
} |
||||
} |
||||
|
||||
public override string ToString() |
||||
{ |
||||
try { |
||||
return syntaxMode.Name + " (" + String.Join(", ", node.Extensions) + ")"; |
||||
} catch { |
||||
return fileName; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,293 +0,0 @@
@@ -1,293 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections; |
||||
using System.Drawing; |
||||
using System.Globalization; |
||||
using System.Reflection; |
||||
using System.Xml; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
public class EditorHighlightColor |
||||
{ |
||||
bool hasForeColor = false; |
||||
bool hasBackColor = false; |
||||
|
||||
Color foreColor; |
||||
bool sysForeColor = false; |
||||
string sysForeColorName = ""; |
||||
|
||||
Color backColor; |
||||
bool sysBackColor = false; |
||||
string sysBackColorName = ""; |
||||
|
||||
bool bold = false; |
||||
bool italic = false; |
||||
|
||||
bool noColor = false; |
||||
|
||||
public bool NoColor { |
||||
get { |
||||
return noColor; |
||||
} |
||||
} |
||||
public bool HasForeColor { |
||||
get { |
||||
return hasForeColor; |
||||
} |
||||
} |
||||
public bool HasBackColor { |
||||
get { |
||||
return hasBackColor; |
||||
} |
||||
} |
||||
public Color ForeColor { |
||||
get { |
||||
return foreColor; |
||||
} |
||||
} |
||||
public bool SysForeColor { |
||||
get { |
||||
return sysForeColor; |
||||
} |
||||
} |
||||
public string SysForeColorName { |
||||
get { |
||||
return sysForeColorName; |
||||
} |
||||
} |
||||
public Color BackColor { |
||||
get { |
||||
return backColor; |
||||
} |
||||
} |
||||
public bool SysBackColor { |
||||
get { |
||||
return sysBackColor; |
||||
} |
||||
} |
||||
public string SysBackColorName { |
||||
get { |
||||
return sysBackColorName; |
||||
} |
||||
} |
||||
public bool Bold { |
||||
get { |
||||
return bold; |
||||
} |
||||
} |
||||
public bool Italic { |
||||
get { |
||||
return italic; |
||||
} |
||||
} |
||||
|
||||
|
||||
public EditorHighlightColor(XmlElement el) |
||||
{ |
||||
if (el == null) { |
||||
noColor = true; |
||||
return; |
||||
} |
||||
|
||||
if (el.Attributes["bold"] == null && |
||||
el.Attributes["italic"] == null && |
||||
el.Attributes["color"] == null && |
||||
el.Attributes["bgcolor"] == null) |
||||
{ |
||||
noColor = true; |
||||
return; |
||||
} |
||||
|
||||
if (el.Attributes["bold"] != null) { |
||||
bold = Boolean.Parse(el.Attributes["bold"].InnerText); |
||||
} |
||||
|
||||
if (el.Attributes["italic"] != null) { |
||||
italic = Boolean.Parse(el.Attributes["italic"].InnerText); |
||||
} |
||||
|
||||
if (el.Attributes["color"] != null) { |
||||
hasForeColor = true; |
||||
string c = el.Attributes["color"].InnerText; |
||||
if (c[0] == '#') { |
||||
foreColor = ParseColor(c); |
||||
} else if (c.StartsWith("SystemColors.")) { |
||||
sysForeColor = true; |
||||
sysForeColorName = c.Substring("SystemColors.".Length); |
||||
} else { |
||||
PropertyInfo myPropInfo = typeof(Color).GetProperty(c, BindingFlags.Public | BindingFlags.Static); |
||||
foreColor = (Color)myPropInfo.GetValue(null, null); |
||||
} |
||||
} |
||||
|
||||
if (el.Attributes["bgcolor"] != null) { |
||||
hasBackColor = true; |
||||
string c = el.Attributes["bgcolor"].InnerText; |
||||
if (c[0] == '#') { |
||||
backColor = ParseColor(c); |
||||
} else if (c.StartsWith("SystemColors.")) { |
||||
sysBackColor = true; |
||||
sysBackColorName = c.Substring("SystemColors.".Length); |
||||
} else { |
||||
PropertyInfo myPropInfo = typeof(Color).GetProperty(c, BindingFlags.Public | BindingFlags.Static); |
||||
backColor = (Color)myPropInfo.GetValue(null, null); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public static EditorHighlightColor FromTextEditor(ICSharpCode.TextEditor.Document.HighlightColor color) |
||||
{ |
||||
return new EditorHighlightColor(color.HasForeground, color.Color, color.HasBackground, color.BackgroundColor, color.Bold, color.Italic); |
||||
} |
||||
|
||||
public EditorHighlightColor(bool hascolor, Color Color, bool hasbackcolor, Color BackColor, bool bold, bool italic) |
||||
{ |
||||
hasForeColor = hascolor; |
||||
hasBackColor = hasbackcolor; |
||||
this.backColor = BackColor; |
||||
this.foreColor = Color; |
||||
this.bold = bold; |
||||
this.italic = italic; |
||||
} |
||||
|
||||
public EditorHighlightColor(object ForeColor, object BackColor, bool Bold, bool Italic) |
||||
{ |
||||
bold = Bold; |
||||
italic = Italic; |
||||
|
||||
if (ForeColor is Color) { |
||||
hasForeColor = true; |
||||
foreColor = (Color)ForeColor; |
||||
} else if (ForeColor is string) { |
||||
hasForeColor = true; |
||||
sysForeColor = true; |
||||
sysForeColorName = (string)ForeColor; |
||||
} |
||||
|
||||
if (BackColor is Color) { |
||||
hasBackColor = true; |
||||
backColor = (Color)BackColor; |
||||
} else if (BackColor is string) { |
||||
hasBackColor = true; |
||||
sysBackColor = true; |
||||
sysBackColorName = (string)BackColor; |
||||
} |
||||
} |
||||
|
||||
public EditorHighlightColor() |
||||
{ |
||||
bold = false; |
||||
italic = false; |
||||
hasForeColor = true; |
||||
sysForeColor = true; |
||||
sysForeColorName = "WindowText"; |
||||
} |
||||
|
||||
public EditorHighlightColor(bool NoColor) : this() |
||||
{ |
||||
noColor = NoColor; |
||||
} |
||||
|
||||
static Color ParseColor(string c) |
||||
{ |
||||
int a = 255; |
||||
int offset = 0; |
||||
if (c.Length > 7) { |
||||
offset = 2; |
||||
a = Int32.Parse(c.Substring(1,2), NumberStyles.HexNumber); |
||||
} |
||||
|
||||
int r = Int32.Parse(c.Substring(1 + offset,2), NumberStyles.HexNumber); |
||||
int g = Int32.Parse(c.Substring(3 + offset,2), NumberStyles.HexNumber); |
||||
int b = Int32.Parse(c.Substring(5 + offset,2), NumberStyles.HexNumber); |
||||
return Color.FromArgb(a, r, g, b); |
||||
} |
||||
|
||||
public void WriteXmlAttributes(XmlWriter writer) |
||||
{ |
||||
writer.WriteAttributeString("bold", bold.ToString().ToLowerInvariant()); |
||||
writer.WriteAttributeString("italic", italic.ToString().ToLowerInvariant()); |
||||
if (hasForeColor) { |
||||
if (sysForeColor) { |
||||
writer.WriteAttributeString("color", "SystemColors." + sysForeColorName); |
||||
} else { |
||||
writer.WriteAttributeString("color", ReplaceColorName("#" + (foreColor.A != 255 ? foreColor.A.ToString("X2") : "") + |
||||
foreColor.R.ToString("X2") + |
||||
foreColor.G.ToString("X2") + |
||||
foreColor.B.ToString("X2"))); |
||||
} |
||||
} |
||||
if (hasBackColor) { |
||||
if (sysBackColor) { |
||||
writer.WriteAttributeString("bgcolor", "SystemColors." + sysBackColorName); |
||||
} else { |
||||
writer.WriteAttributeString("bgcolor", ReplaceColorName("#" + (backColor.A != 255 ? backColor.A.ToString("X2") : "") + |
||||
backColor.R.ToString("X2") + |
||||
backColor.G.ToString("X2") + |
||||
backColor.B.ToString("X2"))); |
||||
} |
||||
} |
||||
} |
||||
|
||||
Color ParseSysColor(string colorName) |
||||
{ |
||||
string[] cNames = colorName.Split('*'); |
||||
PropertyInfo myPropInfo = typeof(System.Drawing.SystemColors).GetProperty(cNames[0], BindingFlags.Public | BindingFlags.Static); |
||||
Color c = (Color)myPropInfo.GetValue(null, null); |
||||
|
||||
if (cNames.Length == 2) { |
||||
// hack : can't figure out how to parse doubles with '.' (culture info might set the '.' to ',')
|
||||
double factor = Double.Parse(cNames[1]) / 100; |
||||
c = Color.FromArgb((int)((double)c.R * factor), (int)((double)c.G * factor), (int)((double)c.B * factor)); |
||||
} |
||||
|
||||
return c; |
||||
} |
||||
|
||||
public Color GetForeColor() |
||||
{ |
||||
if (!hasForeColor) return Color.Transparent; |
||||
|
||||
if (sysForeColor) return ParseSysColor(sysForeColorName); |
||||
|
||||
return foreColor; |
||||
} |
||||
|
||||
public Color GetBackColor() |
||||
{ |
||||
if (!hasBackColor) return Color.Transparent; |
||||
|
||||
if (sysBackColor) return ParseSysColor(sysBackColorName); |
||||
|
||||
return backColor; |
||||
} |
||||
|
||||
static Hashtable colorNames = new Hashtable(); |
||||
|
||||
static string ReplaceColorName(string color) |
||||
{ |
||||
if (colorNames.ContainsKey(color)) return (string)colorNames[color]; |
||||
return color; |
||||
} |
||||
|
||||
static EditorHighlightColor() |
||||
{ |
||||
PropertyInfo[] names = typeof(System.Drawing.Color).GetProperties(BindingFlags.Public | BindingFlags.Static); |
||||
|
||||
foreach(PropertyInfo pi in names) { |
||||
Color pcolor = (Color)pi.GetValue(null, null); |
||||
string colorDesc = "#" + (pcolor.A != 255 ? pcolor.A.ToString("X2") : "") + pcolor.R.ToString("X2") + pcolor.G.ToString("X2") + pcolor.B.ToString("X2"); |
||||
try { |
||||
colorNames.Add(colorDesc, pi.Name); |
||||
} catch {} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,39 +0,0 @@
@@ -1,39 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
abstract class AbstractNode : TreeNode |
||||
{ |
||||
protected NodeOptionPanel panel; |
||||
protected string ResNodeName(string resName) |
||||
{ |
||||
try { |
||||
return ResourceService.GetString("Dialog.HighlightingEditor.TreeView." + resName); |
||||
} catch { |
||||
return resName; |
||||
} |
||||
} |
||||
|
||||
public NodeOptionPanel OptionPanel { |
||||
get { |
||||
return panel; |
||||
} |
||||
} |
||||
|
||||
public abstract void UpdateNodeText(); |
||||
|
||||
// should be made abstract when implementing ToXml()
|
||||
public abstract void WriteXml(XmlWriter writer); |
||||
} |
||||
} |
@ -1,99 +0,0 @@
@@ -1,99 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class DigitsNode : AbstractNode |
||||
{ |
||||
EditorHighlightColor color; |
||||
|
||||
public EditorHighlightColor Color { |
||||
get { |
||||
return color; |
||||
} |
||||
set { |
||||
color = value; |
||||
} |
||||
} |
||||
|
||||
public DigitsNode(XmlElement el) |
||||
{ |
||||
if (el != null) { |
||||
color = new EditorHighlightColor(el); |
||||
} else { |
||||
color = new EditorHighlightColor(); |
||||
} |
||||
|
||||
Text = ResNodeName("DigitsColor"); |
||||
|
||||
panel = new DigitsOptionPanel(this); |
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("Digits"); |
||||
writer.WriteAttributeString("name", "Digits"); |
||||
color.WriteXmlAttributes(writer); |
||||
writer.WriteEndElement(); |
||||
} |
||||
} |
||||
|
||||
class DigitsOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button button; |
||||
private System.Windows.Forms.Label sampleLabel; |
||||
|
||||
EditorHighlightColor color = new EditorHighlightColor(); |
||||
|
||||
public DigitsOptionPanel(DigitsNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Digits.xfrm")); |
||||
|
||||
button = (Button)ControlDictionary["button"]; |
||||
button.Click += new EventHandler(EditButtonClicked); |
||||
sampleLabel = (Label)ControlDictionary["sampleLabel"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
DigitsNode node = (DigitsNode)parent; |
||||
|
||||
node.Color = color; |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
DigitsNode node = (DigitsNode)parent; |
||||
|
||||
sampleLabel.Font = SharpDevelopTextEditorProperties.Instance.FontContainer.DefaultFont; |
||||
color = node.Color; |
||||
PreviewUpdate(sampleLabel, color); |
||||
} |
||||
|
||||
void EditButtonClicked(object sender, EventArgs e) |
||||
{ |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(color)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
color = dlg.Color; |
||||
PreviewUpdate(sampleLabel, color); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,177 +0,0 @@
@@ -1,177 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
||||
using ICSharpCode.TextEditor.Document; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class EnvironmentNode : AbstractNode |
||||
{ |
||||
public string[] ColorNames; |
||||
public string[] ColorDescs; |
||||
public EditorHighlightColor[] Colors; |
||||
|
||||
const string CustomColorPrefix = "Custom$"; |
||||
|
||||
public EnvironmentNode(XmlElement el) |
||||
{ |
||||
List<EditorHighlightColor> envColors = new List<EditorHighlightColor>(); |
||||
List<string> envColorNames = new List<string>(); |
||||
List<string> envColorDescriptions = new List<string>(); |
||||
|
||||
if (el != null) { |
||||
foreach (XmlNode node in el.ChildNodes) { |
||||
if (node is XmlElement) { |
||||
if (node.Name == "Custom") { |
||||
envColorNames.Add(CustomColorPrefix + (node as XmlElement).GetAttribute("name")); |
||||
envColorDescriptions.Add((node as XmlElement).GetAttribute("name")); |
||||
} else { |
||||
envColorNames.Add(node.Name); |
||||
envColorDescriptions.Add("${res:Dialog.HighlightingEditor.EnvColors." + node.Name + "}"); |
||||
} |
||||
envColors.Add(new EditorHighlightColor((XmlElement)node)); |
||||
} |
||||
} |
||||
} |
||||
|
||||
foreach (KeyValuePair<string, HighlightColor> pair in new DefaultHighlightingStrategy().EnvironmentColors) { |
||||
if (!envColorNames.Contains(pair.Key)) { |
||||
envColorNames.Add(pair.Key); |
||||
envColorDescriptions.Add("${res:Dialog.HighlightingEditor.EnvColors." + pair.Key + "}"); |
||||
envColors.Add(EditorHighlightColor.FromTextEditor(pair.Value)); |
||||
} |
||||
} |
||||
|
||||
this.ColorNames = envColorNames.ToArray(); |
||||
this.ColorDescs = envColorDescriptions.ToArray(); |
||||
this.Colors = envColors.ToArray(); |
||||
StringParser.Parse(ColorDescs); |
||||
|
||||
Text = ResNodeName("EnvironmentColors"); |
||||
|
||||
panel = new EnvironmentOptionPanel(this); |
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("Environment"); |
||||
for (int i = 0; i < ColorNames.Length; i++) { |
||||
if (ColorNames[i].StartsWith(CustomColorPrefix)) { |
||||
writer.WriteStartElement("Custom"); |
||||
writer.WriteAttributeString("name", ColorNames[i].Substring(CustomColorPrefix.Length)); |
||||
} else { |
||||
writer.WriteStartElement(ColorNames[i]); |
||||
} |
||||
Colors[i].WriteXmlAttributes(writer); |
||||
writer.WriteEndElement(); |
||||
} |
||||
writer.WriteEndElement(); |
||||
} |
||||
} |
||||
|
||||
class EnvironmentOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button button; |
||||
private System.Windows.Forms.ListView listView; |
||||
|
||||
public EnvironmentOptionPanel(EnvironmentNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Environment.xfrm")); |
||||
|
||||
button = (Button)ControlDictionary["button"]; |
||||
button.Click += new EventHandler(EditButtonClicked); |
||||
listView = (ListView)ControlDictionary["listView"]; |
||||
|
||||
listView.Font = new Font(listView.Font.FontFamily, 10); |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
EnvironmentNode node = (EnvironmentNode)parent; |
||||
|
||||
foreach (EnvironmentItem item in listView.Items) { |
||||
node.Colors[item.arrayIndex] = item.Color; |
||||
} |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
EnvironmentNode node = (EnvironmentNode)parent; |
||||
listView.Items.Clear(); |
||||
|
||||
for (int i = 0; i <= node.ColorNames.GetUpperBound(0); ++i) { |
||||
listView.Items.Add(new EnvironmentItem(i, node.ColorDescs[i], node.Colors[i], listView.Font)); |
||||
} |
||||
} |
||||
|
||||
void EditButtonClicked(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
EnvironmentItem item = (EnvironmentItem)listView.SelectedItems[0]; |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(item.Color)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
item.Color = dlg.Color; |
||||
item.ColorUpdate(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
private class EnvironmentItem : ListViewItem |
||||
{ |
||||
public string Name; |
||||
public EditorHighlightColor Color; |
||||
public int arrayIndex; |
||||
|
||||
Font basefont; |
||||
Font listfont; |
||||
|
||||
public EnvironmentItem(int index, string name, EditorHighlightColor color, Font listFont) : base(new string[] {name, "Sample"}) |
||||
{ |
||||
Name = name; |
||||
Color = color; |
||||
arrayIndex = index; |
||||
|
||||
this.UseItemStyleForSubItems = false; |
||||
|
||||
basefont = SharpDevelopTextEditorProperties.Instance.FontContainer.DefaultFont; |
||||
listfont = listFont; |
||||
|
||||
ColorUpdate(); |
||||
} |
||||
|
||||
public void ColorUpdate() |
||||
{ |
||||
FontStyle fs = FontStyle.Regular; |
||||
if (Color.Bold) fs |= FontStyle.Bold; |
||||
if (Color.Italic) fs |= FontStyle.Italic; |
||||
|
||||
this.Font = new Font(listfont.FontFamily, 8); |
||||
|
||||
Font font = new Font(basefont, fs); |
||||
|
||||
this.SubItems[1].Font = font; |
||||
|
||||
this.SubItems[1].ForeColor = Color.GetForeColor(); |
||||
this.SubItems[1].BackColor = Color.GetBackColor(); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,200 +0,0 @@
@@ -1,200 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Specialized; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class KeywordListNode : AbstractNode |
||||
{ |
||||
EditorHighlightColor color; |
||||
StringCollection words = new StringCollection(); |
||||
string name; |
||||
|
||||
public EditorHighlightColor Color { |
||||
get { |
||||
return color; |
||||
} |
||||
set { |
||||
color = value; |
||||
} |
||||
} |
||||
|
||||
public StringCollection Words { |
||||
get { |
||||
return words; |
||||
} |
||||
set { |
||||
if (words != null) { |
||||
words.Clear(); |
||||
} |
||||
words = value; |
||||
} |
||||
} |
||||
|
||||
public string Name { |
||||
get { |
||||
return name; |
||||
} |
||||
set { |
||||
name = value; |
||||
} |
||||
} |
||||
|
||||
public KeywordListNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("KeywordList"); |
||||
panel = new KeywordListOptionPanel(this); |
||||
|
||||
if (el == null) return; |
||||
|
||||
color = new EditorHighlightColor(el); |
||||
|
||||
XmlNodeList keys = el.GetElementsByTagName("Key"); |
||||
foreach (XmlElement node in keys) { |
||||
if (node.Attributes["word"] != null) words.Add(node.Attributes["word"].InnerText); |
||||
} |
||||
|
||||
if (el.Attributes["name"] != null) { |
||||
name = el.Attributes["name"].InnerText; |
||||
} |
||||
UpdateNodeText(); |
||||
|
||||
} |
||||
|
||||
public KeywordListNode(string Name) |
||||
{ |
||||
name = Name; |
||||
color = new EditorHighlightColor(); |
||||
UpdateNodeText(); |
||||
|
||||
panel = new KeywordListOptionPanel(this); |
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
if (name != "") Text = name; |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("KeyWords"); |
||||
writer.WriteAttributeString("name", name); |
||||
color.WriteXmlAttributes(writer); |
||||
foreach(string str in words) { |
||||
writer.WriteStartElement("Key"); |
||||
writer.WriteAttributeString("word", str); |
||||
writer.WriteEndElement(); |
||||
} |
||||
writer.WriteEndElement(); |
||||
} |
||||
} |
||||
|
||||
class KeywordListOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button chgBtn; |
||||
private System.Windows.Forms.Button addBtn; |
||||
private System.Windows.Forms.ListBox listBox; |
||||
private System.Windows.Forms.Button removeBtn; |
||||
private System.Windows.Forms.TextBox nameBox; |
||||
private System.Windows.Forms.Label sampleLabel; |
||||
|
||||
public KeywordListOptionPanel(KeywordListNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.KeywordList.xfrm")); |
||||
|
||||
addBtn = (Button)ControlDictionary["addBtn"]; |
||||
addBtn.Click += new EventHandler(addBtnClick); |
||||
removeBtn = (Button)ControlDictionary["removeBtn"]; |
||||
removeBtn.Click += new EventHandler(removeBtnClick); |
||||
chgBtn = (Button)ControlDictionary["chgBtn"]; |
||||
chgBtn.Click += new EventHandler(chgBtnClick); |
||||
|
||||
nameBox = (TextBox)ControlDictionary["nameBox"]; |
||||
sampleLabel = (Label)ControlDictionary["sampleLabel"]; |
||||
listBox = (ListBox)ControlDictionary["listBox"]; |
||||
} |
||||
|
||||
EditorHighlightColor color; |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
KeywordListNode node = (KeywordListNode)parent; |
||||
StringCollection col = new StringCollection(); |
||||
|
||||
foreach (string word in listBox.Items) { |
||||
col.Add(word); |
||||
} |
||||
node.Words = col; |
||||
node.Name = nameBox.Text; |
||||
node.Color = color; |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
KeywordListNode node = (KeywordListNode)parent; |
||||
listBox.Items.Clear(); |
||||
|
||||
foreach (string word in node.Words) { |
||||
listBox.Items.Add(word); |
||||
} |
||||
|
||||
sampleLabel.Font = SharpDevelopTextEditorProperties.Instance.FontContainer.DefaultFont; |
||||
|
||||
color = node.Color; |
||||
nameBox.Text = node.Name; |
||||
PreviewUpdate(sampleLabel, color); |
||||
} |
||||
|
||||
public override bool ValidateSettings() |
||||
{ |
||||
if (nameBox.Text == "") { |
||||
ValidationMessage("${res:Dialog.HighlightingEditor.KeywordList.NameEmpty}"); |
||||
return false; |
||||
} |
||||
|
||||
return true; |
||||
} |
||||
|
||||
void chgBtnClick(object sender, EventArgs e) |
||||
{ |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(color)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
color = dlg.Color; |
||||
PreviewUpdate(sampleLabel, color); |
||||
} |
||||
} |
||||
} |
||||
|
||||
void addBtnClick(object sender, EventArgs e) |
||||
{ |
||||
string result = MessageService.ShowInputBox("", "${res:Dialog.HighlightingEditor.KeywordList.EnterName}", ""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
foreach (string item in listBox.Items) { |
||||
if (item == result) |
||||
return; |
||||
} |
||||
|
||||
listBox.Items.Add(result); |
||||
} |
||||
|
||||
void removeBtnClick(object sender, EventArgs e) |
||||
{ |
||||
if (listBox.SelectedIndex == -1) return; |
||||
|
||||
listBox.Items.RemoveAt(listBox.SelectedIndex); |
||||
} |
||||
} |
||||
} |
@ -1,106 +0,0 @@
@@ -1,106 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class KeywordListsNode : AbstractNode |
||||
{ |
||||
public KeywordListsNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("KeywordLists"); |
||||
panel = new KeywordListsOptionPanel(this); |
||||
|
||||
if (el == null) return; |
||||
|
||||
XmlNodeList nodes = el.GetElementsByTagName("KeyWords"); |
||||
if (nodes == null) return; |
||||
|
||||
foreach (XmlElement el2 in nodes) { |
||||
Nodes.Add(new KeywordListNode(el2)); |
||||
} |
||||
|
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
foreach (KeywordListNode node in Nodes) { |
||||
node.WriteXml(writer); |
||||
} |
||||
} |
||||
} |
||||
|
||||
class KeywordListsOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button removeBtn; |
||||
private System.Windows.Forms.Button addBtn; |
||||
private System.Windows.Forms.ListView listView; |
||||
|
||||
public KeywordListsOptionPanel(KeywordListsNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.KeywordLists.xfrm")); |
||||
|
||||
addBtn = (Button)ControlDictionary["addBtn"]; |
||||
addBtn.Click += new EventHandler(addClick); |
||||
removeBtn = (Button)ControlDictionary["removeBtn"]; |
||||
removeBtn.Click += new EventHandler(removeClick); |
||||
|
||||
listView = (ListView)ControlDictionary["listView"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
KeywordListsNode node = (KeywordListsNode)parent; |
||||
listView.Items.Clear(); |
||||
|
||||
foreach (KeywordListNode rn in node.Nodes) { |
||||
ListViewItem lv = new ListViewItem(rn.Name); |
||||
lv.Tag = rn; |
||||
listView.Items.Add(lv); |
||||
} |
||||
} |
||||
|
||||
void addClick(object sender, EventArgs e) |
||||
{ |
||||
string result = MessageService.ShowInputBox("", "${res:Dialog.HighlightingEditor.KeywordList.EnterName}", ""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
foreach (ListViewItem item in listView.Items) { |
||||
if (item.Text == result) |
||||
return; |
||||
} |
||||
|
||||
KeywordListNode kwn = new KeywordListNode(result); |
||||
ListViewItem lv = new ListViewItem(result); |
||||
lv.Tag = kwn; |
||||
parent.Nodes.Add(kwn); |
||||
listView.Items.Add(lv); |
||||
} |
||||
|
||||
void removeClick(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
((TreeNode)listView.SelectedItems[0].Tag).Remove(); |
||||
listView.SelectedItems[0].Remove(); |
||||
} |
||||
} |
||||
} |
@ -1,164 +0,0 @@
@@ -1,164 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class MarkerNode : AbstractNode |
||||
{ |
||||
bool previous; |
||||
string what; |
||||
EditorHighlightColor color; |
||||
bool markMarker = false; |
||||
|
||||
public MarkerNode(XmlElement el, bool prev) |
||||
{ |
||||
Text = "Marker"; |
||||
previous = prev; |
||||
panel = new MarkerOptionPanel(this, prev); |
||||
|
||||
if (el == null) return; |
||||
|
||||
color = new EditorHighlightColor(el); |
||||
what = el.InnerText; |
||||
if (el.Attributes["markmarker"] != null) { |
||||
markMarker = Boolean.Parse(el.Attributes["markmarker"].InnerText); |
||||
} |
||||
|
||||
UpdateNodeText(); |
||||
|
||||
} |
||||
|
||||
public MarkerNode(string What, bool prev) |
||||
{ |
||||
what = What; |
||||
previous = prev; |
||||
color = new EditorHighlightColor(); |
||||
UpdateNodeText(); |
||||
|
||||
panel = new MarkerOptionPanel(this, prev); |
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
Text = what; |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("Mark" + (previous ? "Previous" : "Following")); |
||||
color.WriteXmlAttributes(writer); |
||||
if (markMarker) writer.WriteAttributeString("markmarker", "true"); |
||||
writer.WriteString(what); |
||||
writer.WriteEndElement(); |
||||
} |
||||
|
||||
public string What { |
||||
get { |
||||
return what; |
||||
} |
||||
set { |
||||
what = value; |
||||
} |
||||
} |
||||
|
||||
public EditorHighlightColor Color { |
||||
get { |
||||
return color; |
||||
} |
||||
set { |
||||
color = value; |
||||
} |
||||
} |
||||
|
||||
public bool MarkMarker { |
||||
get { |
||||
return markMarker; |
||||
} |
||||
set { |
||||
markMarker = value; |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
class MarkerOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button chgBtn; |
||||
private System.Windows.Forms.CheckBox checkBox; |
||||
private System.Windows.Forms.TextBox nameBox; |
||||
private System.Windows.Forms.Label sampleLabel; |
||||
|
||||
bool previous; |
||||
|
||||
public MarkerOptionPanel(MarkerNode parent, bool prev) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Marker.xfrm")); |
||||
|
||||
chgBtn = (Button)ControlDictionary["chgBtn"]; |
||||
chgBtn.Click += new EventHandler(chgBtnClick); |
||||
|
||||
checkBox = (CheckBox)ControlDictionary["checkBox"]; |
||||
nameBox = (TextBox)ControlDictionary["nameBox"]; |
||||
sampleLabel = (Label)ControlDictionary["sampleLabel"]; |
||||
|
||||
previous = prev; |
||||
ControlDictionary["explLabel"].Text = ResourceService.GetString(previous ? "Dialog.HighlightingEditor.Marker.ExplanationPrev" : "Dialog.HighlightingEditor.Marker.ExplanationNext"); |
||||
} |
||||
|
||||
EditorHighlightColor color; |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
MarkerNode node = (MarkerNode)parent; |
||||
|
||||
node.What = nameBox.Text; |
||||
node.Color = color; |
||||
node.MarkMarker = checkBox.Checked; |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
MarkerNode node = (MarkerNode)parent; |
||||
|
||||
|
||||
sampleLabel.Font = SharpDevelopTextEditorProperties.Instance.FontContainer.DefaultFont; |
||||
|
||||
color = node.Color; |
||||
nameBox.Text = node.What; |
||||
checkBox.Checked = node.MarkMarker; |
||||
PreviewUpdate(sampleLabel, color); |
||||
} |
||||
|
||||
public override bool ValidateSettings() |
||||
{ |
||||
if (nameBox.Text == "") { |
||||
ValidationMessage(ResourceService.GetString("Dialog.HighlightingEditor.Marker.NameEmpty")); |
||||
return false; |
||||
} |
||||
|
||||
return true; |
||||
} |
||||
|
||||
void chgBtnClick(object sender, EventArgs e) |
||||
{ |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(color)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
color = dlg.Color; |
||||
PreviewUpdate(sampleLabel, color); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,111 +0,0 @@
@@ -1,111 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class MarkersNode : AbstractNode |
||||
{ |
||||
public MarkersNode(XmlElement el, bool prev) |
||||
{ |
||||
Text = ResNodeName(prev ? "MarkPreviousWord" : "MarkNextWord"); |
||||
|
||||
panel = new MarkersOptionPanel(this, prev); |
||||
if (el == null) return; |
||||
|
||||
XmlNodeList nodes = el.GetElementsByTagName(prev ? "MarkPrevious" : "MarkFollowing"); |
||||
|
||||
foreach (XmlElement el2 in nodes) { |
||||
Nodes.Add(new MarkerNode(el2, prev)); |
||||
} |
||||
|
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
foreach (MarkerNode node in Nodes) { |
||||
node.WriteXml(writer); |
||||
} |
||||
} |
||||
} |
||||
|
||||
class MarkersOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button addBtn; |
||||
private System.Windows.Forms.Button removeBtn; |
||||
private System.Windows.Forms.ListView listView; |
||||
|
||||
bool previous = false; |
||||
|
||||
public MarkersOptionPanel(MarkersNode parent, bool prev) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Markers.xfrm")); |
||||
|
||||
addBtn = (Button)ControlDictionary["addBtn"]; |
||||
addBtn.Click += new EventHandler(addClick); |
||||
removeBtn = (Button)ControlDictionary["removeBtn"]; |
||||
removeBtn.Click += new EventHandler(removeClick); |
||||
|
||||
listView = (ListView)ControlDictionary["listView"]; |
||||
|
||||
previous = prev; |
||||
ControlDictionary["label"].Text = ResourceService.GetString(previous ? "Dialog.HighlightingEditor.Markers.Previous" : "Dialog.HighlightingEditor.Markers.Next"); |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
MarkersNode node = (MarkersNode)parent; |
||||
listView.Items.Clear(); |
||||
|
||||
foreach (MarkerNode rn in node.Nodes) { |
||||
ListViewItem lv = new ListViewItem(rn.What); |
||||
lv.Tag = rn; |
||||
listView.Items.Add(lv); |
||||
} |
||||
} |
||||
|
||||
void addClick(object sender, EventArgs e) |
||||
{ |
||||
string result = MessageService.ShowInputBox("", "${res:Dialog.HighlightingEditor.Markers.EnterName}", ""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
|
||||
foreach (ListViewItem item in listView.Items) { |
||||
if (item.Text == result) |
||||
return; |
||||
} |
||||
|
||||
MarkerNode rsn = new MarkerNode(result, previous); |
||||
ListViewItem lv = new ListViewItem(result); |
||||
lv.Tag = rsn; |
||||
parent.Nodes.Add(rsn); |
||||
listView.Items.Add(lv); |
||||
} |
||||
|
||||
void removeClick(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
((TreeNode)listView.SelectedItems[0].Tag).Remove(); |
||||
listView.SelectedItems[0].Remove(); |
||||
} |
||||
} |
||||
} |
@ -1,79 +0,0 @@
@@ -1,79 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui.XmlForms; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
abstract class NodeOptionPanel : BaseSharpDevelopUserControl |
||||
{ |
||||
protected AbstractNode parent; |
||||
|
||||
public AbstractNode ParentNode { |
||||
get { |
||||
return parent; |
||||
} |
||||
} |
||||
|
||||
public NodeOptionPanel(AbstractNode Parent) { |
||||
parent = Parent; |
||||
|
||||
this.Dock = DockStyle.Fill; |
||||
this.ClientSize = new Size(320, 392); |
||||
|
||||
} |
||||
|
||||
public virtual bool ValidateSettings() |
||||
{ |
||||
return true; |
||||
} |
||||
|
||||
|
||||
|
||||
protected void ValidationMessage(string str) |
||||
{ |
||||
MessageService.ShowWarning("${res:Dialog.HighlightingEditor.ValidationError}\n\n" + str); |
||||
} |
||||
|
||||
protected static Font ParseFont(string font) |
||||
{ |
||||
string[] descr = font.Split(new char[]{',', '='}); |
||||
return new Font(descr[1], Single.Parse(descr[3])); |
||||
} |
||||
|
||||
protected static void PreviewUpdate(Label label, EditorHighlightColor color) |
||||
{ |
||||
if (label == null) return; |
||||
|
||||
if (color == null) { |
||||
label.ForeColor = label.BackColor = Color.Transparent; |
||||
return; |
||||
} |
||||
if (color.NoColor) { |
||||
label.ForeColor = label.BackColor = Color.Transparent; |
||||
return; |
||||
} |
||||
|
||||
label.ForeColor = color.GetForeColor(); |
||||
label.BackColor = color.GetBackColor(); |
||||
|
||||
FontStyle fs = FontStyle.Regular; |
||||
if (color.Bold) fs |= FontStyle.Bold; |
||||
if (color.Italic) fs |= FontStyle.Italic; |
||||
|
||||
label.Font = new Font(label.Font, fs); |
||||
} |
||||
|
||||
public abstract void StoreSettings(); |
||||
public abstract void LoadSettings(); |
||||
} |
||||
} |
@ -1,129 +0,0 @@
@@ -1,129 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class PropertiesNode : AbstractNode |
||||
{ |
||||
public Hashtable Properties = new Hashtable(); |
||||
|
||||
public PropertiesNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("Properties"); |
||||
panel = new PropertiesOptionPanel(this); |
||||
|
||||
if (el == null) return; |
||||
|
||||
foreach (XmlElement el2 in el.ChildNodes) { |
||||
if (el2.Attributes["name"] == null || el2.Attributes["value"] == null) continue; |
||||
Properties.Add(el2.Attributes["name"].InnerText, el2.Attributes["value"].InnerText); |
||||
} |
||||
|
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("Properties"); |
||||
foreach (DictionaryEntry de in Properties) { |
||||
writer.WriteStartElement("Property"); |
||||
writer.WriteAttributeString("name", (string)de.Key); |
||||
writer.WriteAttributeString("value", (string)de.Value); |
||||
writer.WriteEndElement(); |
||||
} |
||||
writer.WriteEndElement(); |
||||
} |
||||
} |
||||
|
||||
class PropertiesOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button addBtn; |
||||
private System.Windows.Forms.Button editBtn; |
||||
private System.Windows.Forms.Button removeBtn; |
||||
private System.Windows.Forms.ListView listView; |
||||
|
||||
public PropertiesOptionPanel(PropertiesNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Properties.xfrm")); |
||||
|
||||
addBtn = (Button)ControlDictionary["addBtn"]; |
||||
addBtn.Click += new EventHandler(addClick); |
||||
editBtn = (Button)ControlDictionary["editBtn"]; |
||||
editBtn.Click += new EventHandler(editClick); |
||||
removeBtn = (Button)ControlDictionary["removeBtn"]; |
||||
removeBtn.Click += new EventHandler(removeClick); |
||||
|
||||
listView = (ListView)ControlDictionary["listView"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
PropertiesNode node = (PropertiesNode)parent; |
||||
|
||||
node.Properties.Clear(); |
||||
foreach (ListViewItem item in listView.Items) { |
||||
node.Properties.Add(item.Text, item.SubItems[1].Text); |
||||
} |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
PropertiesNode node = (PropertiesNode)parent; |
||||
listView.Items.Clear(); |
||||
|
||||
foreach (DictionaryEntry de in node.Properties) { |
||||
ListViewItem lv = new ListViewItem(new string[] {(string)de.Key, (string)de.Value}); |
||||
listView.Items.Add(lv); |
||||
} |
||||
} |
||||
|
||||
void addClick(object sender, EventArgs e) |
||||
{ |
||||
string result = MessageService.ShowInputBox("", "${res:Dialog.HighlightingEditor.Properties.EnterName}", ""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
|
||||
foreach (ListViewItem item in listView.Items) { |
||||
if (item.Text == result) |
||||
return; |
||||
} |
||||
|
||||
listView.Items.Add(new ListViewItem(new string[] {result, ""})); |
||||
} |
||||
|
||||
void removeClick(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
listView.SelectedItems[0].Remove(); |
||||
} |
||||
|
||||
void editClick(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
string result = MessageService.ShowInputBox("${res:Dialog.HighlightingEditor.EnterText}", |
||||
String.Format(ResourceService.GetString("Dialog.HighlightingEditor.Properties.EnterValue"), listView.SelectedItems[0].Text), |
||||
""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
|
||||
listView.SelectedItems[0].SubItems[1].Text = result; |
||||
} |
||||
} |
||||
} |
@ -1,233 +0,0 @@
@@ -1,233 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class RuleSetNode : AbstractNode |
||||
{ |
||||
char escapeCharacter; |
||||
bool ignoreCase = false; |
||||
bool isRoot = false; |
||||
string name = String.Empty; |
||||
string delimiters = String.Empty; |
||||
string reference = String.Empty; |
||||
|
||||
KeywordListsNode keywordNode; |
||||
SpansNode spansNode; |
||||
MarkersNode prevMarkerNode; |
||||
MarkersNode nextMarkerNode; |
||||
|
||||
public RuleSetNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("RuleSet"); |
||||
|
||||
panel = new RuleSetOptionPanel(this); |
||||
|
||||
if (el == null) return; |
||||
|
||||
if (el.Attributes["name"] != null) { |
||||
name = el.Attributes["name"].InnerText; |
||||
Text = name; |
||||
isRoot = false; |
||||
} |
||||
|
||||
if (name == "") { |
||||
Text = ResNodeName("RootRuleSet"); |
||||
isRoot = true; |
||||
} |
||||
|
||||
if (el.Attributes["escapecharacter"] != null) { |
||||
escapeCharacter = el.Attributes["escapecharacter"].InnerText[0]; |
||||
} |
||||
|
||||
if (el.Attributes["reference"] != null) { |
||||
reference = el.Attributes["reference"].InnerText; |
||||
} |
||||
|
||||
if (el.Attributes["ignorecase"] != null) { |
||||
ignoreCase = Boolean.Parse(el.Attributes["ignorecase"].InnerText); |
||||
} |
||||
|
||||
if (el["Delimiters"] != null) { |
||||
delimiters = el["Delimiters"].InnerText; |
||||
} |
||||
|
||||
keywordNode = new KeywordListsNode(el); |
||||
spansNode = new SpansNode(el); |
||||
prevMarkerNode = new MarkersNode(el, true); // Previous
|
||||
nextMarkerNode = new MarkersNode(el, false); // Next
|
||||
Nodes.Add(keywordNode); |
||||
Nodes.Add(spansNode); |
||||
Nodes.Add(prevMarkerNode); |
||||
Nodes.Add(nextMarkerNode); |
||||
|
||||
} |
||||
|
||||
public RuleSetNode(string Name, string Delim, string Ref, char escChar, bool noCase) |
||||
{ |
||||
name = Name; |
||||
Text = Name; |
||||
delimiters = Delim; |
||||
reference = Ref; |
||||
escapeCharacter = escChar; |
||||
ignoreCase = noCase; |
||||
|
||||
keywordNode = new KeywordListsNode(null); |
||||
spansNode = new SpansNode(null); |
||||
prevMarkerNode = new MarkersNode(null, true); // Previous
|
||||
nextMarkerNode = new MarkersNode(null, false); // Next
|
||||
Nodes.Add(keywordNode); |
||||
Nodes.Add(spansNode); |
||||
Nodes.Add(prevMarkerNode); |
||||
Nodes.Add(nextMarkerNode); |
||||
|
||||
panel = new RuleSetOptionPanel(this); |
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
if (name != "" && !isRoot) { |
||||
Text = name; |
||||
} |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("RuleSet"); |
||||
if (!isRoot) |
||||
writer.WriteAttributeString("name", name); |
||||
if (reference != "") { |
||||
writer.WriteAttributeString("reference", reference); |
||||
} else { |
||||
writer.WriteAttributeString("ignorecase", ignoreCase.ToString().ToLowerInvariant()); |
||||
if (escapeCharacter != '\0') |
||||
writer.WriteAttributeString("escapecharacter", escapeCharacter.ToString()); |
||||
if (delimiters != "") |
||||
writer.WriteElementString("Delimiters", delimiters); |
||||
spansNode.WriteXml(writer); |
||||
prevMarkerNode.WriteXml(writer); |
||||
nextMarkerNode.WriteXml(writer); |
||||
keywordNode.WriteXml(writer); |
||||
} |
||||
writer.WriteEndElement(); |
||||
} |
||||
|
||||
public string Delimiters { |
||||
get { |
||||
return delimiters; |
||||
} |
||||
set { |
||||
delimiters = value; |
||||
} |
||||
} |
||||
|
||||
public char EscapeCharacter { |
||||
get { return escapeCharacter; } |
||||
set { escapeCharacter = value; } |
||||
} |
||||
|
||||
public bool IgnoreCase { |
||||
get { |
||||
return ignoreCase; |
||||
} |
||||
set { |
||||
ignoreCase = value; |
||||
} |
||||
} |
||||
|
||||
public string Name { |
||||
get { |
||||
return name; |
||||
} |
||||
set { |
||||
name = value; |
||||
} |
||||
} |
||||
|
||||
public string Reference { |
||||
get { |
||||
return reference; |
||||
} |
||||
set { |
||||
reference = value; |
||||
} |
||||
} |
||||
|
||||
public bool IsRoot { |
||||
get { |
||||
return isRoot; |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
class RuleSetOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.CheckBox igcaseBox; |
||||
private System.Windows.Forms.TextBox escCharTextBox; |
||||
private System.Windows.Forms.TextBox refBox; |
||||
private System.Windows.Forms.TextBox delimBox; |
||||
private System.Windows.Forms.TextBox nameBox; |
||||
|
||||
public RuleSetOptionPanel(RuleSetNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.RuleSet.xfrm")); |
||||
|
||||
nameBox = (TextBox)ControlDictionary["nameBox"]; |
||||
refBox = (TextBox)ControlDictionary["refBox"]; |
||||
delimBox = (TextBox)ControlDictionary["delimBox"]; |
||||
|
||||
igcaseBox = (CheckBox)ControlDictionary["igcaseBox"]; |
||||
escCharTextBox = (TextBox)ControlDictionary["escCharTextBox"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
RuleSetNode node = (RuleSetNode)parent; |
||||
if (!node.IsRoot) node.Name = nameBox.Text; |
||||
node.Reference = refBox.Text; |
||||
node.Delimiters = delimBox.Text; |
||||
node.EscapeCharacter = (escCharTextBox.TextLength == 0) ? '\0' : escCharTextBox.Text[0]; |
||||
node.IgnoreCase = igcaseBox.Checked; |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
RuleSetNode node = (RuleSetNode)parent; |
||||
|
||||
nameBox.Text = node.Name; |
||||
|
||||
if (node.IsRoot) { |
||||
nameBox.Text = ResourceService.GetString("Dialog.HighlightingEditor.TreeView.RootRuleSet"); |
||||
nameBox.Enabled = false; |
||||
} |
||||
|
||||
refBox.Text = node.Reference; |
||||
delimBox.Text = node.Delimiters; |
||||
|
||||
escCharTextBox.Text = (node.EscapeCharacter == '\0') ? "" : node.EscapeCharacter.ToString(); |
||||
igcaseBox.Checked = node.IgnoreCase; |
||||
} |
||||
|
||||
public override bool ValidateSettings() |
||||
{ |
||||
if (nameBox.Text == "") { |
||||
ValidationMessage(ResourceService.GetString("Dialog.HighlightingEditor.RuleSet.NameEmpty")); |
||||
return false; |
||||
} |
||||
|
||||
return true; |
||||
} |
||||
|
||||
} |
||||
} |
@ -1,108 +0,0 @@
@@ -1,108 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class RuleSetsNode : AbstractNode |
||||
{ |
||||
public RuleSetsNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("RuleSets"); |
||||
|
||||
panel = new RuleSetsOptionPanel(this); |
||||
if (el == null) return; |
||||
|
||||
XmlNodeList nodes = el.GetElementsByTagName("RuleSet"); |
||||
|
||||
foreach (XmlElement element in nodes) { |
||||
Nodes.Add(new RuleSetNode(element)); |
||||
} |
||||
|
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("RuleSets"); |
||||
foreach (RuleSetNode node in Nodes) { |
||||
node.WriteXml(writer); |
||||
} |
||||
writer.WriteEndElement(); |
||||
} |
||||
} |
||||
|
||||
class RuleSetsOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.Button addBtn; |
||||
private System.Windows.Forms.ListView listView; |
||||
private System.Windows.Forms.Button removeBtn; |
||||
|
||||
public RuleSetsOptionPanel(RuleSetsNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.RuleSets.xfrm")); |
||||
|
||||
addBtn = (Button)ControlDictionary["addBtn"]; |
||||
addBtn.Click += new EventHandler(addClick); |
||||
removeBtn = (Button)ControlDictionary["removeBtn"]; |
||||
removeBtn.Click += new EventHandler(removeClick); |
||||
|
||||
listView = (ListView)ControlDictionary["listView"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
RuleSetsNode node = (RuleSetsNode)parent; |
||||
listView.Items.Clear(); |
||||
|
||||
foreach (RuleSetNode rn in node.Nodes) { |
||||
if (rn.Name == "") continue; |
||||
ListViewItem lv = new ListViewItem(rn.Name); |
||||
lv.Tag = rn; |
||||
listView.Items.Add(lv); |
||||
} |
||||
} |
||||
|
||||
void addClick(object sender, EventArgs e) |
||||
{ |
||||
string result = MessageService.ShowInputBox("", "${res:Dialog.HighlightingEditor.RuleSets.EnterName}", ""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
foreach (ListViewItem item in listView.Items) { |
||||
if (item.Text == result) |
||||
return; |
||||
} |
||||
|
||||
RuleSetNode rsn = new RuleSetNode(result, "&<>~!@%^*()-+=|\\#/{}[]:;\"' , .?", "", '\0', false); |
||||
ListViewItem lv = new ListViewItem(result); |
||||
lv.Tag = rsn; |
||||
parent.Nodes.Add(rsn); |
||||
listView.Items.Add(lv); |
||||
} |
||||
|
||||
void removeClick(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
((TreeNode)listView.SelectedItems[0].Tag).Remove(); |
||||
listView.SelectedItems[0].Remove(); |
||||
} |
||||
} |
||||
} |
@ -1,150 +0,0 @@
@@ -1,150 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class SchemeNode : AbstractNode |
||||
{ |
||||
string name; |
||||
string[] extensions; |
||||
string extends; |
||||
|
||||
public string Extends { |
||||
get { |
||||
return extends; |
||||
} |
||||
set { |
||||
extends = value; |
||||
} |
||||
} |
||||
|
||||
public string[] Extensions { |
||||
get { |
||||
return extensions; |
||||
} |
||||
set { |
||||
extensions = value; |
||||
} |
||||
} |
||||
|
||||
public string Name { |
||||
get { |
||||
return name; |
||||
} |
||||
set { |
||||
name = value; |
||||
} |
||||
} |
||||
|
||||
EnvironmentNode envNode; |
||||
DigitsNode digitsNode; |
||||
PropertiesNode propNode; |
||||
RuleSetsNode rulesetsNode; |
||||
|
||||
string content; |
||||
|
||||
public string Content { |
||||
get { |
||||
return content; |
||||
} |
||||
} |
||||
|
||||
public SchemeNode(XmlElement el, bool readChildren) |
||||
{ |
||||
content = el.OuterXml; |
||||
|
||||
name = el.Attributes["name"].InnerText; |
||||
|
||||
if (el.Attributes["extensions"] != null) { |
||||
extensions = el.Attributes["extensions"].InnerText.Split('|'); |
||||
} |
||||
|
||||
extends = el.GetAttribute("extends"); |
||||
|
||||
UpdateNodeText(); |
||||
|
||||
panel = new SchemeOptionPanel(this); |
||||
|
||||
if (!readChildren) return; |
||||
|
||||
envNode = new EnvironmentNode(el["Environment"]); |
||||
digitsNode = new DigitsNode(el["Digits"]); |
||||
propNode = new PropertiesNode(el["Properties"]); |
||||
rulesetsNode = new RuleSetsNode(el); |
||||
|
||||
Nodes.Add(envNode); |
||||
Nodes.Add(digitsNode); |
||||
Nodes.Add(propNode); |
||||
Nodes.Add(rulesetsNode); |
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
Text = name; |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteComment("This file was autogenerated by the #Develop highlighting editor."); |
||||
writer.WriteStartElement("SyntaxDefinition"); |
||||
|
||||
writer.WriteAttributeString("name", name); |
||||
writer.WriteAttributeString("extensions", String.Join(";", extensions)); |
||||
if (extends != "") { |
||||
writer.WriteAttributeString("extends", extends); |
||||
} |
||||
|
||||
envNode.WriteXml(writer); |
||||
propNode.WriteXml(writer); |
||||
digitsNode.WriteXml(writer); |
||||
rulesetsNode.WriteXml(writer); |
||||
|
||||
writer.WriteEndElement(); |
||||
} |
||||
} |
||||
|
||||
class SchemeOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.TextBox extBox; |
||||
private System.Windows.Forms.TextBox nameBox; |
||||
|
||||
public SchemeOptionPanel(SchemeNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Scheme.xfrm")); |
||||
nameBox = (TextBox)ControlDictionary["nameBox"]; |
||||
extBox = (TextBox)ControlDictionary["extBox"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
SchemeNode node = (SchemeNode)parent; |
||||
node.Name = nameBox.Text; |
||||
node.Extensions = extBox.Text.Split(';'); |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
SchemeNode node = (SchemeNode)parent; |
||||
nameBox.Text = node.Name; |
||||
extBox.Text = String.Join(";", node.Extensions); |
||||
} |
||||
|
||||
public override bool ValidateSettings() |
||||
{ |
||||
if (nameBox.Text == "") { |
||||
ValidationMessage("${res:Dialog.HighlightingEditor.Scheme.NameEmpty}"); |
||||
return false; |
||||
} |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
@ -1,410 +0,0 @@
@@ -1,410 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class SpanNode : AbstractNode |
||||
{ |
||||
bool stopEOL; |
||||
EditorHighlightColor color; |
||||
EditorHighlightColor beginColor = null; |
||||
EditorHighlightColor endColor = null; |
||||
string begin = String.Empty; |
||||
string end = String.Empty; |
||||
string name = String.Empty; |
||||
string rule = String.Empty; |
||||
char escapeCharacter; |
||||
bool isBeginSingleWord; |
||||
bool isEndSingleWord; |
||||
|
||||
public SpanNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("Span"); |
||||
|
||||
panel = new SpanOptionPanel(this); |
||||
|
||||
if (el == null) return; |
||||
|
||||
color = new EditorHighlightColor(el); |
||||
|
||||
if (el.Attributes["rule"] != null) { |
||||
rule = el.Attributes["rule"].InnerText; |
||||
} |
||||
|
||||
if (el.Attributes["escapecharacter"] != null) { |
||||
escapeCharacter = el.Attributes["escapecharacter"].Value[0]; |
||||
} |
||||
|
||||
name = el.Attributes["name"].InnerText; |
||||
if (el.HasAttribute("stopateol")) { |
||||
stopEOL = Boolean.Parse(el.Attributes["stopateol"].InnerText); |
||||
} else { |
||||
stopEOL = true; |
||||
} |
||||
XmlElement beginElement = el["Begin"]; |
||||
begin = beginElement.InnerText; |
||||
beginColor = new EditorHighlightColor(beginElement); |
||||
if (beginElement.HasAttribute("singleword")) { |
||||
isBeginSingleWord = Boolean.Parse(beginElement.GetAttribute("singleword")); |
||||
} |
||||
|
||||
XmlElement endElement = el["End"]; |
||||
if (endElement != null) { |
||||
end = endElement.InnerText; |
||||
endColor = new EditorHighlightColor(endElement); |
||||
if (endElement.HasAttribute("singleword")) { |
||||
isEndSingleWord = Boolean.Parse(endElement.GetAttribute("singleword")); |
||||
} |
||||
} |
||||
|
||||
UpdateNodeText(); |
||||
|
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
writer.WriteStartElement("Span"); |
||||
writer.WriteAttributeString("name", name); |
||||
if (escapeCharacter != '\0') |
||||
writer.WriteAttributeString("escapecharacter", escapeCharacter.ToString()); |
||||
if (rule != "") |
||||
writer.WriteAttributeString("rule", rule); |
||||
writer.WriteAttributeString("stopateol", stopEOL.ToString().ToLowerInvariant()); |
||||
color.WriteXmlAttributes(writer); |
||||
|
||||
writer.WriteStartElement("Begin"); |
||||
if (isBeginSingleWord) |
||||
writer.WriteAttributeString("singleword", isBeginSingleWord.ToString().ToLowerInvariant()); |
||||
if (beginColor != null && !beginColor.NoColor) |
||||
beginColor.WriteXmlAttributes(writer); |
||||
writer.WriteString(begin); |
||||
writer.WriteEndElement(); |
||||
|
||||
if (end != String.Empty) { |
||||
writer.WriteStartElement("End"); |
||||
if (isEndSingleWord) |
||||
writer.WriteAttributeString("singleword", isEndSingleWord.ToString().ToLowerInvariant()); |
||||
if (endColor != null && !endColor.NoColor) |
||||
endColor.WriteXmlAttributes(writer); |
||||
writer.WriteString(end); |
||||
writer.WriteEndElement(); |
||||
} |
||||
|
||||
writer.WriteEndElement(); |
||||
} |
||||
|
||||
public SpanNode(string Name) |
||||
{ |
||||
name = Name; |
||||
color = new EditorHighlightColor(); |
||||
UpdateNodeText(); |
||||
|
||||
panel = new SpanOptionPanel(this); |
||||
} |
||||
|
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
if (name != String.Empty) { Text = name; return; } |
||||
|
||||
if (end == String.Empty && stopEOL) { |
||||
Text = begin + " to EOL"; |
||||
} else { |
||||
Text = begin + " to " + end; |
||||
} |
||||
} |
||||
|
||||
public bool StopEOL { |
||||
get { |
||||
return stopEOL; |
||||
} |
||||
set { |
||||
stopEOL = value; |
||||
} |
||||
} |
||||
|
||||
public EditorHighlightColor Color { |
||||
get { |
||||
return color; |
||||
} |
||||
set { |
||||
color = value; |
||||
} |
||||
} |
||||
|
||||
public EditorHighlightColor BeginColor { |
||||
get { |
||||
return beginColor; |
||||
} |
||||
set { |
||||
beginColor = value; |
||||
} |
||||
} |
||||
|
||||
public EditorHighlightColor EndColor { |
||||
get { |
||||
return endColor; |
||||
} |
||||
set { |
||||
endColor = value; |
||||
} |
||||
} |
||||
|
||||
public string Begin { |
||||
get { |
||||
return begin; |
||||
} |
||||
set { |
||||
begin = value; |
||||
} |
||||
} |
||||
|
||||
public bool IsBeginSingleWord { |
||||
get { |
||||
return isBeginSingleWord; |
||||
} |
||||
set { |
||||
isBeginSingleWord = value; |
||||
} |
||||
} |
||||
|
||||
public string End { |
||||
get { |
||||
return end; |
||||
} |
||||
set { |
||||
end = value; |
||||
} |
||||
} |
||||
|
||||
public bool IsEndSingleWord { |
||||
get { |
||||
return isEndSingleWord; |
||||
} |
||||
set { |
||||
isEndSingleWord = value; |
||||
} |
||||
} |
||||
|
||||
public string Name { |
||||
get { |
||||
return name; |
||||
} |
||||
set { |
||||
name = value; |
||||
} |
||||
} |
||||
|
||||
public string Rule { |
||||
get { |
||||
return rule; |
||||
} |
||||
set { |
||||
rule = value; |
||||
} |
||||
} |
||||
|
||||
public char EscapeCharacter { |
||||
get { return escapeCharacter; } |
||||
set { escapeCharacter = value; } |
||||
} |
||||
} |
||||
|
||||
class SpanOptionPanel : NodeOptionPanel { |
||||
|
||||
private System.Windows.Forms.TextBox nameBox; |
||||
private System.Windows.Forms.TextBox beginBox; |
||||
private System.Windows.Forms.TextBox endBox; |
||||
private System.Windows.Forms.ComboBox ruleBox; |
||||
private System.Windows.Forms.CheckBox useBegin; |
||||
private System.Windows.Forms.CheckBox useEnd; |
||||
private System.Windows.Forms.Button chgBegin; |
||||
private System.Windows.Forms.Button chgEnd; |
||||
private System.Windows.Forms.Button chgCont; |
||||
private System.Windows.Forms.Label samBegin; |
||||
private System.Windows.Forms.Label samEnd; |
||||
private System.Windows.Forms.Label samCont; |
||||
private System.Windows.Forms.TextBox escCharTextBox; |
||||
private System.Windows.Forms.CheckBox stopEolBox; |
||||
private System.Windows.Forms.CheckBox beginSingleWordCheckBox; |
||||
private System.Windows.Forms.CheckBox endSingleWordCheckBox; |
||||
|
||||
public SpanOptionPanel(SpanNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Span.xfrm")); |
||||
nameBox = (TextBox)ControlDictionary["nameBox"]; |
||||
beginBox = (TextBox)ControlDictionary["beginBox"]; |
||||
beginBox.TextChanged += BeginTextChanged; |
||||
endBox = (TextBox)ControlDictionary["endBox"]; |
||||
endBox.TextChanged += EndTextChanged; |
||||
ruleBox = (ComboBox)ControlDictionary["ruleBox"]; |
||||
|
||||
useBegin = (CheckBox)ControlDictionary["useBegin"]; |
||||
useEnd = (CheckBox)ControlDictionary["useEnd"]; |
||||
|
||||
chgBegin = (Button)ControlDictionary["chgBegin"]; |
||||
chgEnd = (Button)ControlDictionary["chgEnd"]; |
||||
chgCont = (Button)ControlDictionary["chgCont"]; |
||||
|
||||
samBegin = (Label)ControlDictionary["samBegin"]; |
||||
samEnd = (Label)ControlDictionary["samEnd"]; |
||||
samCont = (Label)ControlDictionary["samCont"]; |
||||
|
||||
stopEolBox = (CheckBox)ControlDictionary["stopEolBox"]; |
||||
beginSingleWordCheckBox = (CheckBox)ControlDictionary["beginSingleWordCheckBox"]; |
||||
endSingleWordCheckBox = (CheckBox)ControlDictionary["endSingleWordCheckBox"]; |
||||
escCharTextBox = (TextBox)ControlDictionary["escCharTextBox"]; |
||||
|
||||
this.chgBegin.Click += new EventHandler(chgBeginClick); |
||||
this.chgCont.Click += new EventHandler(chgContClick); |
||||
this.chgEnd.Click += new EventHandler(chgEndClick); |
||||
|
||||
this.useBegin.CheckedChanged += new EventHandler(CheckedChanged); |
||||
this.useEnd.CheckedChanged += new EventHandler(CheckedChanged); |
||||
} |
||||
|
||||
EditorHighlightColor color; |
||||
EditorHighlightColor beginColor; |
||||
EditorHighlightColor endColor; |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
SpanNode node = (SpanNode)parent; |
||||
|
||||
node.Name = nameBox.Text; |
||||
node.Begin = beginBox.Text; |
||||
node.End = endBox.Text; |
||||
node.StopEOL = stopEolBox.Checked; |
||||
node.IsBeginSingleWord = beginSingleWordCheckBox.Checked; |
||||
node.IsEndSingleWord = endSingleWordCheckBox.Checked; |
||||
node.EscapeCharacter = escCharTextBox.TextLength > 0 ? escCharTextBox.Text[0] : '\0'; |
||||
node.Rule = ruleBox.Text; |
||||
|
||||
node.Color = color; |
||||
|
||||
if (useBegin.Checked) { |
||||
node.BeginColor = beginColor; |
||||
} else { |
||||
node.BeginColor = new EditorHighlightColor(true); |
||||
} |
||||
|
||||
if (useEnd.Checked) { |
||||
node.EndColor = endColor; |
||||
} else { |
||||
node.EndColor = new EditorHighlightColor(true); |
||||
} |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
SpanNode node = (SpanNode)parent; |
||||
|
||||
try { |
||||
ruleBox.Items.Clear(); |
||||
foreach(RuleSetNode rn in node.Parent.Parent.Parent.Nodes) { // list rule sets
|
||||
if (!rn.IsRoot) ruleBox.Items.Add(rn.Text); |
||||
} |
||||
} catch {} |
||||
|
||||
samBegin.Font = samEnd.Font = samCont.Font = ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextEditorProperties.Instance.FontContainer.DefaultFont; |
||||
|
||||
nameBox.Text = node.Name; |
||||
ruleBox.Text = node.Rule; |
||||
beginBox.Text = node.Begin; |
||||
endBox.Text = node.End; |
||||
stopEolBox.Checked = node.StopEOL; |
||||
beginSingleWordCheckBox.Checked = node.IsBeginSingleWord; |
||||
endSingleWordCheckBox.Checked = node.IsEndSingleWord; |
||||
escCharTextBox.Text = (node.EscapeCharacter == '\0') ? "" : node.EscapeCharacter.ToString(); |
||||
|
||||
color = node.Color; |
||||
beginColor = node.BeginColor; |
||||
endColor = node.EndColor; |
||||
|
||||
if (beginColor != null) { |
||||
if (!beginColor.NoColor) useBegin.Checked = true; |
||||
} |
||||
if (endColor != null) { |
||||
if (!endColor.NoColor) useEnd.Checked = true; |
||||
} |
||||
|
||||
PreviewUpdate(samBegin, beginColor); |
||||
PreviewUpdate(samEnd, endColor); |
||||
PreviewUpdate(samCont, color); |
||||
CheckedChanged(null, null); |
||||
BeginTextChanged(null, null); |
||||
EndTextChanged(null, null); |
||||
} |
||||
|
||||
public override bool ValidateSettings() |
||||
{ |
||||
if (nameBox.Text == String.Empty) { |
||||
ValidationMessage(ResourceService.GetString("Dialog.HighlightingEditor.Span.NameEmpty")); |
||||
return false; |
||||
} |
||||
if (beginBox.Text == String.Empty) { |
||||
ValidationMessage(ResourceService.GetString("Dialog.HighlightingEditor.Span.BeginEmpty")); |
||||
return false; |
||||
} |
||||
|
||||
return true; |
||||
} |
||||
|
||||
void chgBeginClick(object sender, EventArgs e) |
||||
{ |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(beginColor)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
beginColor = dlg.Color; |
||||
PreviewUpdate(samBegin, beginColor); |
||||
} |
||||
} |
||||
} |
||||
|
||||
void chgEndClick(object sender, EventArgs e) |
||||
{ |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(endColor)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
endColor = dlg.Color; |
||||
PreviewUpdate(samEnd, endColor); |
||||
} |
||||
} |
||||
} |
||||
|
||||
void chgContClick(object sender, EventArgs e) |
||||
{ |
||||
using (EditHighlightingColorDialog dlg = new EditHighlightingColorDialog(color)) { |
||||
if (dlg.ShowDialog(this) == DialogResult.OK) { |
||||
color = dlg.Color; |
||||
PreviewUpdate(samCont, color); |
||||
} |
||||
} |
||||
} |
||||
|
||||
void CheckedChanged(object sender, EventArgs e) |
||||
{ |
||||
chgEnd.Enabled = useEnd.Checked; |
||||
chgBegin.Enabled = useBegin.Checked; |
||||
} |
||||
|
||||
void BeginTextChanged(object sender, EventArgs e) |
||||
{ |
||||
beginSingleWordCheckBox.Enabled = beginBox.Text.Length > 0; |
||||
} |
||||
|
||||
void EndTextChanged(object sender, EventArgs e) |
||||
{ |
||||
endSingleWordCheckBox.Enabled = endBox.Text.Length > 0; |
||||
} |
||||
} |
||||
} |
@ -1,99 +0,0 @@
@@ -1,99 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Xml; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.AddIns.HighlightingEditor.Nodes |
||||
{ |
||||
class SpansNode : AbstractNode |
||||
{ |
||||
public SpansNode(XmlElement el) |
||||
{ |
||||
Text = ResNodeName("Spans"); |
||||
|
||||
panel = new SpansOptionPanel(this); |
||||
if (el == null) return; |
||||
|
||||
XmlNodeList nodes = el.GetElementsByTagName("Span"); |
||||
foreach (XmlElement el2 in nodes) { |
||||
Nodes.Add(new SpanNode(el2)); |
||||
} |
||||
|
||||
} |
||||
|
||||
public override void UpdateNodeText() |
||||
{ |
||||
} |
||||
|
||||
public override void WriteXml(XmlWriter writer) |
||||
{ |
||||
foreach (SpanNode node in Nodes) { |
||||
node.WriteXml(writer); |
||||
} |
||||
} |
||||
} |
||||
|
||||
class SpansOptionPanel : NodeOptionPanel |
||||
{ |
||||
private System.Windows.Forms.ListView listView; |
||||
private System.Windows.Forms.Button addBtn; |
||||
private System.Windows.Forms.Button removeBtn; |
||||
|
||||
public SpansOptionPanel(SpansNode parent) : base(parent) |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.Spans.xfrm")); |
||||
|
||||
addBtn = (Button)ControlDictionary["addBtn"]; |
||||
addBtn.Click += new EventHandler(addClick); |
||||
removeBtn = (Button)ControlDictionary["removeBtn"]; |
||||
removeBtn.Click += new EventHandler(removeClick); |
||||
|
||||
listView = (ListView)ControlDictionary["listView"]; |
||||
} |
||||
|
||||
public override void StoreSettings() |
||||
{ |
||||
} |
||||
|
||||
public override void LoadSettings() |
||||
{ |
||||
SpansNode node = (SpansNode)parent; |
||||
listView.Items.Clear(); |
||||
|
||||
foreach (SpanNode rn in node.Nodes) { |
||||
ListViewItem lv = new ListViewItem(rn.Text); |
||||
lv.Tag = rn; |
||||
listView.Items.Add(lv); |
||||
} |
||||
} |
||||
|
||||
void addClick(object sender, EventArgs e) |
||||
{ |
||||
string result = MessageService.ShowInputBox("", "${res:Dialog.HighlightingEditor.Spans.EnterName}", ""); |
||||
if (string.IsNullOrEmpty(result)) |
||||
return; |
||||
SpanNode rsn = new SpanNode(result); |
||||
ListViewItem lv = new ListViewItem(rsn.Text); |
||||
lv.Tag = rsn; |
||||
parent.Nodes.Add(rsn); |
||||
listView.Items.Add(lv); |
||||
} |
||||
|
||||
void removeClick(object sender, EventArgs e) |
||||
{ |
||||
if (listView.SelectedItems.Count != 1) return; |
||||
|
||||
((TreeNode)listView.SelectedItems[0].Tag).Remove(); |
||||
listView.SelectedItems[0].Remove(); |
||||
} |
||||
} |
||||
} |
@ -1,39 +0,0 @@
@@ -1,39 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.Form> |
||||
<Name value="MyForm" /> |
||||
<ShowInTaskbar value="False" /> |
||||
<StartPosition value="CenterParent" /> |
||||
<ClientSize value="{Width=344, Height=310}" /> |
||||
<MinimizeBox value="False" /> |
||||
<DockPadding value="" /> |
||||
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" /> |
||||
<MaximizeBox value="False" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="cancelButton" /> |
||||
<Location value="{X=262,Y=280}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.CancelButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="2" /> |
||||
<DialogResult value="Cancel" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="okButton" /> |
||||
<Location value="{X=182,Y=280}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.OKButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.TabControl> |
||||
<Name value="optionPanelTabControl" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<ClientSize value="{Width=330, Height=264}" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
</System.Windows.Forms.TabControl> |
||||
</Controls> |
||||
</System.Windows.Forms.Form> |
||||
</Components> |
@ -1,76 +0,0 @@
@@ -1,76 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.Form> |
||||
<Name value="MyForm" /> |
||||
<ShowInTaskbar value="False" /> |
||||
<FormBorderStyle value="FixedDialog" /> |
||||
<StartPosition value="CenterParent" /> |
||||
<ClientSize value="{Width=552, Height=414}" /> |
||||
<MinimizeBox value="False" /> |
||||
<DockPadding value="" /> |
||||
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<CancelButton value="cancelButton [System.Windows.Forms.Button], Text: ${res:Global.CancelButtonText}" /> |
||||
<MaximizeBox value="False" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="cancelButton" /> |
||||
<Location value="{X=470,Y=384}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.CancelButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="2" /> |
||||
<DialogResult value="Cancel" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="okButton" /> |
||||
<Location value="{X=390,Y=384}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.OKButtonText}" /> |
||||
<Anchor value="Bottom, Right" /> |
||||
<TabIndex value="1" /> |
||||
</System.Windows.Forms.Button> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="panel" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<ClientSize value="{Width=536, Height=366}" /> |
||||
<DockPadding value="" /> |
||||
<Anchor value="Top, Bottom, Left, Right" /> |
||||
<TabIndex value="0" /> |
||||
<Controls> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="optionControlPanel" /> |
||||
<Location value="{X=190,Y=32}" /> |
||||
<ClientSize value="{Width=346, Height=334}" /> |
||||
<DockPadding value="" /> |
||||
<TabIndex value="3" /> |
||||
<Dock value="Fill" /> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.Panel> |
||||
<Name value="headerPanel" /> |
||||
<Location value="{X=190,Y=0}" /> |
||||
<ClientSize value="{Width=346, Height=32}" /> |
||||
<DockPadding value="" /> |
||||
<TabIndex value="2" /> |
||||
<Dock value="Top" /> |
||||
</System.Windows.Forms.Panel> |
||||
<System.Windows.Forms.Splitter> |
||||
<Name value="splitter" /> |
||||
<TabIndex value="1" /> |
||||
<ClientSize value="{Width=6, Height=366}" /> |
||||
<Location value="{X=184,Y=0}" /> |
||||
</System.Windows.Forms.Splitter> |
||||
<System.Windows.Forms.TreeView> |
||||
<Name value="optionsTreeView" /> |
||||
<ImageIndex value="-1" /> |
||||
<ShowPlusMinus value="False" /> |
||||
<Dock value="Left" /> |
||||
<TabIndex value="0" /> |
||||
<Location value="{X=0,Y=0}" /> |
||||
<SelectedImageIndex value="-1" /> |
||||
<ClientSize value="{Width=180, Height=362}" /> |
||||
<ShowLines value="False" /> |
||||
</System.Windows.Forms.TreeView> |
||||
</Controls> |
||||
</System.Windows.Forms.Panel> |
||||
</Controls> |
||||
</System.Windows.Forms.Form> |
||||
</Components> |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue