Browse Source

Fixed SD2-1601 - Implement disabled text editor settings

- Show quick class browser panel

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5416 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
9357a9a4eb
  1. 21
      data/resources/StringResources.es-mx.resx
  2. 21
      data/resources/StringResources.es.resx
  3. 23
      data/resources/StringResources.fr.resx
  4. 25
      data/resources/StringResources.nl.resx
  5. 29
      data/resources/StringResources.resx
  6. 1
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/AvalonEditViewContent.cs
  7. 20
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/CodeEditor.cs
  8. 4
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/BehaviorOptions.xaml
  9. 13
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/CodeEditorOptions.cs
  10. 5
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/GeneralEditorOptions.xaml

21
data/resources/StringResources.es-mx.resx

@ -757,6 +757,15 @@ Debería recargar la solución.</value> @@ -757,6 +757,15 @@ Debería recargar la solución.</value>
<data name="AddIns.Subversion.UpdateToRevision" xml:space="preserve">
<value>Actualizar a revisión</value>
</data>
<data name="AddIns.XamlBinding.Menu.EditGridColumnsAndRows" xml:space="preserve">
<value>Editar columnas y filas de la grilla</value>
</data>
<data name="AddIns.XamlBinding.Menu.ExtractPropertiesAsStyle" xml:space="preserve">
<value>Estrar propiedades como estilo</value>
</data>
<data name="AddIns.XamlBinding.Menu.GroupInto" xml:space="preserve">
<value>Agrupar</value>
</data>
<data name="AddIns.XamlBinding.Menu.RemoveMargin" xml:space="preserve">
<value>Quitar margen</value>
</data>
@ -1958,6 +1967,12 @@ Adicionalmente, se le puede asignar a una extensión un conjunto de reglas defin @@ -1958,6 +1967,12 @@ Adicionalmente, se le puede asignar a una extensión un conjunto de reglas defin
<data name="Dialog.Options.CodeTemplate.Description" xml:space="preserve">
<value>Descripción</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupDialog.Text" xml:space="preserve">
<value>Por favor, ingrese la lista de extensiones de archivos como una lista separada por puntos y comas. (Ejemplo:.h;.c;.cpp)</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupLabel" xml:space="preserve">
<value>&amp;Editar extensiones</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditTemplateDialog.DescriptionLabel" xml:space="preserve">
<value>&amp;Descripción</value>
</data>
@ -7041,6 +7056,12 @@ Los archivos de recursos han sido renombrados/movidos convenientemente.</value> @@ -7041,6 +7056,12 @@ Los archivos de recursos han sido renombrados/movidos convenientemente.</value>
<data name="XML.MainMenu.DebugMenu.Error.BadAssembly" xml:space="preserve">
<value>No se pudo obtener la versión de .NET Framework del programa. Verifique que el programa sea un ensamblado.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotAttachToProcess" xml:space="preserve">
<value>No se pudo adjuntar al proceso.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotStartProcess" xml:space="preserve">
<value>No se pudo iniciar el proceso.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.Debugging" xml:space="preserve">
<value>No se pudo realizar la acción porque un proceso esta siendo depurado.</value>
</data>

21
data/resources/StringResources.es.resx

