C# Class SIL.FieldWorks.IText.SandboxBase.IhMissingEntry

Handles the morpheme entry (LexEntry) line when none is known.
Inheritance: InterlinComboHandler
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
AddItemToComboList void
AddMorphItemToList void
AddMorphItemsToComboList void
AddUnknownLexEntryToComboList void
BuildEntryComponents LexEntryComponents
BuildMorphItemsFromEntry void
CreateCoreMorphItemBasedOnSandboxCurrentState MorphItem
CreateNewEntry void
GetMainEntryOfVariant ILexEntry
GetMorphIndex int
GetMorphInfo void
GetMorphInfo void
GetMorphItem MorphItem
HandleComboSelChange void
HandleComboSelSame void
HandleSelectMorphComboItem void
HaveSameObjs bool
HvoOrZero int
IhMissingEntry System
LoadMorphItems void
NeedSelectSame bool
OnSelectAllomorphOf void
OnSelectCreateNewEntry void
OnSelectEditMorphBreaks void
OnSelectVariantOf void
ReturnIndexOfMorphItemMatchingCurrentAnalysisLevel int
RunAddNewAllomorphDlg void
RunAddNewSenseDlg int
RunCreateEntryDlg void
SetLexEntryToUnknown void
SyncItemsToMorphItems void
UpdateMorphEntry void
WasReal int

Public Methods

Method Description
HandleSelect ( int index ) : void
SetupCombo ( ) : void

Protected Methods

Method Description
CopyLexEntryInfoToMonomorphemicWordGlossAndPos ( ) : void
CopyLexEntryInfoToMonomorphemicWordGlossAndPos ( bool fCopyToWordGloss, bool fCopyToWordPos ) : void
Dispose ( bool disposing ) : void

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.

If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.

SelectEntryIcon ( int morphIndex ) : void

Private Methods

Method Description
AddItemToComboList ( string itemName, EventHandler onSelect, ITsTextProps itemProperties, bool enableItem ) : void
AddMorphItemToList ( IMoForm mf, ILexEntryRef ler, ITsString tssSense, ILexSense sense, IWritingSystem wsAnalysis, ITsString tssName, int hvoLexEntry ) : void
AddMorphItemsToComboList ( ) : void
AddUnknownLexEntryToComboList ( ) : void
BuildEntryComponents ( ) : LexEntryComponents
BuildMorphItemsFromEntry ( IMoForm mf, ILexEntry le, ILexEntryRef ler ) : void

CreateCoreMorphItemBasedOnSandboxCurrentState ( ) : MorphItem
CreateNewEntry ( bool fCreateNow, ILexEntry &le, IMoForm &allomorph, ILexSense &sense ) : void
GetMainEntryOfVariant ( ILexEntryRef ler ) : ILexEntry
GetMorphIndex ( ) : int
GetMorphInfo ( ITsString &tssForm, ITsString &tssFullForm, IMoForm &morphReal, IMoMorphType &morphType ) : void
GetMorphInfo ( ITsString &tssForm, ITsString &tssFullForm, IMoMorphType &morphType ) : void
GetMorphItem ( IMoForm mf, ITsString tssName, ILexSense sense, ITsString tssSense, ILexEntryRef ler, int hvoLexEntry, ILexEntryInflType inflType ) : MorphItem
HandleComboSelChange ( object sender, EventArgs ea ) : void
HandleComboSelSame ( object sender, EventArgs ea ) : void
HandleSelectMorphComboItem ( object sender, EventArgs args ) : void

HaveSameObjs ( MorphItem x, MorphItem y ) : bool

Determines if the two MorphItems are based on the same objects, ignoring string values.

HvoOrZero ( ICmObject co ) : int
IhMissingEntry ( IHelpTopicProvider helpTopicProvider ) : System

Initializes a new instance of the IhMissingEntry class.

LoadMorphItems ( ) : void
NeedSelectSame ( ) : bool

Return true if it is necessary to call HandleSelect even though we selected the current item.

OnSelectAllomorphOf ( object sender, EventArgs args ) : void
OnSelectCreateNewEntry ( object sender, EventArgs args ) : void
OnSelectEditMorphBreaks ( object sender, EventArgs args ) : void
OnSelectVariantOf ( object sender, EventArgs args ) : void
ReturnIndexOfMorphItemMatchingCurrentAnalysisLevel ( int realHvo ) : int

RunAddNewAllomorphDlg ( ) : void
RunAddNewSenseDlg ( ITsString tssForm, ILexEntry le ) : int
RunCreateEntryDlg ( ) : void

Run the dialog that allows the user to create a new LexEntry.

SetLexEntryToUnknown ( object sender, EventArgs args ) : void
SyncItemsToMorphItems ( ) : void
UpdateMorphEntry ( IMoForm moFormReal, ILexEntry entryReal, ILexSense senseReal, ILexEntryInflType inflType = null ) : void

Update the sandbox cache to reflect a choice of the real MoForm and the entry indicated by the FdoCache hvos passed.

WasReal ( ) : int

Method Details

CopyLexEntryInfoToMonomorphemicWordGlossAndPos() protected method

protected CopyLexEntryInfoToMonomorphemicWordGlossAndPos ( ) : void
return void

CopyLexEntryInfoToMonomorphemicWordGlossAndPos() protected method

protected CopyLexEntryInfoToMonomorphemicWordGlossAndPos ( bool fCopyToWordGloss, bool fCopyToWordPos ) : void
fCopyToWordGloss bool
fCopyToWordPos bool
return void

Dispose() protected method

Executes in two distinct scenarios. 1. If disposing is true, the method has been called directly or indirectly by a user's code via the Dispose method. Both managed and unmanaged resources can be disposed. 2. If disposing is false, the method has been called by the runtime from inside the finalizer and you should not reference (access) other managed objects, as they already have been garbage collected. Only unmanaged resources can be disposed.
If any exceptions are thrown, that is fine. If the method is being done in a finalizer, it will be ignored. If it is thrown by client code calling Dispose, it needs to be handled by fixing the bug. If subclasses override this method, they should call the base implementation.
protected Dispose ( bool disposing ) : void
disposing bool
return void

HandleSelect() public method

public HandleSelect ( int index ) : void
index int
return void

SelectEntryIcon() protected method

protected SelectEntryIcon ( int morphIndex ) : void
morphIndex int
return void

SetupCombo() public method

public SetupCombo ( ) : void
return void