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 // --------------------------------------------------------------------------- |