C# Class SIL.FieldWorks.XWorks.MorphologyEditor.RuleFormulaSlice

This is a view slice that contains a RuleFormulaControl. It is extended by phonological/morphological rule slices.
Inheritance: SIL.FieldWorks.Common.Framework.DetailControls.ViewSlice, XCore.IxCoreColleague
Mostra file Open project: sillsdev/FieldWorks

Public Methods

Method Description
InsertionControl_SizeChanged ( object sender, EventArgs e ) : void
Install ( DataTree parent ) : void
OnContextJumpToNaturalClass ( object args ) : bool
OnContextJumpToPhoneme ( object args ) : bool
OnContextSetFeatures ( object args ) : bool
OnDisplayContextJumpToNaturalClass ( object commandObject, XCore &display ) : bool
OnDisplayContextJumpToPhoneme ( object commandObject, XCore &display ) : bool
OnDisplayContextSetFeatures ( object commandObject, XCore &display ) : bool
RuleFormulaSlice ( ) : System

Protected Methods

Method Description
DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
Dispose ( bool disposing ) : void
OnEnter ( EventArgs e ) : void
OnLeave ( EventArgs e ) : void

Private Methods

Method Description
SetSubcontrolHeights ( Control ctrl, int oldHeight, int newHeight ) : void

Set the heights of subcontrols to the new value if they're equal to the old value. (This appears to be done automatically by the Windows .Net implementation during the call to InsertionControl.Show(), even before the specific setting of Height in OnEnter()!)

Setting only RuleFormulaControl.Height fails, because the process of setting the height triggers a layout, and the layout code changes the height to be no more than that of its parent control. There are two levels of control between RuleFormulaSlice and RuleFormulaControl, so the heights of those controls must be adjusted as well. I suppose something like this could be inserted into the implementation of Control.Height, but I'm reluctant to do so, partly because even then the behavior would not really match that of the Windows .Net implementation.

Method Details

DesiredHeight() protected method

protected DesiredHeight ( SIL.FieldWorks.Common.RootSites.RootSite rs ) : int
rs SIL.FieldWorks.Common.RootSites.RootSite
return int

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InsertionControl_SizeChanged() public method

public InsertionControl_SizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Install() public method

public Install ( DataTree parent ) : void
parent SIL.FieldWorks.Common.Framework.DetailControls.DataTree
return void

OnContextJumpToNaturalClass() public method

public OnContextJumpToNaturalClass ( object args ) : bool
args object
return bool

OnContextJumpToPhoneme() public method

public OnContextJumpToPhoneme ( object args ) : bool
args object
return bool

OnContextSetFeatures() public method

public OnContextSetFeatures ( object args ) : bool
args object
return bool

OnDisplayContextJumpToNaturalClass() public method

public OnDisplayContextJumpToNaturalClass ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
return bool

OnDisplayContextJumpToPhoneme() public method

public OnDisplayContextJumpToPhoneme ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
return bool

OnDisplayContextSetFeatures() public method

public OnDisplayContextSetFeatures ( object commandObject, XCore &display ) : bool
commandObject object
display XCore
return bool

OnEnter() protected method

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnLeave() protected method

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
return void

RuleFormulaSlice() public method

public RuleFormulaSlice ( ) : System
return System