equal
deleted
inserted
replaced
253 { |
253 { |
254 case MWsWindowTreeNode::EWinTreeNodeClient: |
254 case MWsWindowTreeNode::EWinTreeNodeClient: |
255 { |
255 { |
256 CAlfNode* parentNode = iModel->FindNode( iParent->iId ); |
256 CAlfNode* parentNode = iModel->FindNode( iParent->iId ); |
257 __ASSERT_DEBUG(parentNode, USER_INVARIANT()); |
257 __ASSERT_DEBUG(parentNode, USER_INVARIANT()); |
258 if (parentNode->HasChildren()) |
258 if (parentNode && parentNode->HasChildren()) |
259 { |
259 { |
260 // parent node is not added to the list |
260 // parent node is not added to the list |
261 // the anims, cursor and sprites directly in this parent are added to the list |
261 // the anims, cursor and sprites directly in this parent are added to the list |
262 // siblings are added to the list, but their anims, cursors and sprites are not added |
262 // siblings are added to the list, but their anims, cursors and sprites are not added |
263 TraverseNodeTree( parentNode, nodes, EFalse /* list all for this node */, EFalse /* dont add me */); |
263 TraverseNodeTree( parentNode, nodes, EFalse /* list all for this node */, EFalse /* dont add me */); |
836 { |
836 { |
837 return NULL; // return NULL, if I was the first child |
837 return NULL; // return NULL, if I was the first child |
838 } |
838 } |
839 // starting from the first child, loop until this one is found. |
839 // starting from the first child, loop until this one is found. |
840 |
840 |
841 while( previousSibling->iSibling != this) |
841 while( previousSibling && previousSibling->iSibling != this) |
842 { |
842 { |
843 previousSibling = previousSibling->iSibling; |
843 previousSibling = previousSibling->iSibling; |
844 } |
844 } |
845 |
845 |
846 return previousSibling; // return the previous child. return NULL, if this was the first child |
846 return previousSibling; // return the previous child. return NULL, if this was the first child |
877 // NO need to deliver fades for root |
877 // NO need to deliver fades for root |
878 return; |
878 return; |
879 } |
879 } |
880 if (iFadeState != iPostedFadeState) |
880 if (iFadeState != iPostedFadeState) |
881 { |
881 { |
882 iModel->Server().Bridge()->AddData( EAlfDSSetFadeEffect, iId , iFadeState); |
882 iModel->Server().Bridge()->AddData( EAlfDSSetFadeEffect, iId , iFadeState, (TAny*)iType); |
883 iPostedFadeState = iFadeState; |
883 iPostedFadeState = iFadeState; |
884 } |
884 } |
885 } |
885 } |
886 |
886 |
887 // --------------------------------------------------------------------------- |
887 // --------------------------------------------------------------------------- |