C# Class SIL.FieldWorks.FdoUi.BulkPosEditor

BulkPosEditor is the spec/display component of the Bulk Edit bar used to set the PartOfSpeech of group of LexSenses (actually by creating or modifying an MoStemMsa that is the MorphoSyntaxAnalysis of the sense). It was originally part of XmlViews, but it needs to use the POSPopupTreeManager class, and since FdoUi references XmlViews, XmlViews can't reference FdoUi. Also, it sort of makes sense to put it here as a class that is quite specific to a particular part of the model.
Inheritance: BulkPosEditorBase
Show file Open project: sillsdev/FieldWorks

Public Methods

Method Description
AddExcludedSenses ( ILexEntry entry, List excludedSenses, List includedSenses ) : void

Add to excludedSenses any sense of the entry (directly or indirectly owned) which is not a member of includedSenses.

AddExcludedSenses ( ILexSense owningSense, List excludedSenses, List includedSenses ) : void

Add to excludedSenses any sense of the entry (directly or indirectly owned) which is not a member of includedSenses.

BulkPosEditor ( ) : System
DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
FilterType ( ) : Type

Get a type we can use to create a compatible filter.

SetClearField ( ) : void

We can set POS to null.

Protected Methods

Method Description
CanFakeIt ( int hvo ) : bool

Private Methods

Method Description
DoUpdatePos ( SIL.FieldWorks.Common.Controls.ProgressState state, Dictionary sensesByEntry, IPartOfSpeech posWanted ) : void

Method Details

AddExcludedSenses() public method

Add to excludedSenses any sense of the entry (directly or indirectly owned) which is not a member of includedSenses.
public AddExcludedSenses ( ILexEntry entry, List excludedSenses, List includedSenses ) : void
entry ILexEntry
excludedSenses List
includedSenses List
return void

AddExcludedSenses() public method

Add to excludedSenses any sense of the entry (directly or indirectly owned) which is not a member of includedSenses.
public AddExcludedSenses ( ILexSense owningSense, List excludedSenses, List includedSenses ) : void
owningSense ILexSense
excludedSenses List
includedSenses List
return void

BulkPosEditor() public method

public BulkPosEditor ( ) : System
return System

CanFakeIt() protected method

protected CanFakeIt ( int hvo ) : bool
hvo int
return bool

DoIt() public method

public DoIt ( IEnumerable itemsToChange, SIL.FieldWorks.Common.Controls.ProgressState state ) : void
itemsToChange IEnumerable
state SIL.FieldWorks.Common.Controls.ProgressState
return void

FilterType() public static method

Get a type we can use to create a compatible filter.
public static FilterType ( ) : Type
return System.Type

SetClearField() public method

We can set POS to null.
public SetClearField ( ) : void
return void