override protected void DoUpdateSettings(Settings settings, UpdatePhase phase) { if (phase == UpdatePhase.Raw) { settings.ApplySimpleParameters(variantsTextBox, null); settings.ApplySimpleParameters(textBox, null); textBox.SetViMap(settings.viMapSource.Value, settings.viMapResult.Value); SetTextBoxParameters(); if (findInFilesData != null) { settings.ApplySimpleParameters(filterTextBox, null, false); filterTextBox.SetViMap(settings.viMapSource.Value, settings.viMapResult.Value); } } else if (phase == UpdatePhase.Parsed) { BackColor = settings.ParsedScheme.tabsBg.color; variantsTextBox.Scheme = settings.ParsedScheme; textBox.Scheme = settings.ParsedScheme; tabBar.Scheme = settings.ParsedScheme; if (findInFilesData != null) { filterTextBox.Scheme = settings.ParsedScheme; UpdateFilterText(); } } else if (phase == UpdatePhase.FindParams) { UpdateFindParams(); if (ignoreCase != tempSettings.FindParams.ignoreCase) { UpdateVariantsText(); } } }
public void ApplyParameters(MulticaretTextBox textBox, SettingsMode settingsMode, Buffer buffer) { textBox.WordWrap = settingsMode != SettingsMode.FileTree && settingsMode != SettingsMode.Help && wordWrap.Value; textBox.ShowLineNumbers = showLineNumbers.Value && settingsMode != SettingsMode.FileTree; textBox.ShowLineBreaks = showLineBreaks.Value; textBox.ShowSpaceCharacters = showSpaceCharacters.Value; textBox.HighlightCurrentLine = highlightCurrentLine.Value; textBox.TabSize = tabSize.GetValue(buffer); textBox.SpacesInsteadTabs = spacesInsteadTabs.GetValue(buffer); textBox.Autoindent = autoindent.GetValue(buffer); textBox.LineBreak = lineBreak.Value; textBox.FontFamily = font.Value; textBox.SetFontSize(fontSize.Value, lineNumberFontSize.Value); textBox.ScrollingIndent = scrollingIndent.Value; textBox.ScrollingStep = scrollingStep.Value; textBox.ShowColorAtCursor = showColorAtCursor.Value; textBox.KeyMap.main.SetAltChars(altCharsSource.Value, altCharsResult.Value); textBox.SetViMap(viMapSource.Value, viMapResult.Value); textBox.Map = settingsMode != SettingsMode.FileTree && miniMap.Value; textBox.MapScale = miniMapScale.Value; textBox.PrintMargin = settingsMode == SettingsMode.Normal && printMargin.Value; textBox.PrintMarginSize = printMarginSize.Value; textBox.MarkWord = markWord.Value; textBox.MarkBracket = markBracket.Value; }
override protected void DoUpdateSettings(Settings settings, UpdatePhase phase) { if (phase == UpdatePhase.Raw) { settings.ApplySimpleParameters(textBox, null); textBox.SetViMap(settings.viMapSource.Value, settings.viMapResult.Value); } else if (phase == UpdatePhase.Parsed) { textBox.Scheme = settings.ParsedScheme; tabBar.Scheme = settings.ParsedScheme; } }
override protected void DoUpdateSettings(Settings settings, UpdatePhase phase) { if (phase == UpdatePhase.Raw) { settings.ApplySimpleParameters(textBox, null); settings.ApplySimpleParameters(replaceTextBox, null); settings.ApplyToLabel(textLabel); settings.ApplyToLabel(replaceTextLabel); textBox.SetViMap(settings.viMapSource.Value, settings.viMapResult.Value); } else if (phase == UpdatePhase.Parsed) { BackColor = settings.ParsedScheme.tabsBg.color; textBox.Scheme = settings.ParsedScheme; replaceTextBox.Scheme = settings.ParsedScheme; tabBar.Scheme = settings.ParsedScheme; settings.ApplySchemeToLabel(textLabel); settings.ApplySchemeToLabel(replaceTextLabel); } else if (phase == UpdatePhase.FindParams) { UpdateFindParams(); } }