idlehomescreen/xmluirendering/uiengine/src/xnpopupcontroladapter.cpp
branchRCL_3
changeset 11 ff572dfe6d86
parent 9 f966699dea19
child 18 d05a55b217df
equal deleted inserted replaced
9:f966699dea19 11:ff572dfe6d86
   194 // CXnPopupControlAdapter::TryDisplayingStylusPopupL
   194 // CXnPopupControlAdapter::TryDisplayingStylusPopupL
   195 // -----------------------------------------------------------------------------
   195 // -----------------------------------------------------------------------------
   196 //
   196 //
   197 void CXnPopupControlAdapter::TryDisplayingStylusPopupL( CXnNode& aPlugin )
   197 void CXnPopupControlAdapter::TryDisplayingStylusPopupL( CXnNode& aPlugin )
   198     {
   198     {
   199     CXnViewManager* manager( iUiEngine->ViewManager() );
       
   200             
       
   201     CXnPluginData& plugin( manager->ActiveViewData().Plugin( &aPlugin ) );
       
   202         
       
   203     HideMenuL();
   199     HideMenuL();
   204     
   200     CXnViewManager* manager( iUiEngine->ViewManager() );            
       
   201     CXnPluginData* plugin( manager->ActiveViewData().Plugin( &aPlugin ) );
       
   202     if ( !plugin )
       
   203         {
       
   204         return;
       
   205         }
   205     TPointerEvent event( iUiEngine->HitTest().PointerEvent() );
   206     TPointerEvent event( iUiEngine->HitTest().PointerEvent() );
   206     
   207     
   207     delete iStylusPopupMenu;
   208     delete iStylusPopupMenu;
   208     iStylusPopupMenu = NULL;
   209     iStylusPopupMenu = NULL;
   209     
   210     
   212       
   213       
   213     RPointerArray< CXnNode >& children( iNode->Children() );       
   214     RPointerArray< CXnNode >& children( iNode->Children() );       
   214     
   215     
   215     for ( TInt i = 0; i < children.Count(); i++ )
   216     for ( TInt i = 0; i < children.Count(); i++ )
   216         {      
   217         {      
   217         PopulateMenuL( plugin, children[i] );
   218         PopulateMenuL( *plugin, children[i] );
   218         }
   219         }
   219     
   220     
   220     ShowMenuL( plugin, event.iParentPosition );
   221     ShowMenuL( *plugin, event.iParentPosition );
   221     }
   222     }
   222 
   223 
   223 // -----------------------------------------------------------------------------
   224 // -----------------------------------------------------------------------------
   224 // CXnPopupControlAdapter::HandleScreenDeviceChangedL
   225 // CXnPopupControlAdapter::HandleScreenDeviceChangedL
   225 // -----------------------------------------------------------------------------
   226 // -----------------------------------------------------------------------------