meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrunifiededitorfield.cpp
branchRCL_3
changeset 60 d620048b4810
parent 29 6b8f3b30d0ec
equal deleted inserted replaced
52:efd4f1afd43e 60:d620048b4810
   244 
   244 
   245 	CESMRField::LockL();
   245 	CESMRField::LockL();
   246 
   246 
   247 	delete iLockIcon;
   247 	delete iLockIcon;
   248 	iLockIcon = NULL;
   248 	iLockIcon = NULL;
   249 	iLockIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapLockField, ETrue );
   249 	iLockIcon = CMRImage::NewL(
   250 	iLockIcon->SetParent( this );
   250 	        NMRBitmapManager::EMRBitmapLockField,
       
   251 	        this,
       
   252 	        ETrue );
   251 	}
   253 	}
   252 
   254 
   253 // ---------------------------------------------------------------------------
   255 // ---------------------------------------------------------------------------
   254 // CMRUnifiedEditorField::ExecuteTypeQueryL
   256 // CMRUnifiedEditorField::ExecuteTypeQueryL
   255 // ---------------------------------------------------------------------------
   257 // ---------------------------------------------------------------------------
   286 // ---------------------------------------------------------------------------
   288 // ---------------------------------------------------------------------------
   287 //
   289 //
   288 void CMRUnifiedEditorField::ConstructL( )
   290 void CMRUnifiedEditorField::ConstructL( )
   289     {
   291     {
   290     FUNC_LOG;
   292     FUNC_LOG;
   291     iType = CMRLabel::NewL();
   293     iType = CMRLabel::NewL( this );
   292     CESMRField::ConstructL( iType );
   294     CESMRField::ConstructL( iType );
   293     iType->SetTextL( KNullDesC() );
   295     iType->SetTextL( KNullDesC() );
   294 
   296 
   295     TGulAlignment align;
       
   296     align.SetHAlignment( EHLeft );
       
   297     align.SetVAlignment( EVCenter );
       
   298     iType->SetAlignment( align );
       
   299 
       
   300     // An icon is required for layouting the field. Actual correct icon
   297     // An icon is required for layouting the field. Actual correct icon
   301     // is set after InternalizeL.
   298     // is set after InternalizeL.
   302     iIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapEventTypeMeeting );
   299     iIcon = CMRImage::NewL(
       
   300             NMRBitmapManager::EMRBitmapEventTypeMeeting,
       
   301             this );
   303     }
   302     }
   304 
   303 
   305 // ---------------------------------------------------------------------------
   304 // ---------------------------------------------------------------------------
   306 // CMRUnifiedEditorField::UpdateLabelL
   305 // CMRUnifiedEditorField::UpdateLabelL
   307 // ---------------------------------------------------------------------------
   306 // ---------------------------------------------------------------------------
   483             }
   482             }
   484         }
   483         }
   485 
   484 
   486     delete iIcon;
   485     delete iIcon;
   487     iIcon = NULL;
   486     iIcon = NULL;
   488     iIcon = CMRImage::NewL( bitmapId );
   487     iIcon = CMRImage::NewL( bitmapId, this );
   489     }
   488     }
   490 
   489 
   491 // EOF
   490 // EOF
   492 
   491