@ -757,6 +757,15 @@ Debería recargar la solución.</value> @@ -757,6 +757,15 @@ Debería recargar la solución.</value>
<data name="AddIns.Subversion.UpdateToRevision" xml:space="preserve">
<value>Actualizar a revisión</value>
</data>
<data name="AddIns.XamlBinding.Menu.EditGridColumnsAndRows" xml:space="preserve">
<value>Editar columnas y filas de la grilla</value>
</data>
<data name="AddIns.XamlBinding.Menu.ExtractPropertiesAsStyle" xml:space="preserve">
<value>Extraer propiedades como estilos</value>
</data>
<data name="AddIns.XamlBinding.Menu.GroupInto" xml:space="preserve">
<value>Agrupar</value>
</data>
<data name="AddIns.XamlBinding.Menu.RemoveMargin" xml:space="preserve">
<value>Quitar margen</value>
</data>
@ -1957,6 +1966,12 @@ Adicionalmente, se le puede asignar a una extensión un conjunto de reglas defin @@ -1957,6 +1966,12 @@ Adicionalmente, se le puede asignar a una extensión un conjunto de reglas defin
<data name="Dialog.Options.CodeTemplate.Description" xml:space="preserve">
<value>Descripción</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupDialog.Text" xml:space="preserve">
<value>Por favor, ingrese la lista de extensiones de archivos como una lista separada por puntos y comas. (Ejemplo:.h;.c;.cpp)</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupLabel" xml:space="preserve">
<value>&amp;Editar extensiones</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditTemplateDialog.DescriptionLabel" xml:space="preserve">
<value>&amp;Descripción</value>
</data>
@ -7047,6 +7062,12 @@ Los archivos de recursos han sido renombrados o cambiados de ubicación de acuer @@ -7047,6 +7062,12 @@ Los archivos de recursos han sido renombrados o cambiados de ubicación de acuer
<data name="XML.MainMenu.DebugMenu.Error.BadAssembly" xml:space="preserve">
<value>No se pudo obtener la versión de .NET Framework del programa. Verifique que el programa sea un ensamblado.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotAttachToProcess" xml:space="preserve">
<value>No se pudo adjuntar al proceso.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotStartProcess" xml:space="preserve">
<value>No se pudo iniciar al proceso.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.Debugging" xml:space="preserve">
<value>No se pudo realizar la acción porque un proceso esta siendo depurado.</value>
</data>

23
data/resources/StringResources.fr.resx

@ -756,6 +756,15 @@ Sauvegardez ces fichiers avant de déclencher l'opération.</value> @@ -756,6 +756,15 @@ Sauvegardez ces fichiers avant de déclencher l'opération.</value>
<data name="AddIns.Subversion.UpdateToRevision" xml:space="preserve">
<value>Mettre à jour à la révision</value>
</data>
<data name="AddIns.XamlBinding.Menu.EditGridColumnsAndRows" xml:space="preserve">
<value>Editer colonnes et lignes de la grille</value>
</data>
<data name="AddIns.XamlBinding.Menu.ExtractPropertiesAsStyle" xml:space="preserve">
<value>Extraire les propriétés comme style</value>
</data>
<data name="AddIns.XamlBinding.Menu.GroupInto" xml:space="preserve">
<value>Grouper avec</value>
</data>
<data name="AddIns.XamlBinding.Menu.RemoveMargin" xml:space="preserve">
<value>Supprimer la marge</value>
</data>
@ -1953,6 +1962,12 @@ Voulez-vous ajouter le nouveau fichier au projet ${CurrentProjectName}?</value> @@ -1953,6 +1962,12 @@ Voulez-vous ajouter le nouveau fichier au projet ${CurrentProjectName}?</value>
<data name="Dialog.Options.CodeTemplate.Description" xml:space="preserve">
<value>Description</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupDialog.Text" xml:space="preserve">
<value>Veuillez entrer les extensions de fichier séparées par un point virgule: .h;.c par exemple.</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupLabel" xml:space="preserve">
<value>&amp;Editer les extensions</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditTemplateDialog.DescriptionLabel" xml:space="preserve">
<value>&amp;Description</value>
</data>
@ -2554,7 +2569,7 @@ Voulez-vous ajouter le nouveau fichier au projet ${CurrentProjectName}?</value> @@ -2554,7 +2569,7 @@ Voulez-vous ajouter le nouveau fichier au projet ${CurrentProjectName}?</value>
<value>Afficher le curseur</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Markers.EOLMarkersCheckBox" xml:space="preserve">
<value>Affich&amp;er Fin de lignes</value>
<value>Affich&amp;er les marqueurs de fin de ligne</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Markers.HiglightBracketCheckBox" xml:space="preserve">
<value>Accolades en surbrillance</value>
@ -7040,6 +7055,12 @@ Les fichiers de resources ont été renommés/déplacés en conséquence.</value @@ -7040,6 +7055,12 @@ Les fichiers de resources ont été renommés/déplacés en conséquence.</value
<data name="XML.MainMenu.DebugMenu.Error.BadAssembly" xml:space="preserve">
<value>Impossible d'avoir une version managée de ce programme. Verifiez que cette assembly est bien en mode managée.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotAttachToProcess" xml:space="preserve">
<value>Impossible d'attacher au processus.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotStartProcess" xml:space="preserve">
<value>Impossible de démarrer le processus.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.Debugging" xml:space="preserve">
<value>Impossible de réaliser l'action car une tâche est déboguée.</value>
</data>

