C# Class SIL.FieldWorks.FDO.DomainImpl.HomographConfiguration

This class stores various settings related to how homograph numbers (and sense numbers) are displayed.
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
HomographConfiguration ( ) : System

Make one.

SetShowHomographNumber ( HeadwordVariant hv, bool val ) : void

Set whether homograph numbers are displayed for the specified variant.

ShowHomographNumber ( HeadwordVariant hv ) : bool

True to display homograph numbers in the default headword method used as the header of an entry in the dictionary and in the program UI. Note that we can only show them in cross-refs if we show them in the main headword. (One reason for this is the design of the dialog, which does not allow to specify before/after if we choose 'hide'.)

ShowSenseNumber ( HeadwordVariant hv ) : bool

Provides a convenient way to get the appropriate ShowSenseNumber flag. Passing "main" doesn't make sense. This also implements the constraint that we don't show sense number when homograph number is suppressed.

Private Methods

Méthode Description
RestoreDefaults ( ) : void

Method Details

HomographConfiguration() public méthode

Make one.
public HomographConfiguration ( ) : System
Résultat System

SetShowHomographNumber() public méthode

Set whether homograph numbers are displayed for the specified variant.
public SetShowHomographNumber ( HeadwordVariant hv, bool val ) : void
hv HeadwordVariant
val bool
Résultat void

ShowHomographNumber() public méthode

True to display homograph numbers in the default headword method used as the header of an entry in the dictionary and in the program UI. Note that we can only show them in cross-refs if we show them in the main headword. (One reason for this is the design of the dialog, which does not allow to specify before/after if we choose 'hide'.)
public ShowHomographNumber ( HeadwordVariant hv ) : bool
hv HeadwordVariant
Résultat bool

ShowSenseNumber() public méthode

Provides a convenient way to get the appropriate ShowSenseNumber flag. Passing "main" doesn't make sense. This also implements the constraint that we don't show sense number when homograph number is suppressed.
public ShowSenseNumber ( HeadwordVariant hv ) : bool
hv HeadwordVariant
Résultat bool