C# 클래스 SIL.FieldWorks.IText.ConcordanceControl

파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_cbSearchText SIL.FieldWorks.Common.Widgets.TreeCombo
m_cbWritingSystem System.Windows.Forms.ComboBox
m_chkMatchCase System.Windows.Forms.CheckBox
m_chkMatchDiacritics System.Windows.Forms.CheckBox
m_tbSearchText SIL.FieldWorks.Common.Widgets.FwTextBox

Private Properties

프로퍼티 타입 설명
AddUnparsedParagraphs void
ClearResults void
CurrentSelectedWs int
DisableDetailedSearchControls void
EnableDetailedSearchControls void
FillLineComboList void
FillSearchComboList void
FillWritingSystemCombo void
FindMatchingItems List
FirstPassFilterString string
GetHvoOfListItemToMatch int
GetHvoOfMsaPartOfSpeech List
GetMatchObject ICmObject
GetMatcher IMatcher
GetOccurrencesOfAnalyses List
GetParaFragmentsOfTags List
GetReferenceBeginOffsetInPara int
GetReferenceEndOffsetInPara int
GetSearchText ITsString
InitializeComponent void
InitializeConcordanceSearch bool
InitializeConcordanceSearch bool
InitializeConcordanceSearch bool
InitializeConcordanceSearchWordPOS bool
LoadSettings void
MakeOccurrence IParaFragment
POSAfterSelect void
SaveSettings void
SetConcordanceLine void
SetDefaultButtonState void
SetDefaultVisibilityOfItems void
SetWritingSystem void
SetupSearchPattern void
ShowRegExpMatcherError void
SyncWritingSystemComboToSelectedLine void
UpdateButtonState void
UpdateConcordanceForBaseline List
UpdateConcordanceForFreeTranslation List
UpdateConcordanceForGramInfo List
UpdateConcordanceForLexEntry List
UpdateConcordanceForLexGloss List
UpdateConcordanceForLiteralTranslation List
UpdateConcordanceForMorphemes List
UpdateConcordanceForNote List
UpdateConcordanceForTag List
UpdateConcordanceForWord List
UpdateConcordanceForWordCategory List
UpdateConcordanceForWordGloss List
m_btnHelp_Click void
m_btnRegExp_Click void
m_btnSearch_Click void
m_cbLine_SelectedIndexChanged void
m_cbWritingSystem_SelectedIndexChanged void
m_lnkSpecify_LinkClicked void
m_rbtnUseRegExp_CheckedChanged void
m_tbSearchText_KeyDown void
m_tbSearchText_TextChanged void

공개 메소드들

메소드 설명
ConcordanceControl ( ) : System
Init ( XCore.Mediator mediator, XmlNode configurationParameters ) : void
MaxConcordanceMatches ( ) : int
OnConsideringClosing ( object sender, System.CancelEventArgs arg ) : bool

This is called when the main window is closing.

OnJumpToRecord ( object argument ) : bool

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

GetConcordanceOption ( ) : string
OnLeave ( EventArgs e ) : void
SearchForMatches ( ) : List
SetConcordanceOption ( string sConcordanceOption ) : void
SyncWritingSystemComboToSelectedLine ( ) : void

비공개 메소드들

메소드 설명
AddUnparsedParagraphs ( IStText text, List collectUnparsed, HashSet collectUsefulParas ) : void
ClearResults ( ) : void

Instead of reloading the list, clear the results if we are needing a reload. This will force the user to hit 'Search' explicitly, to prevent automatic reloading when the search might take a long time. LT-6967

CurrentSelectedWs ( ) : int
DisableDetailedSearchControls ( ) : void

Don't want all the radio buttons and checkboxes active when searching by possibility list item.

EnableDetailedSearchControls ( ) : void
FillLineComboList ( ) : void
FillSearchComboList ( ConcordanceLines line ) : void
FillWritingSystemCombo ( int wsMagic ) : void
FindMatchingItems ( ) : List
FirstPassFilterString ( string sMatch ) : string

If we're not matching diacritics, then our first pass has to allow for diacritics in the baseline text, but we can at least filter on all the non-diacritic chars in sequence to maybe eliminate some paragraphs at this initial stage.

GetHvoOfListItemToMatch ( int ws ) : int
GetHvoOfMsaPartOfSpeech ( IMoMorphSynAnalysis msa ) : List

Get the hvo(s) for the Part of Speech for the various subclasses of MSA. N.B. If we add new subclasses or rearrange the class hierarchy, this will need to change.

GetMatchObject ( ) : ICmObject
GetMatcher ( int ws ) : IMatcher
GetOccurrencesOfAnalyses ( IEnumerable analyses ) : List
GetParaFragmentsOfTags ( IEnumerable matchedTags ) : List
GetReferenceBeginOffsetInPara ( IAnalysisReference refToAnalyses ) : int
GetReferenceEndOffsetInPara ( IAnalysisReference refToAnalyses ) : int
GetSearchText ( ) : ITsString
InitializeComponent ( ) : void
InitializeConcordanceSearch ( ICmObject cmo ) : bool
InitializeConcordanceSearch ( ICmObject cmo, ITsString tssObj ) : bool
InitializeConcordanceSearch ( string sMatch, int ws, ConcordanceLines line ) : bool
InitializeConcordanceSearchWordPOS ( ICmObject target ) : bool