25
data/resources/StringResources.nl.resx

@ -755,6 +755,15 @@ Optioneel kunnen een werkmap en commandoprompt argumenten gespecificeerd worden. @@ -755,6 +755,15 @@ Optioneel kunnen een werkmap en commandoprompt argumenten gespecificeerd worden.
<data name="AddIns.Subversion.UpdateToRevision" xml:space="preserve">
<value>Opwaarderen naar versie</value>
</data>
<data name="AddIns.XamlBinding.Menu.EditGridColumnsAndRows" xml:space="preserve">
<value>Matrix kolommen en rijen bewerken</value>
</data>
<data name="AddIns.XamlBinding.Menu.ExtractPropertiesAsStyle" xml:space="preserve">
<value>Eigenschappen onttrekken als stijl</value>
</data>
<data name="AddIns.XamlBinding.Menu.GroupInto" xml:space="preserve">
<value>Groeperen</value>
</data>
<data name="AddIns.XamlBinding.Menu.RemoveMargin" xml:space="preserve">
<value>Verwijder kantlijn</value>
</data>
@ -1959,6 +1968,12 @@ Wilt u het nieuwe bestand toevoegen aan project ${CurrentProjectName}?</value> @@ -1959,6 +1968,12 @@ Wilt u het nieuwe bestand toevoegen aan project ${CurrentProjectName}?</value>
<data name="Dialog.Options.CodeTemplate.Description" xml:space="preserve">
<value>Beschrijving</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupDialog.Text" xml:space="preserve">
<value>Voer aub de lijst met bestandsextensies in. De puntkomma is het scheidingsteken. (Voorbeeld: .h;.c;.cpp)</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupLabel" xml:space="preserve">
<value>&amp;Extensies bewerken</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditTemplateDialog.DescriptionLabel" xml:space="preserve">
<value>&amp;Beschrijving</value>
</data>
@ -2560,7 +2575,7 @@ Wilt u het nieuwe bestand toevoegen aan project ${CurrentProjectName}?</value> @@ -2560,7 +2575,7 @@ Wilt u het nieuwe bestand toevoegen aan project ${CurrentProjectName}?</value>
<value>Toon cursor regel</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Markers.EOLMarkersCheckBox" xml:space="preserve">
<value>Toon &amp;EOL markering</value>
<value>&amp;EOL markeringen weergeven</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Markers.HiglightBracketCheckBox" xml:space="preserve">
<value>&amp;Markeren passend haakje</value>
@ -3197,7 +3212,7 @@ Er kan worden gekozen voor opslag van de instellingen in het .user bestand inpla @@ -3197,7 +3212,7 @@ Er kan worden gekozen voor opslag van de instellingen in het .user bestand inpla
<value>Stijl lettertype</value>
</data>
<data name="Global.FontStyle.CustomColor" xml:space="preserve">
<value>Aanpassen</value>
<value>Aangepast</value>
</data>
<data name="Global.FontStyle.SelectFont" xml:space="preserve">
<value>Kies lettertype</value>
@ -7041,6 +7056,12 @@ De hulpbron bestanden zijn hernoemd/verplaatst op de beschreven wijze.</value> @@ -7041,6 +7056,12 @@ De hulpbron bestanden zijn hernoemd/verplaatst op de beschreven wijze.</value>
<data name="XML.MainMenu.DebugMenu.Error.BadAssembly" xml:space="preserve">
<value>Kan .NET Framework versie van het programma niet krijgen. Ga na of het programma een beheerde assembly is.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotAttachToProcess" xml:space="preserve">
<value>Kan niet bij proces aanhaken.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotStartProcess" xml:space="preserve">
<value>Kan proces niet starten.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.Debugging" xml:space="preserve">
<value>Kan actie niet uitvoeren omdat er foutopsporing voor enig proces loopt.</value>
</data>

29
data/resources/StringResources.resx

