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

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

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InflAffixTemplateControl() public méthode

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
Résultat System

OnInflAffixTemplateHelp() public méthode

public OnInflAffixTemplateHelp ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateAddInflAffixMsa() public méthode

public OnInflTemplateAddInflAffixMsa ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateInsertSlotAfter() public méthode

public OnInflTemplateInsertSlotAfter ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateInsertSlotBefore() public méthode

public OnInflTemplateInsertSlotBefore ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateMoveSlotLeft() public méthode

public OnInflTemplateMoveSlotLeft ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateMoveSlotRight() public méthode

public OnInflTemplateMoveSlotRight ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateRemoveInflAffixMsa() public méthode

public OnInflTemplateRemoveInflAffixMsa ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateRemoveSlot() public méthode

public OnInflTemplateRemoveSlot ( object cmd ) : bool
cmd object
Résultat bool

OnInflTemplateToggleSlotOptionality() public méthode

public OnInflTemplateToggleSlotOptionality ( object cmd ) : bool
cmd object
Résultat bool

OnJumpToTool() public méthode

public OnJumpToTool ( object commandObject ) : bool
commandObject object
Résultat bool

OnLostFocus() protected méthode

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

OnMouseUp() protected méthode

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

OnRightMouseUp() protected méthode

protected OnRightMouseUp ( Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool
pt Point
rcSrcRoot System.Drawing.Rectangle
rcDstRoot System.Drawing.Rectangle
Résultat bool

OnValidating() protected méthode

protected OnValidating ( System e ) : void
e System
Résultat void

SetContextMenuHandler() public méthode

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
Résultat void

SetStringTableValues() public méthode

public SetStringTableValues ( SIL.Utils.StringTable stringTable ) : void
stringTable SIL.Utils.StringTable
Résultat void

ShowSliceContextMenu() public méthode

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
Résultat void