Select the Word Category line to search on and then select the part of speech to match the target then search based on those selections.

LoadSettings ( ) : void
MakeOccurrence ( IStTxtPara para, int ichMin, int ichLim ) : IParaFragment
POSAfterSelect ( object sender, TreeViewEventArgs e ) : void
SaveSettings ( ) : void
SetConcordanceLine ( ConcordanceLines line ) : void
SetDefaultButtonState ( ) : void
SetDefaultVisibilityOfItems ( bool fDefault, string sConcordedOn ) : void
SetWritingSystem ( int ws ) : void
SetupSearchPattern ( int ws ) : void
ShowRegExpMatcherError ( IMatcher matcher ) : void
SyncWritingSystemComboToSelectedLine ( ConcordLine sel ) : void
UpdateButtonState ( ) : void
UpdateConcordanceForBaseline ( int ws ) : List
UpdateConcordanceForFreeTranslation ( int ws ) : List

Here the match is a complete segment, if the requested free translation matches.

UpdateConcordanceForGramInfo ( int ws ) : List

In the concordance the user selects the Lex Gram Info line along with a particular part of speech. This method finds each Wordform analysis with a morpheme that has the part of speech matching the selected part of speech.

UpdateConcordanceForLexEntry ( int ws ) : List

Concordance contains all occurrences of analyses which contain the specified lex entry, in the sense that they point to an MoForm whose owner's LexemeForm matches the pattern. Enhance JohnT: the VC will show the citation form, in the (unlikely? impossible?) event that the LexemeForm doesn't have a form. Should we search there too?

UpdateConcordanceForLexGloss ( int ws ) : List

This one matches on the gloss of the morph bundle's sense.

UpdateConcordanceForLiteralTranslation ( int ws ) : List

Here the match is a complete segment, if the requested literal translation matches.

UpdateConcordanceForMorphemes ( int ws ) : List

Concordance contains all occurrences of analyses which contain exactly the specified morpheme. A match may be either on the Form of the morph bundle, or on the form of the MoForm it points to.

UpdateConcordanceForNote ( int ws ) : List

Here the match is a complete segment, if one of its notes matches.

UpdateConcordanceForTag ( int ws ) : List

This one matches on the Tags from the Tagging tab.

UpdateConcordanceForWord ( int ws ) : List
UpdateConcordanceForWordCategory ( int ws ) : List
UpdateConcordanceForWordGloss ( int ws ) : List

Here we're looking for ones that match on the word gloss.

m_btnHelp_Click ( object sender, EventArgs e ) : void
m_btnRegExp_Click ( object sender, EventArgs e ) : void
m_btnSearch_Click ( object sender, EventArgs e ) : void
m_cbLine_SelectedIndexChanged ( object sender, EventArgs e ) : void
m_cbWritingSystem_SelectedIndexChanged ( object sender, EventArgs e ) : void
m_lnkSpecify_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void
m_rbtnUseRegExp_CheckedChanged ( object sender, EventArgs e ) : void
m_tbSearchText_KeyDown ( object sender, KeyEventArgs e ) : void
m_tbSearchText_TextChanged ( object sender, EventArgs e ) : void

메소드 상세

ConcordanceControl() 공개 메소드

public ConcordanceControl ( ) : System
리턴 System

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

GetConcordanceOption() 보호된 메소드

protected GetConcordanceOption ( ) : string
리턴 string

Init() 공개 메소드

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

MaxConcordanceMatches() 공개 정적인 메소드

public static MaxConcordanceMatches ( ) : int
리턴 int

OnConsideringClosing() 공개 메소드

This is called when the main window is closing.
public OnConsideringClosing ( object sender, System.CancelEventArgs arg ) : bool
sender object
arg System.CancelEventArgs
리턴 bool

OnJumpToRecord() 공개 메소드

public OnJumpToRecord ( object argument ) : bool
argument object
리턴 bool

OnLeave() 보호된 메소드

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
리턴 void

SearchForMatches() 보호된 메소드

protected SearchForMatches ( ) : List
리턴 List

SetConcordanceOption() 보호된 메소드

protected SetConcordanceOption ( string sConcordanceOption ) : void
sConcordanceOption string
리턴 void

SyncWritingSystemComboToSelectedLine() 보호된 메소드

protected SyncWritingSystemComboToSelectedLine ( ) : void
리턴 void

프로퍼티 상세

m_cbSearchText 보호되어 있는 프로퍼티

protected TreeCombo,SIL.FieldWorks.Common.Widgets m_cbSearchText
리턴 SIL.FieldWorks.Common.Widgets.TreeCombo

m_cbWritingSystem 보호되어 있는 프로퍼티

protected ComboBox,System.Windows.Forms m_cbWritingSystem
리턴 System.Windows.Forms.ComboBox

m_chkMatchCase 보호되어 있는 프로퍼티

protected CheckBox,System.Windows.Forms m_chkMatchCase
리턴 System.Windows.Forms.CheckBox

m_chkMatchDiacritics 보호되어 있는 프로퍼티

protected CheckBox,System.Windows.Forms m_chkMatchDiacritics
리턴 System.Windows.Forms.CheckBox

m_tbSearchText 보호되어 있는 프로퍼티

protected FwTextBox,SIL.FieldWorks.Common.Widgets m_tbSearchText
리턴 SIL.FieldWorks.Common.Widgets.FwTextBox