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

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

Public Methods

Method 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

Method Description
RestoreDefaults ( ) : void

Method Details

HomographConfiguration() public method

Make one.
public HomographConfiguration ( ) : System
return System

SetShowHomographNumber() public method

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

ShowHomographNumber() public method

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
return bool

ShowSenseNumber() public method

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
return bool