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

Summary description for InflAffixTemplateControl.
Inheritance: SIL.FieldWorks.Common.Controls.XmlView, XCore.IxCoreColleague
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
AddInflAffixMsaToSlot void
DetermineMsaContextMenuItemLabel ITsString
DetermineSlotContextMenuItemLabel ITsString
DoReplaceToken ITsString
DoReplaceToken ITsString
DoXXXReplace ITsString
DoXXXReplace ITsString
DoYYYReplace ITsString
EnsureNewMsaHasSense void
EntryHasAffixThatMightBeInSlot bool
FindMsaInSlots string
FindParentSlice Slice
FindSlotNameOfMsa string
FixSlotName void
GetAffixSequenceContainingSlot int
GetAllUnnamedSlotValues List
GetHighestPOS IPartOfSpeech
GetIsPrefixSlot bool
GetNextUnnamedSlotName string
HandleInsert void
HandleInsertAroundSlot void
HandleInsertAroundStem void
HandleMove void
IsRTL bool
MakeChooserWithExtantMsas SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
MakeChooserWithExtantSlots SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
MenuLabelForInflAffixTemplateHelp ITsString
MenuLabelForInflTemplateAddInflAffixMsa ITsString
MenuLabelForInflTemplateAffixSlotOperation ITsString
MenuLabelForInflTemplateMoveSlot ITsString
MenuLabelForInflTemplateRemoveInflAffixMsa ITsString
MenuLabelForJumpToTool ITsString
OtherInflAffixMsasExist bool
SetEnabledIfFindSlotInSequence bool
TsSlotName ITsString
TsSlotNameOfMsa ITsString

Public Methods

Method Description
InflAffixTemplateControl ( SIL.FieldWorks.FDO.FdoCache cache, int hvoRoot, XmlNode xnSpec, SIL.Utils.StringTable stringTable ) : System
OnInflAffixTemplateHelp ( object cmd ) : bool
OnInflTemplateAddInflAffixMsa ( object cmd ) : bool
OnInflTemplateInsertSlotAfter ( object cmd ) : bool
OnInflTemplateInsertSlotBefore ( object cmd ) : bool
OnInflTemplateMoveSlotLeft ( object cmd ) : bool
OnInflTemplateMoveSlotRight ( object cmd ) : bool
OnInflTemplateRemoveInflAffixMsa ( object cmd ) : bool
OnInflTemplateRemoveSlot ( object cmd ) : bool
OnInflTemplateToggleSlotOptionality ( object cmd ) : bool
OnJumpToTool ( object commandObject ) : bool
SetContextMenuHandler ( InflAffixTemplateEventHandler handler ) : void

Set the handler which will be invoked when the user right-clicks on the Inflectional Affix Template slice, or in some other way invokes the context menu.

SetStringTableValues ( SIL.Utils.StringTable stringTable ) : void
ShowSliceContextMenu ( object sender, SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateEventArgs e ) : void

Invoked by a slice when the user does something to bring up a context menu

Protected Methods

Method Description
Dispose ( bool disposing ) : void
OnLostFocus ( EventArgs e ) : void

When focus is lost, stop filtering messages to catch characters

OnMouseUp ( MouseEventArgs e ) : void

Intercepts mouse clicks on Command Icons and translates them into right mouse clicks

