C# Class SIL.FieldWorks.LexText.Controls.MSAPopupTreeManager

Handles a TreeCombo control (Widgets assembly) for use with MorphoSyntaxAnalysis objects.
Inheritance: PopupTreeManager
显示文件 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
MSAPopupTreeManager ( PopupTree popupTree, SIL.FieldWorks.FDO.FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, XCore.Mediator mediator, Form parent ) : System

Constructor.

MSAPopupTreeManager ( TreeCombo treeCombo, SIL.FieldWorks.FDO.FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, XCore.Mediator mediator, Form parent ) : System

Constructor.

MakeTargetMenuItem ( ) : TreeNode

Populate the tree with just ONE menu item, the one that we want to select.

Protected Methods

Method Description
MakeMenuItems ( PopupTree popupTree, int hvoTarget ) : TreeNode

NOTE that this implementation IGNORES hvoTarget and selects the MSA indicated by the sense.

m_treeCombo_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Private Methods

Method Description
AddNewMsa ( ) : bool
AddTreeNodeForMsa ( PopupTree popupTree, ITsStrFactory tsf, IMoMorphSynAnalysis msa ) : HvoTreeNode
ChooseFromMasterCategoryList ( ) : void
CreateEmptyMsa ( ) : void
EditExistingMsa ( ) : bool
LoadStrings ( ) : void
SwitchToEmptyMsa ( ) : void

Method Details

MSAPopupTreeManager() public method

Constructor.
public MSAPopupTreeManager ( PopupTree popupTree, SIL.FieldWorks.FDO.FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, XCore.Mediator mediator, Form parent ) : System
popupTree SIL.FieldWorks.Common.Widgets.PopupTree
cache SIL.FieldWorks.FDO.FdoCache
list ICmPossibilityList
ws int
useAbbr bool
mediator XCore.Mediator
parent System.Windows.Forms.Form
return System

MSAPopupTreeManager() public method

Constructor.
public MSAPopupTreeManager ( TreeCombo treeCombo, SIL.FieldWorks.FDO.FdoCache cache, ICmPossibilityList list, int ws, bool useAbbr, XCore.Mediator mediator, Form parent ) : System
treeCombo SIL.FieldWorks.Common.Widgets.TreeCombo
cache SIL.FieldWorks.FDO.FdoCache
list ICmPossibilityList
ws int
useAbbr bool
mediator XCore.Mediator
parent System.Windows.Forms.Form
return System

MakeMenuItems() protected method

NOTE that this implementation IGNORES hvoTarget and selects the MSA indicated by the sense.
protected MakeMenuItems ( PopupTree popupTree, int hvoTarget ) : TreeNode
popupTree SIL.FieldWorks.Common.Widgets.PopupTree
hvoTarget int
return System.Windows.Forms.TreeNode

MakeTargetMenuItem() public method

Populate the tree with just ONE menu item, the one that we want to select.
public MakeTargetMenuItem ( ) : TreeNode
return System.Windows.Forms.TreeNode

m_treeCombo_AfterSelect() protected method

protected m_treeCombo_AfterSelect ( object sender, TreeViewEventArgs e ) : void
sender object
e System.Windows.Forms.TreeViewEventArgs
return void