/// <summary> /// フォント設定を初期化する /// </summary> private void initFontButton_Click(object sender, EventArgs e) { //フォント設定はタイプによらず共通 EditorOption option = EditorOption.GetDefault(FileType.KrkrType.Unknown); updateFontPreviewBox(new Font(option.FontName, option.FontSize)); useAntiAliasedFontCheckBox.Checked = option.UseAntiAliasedFont; encodingNameComboBox.SelectedItem = option.EncodingName; lineTerminatorNameComboBox.SelectedItem = option.LineTerminatorName; }
/// <summary> /// 動作設定を初期化する /// </summary> private void initActionButton_Click(object sender, EventArgs e) { EditorOption option = EditorOption.GetDefault(m_krkrType); tabIndentUpDown.Value = option.TabIndent; convertTabsToSpacesCheckBox.Checked = option.ConvertTabsToSpaces; indentationSizeUpDown.Value = option.IndentationSize; indentStyleComboBox.SelectedItem = option.IndentStyle; allowCaretBeyondEOLCheckBox.Checked = option.AllowCaretBeyondEOL; createBackupCopyCheckBox.Checked = option.CreateBackupCopy; mouseWheelScrollDownCheckBox.Checked = option.MouseWheelScrollDown; mouseWheeltextZoomCheckBox.Checked = option.MouseWheelTextZoom; hideMouseCursorCheckBox.Checked = option.HideMouseCursor; cutCopyWholeLineCheckBox.Checked = option.CutCopyWholeLine; autoInsertCurlyBracketCheckBox.Checked = option.AutoInsertCurlyBracket; useCustomLineCheckBox.Checked = option.UseCustomLine; bracketMatchingStyleComboBox.SelectedItem = option.BracketMatchingStyle; }
/// <summary> /// 表示設定を初期化する /// </summary> private void initDispButton_Click(object sender, EventArgs e) { EditorOption option = EditorOption.GetDefault(m_krkrType); showSpaceCheckBox.Checked = option.ShowSpaces; showWideSpaceCheckBox.Checked = option.ShowWideSpaces; showTabsCheckBox.Checked = option.ShowTabs; showEOLMarkerCheckBox.Checked = option.ShowEOLMarker; showInvalidLinesCheckBox.Checked = option.ShowInvalidLines; showMatchingBracketCheckBox.Checked = option.ShowMatchingBracket; showLineNumbersCheckBox.Checked = option.ShowLineNumbers; isIconBarVisibleCheckBox.Checked = option.IsIconBarVisible; enableFoldingCheckBox.Checked = option.EnableFolding; showHorizontalRulerCheckBox.Checked = option.ShowHorizontalRuler; showVerticalRulerCheckBox.Checked = option.ShowVerticalRuler; verticalRulerRowUpDown.Value = option.VerticalRulerRow; lineViewerStyleComboBox.SelectedItem = option.LineViewerStyle; }