C# Class SIL.FieldWorks.IText.ChooseAnalysisHandler

This class handles the functions of the combo box that is used to choose a different existing analysis.
Inheritance: IComboHandler, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
s_baseFontSize int

Private Properties

Свойство Type Description
AddAnalysisItems void
AddItem void
AddItem void
AddSeparatorLine void
MakeAnalysisStringRep ITsString
MakeGlossStringRep ITsString
m_combo_SelectedIndexChanged void

Méthodes publiques

Méthode Description
Activate ( SIL loc ) : void

Display the combo box at the specified location, or the list box pulled down from the specified location.

CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

ChooseAnalysisHandler ( SIL.FieldWorks.FDO.FdoCache cache, int hvoSrc, int hvoAnalysis, IComboList comboList ) : System
Dispose ( ) : void

Must not be virtual.

FormTextProperties ( SIL.FieldWorks.FDO.FdoCache fdoCache, bool fUseStyleSheet, int wsVern ) : ITsTextProps

GetAnalysisTree ( ) : AnalysisTree

Initially, the analysis we based the list on. After the user makes a selection, the selection he made.

GlossTextProperties ( SIL.FieldWorks.FDO.FdoCache fdoCache, bool inAnalysisLine, bool fUseStyleSheet ) : ITsTextProps
HandleReturnKey ( ) : bool

Implement required interface method; will never be called because editing not allowed.

HandleSelectIfActive ( ) : void

Required interface method, not relevant for this class.

Hide ( ) : void

Get rid of the combo, typically when the user clicks outside it.

PartOfSpeechTextProperties ( SIL.FieldWorks.FDO.FdoCache fdoCache, bool inAnalysisLine, bool fUseStyleSheet ) : ITsTextProps

SetupCombo ( ) : void

Initialize the combo contents.

Méthodes protégées

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

MakeSimpleString ( String str ) : ITsString

Private Methods

Méthode Description
AddAnalysisItems ( IWfiAnalysis wa ) : void

Add the items for this WfiAnalysis (itself and ones it owns).

AddItem ( ICmObject co, ITsString text, bool fPossibleCurrent ) : void

Add an item to the combo box, but only if its text is non-empty.

AddItem ( ICmObject co, ITsString text, bool fPossibleCurrent, int tag ) : void

Add an item to the combo box, but only if its text is non-empty.

AddSeparatorLine ( ) : void
MakeAnalysisStringRep ( IWfiAnalysis wa, SIL.FieldWorks.FDO.FdoCache fdoCache, bool fUseStyleSheet, int wsVern ) : ITsString
MakeGlossStringRep ( IWfiGloss wg, SIL.FieldWorks.FDO.FdoCache fdoCache, bool fUseStyleSheet ) : ITsString
m_combo_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handle the user selecting something in the combo.

Method Details

Activate() public méthode

Display the combo box at the specified location, or the list box pulled down from the specified location.
public Activate ( SIL loc ) : void
loc SIL
Résultat void

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

ChooseAnalysisHandler() public méthode

public ChooseAnalysisHandler ( SIL.FieldWorks.FDO.FdoCache cache, int hvoSrc, int hvoAnalysis, IComboList comboList ) : System
cache SIL.FieldWorks.FDO.FdoCache
hvoSrc int
hvoAnalysis int
comboList IComboList
Résultat System

Dispose() public méthode

Must not be virtual.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

FormTextProperties() public static méthode

public static FormTextProperties ( SIL.FieldWorks.FDO.FdoCache fdoCache, bool fUseStyleSheet, int wsVern ) : ITsTextProps
fdoCache SIL.FieldWorks.FDO.FdoCache
fUseStyleSheet bool
wsVern int
Résultat ITsTextProps

GetAnalysisTree() public méthode

Initially, the analysis we based the list on. After the user makes a selection, the selection he made.
public GetAnalysisTree ( ) : AnalysisTree
Résultat AnalysisTree

GlossTextProperties() public static méthode

public static GlossTextProperties ( SIL.FieldWorks.FDO.FdoCache fdoCache, bool inAnalysisLine, bool fUseStyleSheet ) : ITsTextProps
fdoCache SIL.FieldWorks.FDO.FdoCache
inAnalysisLine bool
fUseStyleSheet bool
Résultat ITsTextProps

HandleReturnKey() public méthode

Implement required interface method; will never be called because editing not allowed.
public HandleReturnKey ( ) : bool
Résultat bool

HandleSelectIfActive() public méthode

Required interface method, not relevant for this class.
public HandleSelectIfActive ( ) : void
Résultat void

Hide() public méthode

Get rid of the combo, typically when the user clicks outside it.
public Hide ( ) : void
Résultat void

MakeSimpleString() protected méthode

protected MakeSimpleString ( String str ) : ITsString
str String
Résultat ITsString

PartOfSpeechTextProperties() public static méthode

public static PartOfSpeechTextProperties ( SIL.FieldWorks.FDO.FdoCache fdoCache, bool inAnalysisLine, bool fUseStyleSheet ) : ITsTextProps
fdoCache SIL.FieldWorks.FDO.FdoCache
inAnalysisLine bool
fUseStyleSheet bool
Résultat ITsTextProps

SetupCombo() public méthode

Initialize the combo contents.
public SetupCombo ( ) : void
Résultat void

Property Details

s_baseFontSize static_oe protected_oe property

this is something of a hack until we convert to using a style sheet
static protected int s_baseFontSize
Résultat int