C# Class SIL.FieldWorks.Common.Widgets.LabeledMultiStringView

LabeledMultiStringView displays one or more writing system alternatives of a string property. It simply edits that property.
Inheritance: SIL.FieldWorks.Common.RootSites.RootSiteControl
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
CheckDisposed ( ) : void

Throw if the IsDisposed property is true

FinishInit ( ) : void

Call this on initialization when all properties (e.g., ConfigurationNode) are set. The purpose is when reusing the slice, when we may have to reconstruct the root box.

FinishInit ( XmlNode configurationNode ) : void

Get any text styles from configuration node (which is now available; it was not at construction)

GetMessageTargets ( ) : IxCoreColleague[]

Required method for IXCoreColleague. Return the message targets for the inner view.

GetWritingSystemOptions ( bool fIncludeUncheckedActiveWss ) : List

returns a list of the writing systems available to display for this view

Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void

Required method for IXCoreColleague. As a colleague, it behaves exactly like its inner view.

LabeledMultiStringView ( int hvo, int flid, int wsMagic, bool forceIncludeEnglish, bool editable ) : System

Constructor.

LabeledMultiStringView ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : System

Constructor.

RefreshDisplay ( ) : bool

On a major refresh, the writing system list may have changed; update accordingly.

Reuse ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : void

Re-initialize this view as if it had been constructed with the specified arguments.

SelectAt ( int ws, int ich ) : void

Make a selection in the specified writing system at the specified character offset. Note: selecting other than the first writing system is not yet implemented.

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.

OnLayout ( LayoutEventArgs levent ) : void

Arrange our sound controls if any.

Private Methods

Méthode Description
CreateNewSoundFilename ( string &path ) : string
DisposeSoundControls ( ) : void
SetupSoundControls ( ) : void
TriggerDisplay ( IVwEnv vwenv ) : void

WsForSoundField ( ShortSoundFieldControl sc, int &wsIndex ) : IWritingSystem

If we're shutting down, this might return null

soundFieldControl_BeforeStartingToRecord ( object sender, EventArgs e ) : void
soundFieldControl_SoundDeleted ( object sender, EventArgs e ) : void
soundFieldControl_SoundRecorded ( object sender, EventArgs e ) : void

Method Details

CheckDisposed() public méthode

Throw if the IsDisposed property is true
public CheckDisposed ( ) : 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

FinishInit() public méthode

Call this on initialization when all properties (e.g., ConfigurationNode) are set. The purpose is when reusing the slice, when we may have to reconstruct the root box.
public FinishInit ( ) : void
Résultat void

FinishInit() public méthode

Get any text styles from configuration node (which is now available; it was not at construction)
public FinishInit ( XmlNode configurationNode ) : void
configurationNode System.Xml.XmlNode
Résultat void

GetMessageTargets() public méthode

Required method for IXCoreColleague. Return the message targets for the inner view.
public GetMessageTargets ( ) : IxCoreColleague[]
Résultat IxCoreColleague[]

GetWritingSystemOptions() public méthode

returns a list of the writing systems available to display for this view
public GetWritingSystemOptions ( bool fIncludeUncheckedActiveWss ) : List
fIncludeUncheckedActiveWss bool if false, include only current wss, /// if true, includes unchecked active wss.
Résultat List

Init() public méthode

Required method for IXCoreColleague. As a colleague, it behaves exactly like its inner view.
public Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void
mediator XCore.Mediator
configurationParameters System.Xml.XmlNode
Résultat void

LabeledMultiStringView() public méthode

Constructor.
public LabeledMultiStringView ( int hvo, int flid, int wsMagic, bool forceIncludeEnglish, bool editable ) : System
hvo int
flid int
wsMagic int
forceIncludeEnglish bool
editable bool
Résultat System

LabeledMultiStringView() public méthode

Constructor.
public LabeledMultiStringView ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : System
hvo int
flid int
wsMagic int
wsOptional int
forceIncludeEnglish bool
editable bool
spellCheck bool
Résultat System

OnLayout() protected méthode

Arrange our sound controls if any.
protected OnLayout ( LayoutEventArgs levent ) : void
levent LayoutEventArgs
Résultat void

RefreshDisplay() public méthode

On a major refresh, the writing system list may have changed; update accordingly.
public RefreshDisplay ( ) : bool
Résultat bool

Reuse() public méthode

Re-initialize this view as if it had been constructed with the specified arguments.
public Reuse ( int hvo, int flid, int wsMagic, int wsOptional, bool forceIncludeEnglish, bool editable, bool spellCheck ) : void
hvo int
flid int
wsMagic int
wsOptional int
forceIncludeEnglish bool
editable bool
spellCheck bool
Résultat void

SelectAt() public méthode

Make a selection in the specified writing system at the specified character offset. Note: selecting other than the first writing system is not yet implemented.
public SelectAt ( int ws, int ich ) : void
ws int
ich int
Résultat void