Property | Type | Description | |
---|---|---|---|
m_isDisposed | bool | ||
m_kEmptyNode | HvoTreeNode | ||
m_mediator | XCore.Mediator | ||
m_selPrior |
Property | Type | Description | |
---|---|---|---|
Init | void | ||
m_treeCombo_BeforeSelect | void | ||
popupTree_PopupTreeClosed | void |
Method | Description | |
---|---|---|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
Dispose ( ) : void |
Must not be virtual. |
|
LoadPopupTree ( int hvoSpecifiedTarget ) : void |
Load the PopupTree with HvoTreeNode objects, which represent all POSes in the list. Reloads the PopupTree even if it has been loaded before, since the list may now have new ones in it.
|
|
PopupTreeManager ( |
Constructor.
|
|
PopupTreeManager ( |
Constructor.
|
|
SetEmptyLabel ( string label ) : void |
Set the label on the empty node.
|
Method | Description | |
---|---|---|
AddMoreItem ( |
Add a 'More...' item to the tree. Subclass is responsible to implement.
|
|
AddNodes ( |
Add to the nodes parameter an HvoTreeNode for each hvo in property flid of object hvo. Give it to children (by calling recursively) for each of its subpossibilities.
|
|
AddNodes ( |
|
|
AddNotSureItem ( |
Add a 'not sure' item to the menu. If the current target is zero, it will be selected. It is saved as m_kEmptyNode. Also returns the new node.
|
|
AddPossibilityListItems ( |
|
|
AddTimberLine ( |
Add the --- line to the popup (use if adding any 'extra' items).
|
|
AppendAdditionalItems ( |
override to add additional nodes to popupTree (e.g. AddNotSureItem, AddTimberline)
|
|
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. |
|
GetPopupTree ( ) : |
Get the popup tree we are managing. This may be a stand-alone popup tree, or one that is part of the implementation of a tree combo box.
|
|
GetTssLabel ( SIL.FieldWorks.FDO.FdoCache cache, int hvoItem, int flidName, int wsName ) : ITsString | ||
MakeMenuItems ( |
Make all the menu items. May well call things like AddTimberline, AddNotSureItem, AddMoreItem.
|
|
SelectChosenItem ( |
Select the specified menu item in the tree.
|
|
SetComboTextToLastConfirmedSelection ( ) : void |
Make sure the combo text has correct value
|
|
m_treeCombo_AfterSelect ( object sender, |
Override this to handle any special items like 'More...'.
|
Method | Description | |
---|---|---|
Init ( SIL.FieldWorks.FDO.FdoCache cache, XCore.Mediator mediator, ICmPossibilityList list, int ws, bool useAbbr, |
||
m_treeCombo_BeforeSelect ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void | ||
popupTree_PopupTreeClosed ( object sender, |
protected AddMoreItem ( |
||
popupTree | ||
return | void |
protected AddNodes ( |
||
nodes | ||
hvoOwner | int | |
flid | int | |
hvoTarget | int | |
tagName | int | |
return |
protected AddNodes ( |
||
nodes | ||
hvoOwner | int | |
flid | int | |
flidSub | int | specify a subitems, /// other than CmPossibilityTags.kflidSubPossibilities |
hvoTarget | int | |
tagName | int | |
return |
protected AddNotSureItem ( |
||
popupTree | ||
return |
protected AddPossibilityListItems ( |
||
popupTree | ||
hvoTarget | int | |
return |
protected AddTimberLine ( |
||
popupTree | ||
return | void |
protected AppendAdditionalItems ( |
||
popupTree | ||
hvoTarget | int | |
return |
protected GetPopupTree ( ) : |
||
return |
protected static GetTssLabel ( SIL.FieldWorks.FDO.FdoCache cache, int hvoItem, int flidName, int wsName ) : ITsString | ||
cache | SIL.FieldWorks.FDO.FdoCache | |
hvoItem | int | |
flidName | int | |
wsName | int | |
return | ITsString |
public LoadPopupTree ( int hvoSpecifiedTarget ) : void | ||
hvoSpecifiedTarget | int | |
return | void |
protected abstract MakeMenuItems ( |
||
popupTree | ||
hvoTarget | int | |
return |
public PopupTreeManager ( |
||
popupTree | ||
cache | SIL.FieldWorks.FDO.FdoCache | |
mediator | XCore.Mediator | |
list | ICmPossibilityList | |
ws | int | |
useAbbr | bool | |
parent | ||
return | System |
public PopupTreeManager ( |
||
treeCombo | ||
cache | SIL.FieldWorks.FDO.FdoCache | |
mediator | XCore.Mediator | |
list | ICmPossibilityList | |
ws | int | |
useAbbr | bool | |
parent | ||
return | System |
protected SelectChosenItem ( |
||
item | ||
popupTree | ||
return | void |
protected SetComboTextToLastConfirmedSelection ( ) : void | ||
return | void |
protected m_treeCombo_AfterSelect ( object sender, |
||
sender | object | |
e | ||
return | void |