C# Class MonoDevelop.StyleCop.RulesOptionsPanel

StyleCop rules options panel.
Inheritance: ProjectOptionsPanelBase
Exibir arquivo Open project: DarkCloud14/MonoDevelop.StyleCop

Public Methods

Method Description
CreatePanelWidget ( ) : Control

Initializes the options panel values just before the panel is shown to user for the first time.

Will only be called if the user really gets to see the options panel.

RulesOptionsPanel ( ) : System

Initializes a new instance of the MonoDevelop.StyleCop.RulesOptionsPanel class.

Protected Methods

Method Description
Build ( ) : void

Private Methods

Method Description
DetectDetailsSettingsBoldState ( Gtk iter, PropertyAddInPair propertyAddInPair, bool isChecked ) : string

Checks if the given detailed settings property is overridden

DetectRuleOverride ( SourceAnalyzer analyzer, Rule ruleToCheck, bool isChecked, bool hasOverriddenChilds ) : bool

Checks if the given analyzer rule setting is overridden.

FillAnalyzerRules ( SourceAnalyzer analyzer, Gtk analyzerIter ) : void

Fills the given analyzer node with it's rules.

FillDetailsNodeView ( ) : void

Fills the details node view with detailed settings if available.

GetBoldMarkup ( string inputText, bool bold ) : string

Depending on bold parameter the function returns inputText with or without bold markup.

InitializeAndFillTreeView ( ) : void

Initializes and fills the tree view.

InitializeNodeView ( ) : void

Initializes the node view.

InitializePropertyState ( StyleCopAddIn addIn, BooleanProperty property ) : void

Sets the check state for the given property.

OnDetailedSettingsToggled ( object sender, Gtk toggledArgs ) : void

Called when the CellRendererToggle checkbox of node view is checked or unchecked.

OnNodeViewSelectionChanged ( object sender, EventArgs args ) : void

Called when NodeView selection changed. Fills the description if a detailed setting was selected.

OnRuleToggled ( object sender, Gtk toggledArgs ) : void

Called when the CellRendererToggle checkbox of tree view is checked or unchecked.

OnTreeViewSelectionChanged ( object sender, EventArgs args ) : void

Called when TreeView selection changed. Fills the details node view if there are any detailed settings for the selected node.

RenderRule ( Gtk column, Gtk cell, Gtk model, Gtk iter ) : void

Renders the rule text.

SetChildIterValues ( Gtk parentIter, bool valueToSet ) : bool

Goes through all children of the parent iterator and sets the given value.

SetParentIterValues ( Gtk childIter, bool valueToSet, bool hasOverriddenChilds ) : void

Goes through all parents of the child iterator, tries to set the given property value and the correct override value.

StoreAddinProperties ( StyleCopAddIn addIn ) : void

Stores the properties for the given add-in.

Method Details

Build() protected method

protected Build ( ) : void
return void

CreatePanelWidget() public method

Initializes the options panel values just before the panel is shown to user for the first time.
Will only be called if the user really gets to see the options panel.
public CreatePanelWidget ( ) : Control
return Control

RulesOptionsPanel() public method

Initializes a new instance of the MonoDevelop.StyleCop.RulesOptionsPanel class.
public RulesOptionsPanel ( ) : System
return System