newntui/discovermdi/src/disgraphnode.cpp
//------------------------------------------------------------------------------------
// This function will assign extracting scripts and node properties to this node:
// "id"                 is the index of the entity in the server global array. 
// "childCreator"        script to create childs
// "parentCreator"       script to create parents
// "fieldsExtractor"     script to create fields
// "nodeNameExtractor"   is a script which will extract the node name from the
//                       Discover entity.
// "nodeImageExtractior" is a script which will return the index of the image 
//                       to show by quering Discover entity
// "fieldsNameExtractor" is a script which will create a symbol set and place it
//                       into the global server array. This symbols will be displayed
//                       together with the node.
// "fieldsImageExtractor"is a script which will return an index of an image to 
//                       show with the node field
// "unselected"          node display style if unselected
// "selected"            node display style if selected
// "focused"             node display style if has focus
//------------------------------------------------------------------------------------
This function will assign extracting scripts and node properties to this node:
"id"                 is the index of the entity in the server global array.
This function will assign extracting scripts and node properties to this node : " id " is the index of the entity in the server global array .
void CDisGraphNode::SetNode(int id,                        
							 CString& childCreator,        
                             CString& parentCreator,       
							 CString& fieldsCreator,       
						     CString& nodeNameExtractor,   
						     CString& fieldsNameExtractor, 
				             CString& nodeImageExtractor,  
						     CString& fieldsImageExtractor,
					         CString& testChildren,        
					         CString& testParents,         
						     CNodeProperties* nodeUnselected,  
			                 CNodeProperties* nodeSelected,    
						     CNodeProperties* nodeFocused,     
						     CEdgeProperties* edgeUnselected,  
			                 CEdgeProperties* edgeSelected,    
						     CEdgeProperties* edgeFocused      
							 ) {
	m_NodeID = id;
	m_ChildrenCreator  = childCreator;
	m_ParentsCreator   = parentCreator;
	m_FieldsCreator   = fieldsCreator;
	m_NodeNameExtractor   = nodeNameExtractor;
	m_NodeImageExtractor  = nodeImageExtractor;
	m_FieldNameExtractor  = fieldsNameExtractor;
	m_FieldImageExtractor = fieldsImageExtractor;
	m_ChildTestScript = testChildren;
	m_ParentTestScript= testParents;
	m_NodeUnselected  = nodeUnselected;
	m_NodeSelected    = nodeSelected;
	m_NodeFocused     = nodeFocused;
	m_EdgeUnselected  = edgeUnselected;
	m_EdgeSelected    = edgeSelected;
	m_EdgeFocused     = edgeFocused;
	m_SelectStatus= FALSE;
	m_ChildrenCreated = FALSE;
}
void CDisGraphNode :: SetNode ( int id , CString & childCreator , CString & parentCreator , CString & fieldsCreator , CString & nodeNameExtractor , CString & fieldsNameExtractor , CString & nodeImageExtractor , CString & fieldsImageExtractor , CString & testChildren , CString & testParents , CNodeProperties * nodeUnselected , CNodeProperties * nodeSelected , CNodeProperties * nodeFocused , CEdgeProperties * edgeUnselected , CEdgeProperties * edgeSelected , CEdgeProperties * edgeFocused ) { m_NodeID = id ; m_ChildrenCreator = childCreator ; m_ParentsCreator = parentCreator ; m_FieldsCreator = fieldsCreator ; m_NodeNameExtractor = nodeNameExtractor ; m_NodeImageExtractor = nodeImageExtractor ; m_FieldNameExtractor = fieldsNameExtractor ; m_FieldImageExtractor = fieldsImageExtractor ; m_ChildTestScript = testChildren ; m_ParentTestScript = testParents ; m_NodeUnselected = nodeUnselected ; m_NodeSelected = nodeSelected ; m_NodeFocused = nodeFocused ; m_EdgeUnselected = edgeUnselected ; m_EdgeSelected = edgeSelected ; m_EdgeFocused = edgeFocused ; m_SelectStatus = FALSE ; m_ChildrenCreated = FALSE ; }
This function will assign extracting scripts and node properties to this node:
"id"                 is the index of the entity in the server global array.
This function will assign extracting scripts and node properties to this node : " id " is the index of the entity in the server global array .
// entity index in the server array // script to create childs // script to create parents // script to create fields // script to extract name // script to extract field name // script to extract image // script to extract field image // script to test children  // script to test parents // unselected style // selected style // focused style // unselected style // selected style // focused style