5
using MonoDevelop.Core;
6
using MonoDevelop.Core.Gui.Dialogs;
8
using MonoDevelop.Ide.Gui.Content;
10
using MonoDevelop.CSharp.Formatting;
11
using MonoDevelop.CSharp.Parser;
13
namespace MonoDevelop.CSharp.Formatting
15
partial class FormattingPanelWidget : Gtk.Bin {
16
public FormattingPanelWidget ()
20
indentCaseLabels.Active = FormattingProperties.IndentCaseLabels;
22
// set checkbox/radiobutton values
23
switch (FormattingProperties.GotoLabelIndentStyle) {
24
case GotoLabelIndentStyle.LeftJustify:
25
indentGotoLabelsLeftJustify.Active = true;
27
case GotoLabelIndentStyle.OneLess:
28
indentGotoLabelsUpOneLevel.Active = true;
30
case GotoLabelIndentStyle.Normal:
31
indentGotoLabelsNormally.Active = true;
38
FormattingProperties.IndentCaseLabels = indentCaseLabels.Active;
40
if (indentGotoLabelsLeftJustify.Active)
41
FormattingProperties.GotoLabelIndentStyle = GotoLabelIndentStyle.LeftJustify;
42
else if (indentGotoLabelsUpOneLevel.Active)
43
FormattingProperties.GotoLabelIndentStyle = GotoLabelIndentStyle.OneLess;
44
else if (indentGotoLabelsNormally.Active)
45
FormattingProperties.GotoLabelIndentStyle = GotoLabelIndentStyle.Normal;
49
public class FormattingPanel : OptionsPanel
51
FormattingPanelWidget widget;
53
public override Widget CreatePanelWidget ()
55
return (widget = new FormattingPanelWidget ());
58
public override void ApplyChanges ()