@ -760,6 +760,15 @@ You have to save those files before running the operation.</value> @@ -760,6 +760,15 @@ You have to save those files before running the operation.</value>
<data name="AddIns.Subversion.UpdateToRevision" xml:space="preserve">
<value>Update to revision</value>
</data>
<data name="AddIns.XamlBinding.Menu.EditGridColumnsAndRows" xml:space="preserve">
<value>Edit grid columns and rows</value>
</data>
<data name="AddIns.XamlBinding.Menu.ExtractPropertiesAsStyle" xml:space="preserve">
<value>Extract properties as style</value>
</data>
<data name="AddIns.XamlBinding.Menu.GroupInto" xml:space="preserve">
<value>Group into</value>
</data>
<data name="AddIns.XamlBinding.Menu.RemoveMargin" xml:space="preserve">
<value>Remove margin</value>
</data>
@ -1962,6 +1971,12 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value> @@ -1962,6 +1971,12 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value>
<data name="Dialog.Options.CodeTemplate.Description" xml:space="preserve">
<value>Description</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupDialog.Text" xml:space="preserve">
<value>Please enter the list of file extensions as a semicolon-separated list. (Example: .h;.c;.cpp)</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditGroupLabel" xml:space="preserve">
<value>&amp;Edit extensions</value>
</data>
<data name="Dialog.Options.CodeTemplate.EditTemplateDialog.DescriptionLabel" xml:space="preserve">
<value>&amp;Description</value>
</data>
@ -2466,6 +2481,9 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value> @@ -2466,6 +2481,9 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value>
<data name="Dialog.Options.IDEOptions.TextEditor.Behaviour.ConvertTabsToSpacesCheckBox" xml:space="preserve">
<value>C&amp;onvert Tabs to Spaces</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Behaviour.CtrlClickGotoDefinition" xml:space="preserve">
<value>Use Ctrl+Click for "Go to Definition"</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Behaviour.CurlyBracketCheckBox" xml:space="preserve">
<value>A&amp;uto insert curly braces</value>
</data>
@ -2511,6 +2529,9 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value> @@ -2511,6 +2529,9 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value>
<data name="Dialog.Options.IDEOptions.TextEditor.Behaviour.TemplateInsertCheckBox" xml:space="preserve">
<value>&amp;Automatic template insertion</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Behaviour.UseSmartIndent" xml:space="preserve">
<value>Use smart indentation</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.CodeCompletion.PanelName" xml:space="preserve">
<value>Code Completion</value>
</data>
@ -2563,7 +2584,7 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value> @@ -2563,7 +2584,7 @@ Do you want to add the new file to the project ${CurrentProjectName}?</value>
<value>Show caret line</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Markers.EOLMarkersCheckBox" xml:space="preserve">
<value>Show &amp;EOL markers</value>
<value>Show &amp;end-of-line markers</value>
</data>
<data name="Dialog.Options.IDEOptions.TextEditor.Markers.HiglightBracketCheckBox" xml:space="preserve">
<value>Highlight &amp;matching bracket</value>
@ -7055,6 +7076,12 @@ The resources files have been renamed/moved accordingly.</value> @@ -7055,6 +7076,12 @@ The resources files have been renamed/moved accordingly.</value>
<data name="XML.MainMenu.DebugMenu.Error.BadAssembly" xml:space="preserve">
<value>Can not get .NET Framework version of program. Check that the program is managed assembly.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotAttachToProcess" xml:space="preserve">
<value>Can not attach to process.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.CannotStartProcess" xml:space="preserve">
<value>Can not start process.</value>
</data>
<data name="XML.MainMenu.DebugMenu.Error.Debugging" xml:space="preserve">
<value>Can not perform action because some process is debugged.</value>
</data>

1
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/AvalonEditViewContent.cs

