C# 클래스 SIL.FieldWorks.Common.Widgets.LabeledMultiStringView

LabeledMultiStringView displays one or more writing system alternatives of a string property. It simply edits that property.
상속: SIL.FieldWorks.Common.RootSites.RootSiteControl
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

CheckDisposed() 공개 메소드

Throw if the IsDisposed property is true
public CheckDisposed ( ) : void
리턴 void

Dispose() 보호된 메소드

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
리턴 void

FinishInit() 공개 메소드

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
리턴 void

FinishInit() 공개 메소드

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
리턴 void

GetMessageTargets() 공개 메소드

Required method for IXCoreColleague. Return the message targets for the inner view.
public GetMessageTargets ( ) : IxCoreColleague[]
리턴 IxCoreColleague[]

GetWritingSystemOptions() 공개 메소드

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.
리턴 List

Init() 공개 메소드

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
리턴 void

LabeledMultiStringView() 공개 메소드

Constructor.
public LabeledMultiStringView ( int hvo, int flid, int wsMagic, bool forceIncludeEnglish, bool editable ) : System
hvo int
flid int
wsMagic int
forceIncludeEnglish bool
editable bool
리턴 System

LabeledMultiStringView() 공개 메소드

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
리턴 System

OnLayout() 보호된 메소드

Arrange our sound controls if any.
protected OnLayout ( LayoutEventArgs levent ) : void
levent LayoutEventArgs
리턴 void

RefreshDisplay() 공개 메소드

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

Reuse() 공개 메소드

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
리턴 void

SelectAt() 공개 메소드

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
리턴 void