OnRightMouseUp ( Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool
OnValidating ( System e ) : void

Private Methods

Method Description
AddInflAffixMsaToSlot ( ICmObject obj, IMoInflAffixSlot slot ) : void
DetermineMsaContextMenuItemLabel ( string sLabel ) : ITsString
DetermineSlotContextMenuItemLabel ( string sLabel ) : ITsString

DoReplaceToken ( ITsString tssSource, ITsString tssReplace, string sToken ) : ITsString
DoReplaceToken ( string sSource, ITsString tssReplace, string sToken ) : ITsString
DoXXXReplace ( ITsString tssSource, ITsString tssReplace ) : ITsString
DoXXXReplace ( string sSource, ITsString tssReplace ) : ITsString
DoYYYReplace ( string sSource, ITsString tssReplace ) : ITsString
EnsureNewMsaHasSense ( ILexEntry lex, IMoInflAffMsa newMsa ) : void
EntryHasAffixThatMightBeInSlot ( ILexEntry lex, bool fIsPrefixSlot ) : bool

Determine if the lex entry can appear in the prefix/suffix slot

FindMsaInSlots ( List listSlotHvos ) : string
FindParentSlice ( ) : Slice
FindSlotNameOfMsa ( int hvoSlot ) : string
FixSlotName ( IMoInflAffixSlot slot ) : void

Fix the name of any slot that is still "Type slot name here".

GetAffixSequenceContainingSlot ( IMoInflAffixSlot slot, IFdoReferenceSequence &seq, int &index ) : int
GetAllUnnamedSlotValues ( ) : List
GetHighestPOS ( IPartOfSpeech pos, string &sTopPOS ) : IPartOfSpeech
GetIsPrefixSlot ( bool fBefore ) : bool
GetNextUnnamedSlotName ( ) : string
HandleInsert ( bool fBefore ) : void
HandleInsertAroundSlot ( bool fBefore, IMoInflAffixSlot chosenSlot, int &flid, int &ihvo ) : void
HandleInsertAroundStem ( bool fBefore, IMoInflAffixSlot chosenSlot, int &flid, int &ihvo ) : void
HandleMove ( Command cmd, bool bLeft ) : void
IsRTL ( ) : bool
MakeChooserWithExtantMsas ( IMoInflAffixSlot slot, XCore cmd ) : SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
MakeChooserWithExtantSlots ( bool fIsPrefixSlot ) : SIL.FieldWorks.Common.Framework.DetailControls.SimpleListChooser
MenuLabelForInflAffixTemplateHelp ( string sLabel ) : ITsString

MenuLabelForInflTemplateAddInflAffixMsa ( string sLabel ) : ITsString

MenuLabelForInflTemplateAffixSlotOperation ( string sLabel, bool &fEnabled ) : ITsString

MenuLabelForInflTemplateMoveSlot ( string sLabel, bool fMoveLeft, bool &fEnabled ) : ITsString

MenuLabelForInflTemplateRemoveInflAffixMsa ( string sLabel ) : ITsString

MenuLabelForJumpToTool ( string sLabel ) : ITsString

OtherInflAffixMsasExist ( ILexEntry lex, IMoInflAffMsa inflMsa ) : bool
SetEnabledIfFindSlotInSequence ( IFdoReferenceSequence slots, bool &fEnabled, bool bIsLeft ) : bool
TsSlotName ( IMoInflAffixSlot slot ) : ITsString
TsSlotNameOfMsa ( IMoInflAffMsa msa ) : ITsString

Method Details

Dispose() protected method

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

InflAffixTemplateControl() public method

public InflAffixTemplateControl ( SIL.FieldWorks.FDO.FdoCache cache, int hvoRoot, XmlNode xnSpec, SIL.Utils.StringTable stringTable ) : System
cache SIL.FieldWorks.FDO.FdoCache
hvoRoot int
xnSpec System.Xml.XmlNode
stringTable SIL.Utils.StringTable
return System

OnInflAffixTemplateHelp() public method

public OnInflAffixTemplateHelp ( object cmd ) : bool
cmd object
return bool

OnInflTemplateAddInflAffixMsa() public method

public OnInflTemplateAddInflAffixMsa ( object cmd ) : bool
cmd object
return bool

OnInflTemplateInsertSlotAfter() public method

public OnInflTemplateInsertSlotAfter ( object cmd ) : bool
cmd object
return bool

OnInflTemplateInsertSlotBefore() public method

public OnInflTemplateInsertSlotBefore ( object cmd ) : bool
cmd object
return bool

OnInflTemplateMoveSlotLeft() public method

public OnInflTemplateMoveSlotLeft ( object cmd ) : bool
cmd object
return bool

OnInflTemplateMoveSlotRight() public method

public OnInflTemplateMoveSlotRight ( object cmd ) : bool
cmd object
return bool

OnInflTemplateRemoveInflAffixMsa() public method

public OnInflTemplateRemoveInflAffixMsa ( object cmd ) : bool
cmd object
return bool

OnInflTemplateRemoveSlot() public method

public OnInflTemplateRemoveSlot ( object cmd ) : bool
cmd object
return bool

OnInflTemplateToggleSlotOptionality() public method

public OnInflTemplateToggleSlotOptionality ( object cmd ) : bool
cmd object
return bool

OnJumpToTool() public method

public OnJumpToTool ( object commandObject ) : bool
commandObject object
return bool

OnLostFocus() protected method

When focus is lost, stop filtering messages to catch characters
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseUp() protected method

Intercepts mouse clicks on Command Icons and translates them into right mouse clicks
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnRightMouseUp() protected method

protected OnRightMouseUp ( Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool
pt Point
rcSrcRoot System.Drawing.Rectangle
rcDstRoot System.Drawing.Rectangle
return bool

OnValidating() protected method

protected OnValidating ( System e ) : void
e System
return void

SetContextMenuHandler() public method

Set the handler which will be invoked when the user right-clicks on the Inflectional Affix Template slice, or in some other way invokes the context menu.
public SetContextMenuHandler ( InflAffixTemplateEventHandler handler ) : void
handler InflAffixTemplateEventHandler
return void

SetStringTableValues() public method

public SetStringTableValues ( SIL.Utils.StringTable stringTable ) : void
stringTable SIL.Utils.StringTable
return void

ShowSliceContextMenu() public method

Invoked by a slice when the user does something to bring up a context menu
public ShowSliceContextMenu ( object sender, SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateEventArgs e ) : void
sender object
e SIL.FieldWorks.XWorks.MorphologyEditor.InflAffixTemplateEventArgs
return void