equal
deleted
inserted
replaced
76 // --------------------------------------------------------------------------- |
76 // --------------------------------------------------------------------------- |
77 // |
77 // |
78 void CESMRViewerPriorityField::ConstructL() |
78 void CESMRViewerPriorityField::ConstructL() |
79 { |
79 { |
80 FUNC_LOG; |
80 FUNC_LOG; |
81 iLabel = CMRLabel::NewL(); |
81 iLabel = CMRLabel::NewL( this ); |
82 iLabel->SetParent( this ); |
|
83 CESMRField::ConstructL( iLabel ); // ownership transfered |
82 CESMRField::ConstructL( iLabel ); // ownership transfered |
84 |
83 |
85 iIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapPriorityNormal ); |
84 iIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapPriorityNormal, this ); |
86 iIcon->SetParent( this ); |
85 |
87 |
|
88 HBufC* priorityText = StringLoader::LoadLC( |
86 HBufC* priorityText = StringLoader::LoadLC( |
89 R_QTN_CALENDAR_MEETING_OPT_PRIORITY_NORMAL, |
87 R_QTN_CALENDAR_MEETING_OPT_PRIORITY_NORMAL, |
90 iEikonEnv ); |
88 iEikonEnv ); |
91 iLabel->SetTextL( *priorityText ); |
89 iLabel->SetTextL( *priorityText ); |
92 CleanupStack::PopAndDestroy( priorityText ); |
90 CleanupStack::PopAndDestroy( priorityText ); |
161 iLabel->SetTextL( *priorityText ); |
159 iLabel->SetTextL( *priorityText ); |
162 CleanupStack::PopAndDestroy( priorityText ); |
160 CleanupStack::PopAndDestroy( priorityText ); |
163 |
161 |
164 delete iIcon; |
162 delete iIcon; |
165 iIcon = NULL; |
163 iIcon = NULL; |
166 iIcon = CMRImage::NewL( bitmapId ); |
164 iIcon = CMRImage::NewL( bitmapId, this ); |
167 iIcon->SetParent( this ); |
165 |
168 |
|
169 // This needs to be called so icon will be redrawn |
166 // This needs to be called so icon will be redrawn |
170 SizeChanged(); |
167 SizeChanged(); |
171 } |
168 } |
172 } |
169 } |
173 |
170 |
289 |
286 |
290 CESMRField::LockL(); |
287 CESMRField::LockL(); |
291 |
288 |
292 delete iLockIcon; |
289 delete iLockIcon; |
293 iLockIcon = NULL; |
290 iLockIcon = NULL; |
294 iLockIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapLockField, ETrue ); |
291 iLockIcon = CMRImage::NewL( |
295 iLockIcon->SetParent( this ); |
292 NMRBitmapManager::EMRBitmapLockField, |
|
293 this, |
|
294 ETrue ); |
296 } |
295 } |
297 |
296 |
298 // --------------------------------------------------------------------------- |
297 // --------------------------------------------------------------------------- |
299 // CESMRViewerPriorityField::ExecuteGenericCommandL() |
298 // CESMRViewerPriorityField::ExecuteGenericCommandL() |
300 // --------------------------------------------------------------------------- |
299 // --------------------------------------------------------------------------- |