@ -262,6 +262,7 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -262,6 +262,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
public void ParseInformationUpdated(ParseInformation parseInfo)
{
WorkbenchSingleton.AssertMainThread();
// When parse information is updated quickly in succession, only do a single update
// to the latest version.
updateParseInfoTo = parseInfo;

20
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/CodeEditor.cs

@ -19,6 +19,7 @@ using System.Windows.Input; @@ -19,6 +19,7 @@ using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using ICSharpCode.AvalonEdit.AddIn.Options;
using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.AvalonEdit.Editing;
using ICSharpCode.AvalonEdit.Highlighting;
@ -139,6 +140,7 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -139,6 +140,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
public CodeEditor()
{
CodeEditorOptions.Instance.PropertyChanged += CodeEditorOptions_Instance_PropertyChanged;
this.CommandBindings.Add(new CommandBinding(SharpDevelopRoutedCommands.SplitView, OnSplitView));
textMarkerService = new TextMarkerService(this);
@ -160,6 +162,12 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -160,6 +162,12 @@ namespace ICSharpCode.AvalonEdit.AddIn
this.Children.Add(primaryTextEditor);
}
void CodeEditorOptions_Instance_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "EnableQuickClassBrowser")
FetchParseInformation();
}
protected virtual CodeEditorView CreateTextEditor()
{
CodeEditorView textEditor = new CodeEditorView();
@ -474,12 +482,19 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -474,12 +482,19 @@ namespace ICSharpCode.AvalonEdit.AddIn
void FetchParseInformation()
{
ParseInformationUpdated(ParserService.GetParseInformation(this.FileName));
ParseInformation parseInfo = ParserService.GetExistingParseInformation(this.FileName);
if (parseInfo == null) {
// if parse info is not yet available, start parsing
var future = ParserService.BeginParse(this.FileName, primaryTextEditorAdapter.Document);
if (future.Wait(50))
parseInfo = future.Result;
}
ParseInformationUpdated(parseInfo);
}
public void ParseInformationUpdated(ParseInformation parseInfo)
{
if (parseInfo != null) {
if (parseInfo != null && CodeEditorOptions.Instance.EnableQuickClassBrowser) {
// don't create quickClassBrowser for files that don't have any classes
// (but do keep the quickClassBrowser when the last class is removed from a file)
if (quickClassBrowser != null || parseInfo.CompilationUnit.Classes.Count > 0) {
@ -506,6 +521,7 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -506,6 +521,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
public void Dispose()
{
CodeEditorOptions.Instance.PropertyChanged -= CodeEditorOptions_Instance_PropertyChanged;
primaryTextEditorAdapter.Language.Detach();
if (secondaryTextEditorAdapter != null)
secondaryTextEditorAdapter.Language.Detach();

4
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/BehaviorOptions.xaml

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.ConvertTabsToSpacesCheckBox}" />
<CheckBox
IsChecked="{core:OptionBinding local:CodeEditorOptions.UseSmartIndentation}"
Content="(TODO: translate) Use smart indentation" />
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.UseSmartIndent}" />
</StackPanel>
</GroupBox>
<GroupBox
@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.CutCopyWholeLine}" />
<CheckBox
IsChecked="{core:OptionBinding local:CodeEditorOptions.CtrlClickGoToDefinition}"
Content="(TODO: translate) Use Ctrl+Click for &quot;Go to Definition&quot;" />
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Behaviour.CtrlClickGotoDefinition}" />
</StackPanel>
</GroupBox>
</StackPanel>

13
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/CodeEditorOptions.cs

@ -148,6 +148,19 @@ namespace ICSharpCode.AvalonEdit.AddIn.Options @@ -148,6 +148,19 @@ namespace ICSharpCode.AvalonEdit.AddIn.Options
}
}
bool enableQuickClassBrowser = true;
[DefaultValue(true)]
public bool EnableQuickClassBrowser {
get { return enableQuickClassBrowser; }
set {
if (enableQuickClassBrowser != value) {
enableQuickClassBrowser = value;
OnPropertyChanged("EnableQuickClassBrowser");
}
}
}
public void BindToTextEditor(TextEditor editor)
{
editor.Options = this;

5
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/Options/GeneralEditorOptions.xaml

@ -13,13 +13,12 @@ @@ -13,13 +13,12 @@
<StackPanel>
<CheckBox
IsChecked="{core:OptionBinding local:CodeEditorOptions.WordWrap}"
Content="(TODO: translate) Word-wrap" />
Content="{core:Localize Dialog.Options.IDEOptions.OutputPanel.WordWrap}" />
<CheckBox
IsChecked="{core:OptionBinding local:CodeEditorOptions.EnableFolding}"
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FoldingCheckBox}" />
<CheckBox
IsEnabled="False"
IsChecked="True"
IsChecked="{core:OptionBinding local:CodeEditorOptions.EnableQuickClassBrowser}"
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.ShowQuickClassBrowserCheckBox}" />
<CheckBox
IsChecked="{core:OptionBinding local:CodeEditorOptions.ShowLineNumbers}"

Loading…
Cancel
Save