42
41
controlLeftRightCombobox.InsertText (0, GettextCatalog.GetString ("MonoDevelop"));
43
42
controlLeftRightCombobox.InsertText (1, GettextCatalog.GetString ("Emacs"));
44
43
controlLeftRightCombobox.InsertText (2, GettextCatalog.GetString ("SharpDevelop"));
45
autoInsertBraceCheckbutton.Toggled += HandleAutoInsertBraceCheckbuttonToggled;
47
48
public virtual Gtk.Widget CreatePanelWidget ()
49
50
// this.autoInsertTemplateCheckbutton.Active = DefaultSourceEditorOptions.Options.AutoInsertTemplates;
50
51
this.autoInsertBraceCheckbutton.Active = DefaultSourceEditorOptions.Instance.AutoInsertMatchingBracket;
52
this.smartSemicolonPlaceCheckbutton.Active = DefaultSourceEditorOptions.Instance.SmartSemicolonPlacement;
51
54
this.tabAsReindentCheckbutton.Active = DefaultSourceEditorOptions.Instance.TabIsReindent;
52
55
this.indentationCombobox.Active = (int)DefaultSourceEditorOptions.Instance.IndentStyle;
53
56
this.controlLeftRightCombobox.Active = (int)DefaultSourceEditorOptions.Instance.ControlLeftRightMode;
54
57
this.useViModesCheck.Active = DefaultSourceEditorOptions.Instance.UseViModes;
55
58
this.checkbuttonOnTheFlyFormatting.Active = DefaultSourceEditorOptions.Instance.OnTheFlyFormatting;
60
checkbuttonAutoSetSearchPatternCasing.Active = PropertyService.Get ("AutoSetPatternCasing", true);
61
HandleAutoInsertBraceCheckbuttonToggled (null, null);
65
void HandleAutoInsertBraceCheckbuttonToggled (object sender, EventArgs e)
67
this.smartSemicolonPlaceCheckbutton.Sensitive = this.autoInsertBraceCheckbutton.Active;
59
70
public virtual void ApplyChanges ()
61
72
//DefaultSourceEditorOptions.Options.AutoInsertTemplates = this.autoInsertTemplateCheckbutton.Active;
62
73
DefaultSourceEditorOptions.Instance.AutoInsertMatchingBracket = this.autoInsertBraceCheckbutton.Active;
74
DefaultSourceEditorOptions.Instance.SmartSemicolonPlacement = this.smartSemicolonPlaceCheckbutton.Active;
63
75
DefaultSourceEditorOptions.Instance.IndentStyle = (MonoDevelop.Ide.Gui.Content.IndentStyle)this.indentationCombobox.Active;
64
76
DefaultSourceEditorOptions.Instance.TabIsReindent = this.tabAsReindentCheckbutton.Active;
65
77
DefaultSourceEditorOptions.Instance.ControlLeftRightMode = (ControlLeftRightMode)this.controlLeftRightCombobox.Active;
66
78
DefaultSourceEditorOptions.Instance.UseViModes = this.useViModesCheck.Active;
67
79
DefaultSourceEditorOptions.Instance.OnTheFlyFormatting = this.checkbuttonOnTheFlyFormatting.Active;
80
PropertyService.Set ("AutoSetPatternCasing", checkbuttonAutoSetSearchPatternCasing.Active);
70
83
public void Initialize (OptionsDialog dialog, object dataObject)