Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5073 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
11 changed files with 234 additions and 34 deletions
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<gui:OptionPanel |
||||
x:Class="ICSharpCode.AvalonEdit.AddIn.Options.BehaviorOptions" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" xmlns:local="clr-namespace:ICSharpCode.AvalonEdit.AddIn.Options"> |
||||
<StackPanel> |
||||
<GroupBox |
||||
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.TabsGroupBox}"> |
||||
<StackPanel> |
||||
<StackPanel |
||||
Orientation="Horizontal"> |
||||
<Label |
||||
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.IndentLabel}" /> |
||||
<TextBox |
||||
Text="{core:OptionBinding local:CodeEditorOptions.IndentationSize}" |
||||
Width="40"/> |
||||
</StackPanel> |
||||
<CheckBox |
||||
IsChecked="{core:OptionBinding local:CodeEditorOptions.ConvertTabsToSpaces}" |
||||
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.ConvertTabsToSpacesCheckBox}" /> |
||||
<CheckBox |
||||
Content="(TODO: translate) Use smart indentation" /> |
||||
</StackPanel> |
||||
</GroupBox> |
||||
<GroupBox |
||||
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.BehaviourGroupBox}"> |
||||
<StackPanel> |
||||
<CheckBox |
||||
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.MouseWheelZoomCheckBoxCheckBox}" /> |
||||
<CheckBox |
||||
IsChecked="{core:OptionBinding local:CodeEditorOptions.CutCopyWholeLine}" |
||||
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.CutCopyWholeLine}" /> |
||||
<CheckBox |
||||
Content="(TODO: translate) Word-wrap" /> |
||||
<CheckBox |
||||
Content="(TODO: translate) Use Ctrl+Click for "Go to Definition"" /> |
||||
</StackPanel> |
||||
</GroupBox> |
||||
</StackPanel> |
||||
</gui:OptionPanel> |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Daniel Grunwald"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Text; |
||||
using System.Windows; |
||||
using System.Windows.Controls; |
||||
using System.Windows.Data; |
||||
using System.Windows.Documents; |
||||
using System.Windows.Input; |
||||
using System.Windows.Media; |
||||
|
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.AvalonEdit.AddIn.Options |
||||
{ |
||||
/// <summary>
|
||||
/// Interaction logic for BehaviorOptions.xaml
|
||||
/// </summary>
|
||||
public partial class BehaviorOptions : OptionPanel |
||||
{ |
||||
public BehaviorOptions() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Daniel Grunwald"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.ComponentModel; |
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.AvalonEdit.AddIn.Options |
||||
{ |
||||
[Serializable] |
||||
public class CodeEditorOptions : TextEditorOptions |
||||
{ |
||||
public static CodeEditorOptions Instance { |
||||
get { return PropertyService.Get("CodeEditorOptions", new CodeEditorOptions()); } |
||||
} |
||||
|
||||
// always support scrolling below the end of the document - it's better when folding is enabled
|
||||
[DefaultValue(true)] |
||||
public override bool AllowScrollBelowDocument { |
||||
get { return true; } |
||||
set { |
||||
if (value == false) |
||||
throw new NotSupportedException(); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<gui:OptionPanel |
||||
x:Class="ICSharpCode.AvalonEdit.AddIn.Options.GeneralEditorOptions" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:winforms="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop"> |
||||
<StackPanel> |
||||
<GroupBox |
||||
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox}"> |
||||
<winforms:WindowsFormsHost> |
||||
<gui:FontSelectionPanel x:Name="fontSelectionPanel" /> |
||||
</winforms:WindowsFormsHost> |
||||
</GroupBox> |
||||
<GroupBox |
||||
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}"> |
||||
<StackPanel> |
||||
<CheckBox Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FoldingCheckBox}" /> |
||||
<CheckBox Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.ShowQuickClassBrowserCheckBox}" /> |
||||
<CheckBox Content="(TODO: translate) show line numbers" /> |
||||
</StackPanel> |
||||
</GroupBox> |
||||
</StackPanel> |
||||
</gui:OptionPanel> |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Daniel Grunwald"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Text; |
||||
using System.Windows; |
||||
using System.Windows.Controls; |
||||
using System.Windows.Data; |
||||
using System.Windows.Documents; |
||||
using System.Windows.Input; |
||||
using System.Windows.Media; |
||||
|
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.AvalonEdit.AddIn.Options |
||||
{ |
||||
/// <summary>
|
||||
/// Interaction logic for GeneralEditorOptions.xaml
|
||||
/// </summary>
|
||||
public partial class GeneralEditorOptions : OptionPanel |
||||
{ |
||||
public GeneralEditorOptions() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue