newntui/discovermdi/src/disgraphnode.cpp
//-----------------------------------------------------------------------------------
// This method will call node size calculation callback to determine the
// desired size of every node in the graph.
// We will use two node functions: "GetReadableName" returns the node readable name
// extracted by name extraction script when node was created and 
// "GetActiveNodeProperties" will examin node selection status and node focus status
// to return one of the three available node properties 
// (unselected,selected or focused)
//-----------------------------------------------------------------------------------
This method will call node size calculation callback to determine the
desired size of every node in the graph.
We will use two node functions: "GetReadableName" returns the node readable name
extracted by name extraction script when node was created and
"GetActiveNodeProperties" will examin node selection status and node focus status
to return one of the three available node properties
(unselected,selected or focused)
This method will call node size calculation callback to determine the desired size of every node in the graph . We will use two node functions : " GetReadableName " returns the node readable name extracted by name extraction script when node was created and " GetActiveNodeProperties " will examin node selection status and node focus status to return one of the three available node properties ( unselected selected or focused )
void CDisGraph::DetermineNodeSizes(void) {
TSDListIterator nodeIterator(pNodeDList());
CDisGraphNode* pNode;
CItemsList* nodeItems;
CSize nodeSize;
    if(m_NodeSizeCallback==NULL) return;
    while(nodeIterator)  {
		pNode = (CDisGraphNode *) nodeIterator.pObject();
	    nodeItems=pNode->GetItemsList();
		nodeSize=(*m_NodeSizeCallback)(m_ClientID,pNode->GetReadableName(),nodeItems,pNode->GetActiveNodeProperties(),pNode->m_HeaderHeight); 
		pNode->resize(nodeSize.cx, nodeSize.cy);
		nodeIterator++;
	}
}
void CDisGraph :: DetermineNodeSizes ( void ) { TSDListIterator nodeIterator ( pNodeDList ( ) ) ; CDisGraphNode * pNode ; CItemsList * nodeItems ; CSize nodeSize ; if ( m_NodeSizeCallback == NULL ) return ; while ( nodeIterator ) { pNode = ( CDisGraphNode * ) nodeIterator . pObject ( ) ; nodeItems = pNode -> GetItemsList ( ) ; nodeSize = ( * m_NodeSizeCallback ) ( m_ClientID , pNode -> GetReadableName ( ) , nodeItems , pNode -> GetActiveNodeProperties ( ) , pNode -> m_HeaderHeight ) ; pNode -> resize ( nodeSize . cx , nodeSize . cy ) ; nodeIterator ++ ; } }
This method will call node size calculation callback to determine the
desired size of every node in the graph.
This method will call node size calculation callback to determine the desired size of every node in the graph .